regex: don't assume uint64_t or uint32_t
[gnulib.git] / ChangeLog
1 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2
3         regex: don't assume uint64_t or uint32_t
4         * lib/regcomp.c (init_word_char): Don't assume that the types
5         uint64_t and uint32_t exist.  The C standard doesn't guarantee
6         them, and on some 32-bit compilers there is no uint64_t.
7         Problem reported by Gianluigi Tiesi in
8         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
9
10 2012-05-25  Jim Meyering  <meyering@redhat.com>
11
12         maint.mk: add strncpy-prohibiting syntax-check rule
13         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
14
15 2012-05-24  Jim Meyering  <meyering@redhat.com>
16
17         maint.mk: compute $(gpg_key_ID) more portably
18         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
19         That use of sed is not portable to some fringe systems.
20         Reported by Paul Eggert in
21         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22
23 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24
25         mktime: sync from glibc
26         * config/srclist.txt: Uncomment mktime.c.
27         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
28         First, indent with tabs, since glibc uses tabs and doesn't want to
29         change and we'd rather be identical to glibc.  Also, two small
30         coding changes:
31         (isdst_differ): Use &&, not &, as && is the usual style.
32         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
33         for clarity.
34
35 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
36
37         announce-gen: du -h is more portable than du --human
38         * build-aux/announce-gen (sizes): Invoke du with -h instead
39         of --human.  Accept leading white space in its output.
40
41 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
42
43         announce-gen: Improve diagnostics.
44         * build-aux/announce-gen: When parsing command line options,
45         prefer "announce-gen: option --release-type requires an argument"
46         to "Option release-type requires an argument".
47
48 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
49
50         maint.mk: gpg_key_ID: use sed more portably
51         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
52         the closing brace.
53         (refresh-po): Fuse two sed invocations into one.
54
55 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
56
57         gitlog-to-changelog: support the log message format used in Bison.
58         * build-aux/gitlog-to-changelog: Support --strip-tab and
59         --strip-cherry-picked.
60
61 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
62
63         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
64         the rest of the current time slice to another thread in the current
65         process. So if the thread that feeds the file decscriptor we're
66         polling is not in the current process, we get busy-waiting.
67         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
68         Patch from Theodore Leblond.
69         * lib/select.c: Split polling out of the loop that sets the output
70         fd_sets.  Check for zero result and loop if the wait timeout is
71         infinite.
72
73 2012-05-21  Simon Josefsson  <simon@josefsson.org>
74
75         select: Fix build error on IRIX 6.5.
76         * lib/select.c: Include stddef.h for NULL.
77
78 2012-05-21  Simon Josefsson  <simon@josefsson.org>
79
80         gc: fix libgcrypt detection on older machines.
81         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
82         copyright years because the file has been distributed every year
83         since it was created.
84
85 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86
87         crypto: fix bug in large buffer handling
88         Problem reported by Serge Belyshev for glibc in
89         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
90         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
91         * lib/md4.c (md4_process_block):
92         * lib/md5.c (md5_process_block):
93         * lib/sha1.c (sha1_process_block):
94         * lib/sha256.c (sha256_process_block):
95         Don't assume the buffer length is less than 2**32.
96         * lib/sha512.c (sha512_process_block): Likewise.
97         Here, the bug is present only in the rare case where the host does
98         not support uint64_t or where size_t is wider than 64 bits.
99         Use u64size to work around the problems.
100         * lib/u64.h (u64size): New macro.
101
102 2012-05-15  Pádraig Brady  <P@draigBrady.com>
103
104         fsusage: fix block size returned on older Linux 2.6
105
106         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
107         which is available since Linux 2.6.
108         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
109         when the member is available so it can be used as a fallback.
110         * doc/posix-functions/statvfs.texi: Mention the hang issue
111         on Linux < 2.6.36.
112
113 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114
115         bootstrap: suppress stderr chatter
116         * build-aux/bootstrap (insert_sorted_if_absent, main program):
117         Omit unnecessary chatter to stderr.  The main program chatter
118         was there only inadvertantly.
119
120         bootstrap: .gitignore files created by autopoint, libtool
121         I ran into this problem when bootstrapping the latest diffutils.
122         After './bootstrap', 'git status' reported lots of untracked files
123         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
124         autopoint and do not need to be version-controlled.
125         * build-aux/bootstrap: Put into .gitignore the files that
126         autopoint and libtool create, by keeping track of files that exist
127         after but not before these programs are run.
128         (version_controlled_file): Move up.  2nd arg is now full file
129         name, not base name; this is more convenient.  Put CVS at the end,
130         as it's now somewhat deprecated.
131
132 2012-05-14  Jim Meyering  <meyering@redhat.com>
133
134         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
135         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
136         definition.  Reported by Bruno Haible.
137
138 2012-05-13  Bruno Haible  <bruno@clisp.org>
139             Paul Eggert  <eggert@cs.ucla.edu>
140
141         binary-io: Define set_binary_mode function.
142         * lib/binary-io.h (set_binary_mode): New function.
143         (SET_BINARY): Define in terms of set_binary_mode.
144         * modules/binary-io (configure.ac): Require AC_C_INLINE.
145         * tests/test-binary-io.c (main): Accept an argument, and test either
146         set_binary_mode or SET_BINARY depending on the argument.
147         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
148         argument. Clean up also t-bin-out0.tmp.
149
150 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
151
152         bootstrap: take advantage of POSIX shell features
153
154         The 'bootstrap' script offered by Gnulib script already uses POSIX
155         shell features (like $((...)) arithmetic expansions) that are not
156         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
157         means that bootstrap must already be run using a proper POSIX shell,
158         which will thus provide more features, like ${var#pattern} parameter
159         expansion or inversion of a command exit status with '!'.  We can
160         thus use these features to improve the clarity and the performances
161         of the bootstrap script.
162
163         Suggested by Eric Blake.
164
165         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
166         of sed/expr plus command substitutions, to save some forks.  While
167         we are at it, prefer the POSIX $(...) form of command substitution,
168         rather than the legacy form `...` (since the former is visually
169         clearer and interacts better with quoting), and prefer the idiom:
170           "if ! CMD; then ACTION ..."
171         over the idiom:
172           "if CMD; then :; else ACTION ..."
173         which was required by legacy Bourne shells not supporting '!'.
174
175 2012-05-12  Bruno Haible  <bruno@clisp.org>
176
177         system-quote: Add more comments.
178         * lib/system-quote.h: Add more comments about wilcards and limitations.
179         Suggested by Eli Zaretskii <eliz@gnu.org>.
180
181         sh-quote, system-quote: Add comments about wildcards.
182         * lib/sh-quote.h: Clarify what happens with wildcard characters.
183         * lib/system-quote.h: Likewise.
184         Reported by Eli Zaretskii <eliz@gnu.org>.
185
186 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
187
188         fsusage: check for GNU/Linux statvfs problem dynamically
189         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
190         Define STAT_STATFS2_BSIZE too, since in this case the code now
191         checks dynamically whether statvfs is reliable, falling back on
192         Linux-style statfs otherwise.
193         (statvfs_works): New function, for dynamically testing statvfs.
194         (get_fs_usage) [STAT_STATVFS]: Use it.
195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
196         statvfs on GNU/Linux hosts, since it's now done dynamically.
197
198 2012-05-10  Bruno Haible  <bruno@clisp.org>
199
200         system-quote, execute, spawn-pipe: Escape '?' on Windows.
201         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
202         '?' character.
203         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
204         * tests/test-system-quote-main.c (check_all): Check also strings like
205         "??????????".
206         Reported by Eli Zaretskii <eliz@gnu.org>.
207
208 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
209
210         _Noreturn: port config.h to gcc -Wundef
211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
212         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
214
215 2012-05-10  Bruno Haible  <bruno@clisp.org>
216
217         system-quote: Refactor.
218         * lib/system-quote.h (system_quote_copy): Fix comment.
219         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
220         New functions, extracted from system_quote_copy.
221         (system_quote_length, system_quote_copy): Use these functions.
222         Reported by Paul Eggert.
223
224 2012-05-08  Bruno Haible  <bruno@clisp.org>
225
226         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
227         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
228
229 2012-05-08  Bruno Haible  <bruno@clisp.org>
230
231         Tests for module 'system-quote'.
232         * modules/system-quote-tests: New file.
233         * tests/test-system-quote.sh: New file.
234         * tests/test-system-quote-main.c: New file.
235         * tests/test-system-quote-child.c: New file.
236
237         New module 'system-quote'.
238         * lib/system-quote.h: New file.
239         * lib/system-quote.c: New file.
240         * modules/system-quote: New file.
241
242 2012-05-08  Bruno Haible  <bruno@clisp.org>
243
244         sh-quote: Make C++ safe and allow multiple inclusion.
245         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
246         declarations in extern "C".
247
248 2012-05-08  Bruno Haible  <bruno@clisp.org>
249
250         sh-quote tests: Make tests stricter.
251         * tests/test-sh-quote.c (check_one): Check the return value of
252         shell_quote_copy.
253         (main): Check a string with a CR character. Check a string that
254         contains UCHAR_MAX.
255
256 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
257
258         warnings.m4: provide a means to specify the program to compile.
259         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
260         (gl_WARN_ADD): here.
261         Use gl_AS_VAR_APPEND.
262         Support an argument to specify the program to compile.
263         (gl_WARN_ADD): Accept an argument to specify the program to compile.
264         AC_SUBST the WARN_CFLAGS when they are used.
265         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
266         leave this to gl_WARN_ADD.
267
268 2012-05-08  Eric Blake  <eblake@redhat.com>
269
270         doc: recommendations on gettext version
271         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
272         choice between versions.
273         * DEPENDENCIES (gettext): Cover both approaches.
274
275 2012-05-08  Jim Meyering  <meyering@redhat.com>
276
277         init.sh: explain why EXEEXT support uses aliases rather than functions
278         * tests/init.sh: Add a comment.
279
280         init.sh: don't let bash aliases interfere with tests
281         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
282         is bash.  This avoids problems for those who alias standard commands to
283         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
284         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
285
286 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
287
288         stdint: be more consistent with glibc, SunOS libc
289         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
290         (gl_int_fast16_t, gl_uint_fast16_t)
291         (gl_int_fast32_t, gl_uint_fast32_t)
292         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
293         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
294         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
295         Be consistent with glibc by default, and with SunOS 5.10 and later
296         if __sun is defined.  This lessens the likelihood of clashes if
297         code compiled for older hosts is combined with code compiled for
298         newer ones.  Problem reported by Niels Möller in
299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
300
301 2012-05-07  Eric Blake  <eblake@redhat.com>
302
303         isatty: relax license to LGPLv2+
304         * modules/isatty (License): Relax license.
305
306 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
307
308         stat-size: comment fix
309         * lib/stat-size.h: Remove obsolete comment about indenting.
310
311 2012-05-06  Bruno Haible  <bruno@clisp.org>
312
313         Tests for module 'sh-quote'.
314         * modules/sh-quote-tests: New file.
315         * tests/test-sh-quote.c: New file.
316
317 2012-05-06  Bruno Haible  <bruno@clisp.org>
318
319         sh-quote: Improve shell_quote_argv's signature.
320         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
321         * lib/sh-quote.c (shell_quote_argv): Likewise.
322
323 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
324
325         stdint: document issues with int_fast8_t etc.
326         * doc/posix-headers/stdint.texi (stdint.h): Say that other
327         stdint.h substitutes may define these types differently.  See
328         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
329
330 2012-05-05  Bruno Haible  <bruno@clisp.org>
331
332         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
334         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
335         or 'guessing no (mishandles large arguments)'.
336
337 2012-05-05  Bruno Haible  <bruno@clisp.org>
338
339         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
341         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
342         set gl_cv_func_link_follows_symlink to "guessing no".
343
344 2012-05-05  Bruno Haible  <bruno@clisp.org>
345
346         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
348         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
349         "guessing no".
350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
351
352 2012-05-05  Bruno Haible  <bruno@clisp.org>
353
354         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
356         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
357         set gl_cv_struct_dirent_d_ino to "guessing yes".
358
359 2012-05-05  Bruno Haible  <bruno@clisp.org>
360
361         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
362         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
363         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
364         "guessing yes".
365
366 2012-05-05  Bruno Haible  <bruno@clisp.org>
367
368         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
369         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
370         compiling to a glibc system, set gl_cv_func_signbit and
371         gl_cv_func_signbit_gcc to "guessing yes".
372
373 2012-05-05  Bruno Haible  <bruno@clisp.org>
374
375         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
376         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
377         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
378         to "guessing yes".
379         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
380         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
381
382 2012-05-05  Bruno Haible  <bruno@clisp.org>
383
384         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
385         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
386         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
387         gl_cv_func_realpath_works to "guessing yes".
388
389 2012-05-05  Bruno Haible  <bruno@clisp.org>
390
391         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
393         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
394
395 2012-05-04  Bruno Haible  <bruno@clisp.org>
396
397         Tweak last commit.
398         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
400
401 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
402
403         unistd_h: make it easier to avoid sys_types_h
404         This is useful for Emacs, which has its own method of porting to
405         Windows, and which therefore does not need the sys_types_h module.
406         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
407         code moved here from gl_SYS_TYPES_H.
408         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
409         using the code directly.
410         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
411         gl_SYS_TYPES_H.
412         * modules/sys_types (Files):
413         * modules/unistd (Files): Add m4/off_t.m4.
414
415 2012-05-03  Bruno Haible  <bruno@clisp.org>
416
417         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
418         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
419         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
420         "guessing yes" or "guessing no".
421         (gl_FUNC_LSTAT): Update.
422         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
423         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
424         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
425
426 2012-05-03  Bruno Haible  <bruno@clisp.org>
427
428         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
429         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
430         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
432         cross-compiling, choose the first alternative on glibc systems.
433         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
434
435 2012-05-03  Bruno Haible  <bruno@clisp.org>
436
437         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
438         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
439         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
440
441 2012-05-03  Bruno Haible  <bruno@clisp.org>
442
443         chown: Avoid "guessing no" when cross-compiling to glibc systems.
444         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
445
446 2012-05-03  Bruno Haible  <bruno@clisp.org>
447
448         Avoid "guessing no" guesses when cross-compiling to glibc systems.
449         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
450         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
451         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
452         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
453         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
454         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
455         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
456         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
457         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
458         compiling to glibc systems, set gl_cv_func_chown_slash_works,
459         gl_cv_func_chown_ctime_works to "guessing yes".
460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
461         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
462         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
463         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
464         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
466         compiling to glibc systems, set gl_cv_func_open_directory_works to
467         "guessing yes".
468         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
469         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
470         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
471         "guessing yes".
472         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
473         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
474         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
475         compiling to glibc systems, set gl_cv_func_floorf_ieee to
476         "guessing yes".
477         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
478         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
479         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
480         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
481         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
482         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
483         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
484         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
485         "guessing yes".
486         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
487         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
488         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
489         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
490         "guessing yes".
491         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
492         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
493         "guessing yes".
494         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
495         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
496         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
497         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
498         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
499         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
500         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
501         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
502         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
503         compiling to glibc systems, set gl_cv_func_log10f_ieee to
504         "guessing yes".
505         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
506         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
507         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
508         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
509         "guessing yes".
510         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
511         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
512         "guessing yes".
513         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
514         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
515         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
516         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
517         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
518         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
519         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
520         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
521         compiling to glibc systems, set gl_cv_func_mkfifo_works to
522         "guessing yes".
523         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
524         compiling to glibc systems, set gl_cv_func_mknod_works to
525         "guessing yes".
526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
527         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
528         "guessing yes".
529         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
530         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
531         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
532         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
533         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
534         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
535         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
536         compiling to glibc systems, set gl_cv_func_svid_putenv to
537         "guessing yes".
538         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
539         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
540         "guessing yes".
541         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
542         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
543         "guessing yes".
544         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
545         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
546         to "guessing yes".
547         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
548         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
549         to "guessing yes".
550         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
551         compiling to glibc systems, set gl_cv_func_rmdir_works to
552         "guessing yes".
553         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
554         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
555         gl_cv_func_unlink_parent_fails to "guessing yes".
556         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
557         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
558         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
559         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
560         gl_cv_func_rename_dest_works to "guessing yes".
561         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
562         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
564         compiling to glibc systems, set gl_cv_func_roundf_ieee to
565         "guessing yes".
566         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
567         compiling to glibc systems, set gl_cv_func_roundl_ieee to
568         "guessing yes".
569         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
570         compiling to glibc systems, set gl_cv_func_setenv_works to
571         "guessing yes".
572         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
573         compiling to glibc systems, set gl_cv_func_unsetenv_works to
574         "guessing yes".
575         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
576         compiling to glibc systems, set gl_cv_func_sleep_works to
577         "guessing yes".
578         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
579         compiling to glibc systems, set gl_cv_func_stat_file_slash to
580         "guessing yes".
581         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
582         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
583         "guessing yes".
584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
585         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
586         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
587         compiling to glibc systems, set gl_cv_func_truncf_ieee to
588         "guessing yes".
589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
590         compiling to glibc systems, set gl_cv_func_truncl_ieee to
591         "guessing yes".
592         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
593         compiling to glibc systems, set gl_cv_func_usleep_works to
594         "guessing yes".
595         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
596         compiling to glibc systems, set gl_cv_func_futimesat_works to
597         "guessing yes".
598
599 2012-05-03  Bruno Haible  <bruno@clisp.org>
600
601         Say "guessing yes" or "guessing no" when cross-compiling.
602         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
603         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
605         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
606         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
607         am_cv_func_working_getline to "guessing yes" or "guessing no".
608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
609         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
610         (gl_FUNC_MEMMEM): When cross-compiling, set
611         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
613         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
615         set gl_cv_func_strcasestr_works_always to "guessing yes" or
616         "guessing no".
617         (gl_FUNC_STRCASESTR): When cross-compiling, set
618         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
619         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
620         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
621         (gl_FUNC_STRSTR): When cross-compiling, set
622         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
623         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
624         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
625         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
626         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
627
628 2012-05-01  Bruno Haible  <bruno@clisp.org>
629
630         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
631         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
632         * build-aux/reloc-ldflags: Likewise.
633         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
634
635 2012-05-01  Bruno Haible  <bruno@clisp.org>
636
637         gnulib-tool: Remove transitional code.
638         * gnulib-tool: Don't warn about --import with 0 arguments any more.
639         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
640
641 2012-05-01  Bruno Haible  <bruno@clisp.org>
642
643         getcwd: Fix misindentation.
644         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
645
646 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
647
648         exclude: process exclude and include directives in order
649         This restores the pre-2009 behavior, and is part of a fix of a
650         grep bug reported by Quentin Arce in
651         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
652         * lib/exclude.c (struct exclude): Remove 'tail' member.
653         (new_exclude_segment): Prepend the new segment instead of appending.
654         Return void, since that's now more convenient.
655         (file_pattern_matches): Renamed from excluded_file_pattern_p.
656         (file_name_matches): Renamed from excluded_file_name_p.
657         (file_pattern_matches, file_name_matches):
658         Return true if the pattern matches, not if it excludes.
659         All callers changed.
660         (excluded_file_name): Process the list in reverse order;
661         since the list is now reversed this restores the pre-2009 behavior.
662         (add_exclude): Adjust to new reversed-order list.  Use local var
663         rather than macro, for clarity.
664         * tests/test-exclude7.sh: Adjust to corrected behavior.
665
666         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
667         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
668         it's not possible here.  Handle the case of \ at end of pattern
669         without dumping core.
670         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
671
672         _Noreturn: future-proof non-GNU and non-MSVC compilers
673         * build-aux/snippet/_Noreturn.h (_Noreturn):
674         * m4/gnulib-common.m4 (gl_COMMON_BODY):
675         Do not define _Noreturn if __STDC_VERSION__ indicates this is
676         C11 or later.  This is more likely to work with random future C
677         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
679
680         exclude: handle wildcards with FNM_EXTMATCH
681         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
682         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
683         comment that "has wildcards" really means "has or may have
684         wildcards".  Simplify by avoiding the need to call strcspn.
685
686 2012-04-29  Bruno Haible  <bruno@clisp.org>
687
688         gnulib-tool: Fix list of authors.
689         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
690
691 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
692
693         bootstrap: support Automake-NG in $buildreq
694         * bootstrap (check_versions): Handle automake and aclocal from
695         Automake-NG specially.  They can be specified as respectively
696         the "automake-ng" and "aclocal-ng" requirements.
697
698 2012-04-25  Eric Blake  <eblake@redhat.com>
699
700         bootstrap: only force latest Makefile.in.in for gettext module
701         * build-aux/bootstrap (with_gettext): Only install latest
702         Makefile.in.in for projects requesting bleeding edge gettext.
703
704 2012-04-22  Bruno Haible  <bruno@clisp.org>
705
706         doc: Mention reason for replacement on glibc/Linux systems.
707         * doc/posix-functions/dprintf.texi: Mention the problem with special
708         'long double' values.
709         * doc/posix-functions/fprintf.texi: Likewise.
710         * doc/posix-functions/printf.texi: Likewise.
711         * doc/posix-functions/snprintf.texi: Likewise.
712         * doc/posix-functions/sprintf.texi: Likewise.
713         * doc/posix-functions/vdprintf.texi: Likewise.
714         * doc/posix-functions/vfprintf.texi: Likewise.
715         * doc/posix-functions/vprintf.texi: Likewise.
716         * doc/posix-functions/vsnprintf.texi: Likewise.
717         * doc/posix-functions/vsprintf.texi: Likewise.
718         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
719         platforms with F_DUPFD_CLOEXEC problems.
720         * doc/posix-functions/glob.texi: Mention which platforms are affected
721         by the problem with symbolic links.
722         * doc/posix-functions/linkat.texi: Mention the problem with
723         AT_SYMLINK_FOLLOW on Linux.
724
725 2012-04-22  Bruno Haible  <bruno@clisp.org>
726
727         pwrite: Don't replace on all platforms.
728         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
729
730 2012-04-22  Bruno Haible  <bruno@clisp.org>
731
732         rint* tests: Avoid gcc warnings.
733         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
734         * tests/test-rintf.c (INFINITY, NAN): Likewise.
735         * tests/test-rintl.c (INFINITY, NAN): Likewise.
736
737 2012-04-21  Bruno Haible  <bruno@clisp.org>
738
739         users.txt: Update.
740         * users.txt: Add freedink, wdiff. Update URLs for projects that have
741         switched from CVS to git, bzr, or svn.
742
743 2012-04-21  Bruno Haible  <bruno@clisp.org>
744
745         Large File Support for native Windows platforms.
746
747         * m4/largefile.m4 (gl_LARGEFILE): New macro.
748         * modules/largefile (configure.ac): Require gl_LARGEFILE.
749
750         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
751         type.
752         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
753         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
754         * doc/posix-headers/sys_types.texi: Mention the effect of the
755         'largefile' module.
756
757         * lib/fcntl.in.h: Add comments about off_t.
758         * modules/fcntl-h (Depends-on): Add sys_types.
759
760         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
761         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
762         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
763         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
764         * modules/unistd (Depends-on): Add sys_types.
765         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
766
767         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
768         instead of lseek.
769         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
770         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
771         * modules/lseek (Depends-on): Add sys_types.
772
773         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
774         msvc-nothrow.h.
775         (SetFileSize): New function.
776         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
777         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
778         if Large File Support is requested.
779         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
780         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
781
782         * lib/stdio.in.h: Add comments about off_t.
783         * modules/stdio (Depends-on): Add sys_types.
784
785         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
786         instead of ftello.
787         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
788         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
789         (gl_PREREQ_FTELLO): New macro.
790         * modules/ftello (Depends-on): Add sys_types.
791         (configure.ac): Incoke gl_PREREQ_FTELLO.
792
793         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
794         instead of fseeko.
795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
796         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
797         (gl_PREREQ_FSEEKO): New macro.
798         * modules/fseeko (Depends-on): Add sys_types.
799         (configure.ac): Invoke gl_PREREQ_FSEEKO.
800
801         * lib/sys_stat.in.h: Add comments about off_t.
802         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
803         64-bit integer for st_size in 'struct stat'.
804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
805         Define _GL_WINDOWS_64_BIT_ST_SIZE.
806         * modules/sys_stat (Depends-on): Add sys_types.
807         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
808
809         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
810         instead of stat or _stat.
811
812         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
813         'struct _stati64' instead of fstat and 'struct stat'.
814         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
815         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
816
817         Reported by Ray Satiro <raysatiro@yahoo.com>.
818
819 2012-04-19  Eric Blake  <eblake@redhat.com>
820
821         bootstrap: accommodate older libtool
822         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
823         Reported by Daniel P. Berrange.
824
825 2012-04-19  Jim Meyering  <meyering@redhat.com>
826
827         announce-gen: avoid failure due to lack of Digest::SHA1
828         Even with the preferred Digest::SHA available, this script
829         would fail when the backup module, Digest::SHA1, was not installed.
830         * build-aux/announce-gen: Quote the conditional use of "use".
831         Reported by Reuben Thomas in:
832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
833
834         bootstrap: don't let a user's CDPATH setting affect this script
835         When CDPATH is set, cd will sometimes generate output.
836         When "cd" is run in a subshell whose output matters, that
837         surprising-to-some output can cause malfunction.
838         Unsetting CDPATH turns off this shell "feature."
839         * build-aux/bootstrap (CDPATH): Unset.
840         Reported by Reuben Thomas in:
841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
842         and inspired by his patch here:
843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
844
845 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
846         and Jim Meyering  <meyering@redhat.com>
847
848         maint.mk: catch "see @xref{}" and similar
849         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
850         prohibit "See also @xref{", "Also see @pxref{", and similar.
851
852 2012-04-16  Jim Meyering  <meyering@redhat.com>
853
854         bootstrap: really use gnulib's po/Makefile.in.in
855         * build-aux/bootstrap: Correct the source file name in previous change.
856         Reported by Akim Demaille.
857
858         configmake: correct minor inconsistency in Makefile rule
859         * modules/configmake (Makefile.am): All other rules like this one
860         run the final "mv -f ..." in the same backslash-continued command
861         as the one that does everything else.  This one put the mv -f ...
862         command on a separate, non-backslash-continued line.
863         Make it like the others.
864
865         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
866         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
867         the one from gettext.  Reported by Akim Demaille.
868
869 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
870
871         Fix recursion of install-* into po directories.
872         Bison's install-pdf bug reported by Hans Aberg at
873         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
874         * build-aux/po/Makefile.in.in (install-dvi, install-html)
875         (install-info, install-pdf, install-ps): New targets.
876
877 2012-04-16  Jim Meyering  <meyering@redhat.com>
878
879         maint: avoid spurious "make sc_maint" failure
880         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
881         exempt all *.class file names, for lib/javaversion.class.
882
883 2012-04-15  Bruno Haible  <bruno@clisp.org>
884
885         lseek: Make configure test independent of environment.
886         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
887         Windows, we know that lseek() on pipes is broken; skip the runtime
888         test.
889
890 2012-04-14  Bruno Haible  <bruno@clisp.org>
891
892         stat: Bypass buggy override in mingw64.
893         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
894         * lib/stat.c (stat) [mingw64]: Define to _stat.
895         * doc/posix-functions/stat.texi: Mention mingw64 bug.
896
897 2012-04-14  Bruno Haible  <bruno@clisp.org>
898
899         pathmax: Fix compilation error on MSVC 9.
900         * modules/pathmax (Depends-on): Add unistd.
901
902 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
903
904         README: document pointer comparison assumption
905         * README (Portability guidelines): Document assumption about
906         pointer comparisons, in response to a recent bug-gnulib comment by
907         Jeffrey Kegler.
908
909 2012-04-12  Bruno Haible  <bruno@clisp.org>
910
911         Tests for module 'getrusage'.
912         * modules/getrusage-tests: New file.
913         * tests/test-getrusage.c: New file.
914
915         New module 'getrusage'.
916         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
917         warn-on-use.h.
918         (getrusage): New declaration.
919         * lib/getrusage.c: New file.
920         * m4/getrusage.m4: New file.
921         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
922         is declared.
923         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
924         HAVE_GETRUSAGE.
925         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
926         snippet/c++defs, snippet/warn-on-use.
927         (Makefile.am): Update generation of sys/resource.h. Substitute
928         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
929         * modules/getrusage: New file.
930         * doc/posix-functions/getrusage.texi: Mention the new module.
931
932 2012-04-12  Bruno Haible  <bruno@clisp.org>
933
934         Tests for module 'sys_resource'.
935         * modules/sys_resource-tests: New file.
936         * tests/test-sys_resource.c: New file.
937
938         New module 'sys_resource'.
939         * lib/sys_resource.in.h: New file.
940         * m4/sys_resource_h.m4: New file.
941         * modules/sys_resource: New file.
942         * doc/posix-headers/sys_resource.texi: Mention the new module.
943
944 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
945
946         ioctl: Fix compilation error on mingw.
947         * lib/ioctl.c: Include <windows.h>.
948         Also reported by Ray Satiro <raysatiro@yahoo.com>.
949
950 2012-04-04  Jim Meyering  <meyering@redhat.com>
951
952         regex: correct #pragma guard expression
953         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
954         not 4.3.  Correct its cpp guard expression.
955
956 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
957
958         regex: remove unnecessary type punning
959         Problem reported by Vladimir Serbinenko in
960         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
961         * lib/regex.h (struct re_pattern_buffer): Change the type of
962         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
963         Fix comment to match code.
964         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
965         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
966         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
967         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
968         (set_regs):
969         Omit no-longer-necessary casts.
970
971 2012-04-03  Bruno Haible  <bruno@clisp.org>
972
973         Tests for module 'ilogbl'.
974         * modules/ilogbl-tests: New file.
975         * tests/test-ilogbl.c: New file.
976
977         New module 'ilogbl'.
978         * lib/math.in.h (ilogbl): New declaration.
979         * lib/ilogbl.c: New file.
980         * m4/ilogbl.m4: New file.
981         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
983         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
984         Split sed invocation, to avoid the limit of 100 substitutions of
985         HP-UX 'sed'.
986         * modules/ilogbl: New file.
987         * tests/test-math-c++.cc: Check the declaration of ilogbl.
988         * doc/posix-functions/ilogbl.texi: Mention the new module.
989
990 2012-04-03  Bruno Haible  <bruno@clisp.org>
991
992         Tests for module 'ilogbf'.
993         * modules/ilogbf-tests: New file.
994         * tests/test-ilogbf.c: New file.
995
996         New module 'ilogbf'.
997         * lib/math.in.h (ilogbf): New declaration.
998         * lib/ilogbf.c: New file.
999         * m4/ilogbf.m4: New file.
1000         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1002         REPLACE_ILOGBF.
1003         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1004         REPLACE_ILOGBF.
1005         * modules/ilogbf: New file.
1006         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1007         * doc/posix-functions/ilogbf.texi: Mention the new module.
1008
1009 2012-04-03  Bruno Haible  <bruno@clisp.org>
1010
1011         Tests for module 'ilogb'.
1012         * modules/ilogb-tests: New file.
1013         * tests/test-ilogb.c: New file.
1014         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1015         tests/test-logb-ieee.h.
1016
1017         New module 'ilogb'.
1018         * lib/math.in.h (ilogb): New declaration.
1019         * lib/ilogb.c: New file.
1020         * m4/ilogb.m4: New file.
1021         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1023         REPLACE_ILOGB.
1024         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1025         REPLACE_ILOGB.
1026         * modules/ilogb: New file.
1027         * tests/test-math-c++.cc: Check the declaration of ilogb.
1028         * doc/posix-functions/ilogb.texi: Mention the new module.
1029
1030 2012-04-03  Bruno Haible  <bruno@clisp.org>
1031
1032         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1033         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1034         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1035         (main): Check their values.
1036         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1037         problem.
1038
1039 2012-04-03  Bruno Haible  <bruno@clisp.org>
1040
1041         Tests for module 'logbl-ieee'.
1042         * modules/logbl-ieee-tests: New file.
1043         * tests/test-logbl-ieee.c: New file.
1044
1045         New module 'logbl-ieee'.
1046         * modules/logbl-ieee: New file.
1047
1048         Tests for module 'logb-ieee'.
1049         * modules/logb-ieee-tests: New file.
1050         * tests/test-logb-ieee.c: New file.
1051
1052         New module 'logb-ieee'.
1053         * modules/logb-ieee: New file.
1054
1055         Tests for module 'logbf-ieee'.
1056         * modules/logbf-ieee-tests: New file.
1057         * tests/test-logbf-ieee.c: New file.
1058         * tests/test-logb-ieee.h: New file.
1059
1060         New module 'logbf-ieee'.
1061         * modules/logbf-ieee: New file.
1062
1063 2012-04-03  Bruno Haible  <bruno@clisp.org>
1064
1065         Tests for module 'logbl'.
1066         * modules/logbl-tests: New file.
1067         * tests/test-logbl.c: New file.
1068
1069         New module 'logbl'.
1070         * lib/math.in.h (logbl): New declaration.
1071         * lib/logbl.c: New file.
1072         * m4/logbl.m4: New file.
1073         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1075         REPLACE_LOGBL.
1076         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1077         REPLACE_LOGBL.
1078         * modules/logbl: New file.
1079         * tests/test-math-c++.cc: Check the declaration of logbl.
1080         * doc/posix-functions/logbl.texi: Mention the new module.
1081
1082 2012-04-02  Bruno Haible  <bruno@clisp.org>
1083
1084         Tests for module 'logbf'.
1085         * modules/logbf-tests: New file.
1086         * tests/test-logbf.c: New file.
1087
1088         New module 'logbf'.
1089         * lib/math.in.h (logbf): New declaration.
1090         * lib/logbf.c: New file.
1091         * m4/logbf.m4: New file.
1092         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1094         REPLACE_LOGBF.
1095         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1096         REPLACE_LOGBF.
1097         * modules/logbf: New file.
1098         * tests/test-math-c++.cc: Check the declaration of logbf.
1099         * doc/posix-functions/logbf.texi: Mention the new module.
1100
1101 2012-04-02  Bruno Haible  <bruno@clisp.org>
1102
1103         logb tests: More tests.
1104         * tests/test-logb.h: New file, based on tests/test-logb.c and
1105         tests/test-frexp.h.
1106         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1107         (main): Just invoke test_function.
1108         * modules/logb-tests (Files): Add tests/test-logb.h,
1109         tests/minus-zero.h, tests/randomd.c.
1110         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1111
1112         logb: Provide replacement and workarounds.
1113         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1114         is 1.
1115         * lib/logb.c: New file.
1116         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1117         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1119         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1120         * modules/logb (Files): Add lib/logb.c.
1121         (Depends-on): Add isfinite, frexp, isnand.
1122         (configure.ac): Compile the replacement code logb.c if needed.
1123         * tests/test-math-c++.cc: Check the declaration of logb.
1124         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1125         with subnormal numbers.
1126
1127 2012-04-02  Bruno Haible  <bruno@clisp.org>
1128
1129         log10* tests: Speed up.
1130         * tests/test-log10.h (test_function): Reduce amount of random numbers
1131         to test.
1132
1133 2012-04-01  Bruno Haible  <bruno@clisp.org>
1134
1135         logf-ieee: Fix test whether logf works.
1136         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1137
1138 2012-04-01  Bruno Haible  <bruno@clisp.org>
1139
1140         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1141         * lib/log10l.c: Include <float.h>
1142         (log10l): On IRIX, normalize the +Infinity value.
1143         * modules/log10l (Depends-on): Add 'float'.
1144         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1145         +Infinity.
1146
1147         log10f-ieee: Work around test failure on NetBSD 5.1.
1148         * m4/log10f-ieee.m4: New file.
1149         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1150         test whether log10f works with a negative argument. Replace it if not.
1151         * lib/log10f.c (log10f): For negative arguments, return NaN.
1152         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1153         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1154         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1155
1156         log10f-ieee: Work around test failure on Solaris 9.
1157         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1158         (configure.ac): Require gl_FUNC_LOG10F.
1159
1160         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1161         * m4/log10-ieee.m4: New file.
1162         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1163         whether log10 works with a negative argument. Replace it if not.
1164         * lib/log10.c (log10): For negative arguments, return NaN.
1165         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1166         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1167         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1168
1169         Tests for module 'log10l-ieee'.
1170         * modules/log10l-ieee-tests: New file.
1171         * tests/test-log10l-ieee.c: New file.
1172
1173         New module 'log10l-ieee'.
1174         * modules/log10l-ieee: New file.
1175
1176         Tests for module 'log10-ieee'.
1177         * modules/log10-ieee-tests: New file.
1178         * tests/test-log10-ieee.c: New file.
1179
1180         New module 'log10-ieee'.
1181         * modules/log10-ieee: New file.
1182
1183         Tests for module 'log10f-ieee'.
1184         * modules/log10f-ieee-tests: New file.
1185         * tests/test-log10f-ieee.c: New file.
1186         * tests/test-log10-ieee.h: New file.
1187
1188         New module 'log10f-ieee'.
1189         * modules/log10f-ieee: New file.
1190
1191 2012-04-01  Bruno Haible  <bruno@clisp.org>
1192
1193         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1194         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1195         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1196         workaround.
1197         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1198         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1200         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1201         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1202         (Depends-on): Update conditions.
1203         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1204         IRIX 6.5, OSF/1 5.1 problems.
1205
1206 2012-04-01  Bruno Haible  <bruno@clisp.org>
1207
1208         log10f: Work around OSF/1 5.1 bug.
1209         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1210         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1211         workaround.
1212         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1213         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1215         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1216         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1217         (Depends-on): Update conditions.
1218         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1219
1220 2012-04-01  Bruno Haible  <bruno@clisp.org>
1221
1222         log10: Work around OSF/1 5.1 bug.
1223         * lib/math.in.h (log10): New declaration.
1224         * lib/log10.c: New file.
1225         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1226         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1227         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1229         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1230         * modules/log10 (Files): Add lib/log10.c.
1231         (Depends-on): Add math.
1232         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1233         * tests/test-math-c++.cc: Check the declaration of log10.
1234         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1235
1236 2012-03-31  Bruno Haible  <bruno@clisp.org>
1237
1238         log10l tests: More tests.
1239         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1240         tests/minus-zero.h, tests/randoml.c.
1241         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1242         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1243         (main): Invoke test_function.
1244
1245         log10f tests: More tests.
1246         * modules/log10f-tests (Files): Add tests/test-log10.h,
1247         tests/minus-zero.h, tests/randomf.c.
1248         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1249         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1250         (main): Invoke test_function.
1251
1252         log10 tests: More tests.
1253         * tests/test-log10.h: New file.
1254         * modules/log10-tests (Files): Add tests/test-log10.h,
1255         tests/minus-zero.h, tests/randomd.c.
1256         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1257         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1258         (main): Invoke test_function.
1259
1260 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1261
1262         fflush: Fix syntax error.
1263         * lib/fflush.c: Include unused-parameter.h, needed for
1264         _GL_UNUSED_PARAMETER.
1265         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1266
1267 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1268
1269         regex: pacify GCC when compiling GRUB
1270         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1271         a diagnostic.  Reported by Vladimir Serbinenko in
1272         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1273
1274 2012-03-29  Eric Blake  <eblake@redhat.com>
1275
1276         stdio: don't assume gets any more
1277         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1278         support.
1279         * modules/stdio (Makefile.am): Likewise.
1280         * lib/stdio-read.c (gets): Likewise.
1281         * tests/test-stdio-c++.cc: Likewise.
1282         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1283         * lib/stdio.in.h (gets): Make warning occur in more places.
1284         * doc/posix-functions/gets.texi (gets): Update documentation.
1285         Reported by Christer Solskogen.
1286
1287         maint.mk: fix syntax checks without exclusions
1288         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1289         Reported by Daniel P. Berrange.
1290
1291         strerror_r: avoid compiler warning
1292         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1293         level.
1294
1295         fflush: avoid compiler warning
1296         * lib/fflush.c (update_fpos_cache): Mark variables that are
1297         potentially unused.
1298
1299 2012-03-25  Bruno Haible  <bruno@clisp.org>
1300
1301         Tests for module 'localeconv'.
1302         * modules/localeconv-tests: New file.
1303         * tests/test-localeconv.c: New file.
1304
1305         New module 'localeconv'.
1306         * lib/locale.in.h (localeconv): New declaration.
1307         * lib/localeconv.c: New file.
1308         * m4/localeconv.m4: New file.
1309         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1310         REPLACE_LOCALECONV.
1311         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1312         REPLACE_LOCALECONV.
1313         * modules/localeconv: New file.
1314         * modules/nl_langinfo (Depends-on): Add localeconv.
1315         * modules/human (Depends-on): Likewise.
1316         * doc/posix-functions/localeconv.texi: Mention the new module.
1317
1318 2012-03-25  Bruno Haible  <bruno@clisp.org>
1319
1320         locale: Provide a complete 'struct lconv'.
1321         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1322         'struct lconv' does not contain int_p_cs_precedes.
1323         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1324         * doc/posix-headers/locale.texi: Update.
1325
1326         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1327         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1328         * doc/posix-headers/locale.texi: Update.
1329
1330         locale: Provide a working 'struct lconv'.
1331         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1332         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1333         'struct lconv' does not even contain decimal_point.
1334         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1335         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1336         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1337         * doc/posix-headers/locale.texi: Mention the problems with
1338         'struct lconv'.
1339         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1340
1341 2012-03-24  Bruno Haible  <bruno@clisp.org>
1342
1343         Enable common subexpression optimization in GCC.
1344         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1345         macros.
1346         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1347         GCC attribute 'const'.
1348         (uc_locale_language): Declare with GCC attribute 'pure'.
1349         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1350         with GCC attribute 'const'.
1351         * lib/unictype.in.h (uc_is_general_category_withtable,
1352         uc_combining_class, uc_combining_class_name,
1353         uc_combining_class_long_name, uc_bidi_class_name,
1354         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1355         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1356         uc_decimal_value, uc_digit_value, uc_numeric_value,
1357         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1358         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1359         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1360         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1361         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1362         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1363         Declare with GCC attribute 'const'.
1364         (uc_general_category_name, uc_general_category_long_name,
1365         uc_general_category_byname, uc_general_category,
1366         uc_is_general_category, uc_combining_class_byname,
1367         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1368         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1369         Declare with GCC attribute 'pure'.
1370         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1371         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1372         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1373         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1374         with GCC attribute 'pure'.
1375         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1376         'const'.
1377         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1378         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1379         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1380         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1381         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1382         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1383         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1384         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1385         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1386         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1387         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1388         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1389         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1390         GCC attribute 'pure'.
1391         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1392         'const'.
1393         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1394         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1395         u32_strwidth): Declare with GCC attribute 'pure'.
1396
1397         Enable common subexpression optimization in GCC.
1398         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1399         (alphasort): Declare with GCC attribute 'pure'.
1400         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1401         (atoll): Declare with GCC attribute 'pure'.
1402         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1403         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1404         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1405         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1406         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1407         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1408         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1409
1410 2012-03-24  Bruno Haible  <bruno@clisp.org>
1411
1412         gnulib-tool: Avoid unintended error output from 'cmp'.
1413         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1414         "cmp -s", not "cmp > /dev/null".
1415
1416 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1417
1418         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1419
1420         It's not just Automake versions < 1.9b that creates an empty
1421         pkgdatadir at installation time if pkgdata_DATA is specified
1422         to empty; modern automake versions do this as well, at least
1423         until automake 1.11.4 (not yet released at the moment of writing,
1424         but soon to appear).  That behaviour was generally considered a
1425         feature rather than a bug, at least until this discussion:
1426         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1427
1428         See also automake bugs #10997 and #11030.
1429
1430         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1431         reference to relevant automake bug numbers.
1432         (func_emit_tests_Makefile_am): Likewise.
1433
1434 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1435
1436         announce-gen: use Digest::SHA when possible
1437         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1438         back to Digest::SHA1 if necessary.
1439
1440 2012-03-20  Jim Meyering  <meyering@redhat.com>
1441
1442         tests: avoid gcc warnings about argv vs. const initializers
1443         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1444         warnings about discarding 'const' qualifier from pointer target type.
1445         * tests/test-posix_spawn2.c (main): Likewise.
1446
1447 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1448
1449         README-release: simplify slightly
1450         * top/README-release: Run "git checkout master" only once.
1451
1452 2012-03-15  Mark Wielaard  <mark@klomp.org>
1453
1454         git-merge-changelog: add specific example on how to use with hg.
1455         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1456
1457 2012-03-18  Mark Wielaard  <mark@klomp.org>
1458
1459         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1460
1461 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1462
1463         git-version-gen: don't let "prefix" envvar cause trouble
1464         * build-aux/git-version-gen (prefix): Initialize properly,
1465         so as not to use a value specified via the environment.
1466         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1467
1468 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1469
1470         regex: diagnose too-large repeat counts in EREs
1471         Previously, the code did not diagnose the too-large repeat count
1472         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1473         as if it were 'b\{1000000000}', which is unexpected.
1474         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1475         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1476         is a reasonable one for this problem.  Another option would be to
1477         create a new REG_OVERFLOW error for repeat counts that are too large.
1478         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1479         count is too large, so that the caller can distinguish the two cases.
1480         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1481         "Too large" return code, and that repeat counts are one example of this.
1482
1483 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         doc: some glibc x32 integer width issues
1486         * doc/posix-headers/sys_types.texi (sys/types.h):
1487         * doc/posix-headers/time.texi (time.h):
1488         Mention that glibc x32 does not conform to POSIX in a couple of
1489         areas related to integer widths.
1490
1491 2012-03-15  Bruno Haible  <bruno@clisp.org>
1492
1493         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1494         * lib/fma.c (VOLATILE): New macro.
1495         (FUNC): Use it to work around a GCC compiler bug.
1496
1497 2012-03-13  Bruno Haible  <bruno@clisp.org>
1498
1499         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1500         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1501         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1502         REPLACE_HYPOTL to 1.
1503         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1504
1505 2012-03-13  Bruno Haible  <bruno@clisp.org>
1506
1507         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1508         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1509         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1510         REPLACE_REMAINDERL to 1.
1511         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1512         bug.
1513
1514 2012-03-13  Bruno Haible  <bruno@clisp.org>
1515
1516         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1517         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1518         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1519         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1520         too big rounding errors.
1521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1522         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1523         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1524         (Depends-on): Update conditions.
1525         * tests/test-sqrtl.c (my_ldexpl): New function.
1526         (main): Add test of a particular value.
1527         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1528
1529 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1530
1531         doc: Update timer_* platform portability notes.
1532         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1533         that always return ENOSYS.
1534         * doc/posix-functions/timer_delete.texi: Likewise.
1535         * doc/posix-functions/timer_gettime.texi: Likewise.
1536         * doc/posix-functions/timer_settime.texi: Likewise.
1537
1538 2012-03-13  Bruno Haible  <bruno@clisp.org>
1539
1540         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1541         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1542         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1543         REPLACE_CBRTL to 1.
1544         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1545
1546 2012-03-13  Bruno Haible  <bruno@clisp.org>
1547
1548         remainderl: Avoid compilation error on AIX >= 5.2.
1549         * lib/math.in.h (remainderl): Undefine macro from the system header.
1550
1551 2012-03-13  Bruno Haible  <bruno@clisp.org>
1552
1553         Avoid compilation errors with MSVC option -fp:strict.
1554         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1555         * lib/cbrtf.c: Likewise.
1556         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1557
1558 2012-03-12  Bruno Haible  <bruno@clisp.org>
1559
1560         uninorm: Don't crash in out-of-memory conditions.
1561         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1562         gracefully.
1563         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1564         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1565
1566 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1567
1568         quote: fix syntax-check
1569         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1570         also exports quote_quoting_options.
1571
1572 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1573
1574         Collapse list of copyright years to ranges.  See
1575         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1576         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1577         build-aux/csharpexec.sh.in, build-aux/gnupload,
1578         build-aux/install-reloc, build-aux/javacomp.sh.in,
1579         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1580         build-aux/move-if-change, build-aux/reloc-ldflags,
1581         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1582
1583 2012-03-11  Bruno Haible  <bruno@clisp.org>
1584
1585         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1586         * m4/log2f-ieee.m4: New file.
1587         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1588         whether log2f works with a minus zero argument. Replace it if not.
1589         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1590         (Depends-on): Add log2-ieee.
1591         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1592         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1593
1594         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1595         * m4/log2-ieee.m4: New file.
1596         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1597         whether log2 works with a minus zero argument. Replace it if not.
1598         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1599         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1600         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1601
1602         Tests for module 'log2l-ieee'.
1603         * modules/log2l-ieee-tests: New file.
1604         * tests/test-log2l-ieee.c: New file.
1605
1606         New module 'log2l-ieee'.
1607         * modules/log2l-ieee: New file.
1608
1609         Tests for module 'log2-ieee'.
1610         * modules/log2-ieee-tests: New file.
1611         * tests/test-log2-ieee.c: New file.
1612
1613         New module 'log2-ieee'.
1614         * modules/log2-ieee: New file.
1615
1616         Tests for module 'log2f-ieee'.
1617         * modules/log2f-ieee-tests: New file.
1618         * tests/test-log2f-ieee.c: New file.
1619         * tests/test-log2-ieee.h: New file.
1620
1621         New module 'log2f-ieee'.
1622         * modules/log2f-ieee: New file.
1623
1624 2012-03-11  Bruno Haible  <bruno@clisp.org>
1625
1626         Tests for module 'log2l'.
1627         * modules/log2l-tests: New file.
1628         * tests/test-log2l.c: New file.
1629
1630         New module 'log2l'.
1631         * lib/math.in.h (log2l): New declaration.
1632         * lib/log2l.c: New file.
1633         * m4/log2l.m4: New file.
1634         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1636         REPLACE_LOG2L.
1637         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1638         REPLACE_LOG2L.
1639         * modules/log2l: New file.
1640         * tests/test-math-c++.cc: Check the declaration of log2l.
1641         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1642         and OSF/1 problems.
1643
1644 2012-03-11  Bruno Haible  <bruno@clisp.org>
1645
1646         Tests for module 'log2f'.
1647         * modules/log2f-tests: New file.
1648         * tests/test-log2f.c: New file.
1649
1650         New module 'log2f'.
1651         * lib/math.in.h (log2f): New declaration.
1652         * lib/log2f.c: New file.
1653         * m4/log2f.m4: New file.
1654         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1656         REPLACE_LOG2F.
1657         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1658         REPLACE_LOG2F.
1659         * modules/log2f: New file.
1660         * tests/test-math-c++.cc: Check the declaration of log2f.
1661         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1662         and OSF/1 and Cygwin problems.
1663
1664 2012-03-11  Bruno Haible  <bruno@clisp.org>
1665
1666         Tests for module 'log2'.
1667         * modules/log2-tests: New file.
1668         * tests/test-log2.c: New file.
1669         * tests/test-log2.h: New file.
1670
1671         New module 'log2'.
1672         * lib/math.in.h (log2): New declaration.
1673         * lib/log2.c: New file.
1674         * m4/log2.m4: New file.
1675         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1677         REPLACE_LOG2.
1678         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1679         REPLACE_LOG2.
1680         * modules/log2: New file.
1681         * tests/test-math-c++.cc: Check the declaration of log2.
1682         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1683         and OSF/1 and Cygwin problems.
1684
1685 2012-03-11  Bruno Haible  <bruno@clisp.org>
1686
1687         exp2* tests: More tests.
1688         * tests/test-exp2.h (test_function): Test all integral arguments that
1689         don't need to overflow or denormalized numbers.
1690         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1691         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1692         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1693
1694 2012-03-10  Bruno Haible  <bruno@clisp.org>
1695
1696         log1pl-ieee: Work around test failure on AIX 7.1.
1697         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1698
1699         log1pl-ieee: Work around test failure on IRIX 6.5.
1700         * m4/log1pl-ieee.m4: New file.
1701         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1702         test whether log1pl works with a minus zero argument. Replace it if
1703         not.
1704         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1706         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1707         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1708         (Depends-on): Update conditions.
1709         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1710         m4/signbit.m4.
1711         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1712         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1713
1714         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1715         * m4/log1pf-ieee.m4: New file.
1716         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1717         test whether log1pf works with a minus zero argument. Replace it if
1718         not.
1719         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1720         m4/signbit.m4.
1721         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1722         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1723
1724         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1725         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1726         (configure.ac): Require gl_FUNC_LOG1PF.
1727
1728         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1729         * m4/log1p-ieee.m4: New file.
1730         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1731         whether log1p works with a minus zero argument. Replace it if not.
1732         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1734         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1735         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1736         (Depends-on): Update conditions.
1737         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1738         m4/signbit.m4.
1739         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1740         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1741
1742         Tests for module 'log1pl-ieee'.
1743         * modules/log1pl-ieee-tests: New file.
1744         * tests/test-log1pl-ieee.c: New file.
1745
1746         New module 'log1pl-ieee'.
1747         * modules/log1pl-ieee: New file.
1748
1749         Tests for module 'log1p-ieee'.
1750         * modules/log1p-ieee-tests: New file.
1751         * tests/test-log1p-ieee.c: New file.
1752
1753         New module 'log1p-ieee'.
1754         * modules/log1p-ieee: New file.
1755
1756         Tests for module 'log1pf-ieee'.
1757         * modules/log1pf-ieee-tests: New file.
1758         * tests/test-log1pf-ieee.c: New file.
1759         * tests/test-log1p-ieee.h: New file.
1760
1761         New module 'log1pf-ieee'.
1762         * modules/log1pf-ieee: New file.
1763
1764 2012-03-10  Bruno Haible  <bruno@clisp.org>
1765
1766         Tests for module 'log1pl'.
1767         * modules/log1pl-tests: New file.
1768         * tests/test-log1pl.c: New file.
1769
1770         New module 'log1pl'.
1771         * lib/math.in.h (log1pl): New declaration.
1772         * lib/log1pl.c: New file.
1773         * m4/log1pl.m4: New file.
1774         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1776         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1777         * modules/log1pl: New file.
1778         * tests/test-math-c++.cc: Check the declaration of log1pl.
1779         * doc/posix-functions/log1pl.texi: Mention the new module.
1780
1781 2012-03-10  Bruno Haible  <bruno@clisp.org>
1782
1783         Tests for module 'log1pf'.
1784         * modules/log1pf-tests: New file.
1785         * tests/test-log1pf.c: New file.
1786
1787         New module 'log1pf'.
1788         * lib/math.in.h (log1pf): New declaration.
1789         * lib/log1pf.c: New file.
1790         * m4/log1pf.m4: New file.
1791         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1793         REPLACE_LOG1PF.
1794         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1795         REPLACE_LOG1PF.
1796         * modules/log1pf: New file.
1797         * tests/test-math-c++.cc: Check the declaration of log1pf.
1798         * doc/posix-functions/log1pf.texi: Mention the new module.
1799
1800 2012-03-10  Bruno Haible  <bruno@clisp.org>
1801
1802         log1p tests: More tests.
1803         * tests/test-log1p.h: New file.
1804         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1805         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1806         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1807         (main): Invoke test_function.
1808
1809         log1p: Provide replacement for Minix and MSVC.
1810         * lib/math.in.h (log1p): New declaration.
1811         * lib/log1p.c: New file.
1812         * m4/log1p.m4: New file.
1813         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1815         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1816         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1817         (Depends-on): Add math, isnand, log, round.
1818         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1819         HAVE_LOG1P is 0.
1820         * tests/test-math-c++.cc: Check the declaration of log1p.
1821         * doc/posix-functions/log1p.texi: Mention the replacement.
1822
1823 2012-03-10  Bruno Haible  <bruno@clisp.org>
1824
1825         math tests: Small simplification.
1826         * tests/test-exp.h (test_function): Use the same err_bound for
1827         'double' on platforms with sizeof (long double) == sizeof (double)
1828         than on platforms with sizeof (long double) > sizeof (double).
1829         * tests/test-exp2.h (test_function): Likewise.
1830         * tests/test-expm1.h (test_function): Likewise.
1831         * tests/test-log.h (test_function): Likewise.
1832
1833 2012-03-10  Bruno Haible  <bruno@clisp.org>
1834
1835         Fix some comments.
1836         * lib/expl.c: Fix an ambiguous comment.
1837         * lib/expm1.c: Likewise.
1838         * lib/expm1l.c: Likewise.
1839         * lib/exp2.c: Likewise.
1840         * lib/exp2l.c: Likewise.
1841
1842 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         regex: allow inclusion of <regex.h> before <limits.h>
1845         Without this patch, portable programs had to include <limits.h> before
1846         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1847         I ran into this problem with a test version of GNU grep on Solaris 8.
1848         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1849         This is done conditionally so that this change can be merged
1850         back to glibc.
1851         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1852         using the included regex.
1853
1854         fts: depend on fdopendir
1855         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1856         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1857         problem was introduced when fdopendir was split out.
1858
1859 2012-03-10  Bruno Haible  <bruno@clisp.org>
1860
1861         Remove unused variables.
1862         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1863         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1864
1865 2012-03-10  Bruno Haible  <bruno@clisp.org>
1866
1867         isnanf-nolibm: Fix last commit.
1868         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1869
1870         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1871         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1872
1873 2012-03-10  Bruno Haible  <bruno@clisp.org>
1874
1875         logf-ieee: Work around test failure on NetBSD 5.1.
1876         * m4/logf-ieee.m4: New file.
1877         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1878         whether logf works with a negative argument. Replace it if not.
1879         * lib/logf.c (logf): For negative arguments, return NaN.
1880         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1881         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1882         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1883
1884         logf-ieee: Work around test failure on Solaris 9.
1885         * modules/logf-ieee (Depends-on): Add log-ieee.
1886         (configure.ac): Require gl_FUNC_LOGF.
1887
1888         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1889         * m4/log-ieee.m4: New file.
1890         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1891         log works with a negative argument. Replace it if not.
1892         * lib/log.c (log): For negative arguments, return NaN.
1893         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1894         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1895         * doc/posix-functions/log.texi: Mention the log-ieee module.
1896
1897         Tests for module 'logl-ieee'.
1898         * modules/logl-ieee-tests: New file.
1899         * tests/test-logl-ieee.c: New file.
1900
1901         New module 'logl-ieee'.
1902         * modules/logl-ieee: New file.
1903
1904         Tests for module 'log-ieee'.
1905         * modules/log-ieee-tests: New file.
1906         * tests/test-log-ieee.c: New file.
1907
1908         New module 'log-ieee'.
1909         * modules/log-ieee: New file.
1910
1911         Tests for module 'logf-ieee'.
1912         * modules/logf-ieee-tests: New file.
1913         * tests/test-logf-ieee.c: New file.
1914         * tests/test-log-ieee.h: New file.
1915
1916         New module 'logf-ieee'.
1917         * modules/logf-ieee: New file.
1918
1919 2012-03-10  Bruno Haible  <bruno@clisp.org>
1920
1921         log: Fix bug introduced on 2012-03-09.
1922         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1923
1924 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1925
1926         timer-time: link explicitly with pthreads on glibc
1927         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1928         to support static linking, when newer glibc is
1929         detected, as that contains pthread emulation of
1930         POSIX timer functions where required.
1931         * modules/timer-time: Depend on threadlib to
1932         pull in the appropriate library to link.
1933
1934 2012-03-10  Bruno Haible  <bruno@clisp.org>
1935
1936         log* tests: More tests.
1937         * tests/test-log.h: New file.
1938         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1939         (main): Invoke test_function.
1940         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1941         (main): Invoke test_function.
1942         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1943         (main): Invoke test_function.
1944         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1945         tests/randomd.c.
1946         (Makefile.am): Add randomd.c to test_log_SOURCES.
1947         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1948         tests/randomf.c.
1949         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1950         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1951         tests/randoml.c.
1952         (Depends-on): Add 'float'.
1953         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1954
1955 2012-03-09  Bruno Haible  <bruno@clisp.org>
1956
1957         logl: Work around OSF/1 5.1 bug.
1958         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1959         * lib/logl.c (logl): If logl exists, use it and provide just the
1960         workaround.
1961         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1962         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1964         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1965         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1966         (Depends-on): Update conditions.
1967         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1968
1969 2012-03-09  Bruno Haible  <bruno@clisp.org>
1970
1971         logf: Work around OSF/1 5.1 bug.
1972         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1973         * lib/logf.c (logf): If logf exists, use it and provide just the
1974         workaround.
1975         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1976         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1978         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1979         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1980         (Depends-on): Update conditions.
1981         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1982
1983 2012-03-09  Bruno Haible  <bruno@clisp.org>
1984
1985         log: Work around OSF/1 5.1 bug.
1986         * lib/math.in.h (log): New declaration.
1987         * lib/log.c: New file.
1988         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1989         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1990         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1992         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1993         * modules/log (Files): Add lib/log.c.
1994         (Depends-on): Add math.
1995         (configure.ac): If REPLACE_LOG is 1, compile an override.
1996         * tests/test-math-c++.cc: Check the declaration of log.
1997         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1998
1999 2012-03-09  Jim Meyering  <meyering@redhat.com>
2000
2001         readtokens.c: adjust wording in a comment
2002         * lib/readtokens.c: Insert omitted "that" in a comment.
2003
2004 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         modechange: add notations +40, 00440, etc.
2007         * lib/modechange.c (mode_compile): Support new notations
2008         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2009
2010 2012-03-08  Bruno Haible  <bruno@clisp.org>
2011
2012         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2013         * m4/exp2l-ieee.m4: New file.
2014         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2015         test whether exp2l works with a NaN argument and with a negative
2016         infinity argument. Replace it if not.
2017         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2019         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2020         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2021         (Depends-on): Update conditions.
2022         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2023         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2024         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2025
2026         Tests for module 'exp2l-ieee'.
2027         * modules/exp2l-ieee-tests: New file.
2028         * tests/test-exp2l-ieee.c: New file.
2029
2030         New module 'exp2l-ieee'.
2031         * modules/exp2l-ieee: New file.
2032
2033         Tests for module 'exp2-ieee'.
2034         * modules/exp2-ieee-tests: New file.
2035         * tests/test-exp2-ieee.c: New file.
2036
2037         New module 'exp2-ieee'.
2038         * modules/exp2-ieee: New file.
2039
2040         Tests for module 'exp2f-ieee'.
2041         * modules/exp2f-ieee-tests: New file.
2042         * tests/test-exp2f-ieee.c: New file.
2043         * tests/test-exp2-ieee.h: New file.
2044
2045         New module 'exp2f-ieee'.
2046         * modules/exp2f-ieee: New file.
2047
2048 2012-03-08  Bruno Haible  <bruno@clisp.org>
2049
2050         Tests for module 'exp2l'.
2051         * modules/exp2l-tests: New file.
2052         * tests/test-exp2l.c: New file.
2053
2054         New module 'exp2l'.
2055         * lib/math.in.h (exp2l): New declaration.
2056         * lib/exp2l.c: New file.
2057         * lib/expl-table.c: New file, extracted from lib/expl.c.
2058         * lib/expl.c (gl_expl_table): New declaration.
2059         (expl): Remove expl_table. Update reference.
2060         * m4/exp2l.m4: New file.
2061         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2063         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2064         * modules/exp2l: New file.
2065         * modules/expl (Files): Add lib/expl-table.c.
2066         (configure.ac): Compile also expl-table.c.
2067         * tests/test-math-c++.cc: Check the declaration of exp2l.
2068         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2069         problem.
2070
2071 2012-03-08  Bruno Haible  <bruno@clisp.org>
2072
2073         Tests for module 'exp2f'.
2074         * modules/exp2f-tests: New file.
2075         * tests/test-exp2f.c: New file.
2076
2077         New module 'exp2f'.
2078         * lib/math.in.h (exp2f): New declaration.
2079         * lib/exp2f.c: New file.
2080         * m4/exp2f.m4: New file.
2081         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2083         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2084         * modules/exp2f: New file.
2085         * tests/test-math-c++.cc: Check the declaration of exp2f.
2086         * doc/posix-functions/exp2f.texi: Mention the new module and the
2087         IRIX problem.
2088
2089 2012-03-08  Bruno Haible  <bruno@clisp.org>
2090
2091         Tests for module 'exp2'.
2092         * modules/exp2-tests: New file.
2093         * tests/test-exp2.c: New file.
2094         * tests/test-exp2.h: New file.
2095
2096         New module 'exp2'.
2097         * lib/math.in.h (exp2): New declaration.
2098         * lib/exp2.c: New file.
2099         * m4/exp2.m4: New file.
2100         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2102         REPLACE_EXP2.
2103         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2104         REPLACE_EXP2.
2105         * modules/exp2: New file.
2106         * tests/test-math-c++.cc: Check the declaration of exp2.
2107         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2108         and OpenBSD problems.
2109
2110 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2111
2112         savedir: fix comment typo
2113         * lib/savedir.c (savedirstream): Fix typo in comment.
2114
2115 2012-03-08  Bruno Haible  <bruno@clisp.org>
2116
2117         test-readtokens.c: use const; remove unwarranted cast
2118         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2119
2120 2012-03-08  Bruno Haible  <bruno@clisp.org>
2121
2122         fmal: Avoid compilation error on AIX.
2123         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2124         AIX 5.2..7.1.
2125
2126 2012-03-08  Bruno Haible  <bruno@clisp.org>
2127
2128         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2129         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2130         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2131         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2132         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2133         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2134         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2135
2136 2012-03-08  Bruno Haible  <bruno@clisp.org>
2137
2138         remainderf: Override buggy system function on IRIX 6.5.
2139         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2140         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2141         when it exists.
2142         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2143
2144 2012-03-08  Jim Meyering  <meyering@redhat.com>
2145
2146         test-readtokens.c: avoid const-related compilation warnings
2147         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2148
2149 2012-03-07  Jim Meyering  <meyering@redhat.com>
2150             Bruno Haible  <bruno@clisp.org>
2151
2152         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2153         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2154         tests/randomd.c.
2155         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2156         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2157         tests/randoml.c.
2158         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2159
2160 2012-03-07  Bruno Haible  <bruno@clisp.org>
2161
2162         expm1l: Avoid compilation error on AIX.
2163         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2164         AIX 5.2..7.1.
2165
2166 2012-03-07  Bruno Haible  <bruno@clisp.org>
2167
2168         expm1l: Don't override undeclared system function on IRIX 6.5.
2169         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2170         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2171         it exists. Set HAVE_DECL_EXPM1L.
2172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2173         HAVE_EXPM1L.
2174         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2175         HAVE_EXPM1L.
2176         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2177
2178 2012-03-07  Bruno Haible  <bruno@clisp.org>
2179
2180         remainderl: Don't override undeclared system function on IRIX 6.5.
2181         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2182         HAVE_REMAINDERL.
2183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2184         declared when it exists. Set HAVE_DECL_REMAINDERL.
2185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2186         not HAVE_REMAINDERL.
2187         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2188         HAVE_REMAINDERL.
2189         * doc/posix-functions/remainderl.texi: Mention missing declaration
2190         problem.
2191
2192 2012-03-07  Bruno Haible  <bruno@clisp.org>
2193
2194         rintf: Don't override undeclared system function on IRIX 6.5.
2195         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2196         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2197         exists. Set HAVE_DECL_RINTF.
2198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2199         HAVE_RINTF.
2200         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2201         HAVE_RINTF.
2202         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2203
2204 2012-03-07  Bruno Haible  <bruno@clisp.org>
2205
2206         roundl: Avoid compilation error on AIX.
2207         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2208         AIX 5.2..7.1.
2209
2210 2012-03-07  Bruno Haible  <bruno@clisp.org>
2211
2212         roundl: Don't override undeclared system function on IRIX 6.5.
2213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2214         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2215         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2216         * modules/roundl (configure.ac): For replacement code, test
2217         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2218         (Depends-on): Update conditions.
2219         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2220
2221 2012-03-07  Bruno Haible  <bruno@clisp.org>
2222
2223         roundf: Don't override undeclared system function on IRIX 6.5.
2224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2225         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2226         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2227         * modules/roundf (configure.ac): For replacement code, test
2228         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2229         (Depends-on): Update conditions.
2230         * modules/roundf-ieee (Depends-on): Update conditions.
2231         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2232
2233 2012-03-07  Bruno Haible  <bruno@clisp.org>
2234
2235         round: Don't override undeclared system function on IRIX 6.5.
2236         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2237         argument.
2238         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2239         also when it is not declared. Set HAVE_ROUND. For replacement code,
2240         test HAVE_ROUND, not HAVE_DECL_ROUND.
2241         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2242         not HAVE_DECL_ROUND.
2243         (Depends-on): Update conditions.
2244         * modules/round-ieee (Depends-on): Update conditions.
2245         * doc/posix-functions/round.texi: Mention the IRIX problem.
2246
2247 2012-03-07  Bruno Haible  <bruno@clisp.org>
2248
2249         copysignf: Don't override undeclared system function on IRIX 6.5.
2250         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2251         HAVE_COPYSIGNF.
2252         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2253         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2255         not HAVE_COPYSIGNF.
2256         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2257         HAVE_COPYSIGNF.
2258         * doc/posix-functions/copysignf.texi: Mention missing declaration
2259         problem.
2260
2261 2012-03-07  Jim Meyering  <meyering@redhat.com>
2262
2263         readtokens: add tests
2264         * modules/readtokens-tests: New file.
2265         * tests/test-readtokens.c: New file.
2266
2267 2012-03-07  Jim Meyering  <meyering@redhat.com>
2268
2269         quotearg: the module must now include quote.h
2270         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2271         So must the module.
2272         * modules/quotearg (Files): Add quote.h.
2273
2274 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         readtokens: avoid core dumps with unusual calling patterns
2277         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2278         * lib/readtokens.c: Include limits.h.
2279         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2280         (readtoken): Don't cache the delimiters; the cache code was buggy
2281         if !delim && saved_delim, or if the new n_delim differs from the old.
2282         Also, it wasn't thread-safe.
2283
2284 2012-03-07  Bruno Haible  <bruno@clisp.org>
2285
2286         quote: Adhere to common module description layout.
2287         * modules/quote (Makefile.am): Add back empty section.
2288
2289 2012-03-06  Akim Demaille  <demaille@gostai.com>
2290
2291         quote: fuse into quotearg
2292         This patch is made for the benefit of Bison.
2293         quote does not leave the choice of the quoting style to the user.
2294         quoting_style provides poor customizability, yet quoting_options,
2295         which is very rich, is hidden inside quotearg.c.  So in order to
2296         allow quote customization, move its implementation to quotearg.c.
2297         * lib/quote.c: Remove.
2298         * modules/quote: Adjust.
2299         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2300         warning: provide all the members of literal structs.
2301         (quote_quoting_options): New.
2302         (quote, quote_n): Import implementation from quote.c.
2303         * lib/quote.h: Import the comments from quote.c.
2304         (quote_quoting_options): New.
2305
2306 2012-03-06  Bruno Haible  <bruno@clisp.org>
2307
2308         Tests for module 'expm1l-ieee'.
2309         * modules/expm1l-ieee-tests: New file.
2310         * tests/test-expm1l-ieee.c: New file.
2311
2312         New module 'expm1l-ieee'.
2313         * modules/expm1l-ieee: New file.
2314
2315         Tests for module 'expm1f-ieee'.
2316         * modules/expm1f-ieee-tests: New file.
2317         * tests/test-expm1f-ieee.c: New file.
2318
2319         New module 'expm1f-ieee'.
2320         * modules/expm1f-ieee: New file.
2321
2322         Tests for module 'expm1-ieee'.
2323         * modules/expm1-ieee-tests: New file.
2324         * tests/test-expm1-ieee.c: New file.
2325         * tests/test-expm1-ieee.h: New file.
2326
2327         New module 'expm1-ieee'.
2328         * modules/expm1-ieee: New file.
2329         * m4/expm1-ieee.m4: New file.
2330         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2331         whether expm1 works with a minus zero argument. Replace it if not.
2332         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2334         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2335         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2336         (Depends-on): Update conditions.
2337         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2338         AIX problem.
2339
2340 2012-03-06  Bruno Haible  <bruno@clisp.org>
2341
2342         Work around expm1f bug on IRIX 6.5.
2343         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2344         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2345         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2346         not work.
2347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2348         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2349         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2350         (Depends-on): Update conditions.
2351         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2352
2353 2012-03-06  Bruno Haible  <bruno@clisp.org>
2354
2355         Tests for module 'expm1l'.
2356         * modules/expm1l-tests: New file.
2357         * tests/test-expm1l.c: New file.
2358
2359         New module 'expm1l'.
2360         * lib/math.in.h (expm1l): New declaration.
2361         * lib/expm1l.c: New file.
2362         * m4/expm1l.m4: New file.
2363         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2365         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2366         * modules/expm1l: New file.
2367         * tests/test-math-c++.cc: Check the declaration of expm1l.
2368         * doc/posix-functions/expm1l.texi: Mention the new module.
2369
2370 2012-03-06  Bruno Haible  <bruno@clisp.org>
2371
2372         Tests for module 'expm1f'.
2373         * modules/expm1f-tests: New file.
2374         * tests/test-expm1f.c: New file.
2375
2376         New module 'expm1f'.
2377         * lib/math.in.h (expm1f): New declaration.
2378         * lib/expm1f.c: New file.
2379         * m4/expm1f.m4: New file.
2380         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2382         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2383         * modules/expm1f: New file.
2384         * tests/test-math-c++.cc: Check the declaration of expm1f.
2385         * doc/posix-functions/expm1f.texi: Mention the new module.
2386
2387 2012-03-06  Bruno Haible  <bruno@clisp.org>
2388
2389         Tests for module 'expm1'.
2390         * modules/expm1-tests: New file.
2391         * tests/test-expm1.c: New file.
2392         * tests/test-expm1.h: New file.
2393
2394         New module 'expm1'.
2395         * lib/math.in.h (expm1): New declaration.
2396         * lib/expm1.c: New file.
2397         * m4/expm1.m4: New file.
2398         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2400         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2401         * modules/expm1: New file.
2402         * tests/test-math-c++.cc: Check the declaration of expm1.
2403         * doc/posix-functions/expm1.texi: Mention the new module.
2404
2405 2012-03-06  Bruno Haible  <bruno@clisp.org>
2406
2407         math: Ensure declarations of math functions.
2408         * modules/acosf (Depends-on): Add 'extensions'.
2409         * modules/asinf (Depends-on): Likewise.
2410         * modules/atan2f (Depends-on): Likewise.
2411         * modules/atanf (Depends-on): Likewise.
2412         * modules/cbrt (Depends-on): Likewise.
2413         * modules/cbrtf (Depends-on): Likewise.
2414         * modules/cbrtl (Depends-on): Likewise.
2415         * modules/copysignf (Depends-on): Likewise.
2416         * modules/copysignl (Depends-on): Likewise.
2417         * modules/cosf (Depends-on): Likewise.
2418         * modules/coshf (Depends-on): Likewise.
2419         * modules/expf (Depends-on): Likewise.
2420         * modules/fabsf (Depends-on): Likewise.
2421         * modules/fabsl (Depends-on): Likewise.
2422         * modules/fmaf (Depends-on): Likewise.
2423         * modules/fmal (Depends-on): Likewise.
2424         * modules/fmodf (Depends-on): Likewise.
2425         * modules/fmodl (Depends-on): Likewise.
2426         * modules/frexpf (Depends-on): Likewise.
2427         * modules/frexpl (Depends-on): Likewise.
2428         * modules/hypot (Depends-on): Likewise.
2429         * modules/hypotf (Depends-on): Likewise.
2430         * modules/hypotl (Depends-on): Likewise.
2431         * modules/ldexpf (Depends-on): Likewise.
2432         * modules/ldexpl (Depends-on): Likewise.
2433         * modules/log10f (Depends-on): Likewise.
2434         * modules/log10l (Depends-on): Likewise.
2435         * modules/log1p (Depends-on): Likewise.
2436         * modules/logb (Depends-on): Likewise.
2437         * modules/logf (Depends-on): Likewise.
2438         * modules/modff (Depends-on): Likewise.
2439         * modules/modfl (Depends-on): Likewise.
2440         * modules/powf (Depends-on): Likewise.
2441         * modules/remainderf (Depends-on): Likewise.
2442         * modules/remainderl (Depends-on): Likewise.
2443         * modules/rintf (Depends-on): Likewise.
2444         * modules/rintl (Depends-on): Likewise.
2445         * modules/sinf (Depends-on): Likewise.
2446         * modules/sinhf (Depends-on): Likewise.
2447         * modules/sqrtf (Depends-on): Likewise.
2448         * modules/tanf (Depends-on): Likewise.
2449         * modules/tanhf (Depends-on): Likewise.
2450         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2451         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2452         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2453         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2454         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2455         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2456         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2457         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2458         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2459         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2460         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2461         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2462         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2463         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2464         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2465         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2466         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2467         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2468         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2469         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2470         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2471         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2472         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2473         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2475         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2476         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2477         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2478         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2479         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2480         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2481         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2482         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2483         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2484         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2485         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2486         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2487         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2488         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2489         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2490         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2491
2492 2012-03-06  Bruno Haible  <bruno@clisp.org>
2493
2494         math: Update module names in warnings.
2495         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2496         tanl): Use specific module name in warn-on-use warning.
2497
2498 2012-03-06  Bruno Haible  <bruno@clisp.org>
2499
2500         expl: Simplify computation.
2501         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2502
2503 2012-03-05  Bruno Haible  <bruno@clisp.org>
2504
2505         exp* tests: More tests.
2506         * tests/test-exp.h: New file.
2507         * tests/test-exp.c: Include <float.h> and test-exp.h.
2508         (main): Invoke test_function.
2509         * tests/test-expf.c: Include <float.h> and test-exp.h.
2510         (main): Invoke test_function.
2511         * tests/test-expl.c: Include <float.h> and test-exp.h.
2512         (main): Invoke test_function.
2513         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2514         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2515         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2516         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2517         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2518         (Depends-on): Add 'float'.
2519         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2520
2521         expl: Fix precision of computed result.
2522         * lib/expl.c: Completely rewritten.
2523         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2524         (Maintainer): Add me.
2525         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2526
2527 2012-03-05  Bruno Haible  <bruno@clisp.org>
2528
2529         cbrt* tests: More tests.
2530         * tests/test-cbrt.h: New file.
2531         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2532         (main): Invoke test_function.
2533         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2534         (main): Invoke test_function.
2535         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2536         (main): Invoke test_function.
2537         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2538         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2539         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2540         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2541         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2542         (Depends-on): Add 'float'.
2543         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2544
2545 2012-03-05  Bruno Haible  <bruno@clisp.org>
2546
2547         hypot* tests: More tests.
2548         * tests/test-hypot.h: New file, partially extracted from
2549         tests/test-hypotl.c.
2550         * tests/test-hypot.c: Include test-hypot.h.
2551         (main): Invoke test_function.
2552         * tests/test-hypotf.c: Include test-hypot.h.
2553         (main): Invoke test_function.
2554         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2555         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2556         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2557         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2558         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2559         tests/randomf.c.
2560         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2561         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2562         tests/randoml.c.
2563         (Depends-on): Add 'fpucw', 'float'.
2564         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2565
2566 2012-03-05  Bruno Haible  <bruno@clisp.org>
2567
2568         fpucw: Doc about FreeBSD.
2569         * lib/fpucw.h: Mention FreeBSD in comments.
2570
2571 2012-03-04  Bruno Haible  <bruno@clisp.org>
2572
2573         sqrt* tests: More tests.
2574         * tests/test-sqrt.h: New file.
2575         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2576         (main): Invoke test_function.
2577         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2578         (main): Invoke test_function.
2579         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2580         (main): Invoke test_function.
2581         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2582         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2583         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2584         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2585         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2586         (Depends-on): Add 'float'.
2587         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2588
2589 2012-03-04  Bruno Haible  <bruno@clisp.org>
2590
2591         remainder* tests: More tests.
2592         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2593         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2594         (main): Invoke test_function.
2595         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2596         (main): Invoke test_function.
2597         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2598         (main): Invoke test_function.
2599         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2600         tests/randomd.c.
2601         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2602         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2603         tests/randomf.c.
2604         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2605         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2606         tests/randoml.c.
2607         (Depends-on): Add 'float'.
2608         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2609
2610 2012-03-04  Bruno Haible  <bruno@clisp.org>
2611
2612         remainder, remainderf, remainderl: Fix computation for large quotients.
2613         * lib/remainder.c: Completely rewritten.
2614         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2615         USE_FLOAT.
2616         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2617         USE_LONG_DOUBLE.
2618         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2619         isnand, isinf. Remove round, fma.
2620         * modules/remainderf (Files): Add lib/remainder.c.
2621         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2622         Remove roundf, fmaf.
2623         * modules/remainderl (Files): Add lib/remainder.c.
2624         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2625         isinf. Remove roundl, fmal.
2626         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2627         REMAINDER_LIBM.
2628         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2629         REMAINDERF_LIBM.
2630         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2631         REMAINDERL_LIBM.
2632
2633 2012-03-04  Bruno Haible  <bruno@clisp.org>
2634
2635         fmod* tests: More tests.
2636         * tests/test-fmod.h (my_ldexp): New function.
2637         (test_function): Reduce amount of random numbers to test. Add tests
2638         of very large quotients x / y.
2639         * tests/test-fmod.c (MAX_EXP): New macro.
2640         * tests/test-fmodf.c (MAX_EXP): Likewise.
2641         * tests/test-fmodl.c (MAX_EXP): Likewise.
2642
2643 2012-03-04  Bruno Haible  <bruno@clisp.org>
2644
2645         fmod, fmodl: Fix computation for large quotients x / y.
2646         * lib/fmod.c: Completely rewritten.
2647         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2648         USE_LONG_DOUBLE.
2649         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2650         isnand. Remove fma.
2651         * modules/fmodl (Files): Add lib/fmod.c.
2652         (Depends-on): Add float, isfinite, signbit, fabsl,
2653         frexpl, ldexpl, isnanl. Remove fma.
2654         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2655         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2656
2657 2012-03-03  Bruno Haible  <bruno@clisp.org>
2658
2659         fmod* tests: More tests.
2660         * tests/test-fmod.h: New file.
2661         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2662         (main): Invoke test_function.
2663         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2664         (main): Invoke test_function.
2665         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2666         (main): Invoke test_function.
2667         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2668         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2669         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2670         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2671         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2672         (Depends-on): Add 'float'.
2673         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2674
2675 2012-03-03  Bruno Haible  <bruno@clisp.org>
2676
2677         rint* tests: More tests.
2678         * tests/test-rint.h: New file, partially extracted from
2679         tests/test-rintl.c.
2680         * tests/test-rint.c: Include test-rint.h.
2681         (main): Invoke test_function.
2682         * tests/test-rintf.c: Include test-rint.h.
2683         (main): Invoke test_function.
2684         * tests/test-rintl.c: Include test-rint.h.
2685         (main): Invoke test_function.
2686         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2687         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2688         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2689         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2690         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2691         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2692
2693 2012-03-03  Bruno Haible  <bruno@clisp.org>
2694
2695         modf* tests: More tests.
2696         * tests/test-modf.h: New file.
2697         * tests/test-modf.c: Include <float.h> and test-modf.h.
2698         (main): Invoke test_function.
2699         * tests/test-modff.c: Include <float.h> and test-modf.h.
2700         (main): Invoke test_function.
2701         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2702         (main): Invoke test_function.
2703         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2704         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2705         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2706         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2707         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2708         (Depends-on): Add 'float'.
2709         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2710
2711 2012-03-03  Bruno Haible  <bruno@clisp.org>
2712
2713         fabs* tests: More tests.
2714         * tests/test-fabs.h: New file, partially extracted from
2715         tests/test-fabsl.c.
2716         * tests/test-fabs.c (RANDOM): New macro.
2717         * tests/test-fabsf.c (RANDOM): New macro.
2718         * tests/test-fabsl.c (RANDOM): New macro.
2719         * modules/fabs-tests (Files): Add tests/randomd.c.
2720         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2721         * modules/fabsf-tests (Files): Add tests/randomf.c.
2722         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2723         * modules/fabsl-tests (Files): Add tests/randoml.c.
2724         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2725
2726 2012-03-03  Bruno Haible  <bruno@clisp.org>
2727
2728         ldexp* tests: More tests.
2729         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2730         * tests/test-ldexp.c (RANDOM): New macro.
2731         * tests/test-ldexpf.c (RANDOM): New macro.
2732         * tests/test-ldexpl.c (RANDOM): New macro.
2733         * modules/ldexp-tests (Files): Add tests/randomd.c.
2734         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2735         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2736         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2737         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2738         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2739
2740 2012-03-03  Bruno Haible  <bruno@clisp.org>
2741
2742         frexp* tests: More tests.
2743         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2744         * tests/test-frexp.c (RANDOM): New macro.
2745         * tests/test-frexpf.c (RANDOM): New macro.
2746         * tests/test-frexpl.c (RANDOM): New macro.
2747         * modules/frexp-tests (Files): Add tests/randomd.c.
2748         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2749         * modules/frexpf-tests (Files): Add tests/randomf.c.
2750         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2751         * modules/frexpl-tests (Files): Add tests/randoml.c.
2752         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2753
2754 2012-03-03  Bruno Haible  <bruno@clisp.org>
2755
2756         Support for pseudo-random numbers in tests.
2757         * tests/randomf.c: New file.
2758         * tests/randomd.c: New file.
2759         * tests/randoml.c: New file.
2760         * tests/macros.h (randomf, randomd, randoml): New declarations.
2761
2762 2012-03-03  Bruno Haible  <bruno@clisp.org>
2763
2764         frexp* tests: Refactor.
2765         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2766         * tests/test-frexp.c: Include and use it.
2767         * tests/test-frexpf.c: Likewise.
2768         * tests/test-frexpl.c: Likewise.
2769         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2770         * modules/frexpf-tests (Files): Likewise.
2771         * modules/frexpl-tests (Files): Likewise.
2772
2773 2012-03-02  Jim Meyering  <meyering@redhat.com>
2774
2775         maint: don't specify XZ_OPT=-9ev in dist-related rule
2776         Using xz's -9 option is warranted only if you have a very large
2777         tarball (see xz's documentation for the sizes vs. presets), and
2778         requires 64MiB of memory at decompression time.
2779         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2780         Automake's default of just "-e" is fine.  Override on a
2781         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2782
2783 2012-03-01  Eric Blake  <eblake@redhat.com>
2784
2785         maint.mk: allow announcement for non-gnulib project
2786         * maint.mk (announcement): Skip gnulib version if not used.
2787
2788 2012-03-01  Jim Meyering  <meyering@redhat.com>
2789
2790         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2791         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2792         envvar settings cannot interfere.  Otherwise, setting envvars like
2793         prohibit=foo require=bar, etc. would cause spurious test failures.
2794
2795 2012-03-01  Eric Blake  <eblake@redhat.com>
2796
2797         maint.mk: add per-line exclusions to prohibitions
2798         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2799         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2800         (sc_const_long_option): Use it.
2801
2802 2012-03-01  Bruno Haible  <bruno@clisp.org>
2803
2804         Tests for module 'expl-ieee'.
2805         * modules/expl-ieee-tests: New file.
2806         * tests/test-expl-ieee.c: New file.
2807
2808         New module 'expl-ieee'.
2809         * modules/expl-ieee: New file.
2810
2811         Tests for module 'exp-ieee'.
2812         * modules/exp-ieee-tests: New file.
2813         * tests/test-exp-ieee.c: New file.
2814
2815         New module 'exp-ieee'.
2816         * modules/exp-ieee: New file.
2817
2818         Tests for module 'expf-ieee'.
2819         * modules/expf-ieee-tests: New file.
2820         * tests/test-expf-ieee.c: New file.
2821         * tests/test-exp-ieee.h: New file.
2822
2823         New module 'expf-ieee'.
2824         * modules/expf-ieee: New file.
2825
2826 2012-02-29  Bruno Haible  <bruno@clisp.org>
2827
2828         cbrtl-ieee: Work around test failure on IRIX 6.5.
2829         * m4/cbrtl-ieee.m4: New file.
2830         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2831         test whether cbrtl works with a minus zero argument. Replace it if not.
2832         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2834         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2835         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2836         (Depends-on): Update conditions.
2837         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2838         m4/signbit.m4.
2839         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2840         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2841         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2842
2843         Tests for module 'cbrtl-ieee'.
2844         * modules/cbrtl-ieee-tests: New file.
2845         * tests/test-cbrtl-ieee.c: New file.
2846
2847         New module 'cbrtl-ieee'.
2848         * modules/cbrtl-ieee: New file.
2849
2850         Tests for module 'cbrt-ieee'.
2851         * modules/cbrt-ieee-tests: New file.
2852         * tests/test-cbrt-ieee.c: New file.
2853
2854         New module 'cbrt-ieee'.
2855         * modules/cbrt-ieee: New file.
2856
2857         Tests for module 'cbrtf-ieee'.
2858         * modules/cbrtf-ieee-tests: New file.
2859         * tests/test-cbrtf-ieee.c: New file.
2860         * tests/test-cbrt-ieee.h: New file.
2861
2862         New module 'cbrtf-ieee'.
2863         * modules/cbrtf-ieee: New file.
2864
2865 2012-02-29  Bruno Haible  <bruno@clisp.org>
2866
2867         cbrtf: Work around bug in IRIX 6.5 system function.
2868         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2869         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2870         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2871         work.
2872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2873         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2874         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2875         (Depends-on): Update conditions.
2876         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2877
2878 2012-02-29  Bruno Haible  <bruno@clisp.org>
2879
2880         Tests for module 'cbrtl'.
2881         * modules/cbrtl-tests: New file.
2882         * tests/test-cbrtl.c: New file.
2883
2884         New module 'cbrtl'.
2885         * lib/math.in.h (cbrtl): New declaration.
2886         * lib/cbrtl.c: New file.
2887         * m4/cbrtl.m4: New file.
2888         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2890         HAVE_DECL_CBRTL.
2891         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2892         HAVE_DECL_CBRTL.
2893         * modules/cbrtl: New file.
2894         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2895         * doc/posix-functions/cbrtl.texi: Mention the new module.
2896
2897 2012-02-29  Bruno Haible  <bruno@clisp.org>
2898
2899         Tests for module 'cbrtf'.
2900         * modules/cbrtf-tests: New file.
2901         * tests/test-cbrtf.c: New file.
2902
2903         New module 'cbrtf'.
2904         * lib/math.in.h (cbrtf): New declaration.
2905         * lib/cbrtf.c: New file.
2906         * m4/cbrtf.m4: New file.
2907         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2909         HAVE_DECL_CBRTF.
2910         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2911         HAVE_DECL_CBRTF.
2912         * modules/cbrtf: New file.
2913         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2914         * doc/posix-functions/cbrtf.texi: Mention the new module.
2915
2916 2012-02-29  Bruno Haible  <bruno@clisp.org>
2917
2918         cbrt: Provide replacement on MSVC and Minix.
2919         * lib/math.in.h (cbrt): New declaration.
2920         * lib/cbrt.c: New file.
2921         * m4/cbrt.m4: New file.
2922         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2924         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2925         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2926         (Depends-on): Add dependencies.
2927         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2928         * tests/test-math-c++.cc: Check the declaration of cbrt.
2929         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2930         replacement.
2931
2932 2012-02-29  Bruno Haible  <bruno@clisp.org>
2933
2934         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2935         * m4/hypotl-ieee.m4: New file.
2936         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2937         test whether hypotl works with mixed NaN and Infinity arguments.
2938         Replace it if not.
2939         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2941         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2942         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2943         (Depends-on): Update conditions.
2944         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2945         (Depends-on): Add hypot-ieee.
2946         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2947         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2948
2949         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2950         * m4/hypotf-ieee.m4: New file.
2951         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2952         test whether hypotf works with mixed NaN and Infinity arguments.
2953         Replace it if not.
2954         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2955         (Depends-on): Add hypot-ieee.
2956         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2957         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2958
2959         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2960         * lib/math.in.h (hypot): New declaration.
2961         * lib/hypot.c: New file.
2962         * m4/hypot-ieee.m4: New file.
2963         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2964         whether hypot works with mixed NaN and Infinity arguments. Replace it
2965         if not.
2966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2967         REPLACE_HYPOT.
2968         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2969         * modules/hypot (Files): Add lib/hypot.c.
2970         (Depends-on): Add dependencies.
2971         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2972         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2973         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2974         * tests/test-math-c++.cc: Check the declaration of hypot.
2975         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2976
2977         Tests for module 'hypotl-ieee'.
2978         * modules/hypotl-ieee-tests: New file.
2979         * tests/test-hypotl-ieee.c: New file.
2980
2981         New module 'hypotl-ieee'.
2982         * modules/hypotl-ieee: New file.
2983
2984         Tests for module 'hypot-ieee'.
2985         * modules/hypot-ieee-tests: New file.
2986         * tests/test-hypot-ieee.c: New file.
2987
2988         New module 'hypot-ieee'.
2989         * modules/hypot-ieee: New file.
2990
2991         Tests for module 'hypotf-ieee'.
2992         * modules/hypotf-ieee-tests: New file.
2993         * tests/test-hypotf-ieee.c: New file.
2994         * tests/test-hypot-ieee.h: New file.
2995
2996         New module 'hypotf-ieee'.
2997         * modules/hypotf-ieee: New file.
2998
2999 2012-02-29  Bruno Haible  <bruno@clisp.org>
3000
3001         Remove unused variables.
3002         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3003         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3004         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3005         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3006
3007 2012-02-29  Eric Blake  <eblake@redhat.com>
3008
3009         termios: fix pid_t always, not just for tcgetsid
3010         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3011         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3012         just when building tcgetsid.
3013
3014 2012-02-29  Bruno Haible  <bruno@clisp.org>
3015
3016         Tests for module 'hypotl'.
3017         * modules/hypotl-tests: New file.
3018         * tests/test-hypotl.c: New file.
3019
3020         New module 'hypotl'.
3021         * lib/math.in.h (hypotl): New declaration.
3022         * lib/hypotl.c: New file.
3023         * m4/hypotl.m4: New file.
3024         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3026         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3027         * modules/hypotl: New file.
3028         * tests/test-math-c++.cc: Check the hypotl declaration.
3029         * doc/posix-functions/hypotl.texi: Mention the new module.
3030
3031 2012-02-29  Eric Blake  <eblake@redhat.com>
3032
3033         tcgetsid: fix cygwin header bug
3034         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3035
3036         docs: update cygwin progress
3037         * doc/posix-functions/llround.texi (llround): Added in cygwin
3038         1.7.8.
3039         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3040         * doc/glibc-functions/program_invocation_name.texi
3041         (program_invocation_name): Likewise.
3042         * doc/glibc-functions/program_invocation_short_name.texi
3043         (program_invocation_short_name): Likewise.
3044         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3045         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3046         Likewise.
3047         * doc/posix-functions/pthread_spin_destroy.texi
3048         (pthread_spin_destroy): Added in cygwin 1.7.10.
3049         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3050         Likewise.
3051         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3052         Likewise.
3053         * doc/posix-functions/pthread_spin_trylock.texi
3054         (pthread_spin_trylock): Likewise.
3055         * doc/posix-functions/pthread_spin_unlock.texi
3056         (pthread_spin_unlock): Likewise.
3057         * doc/posix-functions/pthread_setschedprio.texi
3058         (pthread_setschedprio): Likewise.
3059         * doc/posix-functions/pthread_attr_getstack.texi
3060         (pthread_attr_getstack): Likewise.
3061         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3062         (pthread_attr_getstackaddr): Likewise.
3063         * doc/glibc-functions/pthread_getattr_np.texi
3064         (pthread_getattr_np): Likewise.
3065         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3066         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3067         * doc/posix-functions/clock_settime.texi (clock_settime):
3068         Likewise.
3069         * doc/posix-functions/pthread_attr_getguardsize.texi
3070         (pthread_attr_getguardsize): Likewise.
3071         * doc/posix-functions/pthread_attr_setguardsize.texi
3072         (pthread_attr_setguardsize): Likewise.
3073         * doc/posix-functions/pthread_attr_setstack.texi
3074         (pthread_attr_setstack): Likewise.
3075         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3076         (pthread_attr_setstackaddr): Likewise.
3077         * doc/posix-functions/clock_getcpuclockid.texi
3078         (clock_getcpuclockid): Likewise.
3079         * doc/posix-functions/pthread_getcpuclockid.texi
3080         (pthread_getcpuclockid): Likewise.
3081         * doc/glibc-functions/error.texi (error): Likewise.
3082         * doc/glibc-functions/error_at_line.texi (error_at_line):
3083         Likewise.
3084         * doc/glibc-functions/error_message_count.texi
3085         (error_message_count): Likewise.
3086         * doc/glibc-functions/error_one_per_line.texi
3087         (error_one_per_line): Likewise.
3088         * doc/glibc-functions/error_print_progname.texi
3089         (error_print_progname): Likewise.
3090         * doc/posix-functions/pthread_condattr_getclock.texi
3091         (pthread_condattr_getclock): Likewise.
3092         * doc/posix-functions/pthread_condattr_setclock.texi
3093         (pthread_condattr_setclock): Likewise.
3094         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3095         Likewise.
3096         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3097         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3098         * doc/glibc-functions/get_current_dir_name.texi
3099         (get_current_dir_name): Likewise.
3100         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3101         Likewise.
3102         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3103         wrong return type.
3104         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3105         1.7.11.
3106
3107 2012-02-29  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'hypotf'.
3110         * modules/hypotf-tests: New file.
3111         * tests/test-hypotf.c: New file.
3112
3113         New module 'hypotf'.
3114         * lib/math.in.h (hypotf): New declaration.
3115         * lib/hypotf.c: New file.
3116         * m4/hypotf.m4: New file.
3117         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3119         REPLACE_HYPOTF.
3120         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3121         REPLACE_HYPOTF.
3122         * modules/hypotf: New file.
3123         * tests/test-math-c++.cc: Check the hypotf declaration.
3124         * doc/posix-functions/hypotf.texi: Mention the new module.
3125
3126         hypot: Prepare for hypotf module.
3127         * m4/hypot.m4: New file.
3128         * modules/hypot (Files): Add m4/hypot.m4.
3129         (configure.ac): Invoke gl_FUNC_HYPOT.
3130
3131 2012-02-29  Bruno Haible  <bruno@clisp.org>
3132
3133         hypot tests: More tests.
3134         * tests/test-hypot.c: Include <float.h>.
3135         (main): Add tests about overflow and underflow.
3136
3137 2012-02-29  Bruno Haible  <bruno@clisp.org>
3138
3139         math code: Add comments.
3140         * lib/acosl.c: Add comment about related glibc source files.
3141         * lib/asinl.c: Likewise.
3142         * lib/atanl.c: Likewise.
3143         * lib/expl.c: Likewise.
3144         * lib/logl.c: Likewise.
3145         * lib/sincosl.c: Likewise.
3146         * lib/sinl.c: Likewise.
3147         * lib/tanl.c: Likewise.
3148         * lib/trigl.c: Likewise.
3149         * lib/cosl.c: Likewise. Fix comments.
3150
3151 2012-02-28  Bruno Haible  <bruno@clisp.org>
3152
3153         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3154         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3155         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3156         HUGE_VALL are defined.
3157         (numeric_equald): Renamed from numeric_equal.
3158         (numeric_equalf, numeric_equall): New functions.
3159         (main): Check also HUGE_VALF, HUGE_VALL.
3160         * modules/math-tests (Files): Add tests/macros.h.
3161         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3162         HUGE_VALL.
3163
3164 2012-02-28  Bruno Haible  <bruno@clisp.org>
3165
3166         doc: Move ISO C11 feature notes into POSIX chapters.
3167         * doc/posix-functions/aligned_alloc.texi: Renamed from
3168         doc/glibc-functions/aligned_alloc.texi.
3169         * doc/posix-functions/quick_exit.texi: Renamed from
3170         doc/glibc-functions/quick_exit.texi.
3171         * doc/posix-headers/uchar.texi: Renamed from
3172         doc/glibc-headers/uchar.texi.
3173         * doc/posix-functions/c16rtomb.texi: Renamed from
3174         doc/glibc-functions/c16rtomb.texi.
3175         * doc/posix-functions/c32rtomb.texi: Renamed from
3176         doc/glibc-functions/c32rtomb.texi.
3177         * doc/posix-functions/mbrtoc16.texi: Renamed from
3178         doc/glibc-functions/mbrtoc16.texi.
3179         * doc/posix-functions/mbrtoc32.texi: Renamed from
3180         doc/glibc-functions/mbrtoc32.texi.
3181         * doc/gnulib.texi: Update.
3182         (Glibc uchar.h): Remove section.
3183         Suggested by Eric Blake.
3184
3185 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         stdnoreturn: port to MSVC better
3188         MSVC standard headers use __declspec(noreturn), so #define noreturn
3189         to empty on that platform.  Reported by Bruno Haible in
3190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3191         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3192         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3193
3194 2012-02-28  Bruno Haible  <bruno@clisp.org>
3195
3196         doc: Mention new glibc headers and functions.
3197         * doc/glibc-headers/uchar.texi: New file.
3198         * doc/glibc-functions/aligned_alloc.texi: New file.
3199         * doc/glibc-functions/c16rtomb.texi: New file.
3200         * doc/glibc-functions/c32rtomb.texi: New file.
3201         * doc/glibc-functions/clock_adjtime.texi: New file.
3202         * doc/glibc-functions/fanotify_init.texi: New file.
3203         * doc/glibc-functions/fanotify_mark.texi: New file.
3204         * doc/glibc-functions/inet6_opt_append.texi: New file.
3205         * doc/glibc-functions/inet6_opt_find.texi: New file.
3206         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3207         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3208         * doc/glibc-functions/inet6_opt_init.texi: New file.
3209         * doc/glibc-functions/inet6_opt_next.texi: New file.
3210         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3211         * doc/glibc-functions/inet6_rth_add.texi: New file.
3212         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3213         * doc/glibc-functions/inet6_rth_init.texi: New file.
3214         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3215         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3216         * doc/glibc-functions/inet6_rth_space.texi: New file.
3217         * doc/glibc-functions/login.texi: New file.
3218         * doc/glibc-functions/mbrtoc16.texi: New file.
3219         * doc/glibc-functions/mbrtoc32.texi: New file.
3220         * doc/glibc-functions/name_to_handle_at.texi: New file.
3221         * doc/glibc-functions/ntp_gettimex.texi: New file.
3222         * doc/glibc-functions/open_by_handle_at.texi: New file.
3223         * doc/glibc-functions/prlimit.texi: New file.
3224         * doc/glibc-functions/process_vm_readv.texi: New file.
3225         * doc/glibc-functions/process_vm_writev.texi: New file.
3226         * doc/glibc-functions/recvmmsg.texi: New file.
3227         * doc/glibc-functions/scandirat.texi: New file.
3228         * doc/glibc-functions/sendmmsg.texi: New file.
3229         * doc/glibc-functions/setns.texi: New file.
3230         * doc/glibc-functions/timespec_get.texi: New file.
3231         * doc/gnulib.texi: Include them.
3232         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3233         sections.
3234         Reported by Eric Blake.
3235
3236 2012-02-28  Bruno Haible  <bruno@clisp.org>
3237
3238         Avoid compilation errors with MSVC option -fp:strict.
3239         * lib/floor.c: Use MSVC specific pragma fenv_access.
3240         * lib/ceil.c: Likewise.
3241         * lib/trunc.c: Likewise.
3242         * lib/round.c: Likewise.
3243         * lib/rint.c: Likewise.
3244         * lib/fma.c: Likewise.
3245         * lib/integer_length.c: Likewise.
3246         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3248         * tests/test-floor2.c: Likewise.
3249         * tests/test-floorf2.c: Likewise.
3250         * tests/test-ceil2.c: Likewise.
3251         * tests/test-ceilf2.c: Likewise.
3252         * tests/test-trunc2.c: Likewise.
3253         * tests/test-truncf2.c: Likewise.
3254         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3255
3256 2012-02-27  Bruno Haible  <bruno@clisp.org>
3257
3258         Tests for module 'sqrtl-ieee'.
3259         * modules/sqrtl-ieee-tests: New file.
3260         * tests/test-sqrtl-ieee.c: New file.
3261
3262         New module 'sqrtl-ieee'.
3263         * modules/sqrtl-ieee: New file.
3264
3265         Tests for module 'sqrt-ieee'.
3266         * modules/sqrt-ieee-tests: New file.
3267         * tests/test-sqrt-ieee.c: New file.
3268
3269         New module 'sqrt-ieee'.
3270         * modules/sqrt-ieee: New file.
3271
3272         Tests for module 'sqrtf-ieee'.
3273         * modules/sqrtf-ieee-tests: New file.
3274         * tests/test-sqrtf-ieee.c: New file.
3275         * tests/test-sqrt-ieee.h: New file.
3276
3277         New module 'sqrtf-ieee'.
3278         * modules/sqrtf-ieee: New file.
3279
3280 2012-02-27  Bruno Haible  <bruno@clisp.org>
3281
3282         remainderl-ieee: Work around test failure on OSF/1.
3283         * m4/remainderl-ieee.m4: New file.
3284         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3285         present, test whether remainderl works with a zero second argument.
3286         Replace it if not.
3287         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3289         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3290         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3291         (Depends-on): Update conditions.
3292         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3293         (Depends-on): Add remainder-ieee.
3294         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3295         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3296         module.
3297
3298         remainderf-ieee: Work around test failure on OSF/1.
3299         * m4/remainderf-ieee.m4: New file.
3300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3301         present, test whether remainderf works with a zero second argument.
3302         Replace it if not.
3303         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3305         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3306         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3307         (Depends-on): Update conditions.
3308         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3309         (Depends-on): Add remainder-ieee.
3310         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3311         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3312         module.
3313
3314         remainder-ieee: Work around test failure on OSF/1.
3315         * m4/remainder-ieee.m4: New file.
3316         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3317         present, test whether remainder works with a zero second argument.
3318         Replace it if not.
3319         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3321         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3322         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3323         (Depends-on): Update dependencies.
3324         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3325         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3326         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3327
3328         Tests for module 'remainderl-ieee'.
3329         * modules/remainderl-ieee-tests: New file.
3330         * tests/test-remainderl-ieee.c: New file.
3331
3332         New module 'remainderl-ieee'.
3333         * modules/remainderl-ieee: New file.
3334
3335         Tests for module 'remainder-ieee'.
3336         * modules/remainder-ieee-tests: New file.
3337         * tests/test-remainder-ieee.c: New file.
3338
3339         New module 'remainder-ieee'.
3340         * modules/remainder-ieee: New file.
3341
3342         Tests for module 'remainderf-ieee'.
3343         * modules/remainderf-ieee-tests: New file.
3344         * tests/test-remainderf-ieee.c: New file.
3345         * tests/test-remainder-ieee.h: New file.
3346
3347         New module 'remainderf-ieee'.
3348         * modules/remainderf-ieee: New file.
3349
3350 2012-02-27  Bruno Haible  <bruno@clisp.org>
3351
3352         modff, modfl: Fix configure syntax error.
3353         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3354         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3355
3356 2012-02-27  Bruno Haible  <bruno@clisp.org>
3357
3358         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3359         * m4/fmodl-ieee.m4: New file.
3360         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3361         whether fmodl works with zero arguments. Replace it if not.
3362         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3363         (Depends-on): Add fmod-ieee.
3364         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3365         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3366
3367         fmodf-ieee: Work around test failure on OSF/1.
3368         * m4/fmodf-ieee.m4: New file.
3369         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3370         whether fmodf works with zero arguments. Replace it if not.
3371         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3373         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3374         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3375         (Depends-on): Update dependencies.
3376         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3377         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3378         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3379
3380         fmodf-ieee: Work around test failure on MSVC 9.
3381         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3382         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3383
3384         fmod-ieee: Work around test failures on OSF/1, mingw.
3385         * m4/fmod-ieee.m4: New file.
3386         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3387         whether fmod works with zero arguments. Replace it if not.
3388         * lib/math.in.h (fmod): New declaration.
3389         * lib/fmod.c: New file.
3390         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3392         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3393         * modules/fmod (Files): Add lib/fmod.c.
3394         (Depends-on): Add math, isinf, trunc, fma.
3395         (configure.ac): Arrange to compile lib/fmod.c if needed.
3396         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3397         m4/signbit.m4.
3398         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3399         * tests/test-math-c++.cc: Check the declaration of fmod.
3400         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3401
3402         fmodl-ieee: Fix test failures.
3403         * lib/fmodl.c (fmodl): Treat Inf specially.
3404         * modules/fmodl (Depends-on): Add isinf.
3405
3406         Tests for module 'fmodl-ieee'.
3407         * modules/fmodl-ieee-tests: New file.
3408         * tests/test-fmodl-ieee.c: New file.
3409
3410         New module 'fmodl-ieee'.
3411         * modules/fmodl-ieee: New file.
3412
3413         Tests for module 'fmod-ieee'.
3414         * modules/fmod-ieee-tests: New file.
3415         * tests/test-fmod-ieee.c: New file.
3416
3417         New module 'fmod-ieee'.
3418         * modules/fmod-ieee: New file.
3419
3420         Tests for module 'fmodf-ieee'.
3421         * modules/fmodf-ieee-tests: New file.
3422         * tests/test-fmodf-ieee.c: New file.
3423         * tests/test-fmod-ieee.h: New file.
3424
3425         New module 'fmodf-ieee'.
3426         * modules/fmodf-ieee: New file.
3427
3428 2012-02-27  Bruno Haible  <bruno@clisp.org>
3429
3430         Tests for module 'rintl-ieee'.
3431         * modules/rintl-ieee-tests: New file.
3432         * tests/test-rintl-ieee.c: New file.
3433
3434         New module 'rintl-ieee'.
3435         * modules/rintl-ieee: New file.
3436
3437         Tests for module 'rint-ieee'.
3438         * modules/rint-ieee-tests: New file.
3439         * tests/test-rint-ieee.c: New file.
3440
3441         New module 'rint-ieee'.
3442         * modules/rint-ieee: New file.
3443
3444         Tests for module 'rintf-ieee'.
3445         * modules/rintf-ieee-tests: New file.
3446         * tests/test-rintf-ieee.c: New file.
3447         * tests/test-rint-ieee.h: New file.
3448
3449         New module 'rintf-ieee'.
3450         * modules/rintf-ieee: New file.
3451
3452 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3453
3454         regex: re_search etc. should return -2 when memory exhausted
3455         This bug was uncovered when testing 'grep'.  Without the fix,
3456         re_search and friends return -1 when memory is exhausted, but -1
3457         means no match, and this causes grep to falsely report no-match
3458         instead of memory-exhaustion.  See
3459         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3460         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3461         trouble; this can occur if re_search_internal ran out of memory.
3462
3463 2012-02-26  Bruno Haible  <bruno@clisp.org>
3464
3465         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3466         * m4/modfl-ieee.m4: New file.
3467         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3468         whether modfl works with Inf. Replace it if not.
3469         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3471         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3472         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3473         (Depends-on): Update dependencies.
3474         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3475         m4/signbit.m4.
3476         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3477         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3478
3479         modfl-ieee: Fix dependencies.
3480         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3481
3482         modfl-ieee: Fix test failures.
3483         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3484         * modules/modfl (Depends-on): Add isfinite, isinf.
3485
3486         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3487         * m4/modff-ieee.m4: New file.
3488         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3489         whether modff works with NaN and Inf. Replace it if not.
3490         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3492         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3493         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3494         (Depends-on): Update dependencies.
3495         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3496         m4/signbit.m4.
3497         (Depends-on): Add modf-ieee.
3498         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3499         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3500
3501         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3502         * m4/modf-ieee.m4: New file.
3503         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3504         whether modf works with NaN and Inf. Replace it if not.
3505         * lib/math.in.h (modf): New declaration.
3506         * lib/modf.c: New file.
3507         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3509         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3510         * modules/modf (Files): Add lib/modf.c.
3511         (Depends-on): Add math, isfinite, trunc, isinf.
3512         (configure.ac): Addrange to compile lib/modf.c if needed.
3513         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3514         m4/signbit.m4.
3515         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3516         * tests/test-math-c++.cc: Check the declaration of modf.
3517         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3518
3519         Tests for module 'modfl-ieee'.
3520         * modules/modfl-ieee-tests: New file.
3521         * tests/test-modfl-ieee.c: New file.
3522
3523         New module 'modfl-ieee'.
3524         * modules/modfl-ieee: New file.
3525
3526         Tests for module 'modf-ieee'.
3527         * modules/modf-ieee-tests: New file.
3528         * tests/test-modf-ieee.c: New file.
3529
3530         New module 'modf-ieee'.
3531         * modules/modf-ieee: New file.
3532
3533         Tests for module 'modff-ieee'.
3534         * modules/modff-ieee-tests: New file.
3535         * tests/test-modff-ieee.c: New file.
3536         * tests/test-modf-ieee.h: New file.
3537
3538         New module 'modff-ieee'.
3539         * modules/modff-ieee: New file.
3540
3541 2012-02-26  Bruno Haible  <bruno@clisp.org>
3542
3543         Tests for module 'fabsl-ieee'.
3544         * modules/fabsl-ieee-tests: New file.
3545         * tests/test-fabsl-ieee.c: New file.
3546
3547         New module 'fabsl-ieee'.
3548         * modules/fabsl-ieee: New file.
3549
3550         Tests for module 'fabs-ieee'.
3551         * modules/fabs-ieee-tests: New file.
3552         * tests/test-fabs-ieee.c: New file.
3553
3554         New module 'fabs-ieee'.
3555         * modules/fabs-ieee: New file.
3556
3557         Tests for module 'fabsf-ieee'.
3558         * modules/fabsf-ieee-tests: New file.
3559         * tests/test-fabsf-ieee.c: New file.
3560         * tests/test-fabs-ieee.h: New file.
3561
3562         New module 'fabsf-ieee'.
3563         * modules/fabsf-ieee: New file.
3564
3565 2012-02-26  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'fmal-ieee'.
3568         * modules/fmal-ieee-tests: New file.
3569         * tests/test-fmal-ieee.c: New file.
3570
3571         New module 'fmal-ieee'.
3572         * modules/fmal-ieee: New file.
3573
3574         Tests for module 'fma-ieee'.
3575         * modules/fma-ieee-tests: New file.
3576         * tests/test-fma-ieee.c: New file.
3577
3578         New module 'fma-ieee'.
3579         * modules/fma-ieee: New file.
3580
3581         Tests for module 'fmaf-ieee'.
3582         * modules/fmaf-ieee-tests: New file.
3583         * tests/test-fmaf-ieee.c: New file.
3584         * tests/test-fma-ieee.h: New file.
3585
3586         New module 'fmaf-ieee'.
3587         * modules/fmaf-ieee: New file.
3588
3589 2012-02-26  Bruno Haible  <bruno@clisp.org>
3590
3591         Tests for module 'ldexpl-ieee'.
3592         * modules/ldexpl-ieee-tests: New file.
3593         * tests/test-ldexpl-ieee.c: New file.
3594
3595         New module 'ldexpl-ieee'.
3596         * modules/ldexpl-ieee: New file.
3597
3598         Tests for module 'ldexp-ieee'.
3599         * modules/ldexp-ieee-tests: New file.
3600         * tests/test-ldexp-ieee.c: New file.
3601
3602         New module 'ldexp-ieee'.
3603         * modules/ldexp-ieee: New file.
3604
3605         Tests for module 'ldexpf-ieee'.
3606         * modules/ldexpf-ieee-tests: New file.
3607         * tests/test-ldexpf-ieee.c: New file.
3608         * tests/test-ldexp-ieee.h: New file.
3609
3610         New module 'ldexpf-ieee'.
3611         * modules/ldexpf-ieee: New file.
3612
3613 2012-02-26  Bruno Haible  <bruno@clisp.org>
3614
3615         Refactor frexp*-ieee tests.
3616         * tests/test-frexp-ieee.h: New file.
3617         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3618         (main): Just call test_function.
3619         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3620         (main): Just call test_function.
3621         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3622         (main): Just call test_function.
3623         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3624         * modules/frexp-ieee-tests (Files): Likewise.
3625         * modules/frexpl-ieee-tests (Files): Likewise.
3626
3627         Tests for module 'frexpl-ieee'.
3628         * modules/frexpl-ieee-tests: New file.
3629         * tests/test-frexpl-ieee.c: New file.
3630
3631         New module 'frexpl-ieee'.
3632         * modules/frexpl-ieee: New file.
3633
3634         Tests for module 'frexp-ieee'.
3635         * modules/frexp-ieee-tests: New file.
3636         * tests/test-frexp-ieee.c: New file.
3637
3638         New module 'frexp-ieee'.
3639         * modules/frexp-ieee: New file.
3640
3641         Tests for module 'frexpf-ieee'.
3642         * modules/frexpf-ieee-tests: New file.
3643         * tests/test-frexpf-ieee.c: New file.
3644
3645         New module 'frexpf-ieee'.
3646         * modules/frexpf-ieee: New file.
3647
3648 2012-02-26  Bruno Haible  <bruno@clisp.org>
3649
3650         roundl-ieee tests: More tests.
3651         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3652         (main): Add tests for [MX] shaded specification in POSIX.
3653         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3654         (Depends-on): Add isnanl-nolibm.
3655
3656         round-ieee tests: More tests.
3657         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3658         (main): Add tests for [MX] shaded specification in POSIX.
3659         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3660         (Depends-on): Add isnand-nolibm.
3661
3662         roundf-ieee tests: More tests.
3663         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3664         (main): Add tests for [MX] shaded specification in POSIX.
3665         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3666         (Depends-on): Add isnanf-nolibm.
3667
3668         truncl-ieee tests: More tests.
3669         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3670         (main): Add tests for [MX] shaded specification in POSIX.
3671         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3672         (Depends-on): Add isnanl-nolibm.
3673
3674         trunc-ieee tests: More tests.
3675         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3676         (main): Add tests for [MX] shaded specification in POSIX.
3677         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3678         (Depends-on): Add isnand-nolibm.
3679
3680         truncf-ieee tests: More tests.
3681         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3682         (main): Add tests for [MX] shaded specification in POSIX.
3683         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3684         (Depends-on): Add isnanf-nolibm.
3685
3686         ceill-ieee tests: More tests.
3687         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3688         (main): Add tests for [MX] shaded specification in POSIX.
3689         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3690         (Depends-on): Add isnanl-nolibm.
3691
3692         ceil-ieee tests: More tests.
3693         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3694         (main): Add tests for [MX] shaded specification in POSIX.
3695         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3696         (Depends-on): Add isnand-nolibm.
3697
3698         ceilf-ieee tests: More tests.
3699         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3700         (main): Add tests for [MX] shaded specification in POSIX.
3701         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3702         (Depends-on): Add isnanf-nolibm.
3703
3704         floorl-ieee tests: More tests.
3705         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3706         (main): Add tests for [MX] shaded specification in POSIX.
3707         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3708         (Depends-on): Add isnanl-nolibm.
3709
3710         floor-ieee tests: More tests.
3711         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3712         (main): Add tests for [MX] shaded specification in POSIX.
3713         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3714         (Depends-on): Add isnand-nolibm.
3715
3716         floorf-ieee tests: More tests.
3717         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3718         (main): Add tests for [MX] shaded specification in POSIX.
3719         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3720         (Depends-on): Add isnanf-nolibm.
3721
3722 2012-02-26  Bruno Haible  <bruno@clisp.org>
3723
3724         fpieee: More comments.
3725         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3726
3727 2012-02-25  Bruno Haible  <bruno@clisp.org>
3728
3729         Tests for module 'log10l'.
3730         * modules/log10l-tests: New file.
3731         * tests/test-log10l.c: New file.
3732         * tests/test-math-c++.cc: Check the declaration of log10l.
3733
3734         New module 'log10l'.
3735         * lib/math.in.h (log10l): New declaration.
3736         * lib/log10l.c: New file.
3737         * m4/log10l.m4: New file.
3738         * modules/log10l: New file.
3739         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3741         HAVE_DECL_LOG10L.
3742         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3743         HAVE_DECL_LOG10L.
3744         * doc/posix-functions/log10l.texi: Mention the new module.
3745
3746 2012-02-25  Bruno Haible  <bruno@clisp.org>
3747
3748         fmodl, remainder*: Avoid wrong results due to rounding errors.
3749         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3750         expected bounds.
3751         * lib/remainderf.c (remainderf): Likewise.
3752         * lib/remainder.c (remainder): Likewise.
3753         * lib/remainderl.c (remainderl): Likewise.
3754
3755 2012-02-25  Bruno Haible  <bruno@clisp.org>
3756
3757         Tests for module 'remainderl'.
3758         * modules/remainderl-tests: New file.
3759         * tests/test-remainderl.c: New file.
3760         * tests/test-math-c++.cc: Check the declaration of remainderl.
3761
3762         New module 'remainderl'.
3763         * lib/math.in.h (remainderl): New declaration.
3764         * lib/remainderl.c: New file.
3765         * m4/remainderl.m4: New file.
3766         * modules/remainderl: New file.
3767         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3769         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3770         HAVE_REMAINDERL.
3771         * doc/posix-functions/remainderl.texi: Mention the new module.
3772
3773 2012-02-25  Bruno Haible  <bruno@clisp.org>
3774
3775         Tests for module 'remainderf'.
3776         * modules/remainderf-tests: New file.
3777         * tests/test-remainderf.c: New file.
3778         * tests/test-math-c++.cc: Check the declaration of remainderf.
3779
3780         New module 'remainderf'.
3781         * lib/math.in.h (remainderf): New declaration.
3782         * lib/remainderf.c: New file.
3783         * m4/remainderf.m4: New file.
3784         * modules/remainderf: New file.
3785         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3787         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3788         HAVE_REMAINDERF.
3789         * doc/posix-functions/remainderf.texi: Mention the new module.
3790
3791 2012-02-25  Bruno Haible  <bruno@clisp.org>
3792
3793         remainder: Support for MSVC.
3794         * lib/math.in.h (remainder): New declaration.
3795         * lib/remainder.c: New file.
3796         * m4/remainder.m4: New file.
3797         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3798         (Depends-on): Add math, round, fma.
3799         (configure.ac): Use results of gl_FUNC_REMAINDER.
3800         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3802         HAVE_DECL_REMAINDER.
3803         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3804         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3805         * tests/test-math-c++.cc: Check the declaration of remainder.
3806         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3807         problems are fixed.
3808
3809 2012-02-25  Bruno Haible  <bruno@clisp.org>
3810
3811         Tests for module 'fmodl'.
3812         * modules/fmodl-tests: New file.
3813         * tests/test-fmodl.c: New file.
3814         * tests/test-math-c++.cc: Check the declaration of fmodl.
3815
3816         New module 'fmodl'.
3817         * lib/math.in.h (fmodl): New declaration.
3818         * lib/fmodl.c: New file.
3819         * m4/fmodl.m4: New file.
3820         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3822         REPLACE_FMODL.
3823         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3824         REPLACE_FMODL.
3825         * modules/fmodl: New file.
3826         * doc/posix-functions/fmodl.texi: Mention the new module.
3827
3828 2012-02-25  Bruno Haible  <bruno@clisp.org>
3829
3830         Tests for module 'modfl'.
3831         * modules/modfl-tests: New file.
3832         * tests/test-modfl.c: New file.
3833         * tests/test-math-c++.cc: Check the declaration of modfl.
3834
3835         New module 'modfl'.
3836         * lib/math.in.h (modfl): New declaration.
3837         * lib/modfl.c: New file.
3838         * m4/modfl.m4: New file.
3839         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3841         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3842         * modules/modfl: New file.
3843         * doc/posix-functions/modfl.texi: Mention the new module.
3844
3845 2012-02-25  Bruno Haible  <bruno@clisp.org>
3846
3847         Tests for module 'fabsl'.
3848         * modules/fabsl-tests: New file.
3849         * tests/test-fabsl.c: New file.
3850         * tests/test-math-c++.cc: Check the declaration of fabsl.
3851
3852         New module 'fabsl'.
3853         * lib/math.in.h (fabsl): New declaration.
3854         * lib/fabsl.c: New file.
3855         * m4/fabsl.m4: New file.
3856         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3858         REPLACE_FABSL.
3859         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3860         REPLACE_FABSL.
3861         * modules/fabsl: New file.
3862         * doc/posix-functions/fabsl.texi: Mention the new module.
3863
3864 2012-02-25  Bruno Haible  <bruno@clisp.org>
3865
3866         fabs tests: More tests.
3867         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3868         (zero): New variable.
3869         (main): Add tests for signed zero.
3870         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3871
3872         fabsf tests: More tests.
3873         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3874         (zero): New variable.
3875         (main): Add tests for signed zero.
3876         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3877
3878 2012-02-24  Bruno Haible  <bruno@clisp.org>
3879
3880         atanl: Provide function definition on MSVC.
3881         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3882         function pointer.
3883         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3884
3885 2012-02-24  Bruno Haible  <bruno@clisp.org>
3886
3887         acosl: Provide function definition on MSVC.
3888         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3889         function pointer.
3890         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3891
3892 2012-02-24  Bruno Haible  <bruno@clisp.org>
3893
3894         asinl: Provide function definition on MSVC.
3895         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3896         function pointer.
3897         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3898
3899 2012-02-24  Bruno Haible  <bruno@clisp.org>
3900
3901         tanl: Provide function definition on MSVC.
3902         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3903         function pointer.
3904         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3905
3906 2012-02-24  Bruno Haible  <bruno@clisp.org>
3907
3908         cosl: Provide function definition on MSVC.
3909         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3910         function pointer.
3911         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3912
3913 2012-02-24  Bruno Haible  <bruno@clisp.org>
3914
3915         sinl: Provide function definition on MSVC.
3916         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3917         function pointer.
3918         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3919
3920 2012-02-24  Bruno Haible  <bruno@clisp.org>
3921
3922         logl: Provide function definition on MSVC.
3923         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3924         function pointer.
3925         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3926
3927 2012-02-24  Bruno Haible  <bruno@clisp.org>
3928
3929         expl: Provide function definition on MSVC.
3930         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3931         function pointer.
3932         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3933
3934 2012-02-24  Bruno Haible  <bruno@clisp.org>
3935
3936         sqrtl: Provide function definition on MSVC.
3937         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3938         a function pointer.
3939         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3940
3941 2012-02-24  Bruno Haible  <bruno@clisp.org>
3942
3943         ceill: Provide function definition on MSVC.
3944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3945         used as a function pointer.
3946         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3947
3948 2012-02-24  Bruno Haible  <bruno@clisp.org>
3949
3950         floorl: Provide function definition on MSVC.
3951         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3952         used as a function pointer.
3953         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3954
3955 2012-02-24  Bruno Haible  <bruno@clisp.org>
3956
3957         ceilf: Provide function definition on MSVC.
3958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3959         used as a function pointer.
3960         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3961
3962 2012-02-24  Bruno Haible  <bruno@clisp.org>
3963
3964         floorf: Provide function definition on MSVC.
3965         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3966         used as a function pointer.
3967         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3968
3969 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3970
3971         stdnoreturn: new module
3972         This implements a replacement for C11's <stdnoreturn.h>.
3973         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3974         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3975         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3976         * tests/test-stdnoreturn.c: New files.
3977
3978 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3979
3980         regex: fix false multibyte matches in some regular expressions
3981         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3982         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3983         * lib/regex_internal.c (re_string_skip_chars):
3984         Fix miscomputation of remain_len that may cause incomplete
3985         multi-byte character and false match.
3986
3987 2012-02-24  Jim Meyering  <meyering@redhat.com>
3988
3989         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3990         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3991         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3992         Remove now-unnecessary str''cmp obfuscation.
3993         Suggested by Akim Demaille.
3994
3995 2012-02-24  Bruno Haible  <bruno@clisp.org>
3996
3997         streq: Rename macro.
3998         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3999         * NEWS: Mention the change.
4000         * lib/mbrtowc.c (mbrtowc): Update.
4001         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4002         * lib/wcwidth.c (wcwidth): Update.
4003         Suggested by Akim Demaille and Jim Meyering.
4004
4005 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4006
4007         regex: fix typo in definition of MIN
4008         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4009         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4010
4011 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4012             Bruno Haible  <bruno@clisp.org>
4013
4014         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4015         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4016         entries into a stack-allocated buffer directly.
4017         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4018
4019 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4020             Bruno Haible  <bruno@clisp.org>
4021
4022         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4023
4024          - There were several instances of this pattern:
4025
4026              for (;;) {
4027                n = acl (f, GETACLCNT, 0, NULL);
4028                [ allocate an array A of size N ]
4029                if (acl (f, GETACL, n, a) == n)
4030                  break;
4031              }
4032
4033            This loop might never terminate if some other process is constantly
4034            manipulating the file's ACL.  The loop should be rewritten to
4035            terminate.
4036
4037          - The acl (... GETACLNT ...) call is merely an optimization; its value
4038            is merely a hint as to how big to make the array.  A better
4039            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4040            and just guess a reasonably-big size, growing the size and trying
4041            again if it's not large enough.  This guarantees termination, and
4042            saves a system call.
4043
4044         * lib/acl-internal.h: Include <limits.h>.
4045         (MIN, SIZE_MAX): New macros.
4046         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4047         a stack-allocated buffer, and use malloc if it does not fit. Don't
4048         use GETACLCNT.
4049         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4050
4051 2012-02-19  Bruno Haible  <bruno@clisp.org>
4052
4053         acl: Fix endless loop on Solaris with vxfs.
4054         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4055         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4056         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4057         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4058         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4059         Reported by Bill Jones in
4060         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4061
4062 2012-02-19  Bruno Haible  <bruno@clisp.org>
4063
4064         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4065         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4066         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4067         that this function returns 0 in some more cases.
4068
4069 2012-02-19  Bruno Haible  <bruno@clisp.org>
4070
4071         acl: Update doc references.
4072         * doc/acl-resources.txt: Update links to Solaris documentation.
4073
4074 2012-02-19  Bruno Haible  <bruno@clisp.org>
4075
4076         Fix test failure in many locales on Solaris 11.
4077         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4078         'tr' arguments.
4079         * tests/test-pipe-filter-ii1.c (main): Likewise.
4080         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4081         expressions in the C locale.
4082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4083         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4084
4085 2012-02-19  Bruno Haible  <bruno@clisp.org>
4086
4087         gnulib-tool: Improve usage message.
4088         * gnulib-tool (func_usage): Move doc of --help and --version to the
4089         section "Operation modes".
4090
4091 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4092
4093         README-release: make it easier to execute commands
4094         * top/README-release: break commands out on to separate lines.
4095
4096 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4097
4098         GNUmakefile: simplify detection of unconfigured trees
4099         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4100         whether the tree make is being run from is already configured or
4101         not.  Related simplifications.
4102
4103 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4104
4105         * gnulib-tool (func_usage): Document --help and --version.
4106
4107 2012-02-11  Jim Meyering  <meyering@redhat.com>
4108
4109         bootstrap: don't exit 0 upon gnulib-tool failure
4110         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4111         its exit status, not 0.
4112
4113 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4114
4115         README-release: various improvements
4116         * top/README-release: Give a command to push changes for the
4117         release.  Add "distcheck" to list of other pre-release checks.
4118         Fix instance of "make stable" which should be "make TYPE".
4119
4120 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4121
4122         maint: replace FSF snail-mail addresses with URLs
4123         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4124         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4125         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4126         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4127         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4128         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4129         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4130         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4131         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4132         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4133         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4134         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4135         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4136         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4137         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4138         * lib/glthread/thread.c, lib/glthread/thread.h:
4139         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4140         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4141         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4142         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4143         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4144         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4145         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4146         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4147         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4148         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4149         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4150         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4151         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4152         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4153         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4154         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4155         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4156         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4157         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4158         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4159         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4160         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4161         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4162         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4163         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4164         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4165         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4166         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4167         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4168         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4169         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4170         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4171         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4172         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4173         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4174         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4175         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4176         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4177         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4178         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4179         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4180         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4181         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4182         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4183         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4184         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4185         * tests/test-poll.c, tests/test-quotearg-simple.c:
4186         * tests/test-quotearg.c, tests/test-quotearg.h:
4187         * tests/test-round-ieee.c, tests/test-round1.c:
4188         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4189         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4190         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4191         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4192         * tests/test-strerror.c, tests/test-strerror_r.c:
4193         * tests/test-strsignal.c, tests/test-strverscmp.c:
4194         * tests/test-xmemdup0.c:
4195         Replace FSF snail mail addresses with URLs, as per GNU coding
4196         standards.  See glibc bug
4197         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4198
4199 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4200
4201         README-release: capitalize a word and split a line
4202         * top/README-release: Fix punctuation and spacing.
4203
4204 2012-02-08  Akim Demaille  <demaille@gostai.com>
4205
4206         fatal-signal: use C prototypes (with explicit void).
4207         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4208         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4209
4210 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4211
4212         regex: spelling fix
4213         * lib/regexec.c: spelling fix
4214
4215         regex: rely on stdint.h for SIZE_MAX
4216         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4217
4218 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4219
4220         regex: merge glibc changes
4221
4222         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4223         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4224         (init_word_char): Work even if bitset words are not exactly 32 or
4225         64 bits wide.  Don't assume there are no padding bits.
4226         * lib/regex.c [_LIBC]: Do not include <config.h>.
4227         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4228         and -Wtype-limits.
4229         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4230         needless disagreement with glibc.  All uses changed.  Define it to
4231         1 only if _GNU_SOURCE, to match glibc.
4232         (_REG_RM_NAME): Remove; no longer needed, since the names in
4233         question are now all protected by __USE_GNU.
4234         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4235         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4236         * lib/regex_internal.h (MIN): New macro.
4237
4238         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4239         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4240
4241         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4242         * lib/regex_internal.c (re_string_fetch_byte_case):
4243         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4244         is miscompiled, and it turns out it is because of an incorrect
4245         attribute on re_string_fetch_byte_case.  Unlike
4246         re_string_peek_byte_case, this one is really not pure, it modifies
4247         memory (increments pstr->cur_idx), and with the pure attribute GCC
4248         assumed it doesn't and it cached the presumed value of
4249         regexp->cur_idx in a variable across the
4250          for (;; ++i)
4251            {
4252              if (i >= BRACKET_NAME_BUF_SIZE)
4253                return REG_EBRACK;
4254              if (token->type == OP_OPEN_CHAR_CLASS)
4255                ch = re_string_fetch_byte_case (regexp);
4256              else
4257                ch = re_string_fetch_byte (regexp);
4258              if (re_string_eoi(regexp))
4259                return REG_EBRACK;
4260              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4261                break;
4262              elem->opr.name[i] = ch;
4263            }
4264
4265         2011-11-29 Andreas Schwab <schwab@redhat.com>
4266         * lib/regcomp.c (build_equiv_class):
4267         Fix access after end of search string in regex matcher.
4268
4269         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4270         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4271
4272         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4273         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4274
4275         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4276         * lib/regcomp.c (parse_branch, parse_sub_exp):
4277         More regex memory leak fixes and tests.
4278         (parse_sub_exp, parse_bracket_exp):
4279         Fix memory leak for some invalid regular expressions.
4280
4281         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4282         * lib/regex_internal.c, lib/regexec.c:
4283         Fix unnecessary overallocation due to incomplete character.  When
4284         incomplete characters are found at the end of a string the code
4285         ran amok and allocated lots of memory.  Stricter limits are now in
4286         place.
4287
4288         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4289         * lib/regex.h: Update documentation.
4290
4291         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4292         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4293
4294         2010-05-05 Andreas Schwab <schwab@redhat.com>
4295         * lib/regexec.c (find_collation_sequence_value):
4296         Fix lookup of collation sequence value during regexp matching.
4297
4298         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4299         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4300
4301         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4302         * lib/regex.h: Cleanup namespace.
4303
4304         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4305         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4306
4307         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4308         * lib/regex_internal.h: Prevent some declarations and definitions
4309         to be seen when used in tests.
4310
4311         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4312         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4313         __libc_lock_* macros if not _LIBC.
4314         (struct re_dfa_t): Add lock.
4315
4316 2012-02-07  Eric Blake  <eblake@redhat.com>
4317
4318         maint.mk: also prohibit lower-case @var@
4319         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4320         lower case, like @top_srcdir@.
4321
4322 2012-02-04  Eric Blake  <eblake@redhat.com>
4323
4324         canonicalize: avoid uninitialized memory use
4325         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4326         random '/' left in dest.
4327         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4328
4329 2012-02-04  Bruno Haible  <bruno@clisp.org>
4330
4331         isatty: Fix test failure of ptsname_r on native Windows.
4332         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4333         and don't set errno.
4334         (isatty): Test first whether fd is valid. Set errno when returning 0.
4335
4336 2012-02-04  Bruno Haible  <bruno@clisp.org>
4337
4338         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4339         * tests/test-spawn-pipe-main.c: Include progname.h.
4340         (main): Invoke set_program_name.
4341         * modules/spawn-pipe-tests (Depends-on): Add progname.
4342
4343         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4344         * tests/test-nonblocking-socket-main.c: Include progname.h.
4345         (main): Invoke set_program_name.
4346         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4347
4348         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4349         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4350         (main): Invoke set_program_name.
4351         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4352
4353 2012-02-04  Eric Blake  <eblake@redhat.com>
4354
4355         canonicalize-lgpl: fix // handling
4356         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4357
4358         canonicalize: fix // handling
4359         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4360         /// to //, since only // is special.
4361
4362 2012-02-04  Bruno Haible  <bruno@clisp.org>
4363
4364         ioctl: Fix test failure on native Windows.
4365         * lib/ioctl.c: Include msvc-nothrow.h.
4366         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4367
4368 2012-02-04  Bruno Haible  <bruno@clisp.org>
4369
4370         fsync: Avoid test failure on native Windows.
4371         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4372         read-only.
4373
4374 2012-02-04  Bruno Haible  <bruno@clisp.org>
4375
4376         sys_select: Avoid syntax error on OpenBSD 5.0.
4377         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4378         currently being included, just include the system's <sys/select.h>.
4379
4380 2012-02-04  Bruno Haible  <bruno@clisp.org>
4381
4382         sys_select: Avoid syntax error on OpenBSD 5.0.
4383         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4384         <sys/select.h>, not before.
4385         Reported by Jiri B <jirib@devio.us>.
4386
4387 2012-02-04  Bruno Haible  <bruno@clisp.org>
4388
4389         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4390         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4391         global variables.
4392         * tests/test-get-rusage-data.c (main): Likewise.
4393         Reported by Jim Meyering.
4394
4395 2012-02-04  Bruno Haible  <bruno@clisp.org>
4396
4397         stdioext: Fix last commit.
4398         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4399
4400 2012-02-03  Bruno Haible  <bruno@clisp.org>
4401
4402         stdioext: Add tentative support for Plan9.
4403         * lib/stdio-impl.h: Include <errno.h>.
4404         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4405         * lib/freadable.c (freadable): Likewise.
4406         * lib/fwritable.c (fwritable): Likewise.
4407         * lib/fbufmode.c (fbufmode): Likewise.
4408         * lib/freading.c (freading): Likewise.
4409         * lib/fwriting.c (fwriting): Likewise.
4410         * lib/freadptr.c (freadptr): Likewise.
4411         * lib/freadseek.c (freadptrinc): Likewise.
4412         * lib/freadahead.c (freadahead): Likewise.
4413         * lib/fpurge.c (fpurge): Likewise.
4414         * lib/fseeko.c (rpl_fseeko): Likewise.
4415         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4416         Reported by Jens Staal <staal1978@gmail.com>.
4417
4418 2012-02-02  Jim Meyering  <meyering@redhat.com>
4419
4420         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4421         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4422         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4423         not even to try to add the attribute.  Instead, add a pragma to suppress
4424         the suggestion/warning.
4425
4426 2012-01-31  Karl Berry  <karl@gnu.org>
4427
4428         setstate doc: typo.
4429         * doc/posix-functions/setstate.texi (setstate): { not (.
4430
4431 2012-01-31  Bruno Haible  <bruno@clisp.org>
4432
4433         popen: Make more robust on Windows.
4434         * lib/popen.c: On native Windows, use the _popen based code even if
4435         HAVE_POPEN is set.
4436         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4437         environment variable on native Windows.
4438
4439 2012-01-30  Bruno Haible  <bruno@clisp.org>
4440
4441         pclose: Fix typo.
4442         * lib/stdio.in.h (pclose): Fix typo in warning message.
4443
4444 2012-01-30  Bruno Haible  <bruno@clisp.org>
4445
4446         doc about getlogin_r, setstate.
4447         * doc/posix-functions/getlogin_r.texi: List the incompatible
4448         declaration problem under "not fixed by gnulib".
4449         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4450         problem on Solaris 11 and other platforms.
4451
4452 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4453             Bruno Haible  <bruno@clisp.org>
4454
4455         poll tests: Make test more robust.
4456         * tests/test-poll.c: Include macros.h.
4457         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4458         return value of various I/O operations.
4459         * modules/poll-tests (Files): Add tests/macros.h.
4460
4461 2012-01-30  Bruno Haible  <bruno@clisp.org>
4462
4463         sys_stat: Fix support for mingw64 and MSVC.
4464         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4465         header files already do it.
4466         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4467         stat itself.
4468         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4469
4470 2012-01-30  Bruno Haible  <bruno@clisp.org>
4471
4472         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4474         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4475
4476 2012-01-29  Bruno Haible  <bruno@clisp.org>
4477
4478         quotearg: Fix test failure on MacOS X 10.5.
4479         * tests/test-quotearg-simple.c: Include localcharset.h.
4480         (main): If the locale encoding is not ASCII, bypass the tests of
4481         locale_quoting_style and clocale_quoting_style.
4482         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4483
4484 2012-01-29  Jim Meyering  <meyering@redhat.com>
4485
4486         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4487         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4488         detect uses of canonicalize_file_name.
4489
4490 2012-01-28  Bruno Haible  <bruno@clisp.org>
4491
4492         test-framework-sh: Fix test failure with AIX 7.1 diff.
4493         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4494         in column 1, like 'diff -c' does.
4495         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4496         whether 'diff -u' is used. Instead, test whether the output contains
4497         some '@' character.
4498
4499 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4500
4501         strtoimax: eliminate need for stdint.h, inttypes.h checks
4502         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4503         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4504         the prerequisites for a recently-introduced strtoimax test.
4505         I guess this might cause strtoimax to be replaced when not
4506         strictly necessary on older hosts, but this shouldn't introduce
4507         any bugs and it should make Emacs 'configure' faster on typical
4508         modern hosts.  Problem discovered when importing the latest gnulib
4509         to an Emacs test version.
4510         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4511
4512 2012-01-28  Bruno Haible  <bruno@clisp.org>
4513
4514         sys_time: Override 'struct timeval' on some native Windows platforms.
4515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4516         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4517         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4518         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4519         needs to be overridden.
4520         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4521         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4522         * tests/test-sys_select.c: Check that the tv_sec member has the same
4523         size as a 'time_t'.
4524         * tests/test-sys_time.c: Likewise.
4525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4526         is set, set also REPLACE_GETTIMEOFDAY.
4527         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4528         convert the resulting 'struct timeval' before returning.
4529         * lib/select.c: Include <sys/time.h>.
4530         (select, timeval): Undefine at the right place.
4531         * modules/select (Depends-on): Add sys_time.
4532         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4533         some Windows platforms.
4534         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4535
4536 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4537
4538         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4539         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4540         an integer.
4541         * lib/fcntl.c (dupfd): Likewise.
4542         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4543
4544 2012-01-28  Bruno Haible  <bruno@clisp.org>
4545
4546         fcntl: Avoid compilation error on native Windows.
4547         * modules/fcntl (Depends-on): Add 'close'.
4548
4549 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4550
4551         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4552         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4553         pointer to an integer.
4554         * lib/poll.c (IsConsoleHandle): Likewise.
4555         * lib/isatty.c (IsConsoleHandle): Likewise.
4556
4557 2012-01-28  Jim Meyering  <meyering@redhat.com>
4558
4559         doc: clarify README-release
4560         * top/README-release: Clarify: you should make a point to have
4561         the latest stable versions of build tools in your PATH, and the
4562         reference to buildreq is solely for its list of tool names, not
4563         for its minimal-functional version numbers.
4564         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4565
4566         maint.mk: use more readable (yet functionally equivalent) quoting
4567         It is common to quote a single quote in a single quoted string like
4568         this:  '...'\''...'.  Unless you know the idiom, that looks like
4569         gibberish, so prefer to double-quote the string when possible.
4570         Then you can use a more readable, lone single quote: "...'..."
4571         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4572         "don't" is more readable than the equivalent 'don'\''t'.
4573         (sc_cast_of_x_alloc_return_value): Likewise.
4574         (sc_cast_of_alloca_return_value): Likewise.
4575         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4576         rather than '\'':'\''.
4577
4578 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4579
4580         stdalign: relax _Alignof and tighten _Alignas test
4581         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4582         as it was too strict: alignof must divide offsetof, but it need
4583         not equal offsetof.  Inspired by Joseph S. Myers's comment
4584         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4585         Conversely, tighten the _Alignas test a bit, as the resulting
4586         alignment must be exactly 8.
4587
4588 2012-01-27  Bruno Haible  <bruno@clisp.org>
4589
4590         stdalign: Document the last change.
4591         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4592
4593 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         stdalign: check that alignof and offsetof are consistent
4596         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4597         Problem reported for gnulib by Richard W.M. Jones in
4598         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4599
4600 2012-01-27  Jim Meyering  <meyering@redhat.com>
4601
4602         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4603         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4604         convert a sequence with gaps to the minimal containing range.
4605         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4606         * tests/test-update-copyright.sh: Test for this.
4607         The FSF confirmed it is ok to do this, assuming there is at
4608         least one significant change per year in the affected range:
4609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4610
4611 2012-01-26  Bruno Haible  <bruno@clisp.org>
4612
4613         pipe2: refine doc about thread-safety
4614         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4615         multithread-safety problem.
4616         * doc/glibc-functions/accept4.texi: Likewise.
4617
4618 2012-01-26  Bruno Haible  <bruno@clisp.org>
4619
4620         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4621         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4622         In the test program, include <fcntl.h>, for O_RDONLY.
4623
4624 2012-01-26  Eric Blake  <eblake@redhat.com>
4625
4626         pipe2: document lack of thread-safety in replacement
4627         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4628         issue in replacement.
4629         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4630         Based on a report by Eric Wong.
4631
4632 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4633             Bruno Haible  <bruno@clisp.org>
4634
4635         malloca: Avoid warnings on x86_64 mingw64.
4636         * lib/malloca.c: Include <stdint.h>.
4637         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4638         * modules/malloca (Depends-on): Add stdint.
4639         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4640
4641 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         obstack: remove __STDC__ conditionals
4644         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4645         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4646         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4647         m4/include_next.m4 as the only gnulib-maintained places that still
4648         refer to __STDC__.
4649
4650 2012-01-24  Bruno Haible  <bruno@clisp.org>
4651
4652         havelib: Modern quoting.
4653         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4654         the recent change to the GNU coding standards.
4655
4656 2012-01-24  Bruno Haible  <bruno@clisp.org>
4657
4658         stdint: Improve support for Android.
4659         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4660         Reported by Simon Josefsson <simon@josefsson.org>.
4661
4662 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4663
4664         doc: omit trailing empty lines from INSTALL etc.
4665         * doc/Makefile (INSTALL): Omit trailing empty lines.
4666         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4667         omit trailing empty lines.  This simplifies the build procedure.
4668
4669 2012-01-23  Jim Meyering  <meyering@redhat.com>
4670
4671         tests: avoid spurious warnings about gl_sockets_startup
4672         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4673         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4674         reporting a "statement with no effect".
4675         * tests/test-accept.c (main): Mark as "(void)".
4676         * tests/test-accept4.c (main): Likewise.
4677         * tests/test-bind.c (main): Likewise.
4678         * tests/test-connect.c (main): Likewise.
4679         * tests/test-getpeername.c (main): Likewise.
4680         * tests/test-getsockname.c (main): Likewise.
4681         * tests/test-getsockopt.c (main): Likewise.
4682         * tests/test-listen.c (main): Likewise.
4683         * tests/test-recv.c (main): Likewise.
4684         * tests/test-recvfrom.c (main): Likewise.
4685         * tests/test-send.c (main): Likewise.
4686         * tests/test-sendto.c (main): Likewise.
4687         * tests/test-setsockopt.c (main): Likewise.
4688         * tests/test-shutdown.c (main): Likewise.
4689
4690 2012-01-21  Bruno Haible  <bruno@clisp.org>
4691
4692         locale-fr.m4: Fix for Android.
4693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4694         failure of the test program on Bionic libc.
4695
4696 2012-01-21  Jim Meyering  <meyering@redhat.com>
4697
4698         bootstrap: fail when bootstrap_post_import_hook fails
4699         Otherwise, it's far too easy to miss diagnostics emitted
4700         between gnulib-tool's output and that of running configure.
4701         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4702
4703 2012-01-17  Jim Meyering  <meyering@redhat.com>
4704
4705         maint: enable sc_trailing_blank
4706         * build-aux/pmccabe.css: Remove trailing blanks.
4707         * doc/acl-cygwin.txt: Likewise.
4708         * doc/gnu-oids.texi: Likewise
4709         * cfg.mk: Enable sc_trailing_blank.
4710         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4711
4712 2012-01-17  Jim Meyering  <meyering@redhat.com>
4713
4714         maint: enable sc_prohibit_openat_without_use
4715         * cfg.mk: Enable sc_prohibit_openat_without_use.
4716         Exempt lib/selinux-at.c.
4717
4718 2012-01-17  Jim Meyering  <meyering@redhat.com>
4719
4720         maint: enable sc_prohibit_cloexec_without_use
4721         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4722         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4723
4724 2012-01-17  Jim Meyering  <meyering@redhat.com>
4725
4726         maint: enable sc_prohibit_intprops_without_use
4727         * cfg.mk: Enable sc_prohibit_intprops_without_use
4728         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4729
4730 2012-01-17  Jim Meyering  <meyering@redhat.com>
4731
4732         maint: enable sc_prohibit_hash_pjw_without_use
4733         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4734         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4735         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4736         following " (".
4737
4738 2012-01-17  Jim Meyering  <meyering@redhat.com>
4739
4740         maint: enable double-word-prohibiting rule
4741         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4742         Exempt three files.
4743
4744 2012-01-17  Jim Meyering  <meyering@redhat.com>
4745
4746         maint: remove empty lines at EOF, but excluding modules/*
4747         Apply syntax rules at home as well as abroad.  Most changes
4748         were induced by running this:
4749           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4750             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4751             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4752         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4753         Exempt modules/* and two binary files.
4754         Also exempt doc/INSTALL*, per request from Bruno Haible.
4755         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4756         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4757         * doc/Copyright/request-assign.future: Likewise.
4758         * doc/Copyright/request-disclaim.changes: Likewise.
4759         * doc/INSTALL: Likewise.
4760         * doc/INSTALL.ISO: Likewise.
4761         * doc/INSTALL.UTF-8: Likewise.
4762         * doc/acl-cygwin.txt: Likewise.
4763         * doc/acl-resources.txt: Likewise.
4764         * doc/fdl-1.2.texi: Likewise.
4765         * doc/fdl-1.3.texi: Likewise.
4766         * doc/fdl.texi: Likewise.
4767         * lib/argp-pin.c: Likewise.
4768         * lib/round.c: Likewise.
4769         * lib/unicase/u16-totitle.c: Likewise.
4770         * lib/unictype/block_test.c: Likewise.
4771         * lib/uninorm/canonical-decomposition.c: Likewise.
4772         * m4/README: Likewise.
4773         * m4/relocatable-lib.m4: Likewise.
4774         * tests/test-isnand-nolibm.c: Likewise.
4775         * tests/test-isnand.c: Likewise.
4776         * tests/uninorm/NormalizationTest.txt: Likewise.
4777
4778 2012-01-17  Jim Meyering  <meyering@redhat.com>
4779
4780         maint: add framework to run syntax-check rules against gnulib sources
4781         * cfg.mk: New file, to disable all currently-failing tests.
4782         We'll enable them one by one, as they are made to pass.
4783         * Makefile (sc_maint): New rule.
4784
4785 2012-01-21  Bruno Haible  <bruno@clisp.org>
4786
4787         stdint: Add support for Android.
4788         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4789         include the system's <stdint.h>.
4790         Reported by Simon Josefsson <simon@josefsson.org>.
4791
4792 2012-01-19  Jim Meyering  <meyering@redhat.com>
4793
4794         bootstrap: add bootstrap_post_import_hook
4795         Bison does still need something like the gnulib_mk_hook whose
4796         invocation I had to remove along with slurp in commit 767ccd40.
4797         Technically, we could get along without it, but doing so would
4798         have required living with a warning and a mandatory post-bootstrap
4799         automake rerun.
4800         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4801         (bootstrap_post_import_hook): New function.
4802         Invoke it after gnulib-tool --import and before autoreconf.
4803
4804 2012-01-18  Jim Meyering  <meyering@redhat.com>
4805
4806         gitlog-to-changelog: don't use "no_"-prefixed variable name
4807         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4808         to enable both --cluster and --no-cluster.  Change variable name,
4809         s/\$no_cluster/$cluster/, and reverse usage to match.
4810
4811         gitlog-to-changelog: use "||", not "or" in expressions
4812         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4813         expressions.
4814
4815 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4816
4817         gitlog-to-changelog: new option --no-cluster
4818         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4819         clustering of adjacent commit messages.
4820
4821 2012-01-17  Jim Meyering  <meyering@redhat.com>
4822
4823         maint: spell file systems with two words, not one
4824         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4825         two words, not one.
4826
4827 2012-01-16  Jim Meyering  <meyering@redhat.com>
4828
4829         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4830         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4831
4832 2012-01-16  Eric Blake  <eblake@redhat.com>
4833
4834         bootstrap: cater to autoconf 2.59
4835         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4836         is not available.
4837
4838         bootstrap: properly check for libtool
4839         * build-aux/bootstrap (libtoolize): Also run libtool when older
4840         usage is detected.
4841
4842 2012-01-15  Bruno Haible  <bruno@clisp.org>
4843
4844         Improve support for MSVC 9.
4845         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4846         clashes on MSVC.
4847         * lib/fcntl.in.h: Likewise.
4848         * lib/stdlib.in.h: Likewise.
4849         * lib/sys_stat.in.h: Likewise.
4850
4851 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4852
4853         gnupload: we hold the master copy of this script now
4854         For motivation and more information, see:
4855         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4856         * build-aux/gnupload: Make it clear in the heading comments that the
4857         master copy of this file is maintained by gnulib.  Since we are at
4858         it, bump its copyright year and ...
4859         ($scriptversion): ... the date in its version.
4860         ($usage): Patches and bug reports should be sent to the gnulib list,
4861         not the automake one.
4862         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4863         anymore.
4864
4865 2012-01-15  Bruno Haible  <bruno@clisp.org>
4866
4867         Fix module 'random'.
4868         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4869         initstate, setstate are declared.
4870
4871 2012-01-14  Bruno Haible  <bruno@clisp.org>
4872
4873         Tests for module 'random'.
4874         * modules/random-tests: New file.
4875         * tests/test-random.c: New file, based on tests/test-random_r.c.
4876
4877         New module 'random'.
4878         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4879         declarations.
4880         * lib/random.c: New file, based on glibc/stdlib/random.c.
4881         * m4/random.m4: New file.
4882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4883         HAVE_RANDOM.
4884         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4885         * modules/random: New file.
4886         * config/srclist.txt: Add an entry for random.c.
4887         * doc/posix-functions/random.texi: Mention the 'random' module.
4888         * doc/posix-functions/initstate.texi: Likewise.
4889         * doc/posix-functions/setstate.texi: Likewise.
4890         * doc/posix-functions/srandom.texi: Likewise.
4891
4892 2012-01-12  Bruno Haible  <bruno@clisp.org>
4893
4894         random_r: Use common idioms.
4895         * lib/random_r.c: Include <stdlib.h> first.
4896
4897         random_r: Override incompatible API on AIX, OSF/1.
4898         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4899         Override the system function if REPLACE_RANDOM_R is 1.
4900         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4901         and OSF/1, set REPLACE_RANDOM_R.
4902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4903         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4904         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4905         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4906         * doc/glibc-functions/random_r.texi: Likewise.
4907         * doc/glibc-functions/setstate_r.texi: Likewise.
4908
4909         random_r: Support for MSVC 9.
4910         * lib/random_r.c: Include stdint.h, not inttypes.h.
4911
4912 2012-01-12  Eric Blake  <eblake@redhat.com>
4913
4914         inet_ntop: guard extra work by IF_LINT
4915         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4916         better code generation when not checking for warnings.
4917         Suggested by Paul Eggert and Jim Meyering.
4918
4919         strptime: fix regression on mingw
4920         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4921         Fix regression.  Reported by Bruno Haible.
4922
4923 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4924             Bruno Haible  <bruno@clisp.org>
4925
4926         copy-file: add error-code-returning variant.
4927         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4928         (qcopy_file_preserving): New declaration.
4929         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4930         copy_file_preserving. Change return type to 'int'. Don't emit an error
4931         message here.
4932         (copy_file_preserving): New function.
4933         * tests/test-copy-file.c: Include <stdlib.h>.
4934         (main): Test qcopy_file_preserving if the environment variable
4935         NO_STDERR_OUTPUT is set.
4936         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4937         with NO_STDERR_OUTPUT
4938         * tests/test-copy-file-2.sh: Likewise.
4939
4940 2012-01-10  Bruno Haible  <bruno@clisp.org>
4941
4942         copy-file: Use 'quote' module consistently.
4943         * lib/copy-file.c (copy_file_preserving): Use quote().
4944
4945         copy-file: Refactor.
4946         * lib/copy-file.c: Include quote.h.
4947         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4948         message here.
4949         * modules/copy-file (Depends-on): Add quote.
4950
4951         acl: Export qcopy_acl.
4952         * lib/acl.h (qcopy_acl): New declaration.
4953         * lib/copy-acl.c (qcopy_acl): Make non-static.
4954
4955         acl: Rename a local variable.
4956         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4957
4958         acl: Align return values of copy_acl and qcopy_acl.
4959         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4960         maybe < -1.
4961
4962 2012-01-11  Eric Blake  <eblake@redhat.com>
4963
4964         strptime: silence gcc warnings
4965         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4966         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4967         Reported by Daniel P. Berrange.
4968
4969         inet_ntop: silence gcc warning
4970         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4971         Reported by Daniel P. Berrange.
4972
4973 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4974
4975         getloadavg test: skip the test on GNU/Linux without /proc mounted
4976         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4977         file.  When /proc is not mounted, it always fails with ENOENT.
4978         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4979         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4980
4981 2012-01-10  Bruno Haible  <bruno@clisp.org>
4982
4983         regex: Avoid link error on MSVC 9.
4984         * modules/regex (Depends-on): Add wctype.
4985
4986 2012-01-10  Bruno Haible  <bruno@clisp.org>
4987
4988         doc: Mention --with-tests option.
4989         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4990         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4991         --with-tests.
4992         Reported by Reuben Thomas.
4993
4994 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4995
4996         users.txt: order package names lexicographically.
4997         * users.txt: Order package names lexicographically.
4998
4999 2012-01-10  Jim Meyering  <meyering@redhat.com>
5000
5001         maint.mk: fix description in comment
5002         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5003
5004         ignore-value: remove deprecated ignore_ptr function
5005         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5006         * NEWS: Note this.
5007
5008 2012-01-09  Jim Meyering  <meyering@redhat.com>
5009
5010         test-init.sh: avoid a subshell
5011         * tests/test-init.sh: Remove protective subshell.
5012         Suggested by Bernhard Voelker.  While a subshell is normally
5013         required to protect against older shells (Solaris, FreeBSD) that
5014         warn about a missing program before performing redirection, the
5015         shell-selection tests performed by init.sh probably exclude any
5016         offending shell.
5017
5018 2012-01-08  Bruno Haible  <bruno@clisp.org>
5019
5020         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5021         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5022         variable.
5023
5024 2012-01-08  Bruno Haible  <bruno@clisp.org>
5025
5026         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5027         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5028         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5029         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5030         macro.
5031         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5033         * lib/spawn_faction_addopen.c: Add workaround implementation if
5034         HAVE_WORKING_POSIX_SPAWN.
5035         * modules/spawn (Makefile): Substitute
5036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5037         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5038         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5039         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5040         (Depends-on): Update conditions.
5041         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5042         the Solaris 11 bug.
5043
5044 2012-01-08  Bruno Haible  <bruno@clisp.org>
5045
5046         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5047         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5048         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5049         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5050         macro.
5051         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5053         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5054         HAVE_WORKING_POSIX_SPAWN.
5055         * modules/spawn (Makefile): Substitute
5056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5057         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5058         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5060         (Depends-on): Update conditions.
5061         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5062         the Solaris 11 bug.
5063
5064 2012-01-08  Bruno Haible  <bruno@clisp.org>
5065
5066         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5067         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5068         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5070         HAVE_WORKING_POSIX_SPAWN.
5071         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5072         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5074         * lib/spawn_faction_addclose.c: Add workaround implementation if
5075         HAVE_WORKING_POSIX_SPAWN.
5076         * modules/spawn (Makefile): Substitute
5077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5078         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5079         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5081         (Depends-on): Update conditions.
5082         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5083         the Solaris 11 bug.
5084
5085 2012-01-08  Bruno Haible  <bruno@clisp.org>
5086
5087         doc: Update for Solaris 11 2011-11.
5088         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5089         * m4/printf.m4: Update comments.
5090
5091 2012-01-08  Bruno Haible  <bruno@clisp.org>
5092
5093         mktime: Avoid compilation error on Solaris 11.
5094         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5095
5096 2012-01-08  Bruno Haible  <bruno@clisp.org>
5097
5098         doc: Small fix.
5099         * doc/posix-headers/nl_types.texi: Correct platforms list.
5100
5101 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5102
5103         Add lgpl-3.0 module.
5104         * MODULES.html.sh (Support for building documentation): Add
5105         lgpl-3.0.
5106         * modules/lgpl-3.0: New file.
5107
5108 2012-01-08  Jim Meyering  <meyering@redhat.com>
5109
5110         select.c: indent with spaces, not TABs
5111         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5112
5113 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5114
5115         quotearg: do not use grave accent for left quote
5116         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5117         locale_quoting_style.
5118         (quotearg_buffer_restyled): Fix example.
5119         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5120
5121 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5122
5123         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5124         Most programs do not have translation catalogs for English and much
5125         less separate catalogs for British and American English.  Drop the
5126         suggestion to translators about these two, and provide it
5127         automatically for Unicode locales.  Like most programs, even those
5128         using American English, we use single quotation marks.  This conflicts
5129         with the American typographic convention, but works better when you
5130         cite the entire error message within double quotes.  It also tries not
5131         to clash with established practice and with what non-gnulib programs
5132         will usually do.
5133         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5134         using an UTF-8 or GB-18030 locale.  The list of other locales with
5135         quotes was provided by Bruno Haible.
5136         (quotearg_buffer_restyled): Adjust instructions to translators.
5137         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5138         text, since this would be wrong when using Unicode.
5139         * modules/quotearg: Depend on c-strcaseeq.
5140
5141 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5142
5143         quotearg: fix Wikipedia link
5144         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5145
5146 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5147
5148         Fix for mingw with MSVC9.
5149         * m4/ld-version-script.m4: Check that compiler rejects version
5150         scripts with syntax errors.  Reported by Bruno Haible
5151         <bruno@clisp.org>.
5152
5153 2012-01-06  Bruno Haible  <bruno@clisp.org>
5154
5155         Talk about "native Windows API", not "Woe32".
5156         * lib/accept4.c: Update comments to mention native Windows.
5157         * lib/execute.c: Likewise.
5158         * lib/fatal-signal.c: Likewise.
5159         * lib/localcharset.c: Likewise.
5160         * lib/nanosleep.c: Likewise.
5161         * lib/nl_langinfo.c: Likewise.
5162         * lib/pclose.c: Likewise.
5163         * lib/pipe-filter-gi.c: Likewise.
5164         * lib/pipe-filter-ii.c: Likewise.
5165         * lib/pipe.c: Likewise.
5166         * lib/pipe2.c: Likewise.
5167         * lib/popen.c: Likewise.
5168         * lib/progreloc.c: Likewise.
5169         * lib/relocatable.c: Likewise.
5170         * lib/sigaction.c: Likewise.
5171         * lib/sigprocmask.c: Likewise.
5172         * lib/spawn-pipe.h: Likewise.
5173         * lib/spawn-pipe.c: Likewise.
5174         * lib/spawni.c: Likewise.
5175         * lib/stat-time.h: Likewise.
5176         * lib/w32spawn.h: Likewise.
5177         * tests/test-isatty.c: Likewise.
5178         * lib/config.charset: More comments.
5179         * doc/gnulib-intro.texi: Mention native Windows.
5180         * doc/posix-functions/_Exit_C99.texi: Likewise.
5181         * doc/posix-headers/fcntl.texi: Likewise.
5182
5183 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5184
5185         argp: Avoid crash if translator uses % characters in a translation.
5186         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5187         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5188
5189 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         doc: C11 and C++11 are now official
5192         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5193         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5194         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5195         * modules/stdalign:
5196         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5197
5198 2012-01-06  Bruno Haible  <bruno@clisp.org>
5199
5200         uc-is-grapheme-break tests: Tweak.
5201         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5202         message.
5203
5204 2012-01-06  Bruno Haible  <bruno@clisp.org>
5205
5206         test-init.sh: correct the test for diff -u
5207         * tests/test-init.sh: Also redirect stdout to /dev/null.
5208
5209 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         Use ', not `, for quoting output.
5212         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5213         (print_changelog_deltas, get_tool_versions, main program):
5214         * build-aux/git-version-gen:
5215         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5216         * build-aux/move-if-change (help):
5217         * build-aux/useless-if-before-free (usage, main program):
5218         * check-module (parse_module_file, usage)
5219         (find_included_lib_files, check_module):
5220         * lib/argmatch.c (main) [TEST]:
5221         * lib/argp-help.c (_help):
5222         * lib/getopt1.c (main) [TEST]:
5223         * lib/git-merge-changelog.c (usage):
5224         * lib/xstrtol-error.c (xstrtol_error):
5225         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5226         * m4/argz.m4 (gl_FUNC_ARGZ):
5227         * m4/bison.m4 (gl_BISON):
5228         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5229         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5230         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5231         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5232         * m4/gc-random.m4 (gl_GC_RANDOM):
5233         * m4/intl.m4 (gt_CHECK_DECL):
5234         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5236         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5238         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5239         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5240         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5241         * tests/test-dirname.c (main):
5242         * tests/test-getpass.c (main):
5243         * tests/test-iconvme.c (main):
5244         * tests/test-parse-datetime.c (LOG):
5245         * tests/test-xstrtoimax.sh:
5246         * tests/test-xstrtol.sh:
5247         * tests/test-xstrtoll.sh:
5248         * tests/test-xstrtoumax.sh:
5249         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5250         * top/GNUmakefile (abort-due-to-no-makefile):
5251         Quote 'like this', not `like this', as per the recent change to
5252         the GNU coding standards.
5253
5254 2012-01-05  Bruno Haible  <bruno@clisp.org>
5255
5256         strtoimax: Don't force a replacement on systems where intmax_t is int.
5257         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5258         'intmax_t' is not larger than 'int'.
5259         Reported by Pádraig Brady <P@draigBrady.com>.
5260
5261 2012-01-05  Bruno Haible  <bruno@clisp.org>
5262
5263         doc: Mention NetBSD bugs.
5264         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5265         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5266
5267 2012-01-05  Bruno Haible  <bruno@clisp.org>
5268
5269         strtoumax tests: Enhance tests.
5270         * tests/test-strtoumax.c (main): Add tests for large values.
5271
5272 2012-01-05  Bruno Haible  <bruno@clisp.org>
5273
5274         strtoimax: Work around AIX 5.1 bug.
5275         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5276         definition.
5277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5278         Set HAVE_STRTOIMAX.
5279         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5280         REPLACE_STRTOIMAX.
5281         * modules/inttypes-incomplete (Makefile.am): Substitute
5282         REPLACE_STRTOIMAX.
5283         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5284         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5285         (Depends-on): Update conditions.
5286         * tests/test-strtoimax.c (main): Add tests for large values.
5287         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5288
5289 2012-01-05  Bruno Haible  <bruno@clisp.org>
5290
5291         inttypes: Modernize.
5292         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5293         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5294         (Makefile.am): Update inttypes.h rule.
5295
5296 2012-01-05  Jim Meyering  <meyering@redhat.com>
5297
5298         init.sh: don't waste a subshell just to redirect stderr
5299         * tests/init.sh: In testing for diff -u and diff -c, use a
5300         stderr-redirecting exec inside `...` rather than a subshell.
5301
5302         test-init.sh: avoid failure on HP-UX 11.00
5303         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5304         resolves to diff -c or cmp.  Reported by Bruno Haible.
5305
5306 2012-01-05  Bruno Haible  <bruno@clisp.org>
5307
5308         Tests for module 'strtoull'.
5309         * modules/strtoull-tests: New file.
5310         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5311
5312 2012-01-05  Bruno Haible  <bruno@clisp.org>
5313
5314         Tests for module 'strtoll'.
5315         * modules/strtoll-tests: New file.
5316         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5317
5318 2012-01-05  Bruno Haible  <bruno@clisp.org>
5319
5320         Tests for module 'strtoul'.
5321         * modules/strtoul-tests: New file.
5322         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5323
5324 2012-01-05  Bruno Haible  <bruno@clisp.org>
5325
5326         Tests for module 'strtol'.
5327         * modules/strtol-tests: New file.
5328         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5329
5330 2012-01-04  Jim Meyering  <meyering@redhat.com>
5331
5332         test-init.sh: accommodate Solaris 5.10's different diff -u output
5333         * tests/test-init.sh: Also exempt @@ lines from the comparison
5334         of diff output, since Solaris 5.10 and GNU diff formats differ.
5335         Reported by Stefano Lattarini.
5336
5337 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5338
5339         test-posixtm: don't assume signed integer wraparound
5340         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5341         after signed integer overflow.  Inspired by (though it may not
5342         fix) Bruno Haible's bug report in
5343         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5344
5345         Spell out "Windows 9x" and "Windows XP".
5346         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5347         "Windows 9x" and "WinXP" with "Windows XP".
5348
5349 2012-01-04  Jim Meyering  <meyering@redhat.com>
5350
5351         test-vc-list-files-cvs.sh: remove obsolete comment
5352         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5353         double exit.  Now that's all encapsulated via skip_ and Exit.
5354
5355 2012-01-04  Bruno Haible  <bruno@clisp.org>
5356
5357         Talk about "native Windows API", not "Win32".
5358         * lib/classpath.c: Update comments to mention native Windows.
5359         * lib/csharpexec.c: Likewise.
5360         * lib/dup2.c: Likewise.
5361         * lib/error.c: Likewise.
5362         * lib/fcntl.c: Likewise.
5363         * lib/filename.h: Likewise.
5364         * lib/findprog.c: Likewise.
5365         * lib/get-rusage-as.c: Likewise.
5366         * lib/get-rusage-data.c: Likewise.
5367         * lib/getpagesize.c: Likewise.
5368         * lib/javaexec.c: Likewise.
5369         * lib/msvc-inval.c: Likewise.
5370         * lib/msvc-nothrow.c: Likewise.
5371         * lib/nanosleep.c: Likewise.
5372         * lib/nonblocking.c: Likewise.
5373         * lib/printf-parse.c: Likewise.
5374         * lib/setlocale.c: Likewise.
5375         * lib/sigaction.c: Likewise.
5376         * lib/strerror_r.c: Likewise.
5377         * lib/tmpdir.c: Likewise.
5378         * lib/vasnprintf.c: Likewise.
5379         * lib/w32spawn.h: Likewise.
5380         * lib/waitpid.c: Likewise.
5381         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5382         * m4/locale-ar.m4: Likewise.
5383         * m4/locale-fr.m4: Likewise.
5384         * m4/locale-ja.m4: Likewise.
5385         * m4/locale-tr.m4: Likewise.
5386         * m4/locale-zh.m4: Likewise.
5387         * m4/printf.m4: Likewise.
5388         * tests/test-cloexec.c: Likewise.
5389         * tests/test-copy-acl.sh: Likewise.
5390         * tests/test-copy-file.sh: Likewise.
5391         * tests/test-file-has-acl.sh: Likewise.
5392         * tests/test-set-mode-acl.sh: Likewise.
5393         * tests/test-dup-safer.c: Likewise.
5394         * tests/test-dup2.c: Likewise.
5395         * tests/test-dup3.c: Likewise.
5396         * tests/test-fcntl.c: Likewise.
5397         * tests/test-nonblocking-pipe.h: Likewise.
5398         * tests/test-nonblocking-socket.h: Likewise.
5399         * tests/test-pipe.c: Likewise.
5400         * tests/test-pipe2.c: Likewise.
5401         * tests/test-spawn-pipe-child.c: Likewise.
5402         * doc/acl-resources.txt: Likewise.
5403         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5404         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5405         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5406         * lib/localcharset.c: Update comments to mention native Windows.
5407         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5408         * lib/localename.c: Likewise.
5409         * lib/progreloc.c: Likewise.
5410         * lib/relocatable.c: Likewise.
5411         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5412         (windows_compute_revents): Renamed from win32_compute_revents.
5413         (windows_compute_revents_socket): Renamed from
5414         win32_compute_revents_socket.
5415         * lib/select.c: Update comments to mention native Windows.
5416         (windows_poll_handle): Renamed from win32_poll_handle.
5417         * m4/threadlib.m4: Update comments to mention native Windows.
5418         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5419         --enable-threads=windows instead of --enable-threads=win32. Set
5420         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5421         * lib/glthread/lock.h: Update comments to mention native Windows.
5422         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5423         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5424         USE_WIN32_THREADS.
5425         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5426         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5427         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5428         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5429         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5430         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5431         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5432         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5433         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5434         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5435         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5436         * tests/test-tls.c: Likewise.
5437         Rationale:
5438         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5439         on both 32-bit and 64-bit Windows systems.
5440         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5441         line of distinction is between "native Windows" on one side and Unix/
5442         POSIX systems on the other side. More details in
5443         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5444         Suggested by Paul Eggert.
5445
5446 2012-01-03  Bruno Haible  <bruno@clisp.org>
5447
5448         isatty: Support for MSVC 9.
5449         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5450         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5451         (_isatty_nothrow): New function.
5452         (isatty): Use it instead of _isatty.
5453         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5454         * lib/poll.c (IsConsoleHandle): Likewise.
5455         * lib/select.c (IsConsoleHandle): Likewise.
5456         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5457         (gl_PREREQ_ISATTY): New macro.
5458         * modules/isatty (Depends-on): Add msvc-inval.
5459         (configure.ac): Invoke gl_PREREQ_ISATTY.
5460
5461 2012-01-03  Jim Meyering  <meyering@redhat.com>
5462
5463         maint.mk: remove temporary transition aid from over 1.5 years ago
5464         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5465         purpose was to aid in the transition (avoiding silent malfunction)
5466         from that old name to the new _sc_search_regexp.  This shim was
5467         added by commit 219c504b.
5468
5469         init.sh: do not try to accommodate compare arguments starting with "-"
5470         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5471         compare arguments that start with "-".  Besides, we do not worry
5472         about this when invoking diff or cmp; why start now with sed?
5473         Using "--" to separate options from argument would trigger sed
5474         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5475         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5476
5477 2012-01-02  Bruno Haible  <bruno@clisp.org>
5478
5479         Enhance tests for module 'isatty'.
5480         * modules/isatty-tests (Depends-on): Add pipe-posix.
5481         * tests/test-isatty.c: Include <fcntl.h>.
5482         (DEV_NULL): New macro.
5483         (main): Test the resut of isatty() also on regular files, pipes, and
5484         /dev/null.
5485
5486         New module 'isatty'.
5487         * lib/unistd.in.h (isatty): New declaration.
5488         * lib/isatty.c: New file, based on an idea of
5489         Bastien Roucariès <roucaries.bastien@gmail.com>.
5490         * m4/isatty.m4: New file.
5491         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5492         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5493         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5494         REPLACE_ISATTY.
5495         * modules/isatty: New file.
5496         * doc/posix-functions/isatty.texi: Mention the new module.
5497         Suggested by Paolo Bonzini.
5498
5499 2012-01-02  Bruno Haible  <bruno@clisp.org>
5500
5501         canonicalize: Tweak 2011-12-29 commit.
5502         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5503         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5504
5505 2012-01-02  Jim Meyering  <meyering@redhat.com>
5506
5507         gitlog-to-changelog: describe input syntax in --help output
5508         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5509
5510         gitlog-to-changelog: fix typo in --help: show backslash before email @
5511         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5512         in sources, but not in actual output.
5513
5514 2011-12-30  Jim Meyering  <meyering@redhat.com>
5515
5516         gitlog-to-changelog: don't malfunction when name contains %-directive
5517         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5518         in a name string cause trouble.  E.g., with a user name of "%s",
5519         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5520
5521 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5522
5523         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5524         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5525         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5526         the "  (tiny change)" notation that is appended to the standard
5527         ChangeLog "date  name  email" header line.
5528
5529 2012-01-01  Jim Meyering  <meyering@redhat.com>
5530
5531         test-framework-sh: init.sh: fix "make dist" failure
5532         When using gnulib-tool's --with-tests option and any module that
5533         depends on test-framework-sh, "make dist" would fail due to the
5534         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5535         in the gltests directory, and not in the gllib/ directory.
5536         One way to work around that is to move the EXTRA_DIST += init.sh
5537         from the primary module to the -tests one:
5538         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5539         * modules/test-framework-sh (Makefile.am): ...not here.
5540         Reported by Tom G. Christensen in
5541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5542
5543         version-etc: update copyright year reported by --version
5544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5545
5546 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5547
5548         canonicalize: only stat() if required
5549         * lib/canonicalize.c (canonicalize_filename_mode):
5550         Avoid calling l?stat() when both CAN_MISSING,
5551         and CAN_NOLINKS are set, as we neither need
5552         to resolve symlinks or test component existence.
5553
5554 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5555
5556         doc: cover st_ino issues once; add OpenVMS etc.
5557         * doc/posix-functions/stat.texi (stat):
5558         * doc/posix-functions/lstat.texi (lstat):
5559         * doc/posix-functions/fstatat.texi (fstatat):
5560         * doc/posix-functions/fstat.texi (fstat):
5561         Move general 'struct stat' stuff to sys_stat.texi,
5562         leaving behind a pointer.
5563         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5564         Merge duplicate info about 'struct stat' problems into here.
5565         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5566         and suggest partial workarounds.
5567
5568         same-inode: port to OpenVMS
5569         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5570         three st_ino values.
5571
5572 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5573
5574         canonicalize: fix references to stat() and lstat()
5575         * lib/canonicalize.c (canonicalize_filename_mode):
5576         Ensure references always resolve to a replacement
5577         function if required (even via a macro).
5578
5579 2011-12-30  Jim Meyering  <meyering@redhat.com>
5580
5581         gitlog-to-changelog: remove a little duplication
5582         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5583         rather than twice.
5584
5585 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5586
5587         canonicalize: add support for not resolving symlinks
5588         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5589         indicate we don't want to follow symlinks.  Also
5590         provide CAN_MODE_MASK to aid setting these existing
5591         mutually exclusive values.
5592         * lib/canonicalize.c (canonicalize_filename_mode):
5593         Extract the flags from can_mode parameter, which
5594         are currently just used to select between stat()
5595         and lstat().  Also ensure that mutually exclusive
5596         values are flagged immediately as invalid.
5597         * tests/test-canonicalize.c: Verify symlinks are
5598         not followed, and that invalid flag combinations
5599         are diagnosed.
5600
5601 2011-12-25  Jim Meyering  <meyering@redhat.com>
5602
5603         gitlog-to-changelog: do not clump multi-paragraph entries
5604         Identical header lines (date,name,email+coauthors) are suppressed,
5605         thus putting all entries with those same characteristics under
5606         a single header.  However, when a log entry consists of two or
5607         more paragraphs, it may not be clear where it starts and ends.
5608         This change makes it so that such an entry is always separated
5609         from others by a header line, even when that header would
5610         otherwise be suppressed.
5611         * build-aux/gitlog-to-changelog: Implement the above.
5612         Inspired by a related request from Stefano Lattarini in
5613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5614
5615 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5616
5617         announce-gen: fix `cmd' typo in diagnostic
5618         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5619         diagnostic: a missing '$' meant that the command was not output.
5620
5621 2011-12-23  Jim Meyering  <meyering@redhat.com>
5622
5623         test-framework-sh: distribute init.sh
5624         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5625         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5626         fail due to the lack of init.sh.
5627
5628         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5629         * modules/atexit-tests: Rather than listing tests/init.sh,
5630         now that there's a module for it, simply depend on that new module.
5631         * modules/closein-tests: Likewise.
5632         * modules/exclude-tests: Likewise.
5633         * modules/getcwd-tests: Likewise.
5634         * modules/perror-tests: Likewise.
5635         * modules/pread-tests: Likewise.
5636         * modules/pwrite-tests: Likewise.
5637         * modules/vc-list-files-tests: Likewise.
5638         * modules/verify-tests: Likewise.
5639         * modules/xalloc-die-tests: Likewise.
5640         * modules/xstrtoimax-tests: Likewise.
5641         * modules/xstrtol-tests: Likewise.
5642         * modules/xstrtoll-tests: Likewise.
5643         * modules/xstrtoumax-tests: Likewise.
5644         * modules/yesno-tests: Likewise.
5645
5646 2011-12-22  Jim Meyering  <meyering@redhat.com>
5647
5648         test-framework-sh: add minimal tests of init.sh's compare function
5649         * modules/test-framework-sh-tests: New file.
5650         * tests/test-init.sh: New file.
5651
5652         test-framework-sh: new module
5653         * modules/test-framework-sh: New file.
5654         * MODULES.html.sh (Support for maintaining and releasing projects):
5655         List it.
5656
5657         init.sh: do not emit simulated diff output to stderr
5658         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5659
5660 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5661
5662         .gitignore: ignore gnulib.dvi and regex.info
5663         * doc/.gitignore:add gnulib.dvi and regex.info
5664
5665 2011-12-22  Jim Meyering  <meyering@redhat.com>
5666
5667         init.sh: correct previous change
5668         * tests/init.sh (compare): My previous change was wrong.
5669         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5670
5671         init.sh: avoid unwarranted test failure when using "set -e"
5672         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5673         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5674         a use like "compare exp out" would get evoke an unconditional failure.
5675
5676 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5677
5678         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5679         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5680         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5681         autoreconf that did not.
5682         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5683         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5684
5685 2011-12-17  Jim Meyering  <meyering@redhat.com>
5686
5687         bootstrap: remove some now-unneeded code
5688         This script arose back when gnulib-tool was young.
5689         Since then, it has seen improvements that render much of this
5690         script unnecessary.  In particular, it can now make symlinks
5691         to the files it uses.  Also, I no longer see as much value in
5692         marking files as read-only via comments.
5693         If you relied on the symlink-creation feature of the preceding
5694         version of this script, you can get most of that functionality
5695         by adding the --symlink option to the definition of
5696         gnulib_tool_option_extras in your bootstrap.conf file.
5697         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5698         Run autopoint and libtoolize *before* gnulib-tool.
5699         After it, run an abbreviated autoreconf, rather than a loop around
5700         all tools.
5701         (slirp, bt_mark_as_generated): Remove functions.
5702
5703 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5704
5705         ftoastr: fix typo
5706         * lib/ftoastr.h: Fix misspelling in comment.
5707
5708 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5709
5710         * top/README-release: fix punctuation.
5711
5712 2011-12-17  Jim Meyering  <meyering@redhat.com>
5713
5714         bootstrap: correct the recent buildreq change
5715         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5716         had no effect.
5717         * build-aux/bootstrap (buildreq): Bracket each search term with
5718         "*...*", so that the shell "case" statement works as intended.
5719         Add comments.
5720
5721 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5722
5723         build: let bootstrap resort to wget when downloading .po files
5724         * build-aux/bootstrap (download_po_files): Fallback to wget when
5725         downloading the .po files via rsync fails.  This is necessary to
5726         bootstrap from behind a strict firewall.
5727
5728 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         stdint: don't assume C++11 when compiling with g++
5731         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5733         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5734         work also in C++ before C++11, as that improperly inhibits
5735         generating a substitute stdint.h for that case.
5736
5737 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         alloca: protect comment from gnulib-tool
5740         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5741         that gnulib-tool doesn't think it's a license, and munge it to
5742         say "GCC version 3".
5743
5744 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5745
5746         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5747         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5748         $(abs_top_builddir) instead of $(top_builddir).
5749
5750 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5751
5752         strftime-tests: also test nanoseconds
5753         * tests/test-strftime.c (T): Add a test of %N.
5754
5755 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5756
5757         inttypes, stdint: add C++11 support
5758         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5759         when including inttypes.h and stdint.h.  Support this change to
5760         the standard.
5761         * doc/posix-headers/inttypes.texi (inttypes.h):
5762         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5763         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5764         Define if not defined already, for the benefit of pre-C++11 hosts.
5765         Define the standard format macros (e.g., PRId8) always.
5766         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5767         Likewise, if __cpluspus.  Define the standard constant and limit
5768         macros (e.g., INT8_C, INT8_MAX) always.
5769         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5770         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5771         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5772         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5773         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5774         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5775         Likewise.
5776
5777 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5778
5779         nonblocking tests: Fix test failure on Linux/PPC.
5780         Suggested by Prerna Saxena in
5781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5782         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5783         Set to 1100000.
5784
5785 2011-12-12  Jim Meyering  <meyering@redhat.com>
5786
5787         argmatch: don't hard-code `' when listing valid option arguments
5788         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5789         use the quote function to add quotes.  Use fputs rather than
5790         fprintf for the format string with no format directive.
5791
5792 2011-12-07  Eric Blake  <eblake@redhat.com>
5793
5794         bootstrap: detect tools required by gnulib-tool
5795         * build-aux/bootstrap (buildreq): Provide minimum implicit
5796         dependencies.
5797         * DEPENDENCIES: Mention patch as a prereq.
5798
5799 2011-12-04  Bruno Haible  <bruno@clisp.org>
5800
5801         sethostname: Port to Windows platforms.
5802         * lib/sethostname.c: Provide an alternate implementation for Windows
5803         platforms.
5804         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5805         (main): Skip the test if sethostname() fails with EPERM. On Windows
5806         platforms, don't check the result of gethostname().
5807
5808 2011-12-04  Bruno Haible  <bruno@clisp.org>
5809             Jim Meyering  <meyering@redhat.com>
5810
5811         tests: Avoid spurious error message on platforms without mktemp program.
5812         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5813
5814 2011-12-04  Bruno Haible  <bruno@clisp.org>
5815
5816         sethostname: Fix documentation.
5817         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5818         "not fixed" section.
5819
5820 2011-12-03  Bruno Haible  <bruno@clisp.org>
5821
5822         gnulib-tool: Verify that the License field is present and non-empty.
5823         * gnulib-tool (func_get_license_raw): New function, extracted from
5824         func_get_license.
5825         (func_get_license): Use it. Warn if the module is not a test module and
5826         has no license.
5827         Suggested by Jim Meyering.
5828
5829 2011-12-03  Bruno Haible  <bruno@clisp.org>
5830
5831         sethostname tests: Fix link error on mingw.
5832         * tests/test-sethostname1.c: New file, extracted from
5833         tests/test-sethostname.c.
5834         * tests/test-sethostname2.c: New file, extracted from
5835         tests/test-sethostname.c.
5836         * tests/test-sethostname.c: Remove file.
5837         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5838         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5839         (Depends-on): Add gethostname.
5840         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5841         Link the latter with $(GETHOSTNAME_LIB).
5842
5843         sethostname tests: Fix compilation error on mingw.
5844         * tests/test-sethostname.c: Don't include <sys/types.h>.
5845         (geteuid): Use a dummy value without uid_t.
5846         * modules/sethostname-tests (Depends-on): Remove sys_types.
5847
5848         sethostname tests: Avoid a gcc warning.
5849         * tests/test-sethostname.c (main): Remove an unused variable.
5850
5851         Tweak last commit.
5852         * modules/sethostname-tests (Files): Sort by decreasing importance.
5853         (configure.ac): Check for geteuid.
5854         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5855         the test when there's nothing to test. Drop an unnecessary cast.
5856         Improve an error message. Verify that the final sethostname() call
5857         succeeds.
5858
5859 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5860
5861         Add a test suite for the sethostname module.
5862         * modules/sethostname-tests: New file.  A test program
5863         for the sethostname module.
5864         * tests/test-sethostname.c: Likewise.
5865
5866 2011-12-03  Bruno Haible  <bruno@clisp.org>
5867
5868         Tweak last commit.
5869         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5870         Fix preprocessor directives indentation. Fix typos.
5871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5872         * modules/unistd (Makefile): Likewise.
5873
5874 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5875
5876         Integrate the sethostname module into unistd.
5877         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5878         into the unistd.h header.
5879         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5880         preprocessor directives.
5881         * modules/unistd: Setup the Makefile substitutions of the
5882         SETHOSTNAME preprocessor directives.
5883
5884 2011-12-03  Bruno Haible  <bruno@clisp.org>
5885
5886         Tweak last commit.
5887         * lib/sethostname.c: Don't include <string.h>.
5888         (sethostname): No need to copy the argument string to the stack. Don't
5889         call clearerr. Preserve errno when fprintf failed.
5890         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5891         Don't invoke AC_REPLACE_FUNCS.
5892         * modules/sethostname (Link): Remove empty section.
5893         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5894         failure problem.
5895
5896 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5897
5898         New module 'sethostname'.
5899         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5900         for systems that lack it.
5901         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5902         sethostname declaration and function.
5903         * modules/sethostname: New file.  Define the sethostname module.
5904
5905 2011-12-03  Bruno Haible  <bruno@clisp.org>
5906
5907         Tweak last commit.
5908         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5909
5910 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5911
5912         Split the HOST_NAME_MAX detection into a separate m4 macro.
5913         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5914         macro so it can be used by the pending sethostname module.
5915
5916 2011-12-03  Bruno Haible  <bruno@clisp.org>
5917
5918         Fix module descriptions syntax.
5919         * modules/argv-iter (License): Fix syntax.
5920         * modules/di-set (License): Likewise.
5921         * modules/ino-map (License): Likewise.
5922         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5923
5924 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5925
5926         stdalign: port to Clang 3.0
5927         Problem reported by Simon Josefsson in
5928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5929         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5930         which has <stdalign.h> but which does not define alignof.
5931         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5932
5933 2011-12-01  Eric Blake  <eblake@redhat.com>
5934
5935         mktempd: silence dd usage
5936         * build-aux/mktempd (rand_bytes): Silence dd.
5937
5938 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5939
5940         manywarnings: Don't mention gcc version in docstring.
5941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5942         Jim Meyering <meyering@redhat.com>.
5943
5944 2011-11-30  Jim Meyering  <meyering@redhat.com>
5945
5946         hash: mark a few floating point constants with "f" suffix
5947         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5948         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5949         floating point constants with "f", since they're destined to be
5950         saved/used as "float"s.
5951
5952 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5953
5954         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5955         * tests/test-float.c (test_long_double): Correct and re-enable the
5956         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5957
5958 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5959
5960         Avoid subtracting two pointers that don't point into the same block.
5961         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5962         only pointers into the same memory block are subtracted. We cannot
5963         assume that sizeof (ptrdiff_t) == sizeof (void *).
5964
5965 2011-11-29  Eric Blake  <eblake@redhat.com>
5966
5967         maint.mk: add syntax check for use of compare from init.sh
5968         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5969         moved here from coreutils.
5970
5971         manywarnings: drop -Wunsuffixed-float-constants
5972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5973         '1.0D', which is the only way to silence this warning for 'double'.
5974
5975 2011-11-29  Jim Meyering  <meyering@redhat.com>
5976
5977         hash: mark compute_bucket_size with the pure attribute
5978         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5979
5980         quotearg, propername: correct pragma guard expression
5981         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5982         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5983
5984 2011-11-28  Jim Meyering  <meyering@redhat.com>
5985
5986         propername: do not mark proper_name with the const attribute
5987         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5988         since it examines data pointed to by its parameter.
5989         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5990         the suggestion from -Wsuggest-attribute=const.
5991
5992         propername: mark one more function as const
5993         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5994
5995 2011-11-27  Jim Meyering  <meyering@redhat.com>
5996
5997         mark functions with const and pure attributes
5998
5999         Mark functions per suggestions from gcc-4.6 when using these options:
6000         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6001         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6002         Follow these guidelines: when possible, apply the attribute to
6003         an extern declaration, not to its definition.  Apply it to the
6004         definition only when the definition is static.
6005         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6006         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6007         * lib/base64.h (isbase64): Likewise.
6008         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6009         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6010         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6011         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6012         (c_tolower, c_toupper): Likewise.
6013         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6014         * lib/chdir-long.c (find_non_slash): Likewise.
6015         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6016         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6017         * lib/file-type.h (file_type): Likewise.
6018         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6019         * lib/filevercmp.c (verrevcmp): Likewise.
6020         * lib/freadahead.h (freadahead): Likewise.
6021         * lib/fts.c (fts_maxarglen): Likewise.
6022         * lib/hash-pjw.h (hash_pjw): Likewise.
6023         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6024         * lib/hash.c (is_prime, next_prime): Likewise.
6025         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6026         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6027         (hash_table_ok, hash_get_first, hash_string): Likewise.
6028         (compute_bucket_size): Likewise.
6029         * lib/i-ring.h (i_ring_empty): Likewise.
6030         * lib/isnan.c (isnanl): Likewise.
6031         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6032         * lib/memcasecmp.h (memcasecmp): Likewise.
6033         * lib/memchr2.h (memchr2): Likewise.
6034         * lib/memcmp2.h (memcmp2): Likewise.
6035         * lib/parse-datetime.y (lookup_zone): Likewise.
6036         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6037         [!WINDOWS_SOCKETS]: Likewise.
6038         * lib/strnlen1.h (strnlen1): Likewise.
6039         * lib/uniwidth.in.h (uc_width): Likewise.
6040         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6041         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6042         (quoting_options_from_style): Add a comment.
6043         * lib/propername.h (proper_name): Add a comment.
6044
6045 2011-11-27  Bruno Haible  <bruno@clisp.org>
6046
6047         Remove unused macros from !_LIBC code in glibc-borrowed files.
6048         * lib/fnmatch.c (STRCOLL): Remove macro.
6049         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6050         * lib/glob.c (__stat, __readdir64): Remove macros.
6051         * lib/tempname.c (__open64, __xstat64): Remove macros.
6052         Suggested by Paul Eggert.
6053
6054 2011-11-27  Bruno Haible  <bruno@clisp.org>
6055
6056         getcwd: Fix link error on MSVC 9.
6057         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6058
6059 2011-11-27  Bruno Haible  <bruno@clisp.org>
6060
6061         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6062         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6063         HAVE_OPENDIR is 0.
6064         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6065         HAVE_CLOSEDIR is 0.
6066         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6067         is 0.
6068         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6069
6070 2011-11-27  Bruno Haible  <bruno@clisp.org>
6071
6072         getcwd: Fix bug from 2011-08-17.
6073         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6074         platforms that need it.
6075         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6076         code of 4 to be a failure, not a success. This ensures that
6077         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6078
6079 2011-11-27  Bruno Haible  <bruno@clisp.org>
6080
6081         binary-io tests: Avoid test failure on mingw when libtool is used.
6082         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6083         Don't verify the size of t-bin-out1.tmp here.
6084         * tests/test-binary-io.sh: Verify it here.
6085         Reported by Simon Josefsson.
6086
6087 2011-11-26  Bruno Haible  <bruno@clisp.org>
6088
6089         Fix conflict between two instantiations of module 'unistd'.
6090         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6091         ${include_guard_prefix} also in the autoconf snippet.
6092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6094         GNULIB_UNISTD_H_GETOPT.
6095         * modules/getopt-posix (configure.ac): Set the
6096         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6097         * modules/getopt-gnu (configure.ac): Likewise.
6098         * modules/unistd (Makefile.am): Change the substitution value of
6099         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6100         Reported by Simon Josefsson.
6101
6102 2011-11-25  Bruno Haible  <bruno@clisp.org>
6103
6104         pagealign_alloc: Doc and comments.
6105         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6106         module.
6107         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6108
6109 2011-11-25  Jim Meyering  <meyering@redhat.com>
6110
6111         test-update-copyright.sh: avoid false-positive failure
6112         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6113         around false positive failure on Cygwin/Windows.  The latter was
6114         matching erroneously-created files with names like
6115         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6116
6117 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6118
6119         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6120         * m4/valgrind-tests.m4: Check that the parameters that will be
6121         used works, not just a subset of them.  Reported by Bruno Haible
6122         <bruno@clisp.org>.
6123
6124 2011-11-24  Jim Meyering  <meyering@redhat.com>
6125
6126         test-stdalign.c: comment out long double tests
6127         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6128         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6129         error: '_Alignas' specifiers cannot reduce alignment of \
6130         'static_longdouble_alignas'.
6131
6132 2011-11-22  Jim Meyering  <meyering@redhat.com>
6133
6134         init.sh: make "compare /dev/null FILE" output more readable
6135         * tests/init.sh (compare_): Document the preferred order of arguments.
6136         (emit_diff_u_header_): New function.
6137         (compare_dev_null_): Emit a simulated diff, rather than just the
6138         contents of the unexpected file.  Suggestion from Bruno Haible.
6139
6140 2011-11-21  Jim Meyering  <meyering@redhat.com>
6141             Eric Blake  <eblake@redhat.com>
6142
6143         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6144         * tests/init.sh: Make our compare function slightly more portable.
6145         Reported by Bruno Haible in
6146         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6147
6148 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6149
6150         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6151         before using it, in code that ends up in config.h.
6152
6153 2011-11-20  Bruno Haible  <bruno@clisp.org>
6154
6155         getcwd: Work around getcwd bug on AIX 5..7.
6156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6157         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6158         Use a different value for gl_cv_func_getcwd_path_max. Move the
6159         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6160         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6161         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6162         Define HAVE_MINIMALLY_WORKING_GETCWD.
6163         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6164         where it is not even minimally working, that is, on AIX.
6165         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6166         m4/getcwd-path-max.m4.
6167         (main): Update exit code computation.
6168         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6169         getcwd does not handle long file names.
6170
6171 2011-11-20  Bruno Haible  <bruno@clisp.org>
6172
6173         getcwd: Fix bug from 2009-09-10.
6174         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6175         like "no".
6176
6177 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6178
6179         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6180
6181 2011-11-20  Bruno Haible  <bruno@clisp.org>
6182
6183         fma tests: Avoid shadowing local variables.
6184         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6185         expected.
6186
6187 2011-11-20  Bruno Haible  <bruno@clisp.org>
6188
6189         copysignf tests: Fix.
6190         * tests/test-copysignf.c: Fix signature check.
6191
6192 2011-11-20  Bruno Haible  <bruno@clisp.org>
6193
6194         fma: Remove unused code.
6195         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6196         unused macros.
6197
6198 2011-11-20  Bruno Haible  <bruno@clisp.org>
6199
6200         sethostname: Fix doc about AIX.
6201         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6202         sethostname; it has it.
6203
6204         sethostname: Mention more portability problems.
6205         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6206         problem.
6207         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6208
6209 2011-11-19  Bruno Haible  <bruno@clisp.org>
6210
6211         Depend on module fcntl-h when AT_FDCWD is used.
6212         * modules/utimens (Depends-on): Add fcntl-h.
6213         * modules/areadlinkat (Depends-on): Likewise.
6214         * modules/areadlinkat-with-size (Depends-on): Likewise.
6215         * modules/faccessat (Depends-on): Likewise.
6216         * modules/fchmodat (Depends-on): Likewise.
6217         * modules/fchownat (Depends-on): Likewise.
6218         * modules/getcwd (Depends-on): Likewise.
6219         * modules/mkdirat (Depends-on): Likewise.
6220         * modules/mkfifoat (Depends-on): Likewise.
6221         * modules/readlinkat (Depends-on): Likewise.
6222         * modules/symlinkat (Depends-on): Likewise.
6223         * modules/dup2-tests (Depends-on): Likewise.
6224         * modules/fdutimensat-tests (Depends-on): Likewise.
6225         * modules/futimens-tests (Depends-on): Likewise.
6226
6227 2011-11-19  Bruno Haible  <bruno@clisp.org>
6228
6229         euidaccess: Update a comment.
6230         * lib/euidaccess.c: Update comment about platforms with faccessat.
6231
6232 2011-11-19  Bruno Haible  <bruno@clisp.org>
6233
6234         openat: Fix file list.
6235         * modules/openat (Files): Remove lib/at-func.c.
6236
6237 2011-11-19  Bruno Haible  <bruno@clisp.org>
6238
6239         fstatat: Simplify.
6240         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6241         gnulib should define rpl_fstatat, there is a
6242         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6243
6244 2011-11-19  Bruno Haible  <bruno@clisp.org>
6245
6246         Ensure 'inline' can be used in tests/test-utimens-common.h.
6247         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6248         * modules/futimens-tests (configure.ac): Likewise.
6249         * modules/utimens-tests (configure.ac): Likewise.
6250         * modules/utimensat-tests (configure.ac): Likewise.
6251
6252 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6253
6254         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6255         not hash_insert0.
6256         (hash_insert_if_absent): Doc fix.
6257
6258 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6259
6260         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6261
6262 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6263
6264         test-getcwd: disambiguate exit status
6265         * tests/test-getcwd.c (test_long_name): Return 0..7.
6266         (main): Exit with an unambiguous exit status.  The old
6267         code yielded a mysterious mixture of two failure codes.
6268
6269         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6270         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6271         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6272         rpl_fstatat or fstatat.  This should fix the other problem
6273         reported by Kai Habel in
6274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6275         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6277         and I reproduced it on a Solaris 8 host we still have in production.
6278
6279 2011-11-18  Jim Meyering  <meyering@redhat.com>
6280
6281         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6282         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6283         Add a sentence to the comment.
6284         (hash_insert0): New function that simply calls hash_insert_if_absent.
6285         * lib/hash.h (hash_insert_if_absent): Declare it.
6286         (hash_insert0): Add deprecation attribute.
6287         (_GL_ATTRIBUTE_DEPRECATED): Define.
6288         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6289         not hash_insert0.
6290         * NEWS: Mention it, even though it's not really an incompatible change.
6291
6292 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6293
6294         openat: avoid compilation failure due to lack of <errno.h> inclusion
6295         * lib/openat.c: Include <errno.h>.
6296
6297 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         * modules/getcwd (Depends-on): Add fdopendir.
6300         This fixes one of the two problems reported by Kai Habel in
6301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6302
6303         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6304         stdalign problem reported by Ian Beckwith in
6305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6306         * modules/crypto/gc-arcfour (Depends-on):
6307         Depend conditionally on crypto/arcfour.
6308         * modules/crypto/gc-arctwo (Depends-on):
6309         Depend conditionally on crypto/arctwo.
6310         * modules/crypto/gc-des (Depends-on):
6311         Depend conditionally on crypto/des.
6312         * modules/crypto/gc-hmac-md5 (Depends-on):
6313         Depend conditionally on crypto/hmac-md5.
6314         * modules/crypto/gc-hmac-sha1 (Depends-on):
6315         Depend conditionally on crypto/hmac-sha1.
6316         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6317         * modules/crypto/gc-md4 (Depends-on):
6318         Depend conditionally on crypto/md4.
6319         * modules/crypto/gc-md5 (Depends-on):
6320         Depend conditionally on crypto/md5.
6321         * modules/crypto/gc-rijndael (Depends-on):
6322         Depend conditionally on crypto/rijndael.
6323         * modules/crypto/gc-sha1 (Depends-on):
6324         Depend conditionally on crypto/sha1.
6325         * modules/crypto/gc-arcfour:
6326         * modules/crypto/gc-arctwo:
6327         * modules/crypto/gc-des:
6328         * modules/crypto/gc-hmac-md5:
6329         * modules/crypto/gc-hmac-sha1:
6330         * modules/crypto/gc-md2:
6331         * modules/crypto/gc-md4:
6332         * modules/crypto/gc-md5:
6333         * modules/crypto/gc-rijndael:
6334         * modules/crypto/gc-sha1:
6335         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6336         now that the conditional dependencies do the work for us.
6337
6338 2011-11-17  Jim Meyering  <meyering@redhat.com>
6339
6340         tests: factor st_ctime-comparison out of two headers
6341         * tests/test-utimens-common.h (ctime_compare): Define.
6342         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6343         * tests/test-lutimens.h (test_lutimens): Likewise.
6344         * tests/test-utimens.h (test_utimens): Likewise.
6345
6346         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6347         Invoke the test program via an init.sh-using wrapper.
6348         * tests/test-getcwd.sh: New file.
6349         * modules/getcwd-tests (Files): Add it.
6350         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6351
6352 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6353
6354         gitlog-to-changelog: support multi-author commits.
6355         The FSF cares about keeping track of all authors of patches to its
6356         projects, but Git doesn't provide obvious support for multi-author
6357         changesets. Consensus seems to be forming around the use of extra
6358         Signed-off-by inspired lines in the log message formatted as
6359         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6360         multi-author commits between version control systems.
6361         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6362         log message and output in standard ChangeLog multi-author format.
6363         Reported by Peter Rosin <peda@lysator.liu.se>
6364
6365 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6366             Bruno Haible  <bruno@clisp.org>
6367
6368         Fix some modules' file list.
6369         * modules/fstatat (Files): Add m4/lstat.m4.
6370         * modules/openat (Files): Likewise.
6371         * modules/unlinkat (Files): Likewise.
6372
6373 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6374
6375         maint.mk: fix tight-scope.mk generation in VPATH builds.
6376         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6377         reference with $(srcdir) so that the file is found correctly even
6378         when running `make syntax-check' in a VPATH build.
6379
6380 2011-11-13  Bruno Haible  <bruno@clisp.org>
6381             Jim Meyering  <meyering@redhat.com>
6382
6383         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6384         * tests/init.sh (compare): Remove "No differences encountered" or
6385         synonymous output from the 'diff' program.
6386
6387 2011-11-13  Bruno Haible  <bruno@clisp.org>
6388
6389         Makefile: Tweak indentation.
6390         * Makefile: Use tab as first character in every line that contains rule
6391         commands.
6392
6393 2011-11-13  Bruno Haible  <bruno@clisp.org>
6394
6395         Syntax check for copyright statements.
6396         * check-copyright: New file.
6397         * Makefile (sc_check_copyright): New rule.
6398
6399 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6400
6401         * build-aux/git-version-gen: Add --prefix to configure the tag
6402         match string.
6403
6404 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6405
6406         * build-aux/git-version-gen: Add --help and --version.
6407
6408 2011-11-12  Jim Meyering  <meyering@redhat.com>
6409
6410         revamp the other test-exclude?.sh scripts to use init.sh, too
6411         * tests/test-exclude1.sh: Use init.sh.
6412         * tests/test-exclude2.sh: Likewise.
6413         * tests/test-exclude3.sh: Likewise.
6414         * tests/test-exclude4.sh: Likewise.
6415         * tests/test-exclude5.sh: Likewise.
6416         * tests/test-exclude6.sh: Likewise.
6417         * tests/test-exclude7.sh: Likewise.
6418         * tests/test-exclude8.sh: Likewise.
6419         * modules/exclude-tests (Files): List init.sh.
6420
6421         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6422         These shell scripts ignored failure of the binary test-exclude,
6423         so making the latter return 77 didn't cause them to be skipped.
6424         * tests/test-exclude5.sh: Exit with test-exclude's error status
6425         when that program fails.  Revamp to use init.sh.
6426         * tests/test-exclude2.sh: Likewise.
6427
6428         test-exclude: fix a typo
6429         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6430
6431 2011-11-11  Bruno Haible  <bruno@clisp.org>
6432
6433         obstack: Fix compilation error on MSVC 9.
6434         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6435
6436 2011-11-11  Jim Meyering  <meyering@redhat.com>
6437
6438         test-exclude: skip tests rather than failing on deficient systems
6439         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6440         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6441         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6442         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6443
6444 2011-11-10  Bruno Haible  <bruno@clisp.org>
6445
6446         ptsname_r test: Avoid gcc warning on glibc systems.
6447         * tests/test-ptsname_r.c (null_ptr): New function.
6448         (test_errors): Use it.
6449
6450 2011-11-10  Bruno Haible  <bruno@clisp.org>
6451
6452         ptsname_r: Avoid compilation error on OSF/1 5.1.
6453         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6455         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6456         function is not declared or incompatibly declared.
6457         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6458         * modules/ptsname_r (Depends-on, configure.ac): Update.
6459         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6460
6461 2011-11-10  Bruno Haible  <bruno@clisp.org>
6462
6463         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6464         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6465         When cross-compiling, guess yes on all platforms except AIX.
6466         Reported by Ludovic Courtès <ludo@gnu.org>.
6467
6468 2011-11-09  Bruno Haible  <bruno@clisp.org>
6469
6470         ptsname_r tests: Fix bugs.
6471         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6472         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6473
6474 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6475
6476         fstatat: work with cross-compilation
6477         Problem reported by Ludovic Courtès in
6478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6479         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6480         "cross-compiling" and assume the bug is present.  Replace
6481         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6482         an inverted sense, to be more conservative about our assumptions.
6483         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6484
6485 2011-11-09  Bruno Haible  <bruno@clisp.org>
6486
6487         Improve MODULES.html output.
6488         * modules/mkfifoat (Description): Use the word "function".
6489         * modules/readlinkat (Description): Likewise.
6490         * modules/symlinkat (Description): Likewise.
6491
6492 2011-11-09  Eric Blake  <eblake@redhat.com>
6493
6494         ptsname_r-tests: new test module
6495         * modules/ptsname_r-tests: New module.
6496         * tests/test-ptsname_r.c: New file.
6497
6498         ptsname_r: new module
6499         * modules/ptsname_r: New module.
6500         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6501         * lib/ptsname.c (__ptsname_r): Split...
6502         * lib/ptsname_r.c: ...into new file.
6503         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6504         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6505         * modules/stdlib (Makefile.am): Substitute witnesses.
6506         * lib/stdlib.in.h (ptsname_r): Declare it.
6507         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6508         * MODULES.html.sh (Misc): Likewise.
6509         * modules/ptsname (Depends-on): Alter dependency.
6510         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6511
6512 2011-11-09  Jim Meyering  <meyering@redhat.com>
6513
6514         announce-gen: be more concise when there's only one URL+tarball
6515         * build-aux/announce-gen (get_tool_versions): When you distribute
6516         only one type of tarball, combine the first two "Here are..."
6517         sections and make the key-checking grammar independent of
6518         how many tarballs there are.
6519
6520 2011-11-09  Eric Blake  <eblake@redhat.com>
6521
6522         openpty: provide a stub on mingw
6523         * lib/pty.in.h (includes): Provide forward declarations.
6524         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6525
6526         raise: fix mingw handling of SIGPIPE
6527         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6528
6529 2011-11-08  Bruno Haible  <bruno@clisp.org>
6530
6531         More conditional dependencies.
6532         * modules/faccessat (Depends-on): Add conditions.
6533         * modules/fchmodat (Depends-on): Likewise.
6534         * modules/fchownat (Depends-on): Likewise.
6535         * modules/fstatat (Depends-on): Likewise.
6536         * modules/mkfifoat (Depends-on): Likewise.
6537         * modules/readlinkat (Depends-on): Likewise.
6538         * modules/symlinkat (Depends-on): Likewise.
6539         * modules/unlinkat (Depends-on): Likewise.
6540         * modules/utimensat (Depends-on): Likewise.
6541         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6542         * modules/linkat (Depends-on): Refine the conditions.
6543         * modules/renameat (Depends-on): Likewise.
6544
6545 2011-11-08  Bruno Haible  <bruno@clisp.org>
6546
6547         faccessat: Move AC_LIBOBJ invocation to module description.
6548         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6549         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6550         invocation from here...
6551         * modules/faccessat (configure.ac): ... to here. Invoke
6552         gl_PREREQ_FACCESSAT.
6553
6554 2011-11-08  Bruno Haible  <bruno@clisp.org>
6555
6556         faccessat: Simplify autoconf macro.
6557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6558         gl_FUNC_EUIDACCESS.
6559
6560 2011-11-08  Bruno Haible  <bruno@clisp.org>
6561
6562         renameat: Fix dependencies.
6563         * modules/renameat (Depends-on): Add stdbool.
6564
6565 2011-11-08  Bruno Haible  <bruno@clisp.org>
6566
6567         mkfifoat: Fix module description.
6568         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6569         not gl_UNISTD_MODULE_INDICATOR.
6570
6571 2011-11-08  Bruno Haible  <bruno@clisp.org>
6572
6573         fstatat: Remove unused dependency.
6574         * modules/fstatat (Depends-on): Remove fstat.
6575
6576 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6577
6578         GNUmakefile: behave when Makefile is missing.
6579         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6580
6581 2011-11-08  Bruno Haible  <bruno@clisp.org>
6582
6583         openat: Conditionalize dependencies.
6584         * lib/openat.c: Reduce the scope of some #includes.
6585         * modules/openat (Depends-on): Add conditions.
6586
6587 2011-11-07  Jim Meyering  <meyering@redhat.com>
6588
6589         maint.mk: extract GPG key ID without using a temporary file
6590         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6591         without using a temporary file.  Based on a suggestion from Werner Koch
6592         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6593
6594 2011-11-07  Eric Blake  <eblake@redhat.com>
6595
6596         grantpt: fix typo
6597         * lib/stdlib.in.h (grantpt): Check correct function.
6598
6599         maint.mk: silence new syntax check
6600         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6601
6602 2011-11-06  Bruno Haible  <bruno@clisp.org>
6603
6604         Doc about floating-point and math API.
6605         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6606         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6607
6608 2011-11-06  Bruno Haible  <bruno@clisp.org>
6609
6610         stdalign tests: Skip the test when compiled by Sun C.
6611         * tests/test-stdalign.c (main): Skip the test on Sun C.
6612
6613 2011-11-06  Bruno Haible  <bruno@clisp.org>
6614
6615         ansi-c++-opt: Complete the 2011-06-05 change.
6616         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6617         does not support namespaces, set the variable to "no", not to ":".
6618
6619 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6620
6621         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6622
6623 2011-11-06  Bruno Haible  <bruno@clisp.org>
6624
6625         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6626         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6627         (minus_zerol) [HP-UX]: New macro.
6628         (unary_minus) [HP-UX]: New function.
6629         (copysignl) [HP-UX]: Use unary_minus function.
6630
6631 2011-11-06  Bruno Haible  <bruno@clisp.org>
6632
6633         ldexp, ldexpf, ldexpl: Enhance tests.
6634         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6635         and tests/test-ldexpl.c.
6636         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6637         LDEXP, MIN_EXP, MAX_EXP): New macros.
6638         Include test-ldexp.h.
6639         (main): Just call test_function.
6640         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6641         infinity.h, nan.h.
6642         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6643         MAX_EXP): New macros.
6644         Include test-ldexp.h.
6645         (x, y): Remove variables.
6646         (main): Just call test_function.
6647         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6648         infinity.h, nan.h.
6649         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6650         MAX_EXP): New macros.
6651         Include test-ldexp.h.
6652         (x, y): Remove variables.
6653         (main): Just call test_function.
6654         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6655         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6656         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6657         (Depends-on): Add isnand-nolibm, signbit, float.
6658         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6659         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6660         (Depends-on): Add isnanf-nolibm, signbit, float.
6661
6662 2011-11-06  Bruno Haible  <bruno@clisp.org>
6663
6664         math tests: Cosmetics.
6665         * tests/test-math-c++.cc: Reorder declarations.
6666
6667 2011-11-05  Bruno Haible  <bruno@clisp.org>
6668
6669         fma*: Simplify test.
6670         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6671         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6672
6673         Tests for module 'fmal'.
6674         * modules/fmal-tests: New file.
6675         * tests/test-fmal1.c: New file.
6676         * tests/test-fmal2.c: New file.
6677
6678         New module 'fmal'.
6679         * lib/math.in.h (fmal): New declaration.
6680         * lib/fmal.c: New file.
6681         * m4/fmal.m4: New file.
6682         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6684         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6685         REPLACE_FMAL.
6686         * modules/fmal: New file.
6687         * doc/posix-functions/fmal.texi: Mention the new module and the various
6688         bugs.
6689
6690         Tests for module 'fmaf'.
6691         * modules/fmaf-tests: New file.
6692         * tests/test-fmaf1.c: New file.
6693         * tests/test-fmaf2.c: New file.
6694
6695         New module 'fmaf'.
6696         * lib/math.in.h (fmaf): New declaration.
6697         * lib/fmaf.c: New file.
6698         * m4/fmaf.m4: New file.
6699         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6701         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6702         REPLACE_FMAF.
6703         * modules/fmaf: New file.
6704         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6705         bugs.
6706
6707         Tests for module 'fma'.
6708         * modules/fma-tests: New file.
6709         * tests/test-fma1.c: New file.
6710         * tests/test-fma1.h: New file.
6711         * tests/test-fma2.c: New file.
6712         * tests/test-fma2.h: New file.
6713
6714         New module 'fma'.
6715         * lib/math.in.h (fma): New declaration.
6716         * lib/fma.c: New file.
6717         * m4/fma.m4: New file.
6718         * m4/fegetround.m4: New file.
6719         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6721         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6722         REPLACE_FMA.
6723         * modules/fma: New file.
6724         * doc/posix-functions/fma.texi: Mention the new module and the various
6725         bugs.
6726
6727         Extend gl_MATHFUNC.
6728         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6729         Support 'void' as argument type.
6730         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6731
6732 2011-11-05  Jim Meyering  <meyering@redhat.com>
6733
6734         maint.mk: also prohibit inclusion of dirent.h without use
6735         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6736
6737 2011-11-05  Bruno Haible  <bruno@clisp.org>
6738
6739         ldexpl tests: Avoid test failure on MSVC 9.
6740         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6741         value. Needed in order to enforce the conversion from a value greater
6742         than LDBL_MAX to Infinity.
6743
6744 2011-11-05  Bruno Haible  <bruno@clisp.org>
6745
6746         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6747         * modules/at-internal: New file, extracted from modules/openat.
6748         * modules/openat-h: New file.
6749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6750         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6751         * modules/openat (Description): Add reference to POSIX function.
6752         (Files): Remove lib/openat.h, lib/openat-proc.c.
6753         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6754         intprops, unistd.
6755         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6756         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6757         gl_FCNTL_MODULE_INDICATOR.
6758         (Include): Remove unistd.h, openat.h.
6759         * modules/areadlinkat (Files): Add lib/at-func.c.
6760         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6761         openat-die, openat-h, save-cwd.
6762         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6763         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6764         openat-die, openat-h, save-cwd, unistd.
6765         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6766         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6767         openat-h, save-cwd. Remove fcntl-h, openat.
6768         * modules/fchmodat (Files): Remove lib/openat.h.
6769         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6770         openat, stdbool, unistd.
6771         * modules/fchownat (Files): Remove lib/openat.h.
6772         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6773         openat, stdbool, sys_stat.
6774         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6775         lib/openat-proc.c.
6776         (Depends-on): Add at-internal.
6777         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6778         * modules/fstatat (Files): Remove lib/openat.h.
6779         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6780         stdbool, unistd.
6781         * modules/fts (Depends-on): Add openat-h.
6782         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6783         openat.
6784         * modules/mkdirat (Files): Remove lib/openat.h.
6785         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6786         openat, stdbool, sys_stat.
6787         * modules/mkfifoat (Files): Add lib/at-func.c.
6788         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6789         openat-h, save-cwd. Remove fcntl-h, openat.
6790         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6791         * modules/readlinkat (Files): Add lib/at-func.c.
6792         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6793         openat-h, save-cwd. Remove fcntl-h, openat.
6794         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6795         openat.
6796         * modules/selinux-at (Files): Add lib/at-func.c.
6797         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6798         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6799         * modules/symlinkat (Files): Add lib/at-func.c.
6800         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6801         openat-h, save-cwd. Remove fcntl-h, openat.
6802         * modules/unlinkat (Files): Remove lib/openat.h.
6803         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6804         stdbool.
6805         * modules/utimensat (Files): Add lib/at-func.c.
6806         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6807         openat-die, openat-h, save-cwd.
6808         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6809         * modules/fdutimensat-tests (Depends-on): Add openat.
6810         * modules/fstatat-tests (Depends-on): Add openat-h.
6811         * modules/readlinkat-tests (Depends-on): Add openat.
6812         * modules/symlinkat-tests (Depends-on): Add openat.
6813
6814 2011-11-05  Bruno Haible  <bruno@clisp.org>
6815
6816         openat: Include <stdbool.h>.
6817         * lib/openat.c: Include <stdbool.h>.
6818
6819 2011-11-04  Bruno Haible  <bruno@clisp.org>
6820
6821         fchownat, renameat, unlinkat: Fix dependencies.
6822         * modules/fchownat (Depends-on): Add fstatat.
6823         * modules/renameat (Depends-on): Likewise.
6824         * modules/unlinkat (Depends-on): Likewise.
6825
6826 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         openat: remove direct dependency on dirent
6829         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6830         and hasn't been needed ever since fdopendir was split into its own
6831         module on 2009-08-31.
6832         * modules/openat (Depends-on): Remove dirent.
6833
6834 2011-11-04  Bruno Haible  <bruno@clisp.org>
6835
6836         renameat: Optimize code size.
6837         * modules/renameat (configure.ac): Don't compile at-func2.c if
6838         REPLACE_RENAMEAT is 1.
6839
6840 2011-11-04  Bruno Haible  <bruno@clisp.org>
6841
6842         openat tests: Fix file list.
6843         * modules/openat-tests (Files): Add tests/test-open.h.
6844
6845 2011-11-04  Bruno Haible  <bruno@clisp.org>
6846
6847         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6848         * modules/fchmodat (Depends-on): Add openat-die.
6849         * modules/fchownat (Depends-on): Likewise.
6850         * modules/linkat (Depends-on): Likewise.
6851         * modules/renameat (Depends-on): Likewise.
6852         * modules/openat (Depends-on): Add dirent.
6853
6854 2011-11-04  Jim Meyering  <meyering@redhat.com>
6855
6856         at-func*.c: fix comments
6857         * lib/at-func2.c: Correct/improve first-line comment.
6858         * lib/at-func.c: Correct grammar in first-line comment.
6859
6860 2011-11-04  Bruno Haible  <bruno@clisp.org>
6861
6862         New module 'mkdirat', split off from module 'openat'.
6863         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6865         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6866         * modules/mkdirat: New file, extracted from modules/openat.
6867         * modules/openat (Files): Remove lib/mkdirat.c.
6868         (Depends-on): Remove mkdir.
6869         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6870         (Include): Remove <sys/stat.h>.
6871         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6872         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6873         tests/test-mkdir.h.
6874         (Depends-on): Remove ignore-value.
6875         (Makefile.am): Remove rules for test-mkdirat.
6876         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6877         of module 'openat'.
6878         * NEWS: Mention the change.
6879
6880 2011-11-04  Bruno Haible  <bruno@clisp.org>
6881
6882         closedir: Avoid warning on mingw.
6883         * lib/closedir.c: Include <unistd.h>.
6884
6885 2011-11-04  Bruno Haible  <bruno@clisp.org>
6886
6887         New module 'fstatat', split off from module 'openat'.
6888         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6889         defined.
6890         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6892         gl_FUNC_FSTATAT.
6893         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6894         * modules/fstatat: New file, extracted from modules/openat.
6895         * modules/openat (Files): Remove lib/fstatat.c.
6896         (Depends-on): Remove lstat.
6897         (configure.ac): Remove AC_LIBOBJ of fstatat.
6898         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6899         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6900         tests/test-lstat.h, tests/test-stat.h.
6901         (Depends-on): Remove getcwd-lgpl.
6902         (Makefile.am): Remove rules for test-fstatat.
6903         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6904         of module 'openat'.
6905         * NEWS: Mention the change.
6906         * modules/getcwd (Depends-on): Add fstatat.
6907         * modules/linkat (Depends-on): Likewise.
6908         * modules/mkfifoat-tests (Depends-on): Likewise.
6909         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6910
6911 2011-11-03  Bruno Haible  <bruno@clisp.org>
6912
6913         New module 'unlinkat', split off from module 'openat'.
6914         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6916         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6917         * modules/unlinkat: New file, extracted from modules/openat. Correct
6918         the dependency conditions.
6919         * modules/openat (Files): Remove lib/unlinkat.c.
6920         (Depends-on): Remove rmdir, unlink.
6921         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6922         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6923         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6924         tests/test-rmdir.h, tests/test-unlink.h.
6925         (Depends-on): Remove unlinkdir.
6926         (Makefile.am): Remove rules for test-unlinkat.
6927         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6928         of module 'openat'.
6929         * NEWS: Mention the change.
6930         * modules/linkat-tests (Depends-on): Add unlinkat.
6931         * modules/mkfifoat-tests (Depends-on): Likewise.
6932         * modules/readlinkat-tests (Depends-on): Likewise.
6933
6934 2011-11-02  Bruno Haible  <bruno@clisp.org>
6935
6936         New module 'fchmodat', split off from module 'openat'.
6937         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6938         defined.
6939         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6941         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6942         * modules/fchmodat: New file, extracted from modules/openat.
6943         * modules/openat (Files): Remove lib/fchmodat.c.
6944         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6945         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6946         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6947         (Makefile.am): Remove rules for test-fchmodat.
6948         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6949         of module 'openat'.
6950         * NEWS: Mention the change.
6951
6952 2011-11-02  Jim Meyering  <meyering@redhat.com>
6953
6954         putenv: indent #definition of "environ" to placate cppi
6955         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6956
6957         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6958         Git logs are often treated as immutable, because editing them
6959         changes the SHA1 checksums of all descendants.  Thus, errors in
6960         git logs tend to stay there forever.  However, when we generate
6961         a ChangeLog file -- typically for distribution -- from that git log,
6962         we can actually make corrections in the generated file.  The key
6963         lies in recording in machine-readable/applicable form the desired
6964         corrections.  See --help for description and an example.
6965         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6966         (usage): Describe it; alphabetize option descriptions.
6967         (main): Honor the new option, carefully.
6968
6969 2011-11-01  Jim Meyering  <meyering@redhat.com>
6970
6971         gitlog-to-changelog: avoid an infloop
6972         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6973         that ends up being empty.
6974
6975 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6976
6977         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6978         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6979         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6980         contains (possibly-quoted) backslashes.  This should avoid
6981         all-too-common shell bugs if COMPLICATED contains backslashes in
6982         the "wrong" places.  Reported by David Evans in
6983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6984         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6985         because we want ASCII ranges.  Is there some reason we don't use
6986         the C locale everywhere in this script?
6987         (func_module, top level): Avoid unwanted pathname expansion when
6988         $repo_url_prefix or $repo_url_suffix_repl contain shell
6989         metacharacters like '?' and '*'.
6990
6991 2011-11-01  Bruno Haible  <bruno@clisp.org>
6992
6993         fchownat: Improve description.
6994         * modules/fchownat (Description): Add link to function.
6995
6996 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6997
6998         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6999         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7001         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7002
7003 2011-11-01  Bruno Haible  <bruno@clisp.org>
7004
7005         alignof: Avoid collision with stdalign module.
7006         * lib/alignof.h (alignof): Remove macro.
7007         * NEWS: Mention the change.
7008         Reported by Paul Eggert.
7009
7010 2011-11-01  Bruno Haible  <bruno@clisp.org>
7011
7012         New module 'fchownat', split off from module 'openat'.
7013         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7014         defined.
7015         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7017         invoke gl_FUNC_FCHOWNAT.
7018         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7019         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7020         * modules/fchownat: New file, extracted from modules/openat.
7021         * modules/openat (Files): Remove lib/fchownat.c.
7022         (Depends-on): Remove lchown.
7023         (configure.ac): Remove AC_LIBOBJ of fchownat.
7024         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7025         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7026         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7027         (Depends-on): Remove mgetgroups, usleep, stat-time.
7028         (configure.ac): Remove test for getegid.
7029         (Makefile.am): Remove rules for test-fchownat.
7030         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7031         of module 'openat'.
7032         * NEWS: Mention the change.
7033
7034 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7035
7036         stdalign: port better to MSVC and to Sun C 5.11
7037         This fixes some of the problems reported by Bruno Haible in
7038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7039         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7040         shortcomings of MSVC and of Sun C 5.11.
7041         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7042         around __declspec arg.
7043         * modules/stdalign-tests (Files): Add tests/macros.h.
7044         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7045         Include macros.h, for ASSERT.
7046         (DECLARE_ALIGNED): Remove.
7047         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7048         to catch bug), and to 1 if not (simplifies the rest of the code).
7049         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7050         (CHECK_AUTO): Remove.
7051         (CHECK_ALIGNED): Check only the alignment of the static vars,
7052         since auto var alignment isn't supported by Sun C 5.11.
7053         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7054         ASSERT failures are easier to diagnose.
7055
7056 2011-10-31  Bruno Haible  <bruno@clisp.org>
7057
7058         doc about some IRIX 5.3 problems.
7059         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7060         on IRIX 5.3.
7061         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7062         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7063         5.3.
7064         * doc/posix-functions/grantpt.texi: Likewise.
7065         * doc/posix-functions/unlockpt.texi: Likewise.
7066         * doc/posix-functions/lgamma.texi: Likewise.
7067         * doc/posix-functions/nextafter.texi: Likewise.
7068         * doc/posix-functions/remainder.texi: Likewise.
7069         * doc/posix-functions/select.texi: Mention misplaced declaration on
7070         IRIX 5.3.
7071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7072
7073 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7074
7075         gitlog-to-changelog: fix git-log invocation.
7076         git-log mishandles date strings before 1970-01-01 UTC, and there is
7077         no use to specify --since=1970-01-01 by default anyway.
7078         * build-aux/gitlog-to-changelog: By default, when no --since option
7079         was given, do not specify explicit --since option to git-log.
7080
7081 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7082
7083         gitlog-to-changelog: new option --append-dot.
7084         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7085         first non-blank line of each commit message terminated with a dot.
7086
7087 2011-10-30  Bruno Haible  <bruno@clisp.org>
7088
7089         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7090         * lib/ffsl.h: Include <config.h>.
7091         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7092
7093 2011-10-30  Jim Meyering  <meyering@redhat.com>
7094
7095         GNUmakefile: reenable "make syntax-check" for most projects
7096         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7097         build-aux variable", "syntax-check" would do nothing but succeed with
7098         the "No version control files detected..." diagnostic (unless you
7099         happened to override _build-aux via cfg.mk).
7100         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7101         to precede inclusion of maint.mk.  Otherwise, these variables would
7102         be used undefined in any project that does not override the default.
7103
7104 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7105
7106         gitlog-to-changelog: treat a message with only blank lines as empty.
7107         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7108         trailing blank lines before the code that issues a warning about an
7109         empty commit message.
7110
7111 2011-10-30  Jim Meyering  <meyering@redhat.com>
7112
7113         test-parse-datetime.c: avoid new DST-related false positive test failure
7114         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7115         based on the time/date we'll convert, not the current time.
7116         Otherwise, the moment we cross a DST boundary like today's in
7117         Europe, (CEST to CET), that offset ends up being one hour off.
7118
7119 2011-10-27  Bruno Haible  <bruno@clisp.org>
7120
7121         fstat: Tweak documentation.
7122         * modules/fstat (Description): More precise description.
7123
7124 2011-10-27  Bruno Haible  <bruno@clisp.org>
7125
7126         Update documentation regarding 'largefile' module.
7127         * doc/posix-functions/fstat.texi: Tweak wording.
7128         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7129         problems with huge directories and/or small ino_t types.
7130         * doc/posix-functions/readdir.texi: Likewise.
7131         * doc/posix-functions/rewinddir.texi: Likewise.
7132
7133 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7134
7135         maint.mk: don't maintain a second build-aux variable.
7136         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7137         depends on GNUmakefile, which already maintains a cfg.mk
7138         overridable $(_build-aux) for projects with a non-standard
7139         build-aux directory location, although without the $(srcdir)
7140         prefix.  Use that variable consistently instead of introducing a
7141         second one.  Adjust all call sites.
7142
7143 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7144
7145         Add stdalign module and use it in other modules.
7146         This is based on a previous proposal by Bruno Haible
7147         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7148
7149         stdalign: new module
7150         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7151         * modules/stdalign: New files.
7152         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7153         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7154
7155         stdalign-tests: new module
7156         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7157
7158         argp: use stdalign
7159         * lib/argp-parse.c: Include <stdalign.h>.
7160         (alignof): Remove.
7161         * modules/argp (Depends-on): Add stdalign.
7162
7163         crypto libraries: use stdalign
7164         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7165         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7166         Do not include <stdlib.h> twice, in md4.c.
7167         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7168         because we are accessing a pointer's bit-pattern, not a size.
7169         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7170         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7171         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7172         * modules/crypto/sha512: Likewise.
7173
7174         sys_socket: use stdalign, not alignof
7175         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7176         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7177
7178 2011-10-27  Bruno Haible  <bruno@clisp.org>
7179
7180         raise test: Avoid a test failure on Linux/MIPS.
7181         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7182         because 99 is a valid signal on Linux/MIPS.
7183
7184 2011-10-27  Bruno Haible  <bruno@clisp.org>
7185
7186         nonblocking tests: Fix test failure on Linux/MIPS.
7187         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7188         Set to 270000.
7189
7190 2011-10-27  Bruno Haible  <bruno@clisp.org>
7191
7192         utimensat: Work around problem on Linux/hppa.
7193         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7194         values.
7195         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7196
7197 2011-10-25  Jim Meyering  <meyering@redhat.com>
7198
7199         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7200         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7201         after symbols like NULL, size_t, etc.
7202         Reported by Alfred M. Szmidt.
7203
7204         maint.mk: exempt ENODATA from a syntax-check rule
7205         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7206         from the sc_prohibit_always-defined_macros syntax-check rule.
7207         Add a comment.  See this for more details:
7208         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7209
7210 2011-10-23  Jim Meyering  <meyering@redhat.com>
7211
7212         fts: close parent dir FD before returning from post-traversal fts_read
7213         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7214         unlink A, even though an FD open on A remained.  This is suboptimal
7215         (holding a file descriptor open longer than needed), but otherwise not
7216         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7217         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7218         that represents a real problem: it causes the removal of A to fail
7219         with e.g., "rm: cannot remove `A': Device or resource busy"
7220
7221         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7222         directory file descriptors.  After completing the final, FTS_DP,
7223         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7224         cache, but then proceeded to add a new FD to it via the subsequent
7225         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7226         final file descriptor would be closed only via fts_close's call to
7227         fd_ring_clear.  Now, it is usually closed earlier, via the final
7228         FTS_DP-returning fts_read call.
7229         * lib/fts.c (restore_initial_cwd): New function, converted from
7230         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7231         Update callers.
7232         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7233         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7234
7235 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7236             Bruno Haible  <bruno@clisp.org>
7237             Jim Meyering  <jim@meyering.net>
7238
7239         readme-release: improve safety of release prep instructions.
7240         * README-release: Don't git pull all branches when only master
7241         is needed for the release process.
7242         Run make maintainer-clean before changing trees and merging.
7243         Don't try to run ./configure right after git pull in case files
7244         that influence the bootstrap process have changed, move the
7245         ./configure step to after running ./bootstrap.
7246         Don't bootstrap "one last time"... it's the first time!
7247
7248 2011-10-22  Bruno Haible  <bruno@clisp.org>
7249
7250         errno, strerror-override: Support for MSVC 10.
7251         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7252         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7253         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7254         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7255         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7256         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7257         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7258         Assign values compatible with MSVC 10.
7259         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7260         New macros.
7261         (GNULIB_defined_EWINSOCK): New macro.
7262         * lib/strerror-override.c (strerror_override): Update accordingly.
7263         * lib/strerror-override.h: Likewise.
7264         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7265         longer equal to the corresponding errno value.
7266         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7267
7268 2011-10-22  Bruno Haible  <bruno@clisp.org>
7269
7270         perror: Recognize when test program crashes.
7271         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7272         strerror, set gl_cv_func_perror_works to no.
7273         Reported by Daniel Richard G. <skunk@iskunk.org>.
7274
7275         perror: Fix indentation.
7276         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7277
7278 2011-10-22  Bruno Haible  <bruno@clisp.org>
7279
7280         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7281         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7282         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7283         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7284         functions, not as a macro.
7285         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7286         macros.
7287         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7288         absence of macro.
7289         Suggested by Eric Blake.
7290         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7291
7292 2011-10-21  Bruno Haible  <bruno@clisp.org>
7293
7294         relocatable-prog-wrapper: Don't leave object files behind.
7295         * build-aux/install-reloc: Re-synchronize list of .o files to be
7296         removed with list of compilation units.
7297
7298 2011-10-20  Bruno Haible  <bruno@clisp.org>
7299
7300         openpty, posix_openpt: Remove code duplication.
7301         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7302         * lib/openpty.c: Include <stdlib.h>.
7303         (openpty): Use posix_openpt on all platforms except IRIX.
7304         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7305
7306 2011-10-20  Bruno Haible  <bruno@clisp.org>
7307
7308         unlockpt: Detect invalid argument.
7309         * lib/unlockpt.c: Include <fcntl.h>.
7310         (unlockpt): Check whether fd is valid, using fcntl().
7311         * modules/unlockpt (Depends-on): Add fcntl-h.
7312
7313 2011-10-20  Bruno Haible  <bruno@clisp.org>
7314
7315         openpty: Avoid compilation error on AIX 6.1.
7316         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7317
7318 2011-10-20  Bruno Haible  <bruno@clisp.org>
7319
7320         posix_openpt: Support for OpenBSD.
7321         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7322         (posix_openpt) [OpenBSD]: New code.
7323         * lib/grantpt.c: Include <fcntl.h>.
7324         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7325         * modules/grantpt (Depends-on): Add fcntl-h.
7326
7327 2011-10-20  Bruno Haible  <bruno@clisp.org>
7328
7329         posix_openpt test: Coding style.
7330         * tests/test-posix_openpt.c: Use GNU coding style.
7331
7332 2011-10-20  Bruno Haible  <bruno@clisp.org>
7333
7334         grantpt: Support --avoid=pt_chown.
7335         * modules/grantpt (Files): Add lib/pty-private.h.
7336
7337 2011-10-20  Bruno Haible  <bruno@clisp.org>
7338
7339         posix_openpt: Fix autoconf macro.
7340         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7341         unneeded check for _getpty.
7342
7343 2011-10-20  Bruno Haible  <bruno@clisp.org>
7344
7345         openpty: Update comments.
7346         * lib/openpty.c: Add comments about Minix.
7347
7348 2011-10-19  Eric Blake  <eblake@redhat.com>
7349
7350         openpty: relax license
7351         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7352
7353         pt_chown: use configmake to simplify build
7354         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7355
7356         ptsname and others: relax license
7357         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7358         * modules/unlockpt (License): Likewise.
7359         * modules/pt_chown (License): Likewise.
7360         * modules/ptsname (License): Likewise.
7361         * modules/ttyname_r (License): Likewise.
7362
7363 2011-10-19  Jim Meyering  <meyering@redhat.com>
7364
7365         posix_openpt: remove spurious #endif
7366         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7367
7368 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7369
7370         maint.mk: Respect $(build_aux) in web-manual rule.
7371         * top/maint.mk (web-manual): Find gen-announce script in user's
7372         $(build_aux) directory instead of hard-coding 'build-aux'.
7373
7374 2011-10-19  Bruno Haible  <bruno@clisp.org>
7375
7376         posix_openpt: Fix compilation error.
7377         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7378         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7379         Mention the openpty module as an alternative.
7380
7381 2011-10-19  Bruno Haible  <bruno@clisp.org>
7382
7383         Support for old NeXTstep 3.3 frexp().
7384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7385         execution time of the test to 5 seconds.
7386         Reported by Daniel Richard G. <skunk@iskunk.org>.
7387
7388 2011-10-19  Bruno Haible  <bruno@clisp.org>
7389
7390         Support for old NeXTstep 3.3 sed.
7391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7392         part, use /.../, not \|...|. Escape periods in the header file name.
7393         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7394         Reported by Daniel Richard G. <skunk@iskunk.org>.
7395
7396 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7397
7398         Support for old NeXTstep 3.3 gcc.
7399         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7400         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7401         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7402         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7403         * lib/regex.h (_Restrict_arr_): Likewise.
7404         * lib/regex_internal.h (re_token_t): Likewise.
7405         * lib/regexec.c (check_node_accept_bytes): Likewise.
7406         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7407
7408 2011-10-18  Eric Blake  <eblake@redhat.com>
7409
7410         posix_openpt: new module
7411         * modules/posix_openpt: New module.
7412         * m4/posix_openpt.m4: New file.
7413         * lib/posix_openpt.c: Likewise.
7414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7415         (gl_STDLIB_H_DEFAULTS): Set defaults.
7416         * modules/stdlib (Makefile.am): Substitute macros.
7417         * lib/stdlib.in.h (posix_openpt): Declare.
7418         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7419         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7420         * modules/posix_openpt-tests: New test module.
7421         * tests/test-posix_openpt.c: New test.
7422
7423 2011-10-15  Bruno Haible  <bruno@clisp.org>
7424
7425         xstrtoll: Fix compilation failure.
7426         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7427         from lib/strtol.c.
7428         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7429         some platforms.
7430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7431
7432 2011-10-15  Bruno Haible  <bruno@clisp.org>
7433
7434         vasnprintf: Optimize bit search operation.
7435         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7437         gl_DOUBLE_EXPONENT_LOCATION.
7438         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7439         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7440         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7441         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7442         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7443         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7444         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7445         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7446         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7447
7448 2011-10-15  Bruno Haible  <bruno@clisp.org>
7449
7450         vasnprintf: Fix comments.
7451         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7452
7453 2011-10-14  Bruno Haible  <bruno@clisp.org>
7454
7455         Tests for module 'integer_length_ll'.
7456         * modules/integer_length_ll-tests: New file.
7457         * tests/test-integer_length_ll.c: New file.
7458
7459         New module 'integer_length_ll'.
7460         * lib/integer_length_ll.c: New file.
7461         * modules/integer_length_ll: New file.
7462
7463 2011-10-14  Bruno Haible  <bruno@clisp.org>
7464
7465         Tests for module 'integer_length_l'.
7466         * modules/integer_length_l-tests: New file.
7467         * tests/test-integer_length_l.c: New file.
7468
7469         New module 'integer_length_l'.
7470         * lib/integer_length_l.c: New file.
7471         * modules/integer_length_l: New file.
7472
7473 2011-10-14  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'integer_length'.
7476         * modules/integer_length-tests: New file.
7477         * tests/test-integer_length.c: New file.
7478
7479         New module 'integer_length'.
7480         * lib/integer_length.h: New file.
7481         * lib/integer_length.c: New file.
7482         * modules/integer_length: New file.
7483
7484 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7485
7486         popen: Fix dependency conditions.
7487         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7488
7489 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7490
7491         perror: Fix autoconf test.
7492         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7493         <stdlib.h> and <string.h>.
7494
7495 2011-10-14  Bruno Haible  <bruno@clisp.org>
7496
7497         ffsl: Optimize on 64-bit platforms.
7498         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7499         unrolling.
7500
7501 2011-10-13  Bruno Haible  <bruno@clisp.org>
7502
7503         ffsl: Optimize on 32-bit platforms.
7504         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7505         use ffs() without a loop.
7506
7507         ffsl, ffsll: Optimize for GCC.
7508         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7509         * lib/ffsl.c (GCC_BUILTIN): New macro.
7510         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7511
7512 2011-10-13  Bruno Haible  <bruno@clisp.org>
7513
7514         ffs, bcopy, memset: Support symbol renaming via config.h.
7515         * lib/ffs.c: Include <config.h>.
7516         * lib/bcopy.c: Likewise.
7517         * lib/memset.c: Likewise.
7518
7519 2011-10-10  Bruno Haible  <bruno@clisp.org>
7520
7521         atanl: Simplify for platforms where 'long double' == 'double'.
7522         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7523         alternative implementation.
7524         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7525         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7526         * modules/atanl (Depends-on): Add atan. Update conditions.
7527
7528 2011-10-10  Bruno Haible  <bruno@clisp.org>
7529
7530         acosl: Simplify for platforms where 'long double' == 'double'.
7531         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7532         alternative implementation.
7533         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7534         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7535         * modules/acosl (Depends-on): Add acos. Update conditions.
7536
7537 2011-10-10  Bruno Haible  <bruno@clisp.org>
7538
7539         asinl: Simplify for platforms where 'long double' == 'double'.
7540         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7541         alternative implementation.
7542         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7543         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7544         * modules/asinl (Depends-on): Add asin. Update conditions.
7545
7546 2011-10-10  Bruno Haible  <bruno@clisp.org>
7547
7548         tanl: Simplify for platforms where 'long double' == 'double'.
7549         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7550         implementation.
7551         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7552         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7553         * modules/tanl (Depends-on): Add tan. Update conditions.
7554         (configure.ac): Don't compile trigl.c if
7555         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7556
7557 2011-10-10  Bruno Haible  <bruno@clisp.org>
7558
7559         cosl: Simplify for platforms where 'long double' == 'double'.
7560         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7561         implementation.
7562         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7563         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7564         * modules/cosl (Depends-on): Add cos. Update conditions.
7565         (configure.ac): Don't compile sincosl.c and trigl.c if
7566         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7567
7568 2011-10-10  Bruno Haible  <bruno@clisp.org>
7569
7570         sinl: Simplify for platforms where 'long double' == 'double'.
7571         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7572         implementation.
7573         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7574         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7575         * modules/sinl (Depends-on): Add sin. Update conditions.
7576         (configure.ac): Don't compile sincosl.c and trigl.c if
7577         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7578
7579 2011-10-10  Bruno Haible  <bruno@clisp.org>
7580
7581         logl: Simplify for platforms where 'long double' == 'double'.
7582         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7583         implementation.
7584         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7585         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7586         * modules/logl (Depends-on): Add log. Update conditions.
7587
7588 2011-10-10  Bruno Haible  <bruno@clisp.org>
7589
7590         expl: Simplify for platforms where 'long double' == 'double'.
7591         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7592         implementation.
7593         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7594         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7595         * modules/expl (Depends-on): Add exp. Update conditions.
7596
7597 2011-10-10  Bruno Haible  <bruno@clisp.org>
7598
7599         sqrtl: Simplify for platforms where 'long double' == 'double'.
7600         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7601         alternative implementation.
7602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7603         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7604         * modules/sqrtl (Depends-on): Update conditions.
7605
7606 2011-10-10  Bruno Haible  <bruno@clisp.org>
7607
7608         ldexpl: Simplify for platforms where 'long double' == 'double'.
7609         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7610         alternative implementation.
7611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7612         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7613         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7614
7615 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7616
7617         ffsll: set correct witness
7618         * modules/ffsll (configure.ac): Fix typo.
7619
7620 2011-10-10  Bruno Haible  <bruno@clisp.org>
7621
7622         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7623         * lib/printf-frexpl.c: Include <config.h>.
7624         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7625         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7626         second time.
7627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7628         gl_LONG_DOUBLE_VS_DOUBLE.
7629         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7630         conditions.
7631
7632 2011-10-10  Bruno Haible  <bruno@clisp.org>
7633
7634         frexpl: Simplify for platforms where 'long double' == 'double'.
7635         * lib/frexpl.c: Include <config.h>.
7636         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7637         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7638         time.
7639         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7640         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7641         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7642         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7643         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7644         conditions.
7645
7646 2011-10-10  Jim Meyering  <meyering@redhat.com>
7647
7648         test-renameat: don't leave behind a temporary file
7649         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7650           ERROR: files left in build directory after distclean:
7651           ./gltests/test-renameat.too
7652           make[1]: *** [distcleancheck] Error 1
7653         Reported by Tom G. Christensen.
7654
7655 2011-10-09  Bruno Haible  <bruno@clisp.org>
7656
7657         rint: Determine RINT_LIBM correctly on AIX 7.
7658         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7659         directly, not only through a function pointer. Also accept an optional
7660         4th argument with extra code.
7661         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7662         rintf() call by gcc when optimizing.
7663
7664         mathfunc.m4: Refactor.
7665         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7666         m4 variable.
7667
7668 2011-10-09  Bruno Haible  <bruno@clisp.org>
7669
7670         rintl: Simplify for platforms where 'long double' == 'double'.
7671         * lib/rintl.c: Include <config.h>.
7672         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7673         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7674         time.
7675         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7676         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7677         * modules/rintl (Depends-on): Add rint. Update conditions.
7678
7679 2011-10-09  Bruno Haible  <bruno@clisp.org>
7680
7681         roundl: Simplify for platforms where 'long double' == 'double'.
7682         * lib/roundl.c: Include <config.h>.
7683         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7684         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7685         time.
7686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7687         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7688         * modules/roundl (Depends-on): Add round. Update conditions.
7689
7690 2011-10-09  Bruno Haible  <bruno@clisp.org>
7691
7692         truncl: Simplify for platforms where 'long double' == 'double'.
7693         * lib/truncl.c: Include <config.h>.
7694         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7695         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7696         time.
7697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7698         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7699         * modules/truncl (Depends-on): Add trunc. Update conditions.
7700
7701 2011-10-09  Bruno Haible  <bruno@clisp.org>
7702
7703         ceill: Simplify for platforms where 'long double' == 'double'.
7704         * lib/ceill.c: Include <config.h>.
7705         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7706         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7707         time.
7708         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7709         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7710         * modules/ceill (Depends-on): Add ceil. Update conditions.
7711
7712 2011-10-09  Bruno Haible  <bruno@clisp.org>
7713
7714         floorl: Simplify for platforms where 'long double' == 'double'.
7715         * lib/floorl.c: Include <config.h>.
7716         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7717         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7718         time.
7719         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7720         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7721         * modules/floorl (Depends-on): Add floor. Update conditions.
7722
7723 2011-10-09  Bruno Haible  <bruno@clisp.org>
7724
7725         rint: Fix ordering constraints.
7726         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7727         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7728         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7729
7730 2011-10-09  Bruno Haible  <bruno@clisp.org>
7731
7732         copysignl: Simplify for platforms where 'long double' == 'double'.
7733         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7734         alternative.
7735         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7736         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7737         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7738
7739 2011-10-09  Bruno Haible  <bruno@clisp.org>
7740
7741         Tests for module 'rintl'.
7742         * modules/rintl-tests: New file.
7743         * tests/test-rintl.c: New file.
7744
7745         New module 'rintl'.
7746         * lib/math.in.h (rintl): New declaration.
7747         * lib/rintl.c: New file.
7748         * m4/rintl.m4: New file.
7749         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7751         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7752         * modules/rintl: New file.
7753         * tests/test-math-c++.cc: Check the declaration of rintl.
7754         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7755         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7756         * doc/posix-functions/rintl.texi: Mention the new module.
7757
7758 2011-10-09  Bruno Haible  <bruno@clisp.org>
7759
7760         Tests for module 'rintf'.
7761         * modules/rintf-tests: New file.
7762         * tests/test-rintf.c: New file.
7763
7764         New module 'rintf'.
7765         * lib/math.in.h (rintf): New declaration.
7766         * lib/rintf.c: New file.
7767         * m4/rintf.m4: New file.
7768         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7770         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7771         * modules/rintf: New file.
7772         * tests/test-math-c++.cc: Check the declaration of rintf.
7773         * doc/posix-functions/rintf.texi: Mention the new module.
7774
7775 2011-10-09  Bruno Haible  <bruno@clisp.org>
7776
7777         rint: Support for MSVC.
7778         * lib/math.in.h (rint): New declaration.
7779         * lib/rint.c: New file.
7780         * m4/rint.m4: New file.
7781         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7783         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7784         * modules/rint (Description): Fix.
7785         (Files): Add lib/rint.c, m4/rint.m4.
7786         (Depends-on): Add math.
7787         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7788         gl_MATH_MODULE_INDICATOR.
7789         * tests/test-math-c++.cc: Check the declaration of rint.
7790         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7791         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7792         * doc/posix-functions/rint.texi: Mention the replacement provided by
7793         the module.
7794
7795         rint tests: More tests.
7796         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7797         minus-zero.h, infinity.h, nan.h.
7798         (main): Skip the test if the current rounding mode is not standard. Add
7799         tests for negative numbers, minus zero, infinity, NaN.
7800         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7801         tests/nan.h.
7802         (Depends-on): Add isnand-nolibm.
7803
7804 2011-10-09  Bruno Haible  <bruno@clisp.org>
7805
7806         Tests for module 'copysignl'.
7807         * modules/copysignl-tests: New file.
7808         * tests/test-copysignl.c: New file.
7809
7810         New module 'copysignl'.
7811         * lib/math.in.h (copysignl): New declaration.
7812         * lib/copysignl.c: New file.
7813         * m4/copysignl.m4: New file.
7814         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7816         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7817         HAVE_COPYSIGNL.
7818         * modules/copysignl: New file.
7819         * tests/test-math-c++.cc: Check the declaration of copysignl.
7820         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7821         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7822         * doc/posix-functions/copysignl.texi: Mention the new module.
7823
7824 2011-10-09  Bruno Haible  <bruno@clisp.org>
7825
7826         Tests for module 'copysignf'.
7827         * modules/copysignf-tests: New file.
7828         * tests/test-copysignf.c: New file.
7829
7830         New module 'copysignf'.
7831         * lib/math.in.h (copysignf): New declaration.
7832         * lib/copysignf.c: New file.
7833         * m4/copysignf.m4: New file.
7834         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7836         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7837         HAVE_COPYSIGNF.
7838         * modules/copysignf: New file.
7839         * tests/test-math-c++.cc: Check the declaration of copysignf.
7840         * doc/posix-functions/copysignf.texi: Mention the new module.
7841
7842 2011-10-09  Bruno Haible  <bruno@clisp.org>
7843
7844         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7846         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7847         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7849         gl_SIGNAL_H_DEFAULTS.
7850
7851 2011-10-09  Bruno Haible  <bruno@clisp.org>
7852
7853         poll: Make macro safer.
7854         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7855         ac_cv_header_poll_h is not set.
7856
7857 2011-10-09  Bruno Haible  <bruno@clisp.org>
7858
7859         copysign: Provide replacement.
7860         * lib/math.in.h (copysign): New declaration.
7861         * lib/copysign.c: New file.
7862         * m4/copysign.m4: New file.
7863         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7865         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7866         HAVE_COPYSIGN.
7867         * modules/copysign (Description): Clarify.
7868         (Files): Add lib/copysign.c, m4/copysign.m4.
7869         (Depends-on): Add math, signbit.
7870         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7871         gl_MATH_MODULE_INDICATOR.
7872         * tests/test-math-c++.cc: Check the declaration of copysign.
7873         * doc/posix-functions/copysign.texi: Mention the effects of the module
7874         on Minix and MSVC.
7875
7876 2011-10-09  Bruno Haible  <bruno@clisp.org>
7877
7878         isinf: Ensure macro on AIX 5.1.
7879         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7880         macro.
7881         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7882
7883 2011-10-09  Bruno Haible  <bruno@clisp.org>
7884
7885         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7886         * modules/snprintf-posix-tests (configure.ac): Require
7887         gl_LONG_DOUBLE_VS_DOUBLE.
7888         * modules/sprintf-posix-tests (configure.ac): Likewise.
7889         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7890         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7891         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7892         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7893         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7894         tests on platforms where 'long double' is the same as 'double'.
7895         * tests/test-sprintf-posix.h (test_function): Likewise.
7896         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7897         * tests/test-vasprintf-posix.c (test_function): Likewise.
7898
7899         *printf: Fix for platforms where 'long double' == 'double'.
7900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7901         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7902         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7903         * modules/fprintf-posix (Files): Likewise.
7904         * modules/obstack-printf-posix (Files): Likewise.
7905         * modules/snprintf-posix (Files): Likewise.
7906         * modules/sprintf-posix (Files): Likewise.
7907         * modules/vasnprintf (Files): Likewise.
7908         * modules/vasnprintf-posix (Files): Likewise.
7909         * modules/vasprintf-posix (Files): Likewise.
7910         * modules/vdprintf-posix (Files): Likewise.
7911         * modules/vfprintf-posix (Files): Likewise.
7912         * modules/vsnprintf-posix (Files): Likewise.
7913         * modules/vsprintf-posix (Files): Likewise.
7914         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7915         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7916         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7917         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7918         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7919         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7920         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7921
7922         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7923         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7924         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7925         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7926         'long double'.
7927         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7928
7929         isinf: Fix for platforms where 'long double' == 'double'.
7930         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7931         Don't blindly assume 80-bit 'long double'.
7932
7933         isfinite: Fix for platforms where 'long double' == 'double'.
7934         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7935         Don't blindly assume 80-bit 'long double'.
7936
7937         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7938         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7939         * modules/isfinite-tests (configure.ac): Require
7940         gl_LONG_DOUBLE_VS_DOUBLE.
7941         * modules/isinf-tests (configure.ac): Likewise.
7942         * modules/isnan-tests (configure.ac): Likewise.
7943         * modules/isnanl-tests (configure.ac): Likewise.
7944         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7945         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7946         tests on platforms where 'long double' is the same as 'double'.
7947         * tests/test-isinf.c (test_isinfl): Likewise.
7948         * tests/test-isnan.c (test_long_double): Likewise.
7949         * tests/test-isnanl.h (main): Likewise.
7950
7951 2011-10-08  Bruno Haible  <bruno@clisp.org>
7952
7953         Tests for module 'tanhf'.
7954         * modules/tanhf-tests: New file.
7955         * tests/test-tanhf.c: New file.
7956
7957         New module 'tanhf'.
7958         * lib/math.in.h (tanhf): New declaration.
7959         * lib/tanhf.c: New file.
7960         * m4/tanhf.m4: New file.
7961         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7963         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7964         * modules/tanhf: New file.
7965         * tests/test-math-c++.cc: Check the declaration of tanhf.
7966         * doc/posix-functions/tanhf.texi: Mention the new module.
7967
7968         tanh: Use a .m4 file.
7969         * m4/tanh.m4: New file.
7970         * modules/tanh (Files): Add it.
7971         (configure.ac): Just invoke gl_FUNC_TANH.
7972
7973 2011-10-08  Bruno Haible  <bruno@clisp.org>
7974
7975         Tests for module 'coshf'.
7976         * modules/coshf-tests: New file.
7977         * tests/test-coshf.c: New file.
7978
7979         New module 'coshf'.
7980         * lib/math.in.h (coshf): New declaration.
7981         * lib/coshf.c: New file.
7982         * m4/coshf.m4: New file.
7983         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7985         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7986         * modules/coshf: New file.
7987         * tests/test-math-c++.cc: Check the declaration of coshf.
7988         * doc/posix-functions/coshf.texi: Mention the new module.
7989
7990         cosh: Use a .m4 file.
7991         * m4/cosh.m4: New file.
7992         * modules/cosh (Files): Add it.
7993         (configure.ac): Just invoke gl_FUNC_COSH.
7994
7995 2011-10-08  Bruno Haible  <bruno@clisp.org>
7996
7997         Tests for module 'sinhf'.
7998         * modules/sinhf-tests: New file.
7999         * tests/test-sinhf.c: New file.
8000
8001         New module 'sinhf'.
8002         * lib/math.in.h (sinhf): New declaration.
8003         * lib/sinhf.c: New file.
8004         * m4/sinhf.m4: New file.
8005         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8007         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8008         * modules/sinhf: New file.
8009         * tests/test-math-c++.cc: Check the declaration of sinhf.
8010         * doc/posix-functions/sinhf.texi: Mention the new module.
8011
8012         sinh: Use a .m4 file.
8013         * m4/sinh.m4: New file.
8014         * modules/sinh (Files): Add it.
8015         (configure.ac): Just invoke gl_FUNC_SINH.
8016
8017 2011-10-08  Bruno Haible  <bruno@clisp.org>
8018
8019         Tests for module 'atan2f'.
8020         * modules/atan2f-tests: New file.
8021         * tests/test-atan2f.c: New file.
8022
8023         New module 'atan2f'.
8024         * lib/math.in.h (atan2f): New declaration.
8025         * lib/atan2f.c: New file.
8026         * m4/atan2f.m4: New file.
8027         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8029         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8030         * modules/atan2f: New file.
8031         * tests/test-math-c++.cc: Check the declaration of atan2f.
8032         * doc/posix-functions/atan2f.texi: Mention the new module.
8033
8034         atan2: Use a .m4 file.
8035         * m4/atan2.m4: New file.
8036         * modules/atan2 (Files): Add it.
8037         (configure.ac): Just invoke gl_FUNC_ATAN2.
8038
8039 2011-10-08  Bruno Haible  <bruno@clisp.org>
8040
8041         Tests for module 'atanf'.
8042         * modules/atanf-tests: New file.
8043         * tests/test-atanf.c: New file.
8044
8045         New module 'atanf'.
8046         * lib/math.in.h (atanf): New declaration.
8047         * lib/atanf.c: New file.
8048         * m4/atanf.m4: New file.
8049         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8051         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8052         * modules/atanf: New file.
8053         * tests/test-math-c++.cc: Check the declaration of atanf.
8054         * doc/posix-functions/atanf.texi: Mention the new module.
8055
8056         atan: Use a .m4 file.
8057         * m4/atan.m4: New file.
8058         * modules/atan (Files): Add it.
8059         (configure.ac): Just invoke gl_FUNC_ATAN.
8060
8061 2011-10-08  Bruno Haible  <bruno@clisp.org>
8062
8063         Tests for module 'acosf'.
8064         * modules/acosf-tests: New file.
8065         * tests/test-acosf.c: New file.
8066
8067         New module 'acosf'.
8068         * lib/math.in.h (acosf): New declaration.
8069         * lib/acosf.c: New file.
8070         * m4/acosf.m4: New file.
8071         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8073         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8074         * modules/acosf: New file.
8075         * tests/test-math-c++.cc: Check the declaration of acosf.
8076         * doc/posix-functions/acosf.texi: Mention the new module.
8077
8078         acos: Use a .m4 file.
8079         * m4/acos.m4: New file.
8080         * modules/acos (Files): Add it.
8081         (configure.ac): Just invoke gl_FUNC_ACOS.
8082
8083 2011-10-08  Bruno Haible  <bruno@clisp.org>
8084
8085         Tests for module 'asinf'.
8086         * modules/asinf-tests: New file.
8087         * tests/test-asinf.c: New file.
8088
8089         New module 'asinf'.
8090         * lib/math.in.h (asinf): New declaration.
8091         * lib/asinf.c: New file.
8092         * m4/asinf.m4: New file.
8093         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8095         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8096         * modules/asinf: New file.
8097         * tests/test-math-c++.cc: Check the declaration of asinf.
8098         * doc/posix-functions/asinf.texi: Mention the new module.
8099
8100         asin: Use a .m4 file.
8101         * m4/asin.m4: New file.
8102         * modules/asin (Files): Add it.
8103         (configure.ac): Just invoke gl_FUNC_ASIN.
8104
8105 2011-10-08  Bruno Haible  <bruno@clisp.org>
8106
8107         Tests for module 'tanf'.
8108         * modules/tanf-tests: New file.
8109         * tests/test-tanf.c: New file.
8110
8111         New module 'tanf'.
8112         * lib/math.in.h (tanf): New declaration.
8113         * lib/tanf.c: New file.
8114         * m4/tanf.m4: New file.
8115         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8117         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8118         * modules/tanf: New file.
8119         * tests/test-math-c++.cc: Check the declaration of tanf.
8120         * doc/posix-functions/tanf.texi: Mention the new module.
8121
8122         tan: Use a .m4 file.
8123         * m4/tan.m4: New file.
8124         * modules/tan (Files): Add it.
8125         (configure.ac): Just invoke gl_FUNC_TAN.
8126
8127 2011-10-08  Bruno Haible  <bruno@clisp.org>
8128
8129         Tests for module 'cosf'.
8130         * modules/cosf-tests: New file.
8131         * tests/test-cosf.c: New file.
8132
8133         New module 'cosf'.
8134         * lib/math.in.h (cosf): New declaration.
8135         * lib/cosf.c: New file.
8136         * m4/cosf.m4: New file.
8137         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8139         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8140         * modules/cosf: New file.
8141         * tests/test-math-c++.cc: Check the declaration of cosf.
8142         * doc/posix-functions/cosf.texi: Mention the new module.
8143
8144         cos: Use a .m4 file.
8145         * m4/cos.m4: New file.
8146         * modules/cos (Files): Add it.
8147         (configure.ac): Just invoke gl_FUNC_COS.
8148
8149 2011-10-08  Bruno Haible  <bruno@clisp.org>
8150
8151         Tests for module 'sinf'.
8152         * modules/sinf-tests: New file.
8153         * tests/test-sinf.c: New file.
8154
8155         New module 'sinf'.
8156         * lib/math.in.h (sinf): New declaration.
8157         * lib/sinf.c: New file.
8158         * m4/sinf.m4: New file.
8159         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8161         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8162         * modules/sinf: New file.
8163         * tests/test-math-c++.cc: Check the declaration of sinf.
8164         * doc/posix-functions/sinf.texi: Mention the new module.
8165
8166         sin: Use a .m4 file.
8167         * m4/sin.m4: New file.
8168         * modules/sin (Files): Add it.
8169         (configure.ac): Just invoke gl_FUNC_SIN.
8170
8171 2011-10-08  Bruno Haible  <bruno@clisp.org>
8172
8173         Tests for module 'powf'.
8174         * modules/powf-tests: New file.
8175         * tests/test-powf.c: New file.
8176
8177         New module 'powf'.
8178         * lib/math.in.h (powf): New declaration.
8179         * lib/powf.c: New file.
8180         * m4/powf.m4: New file.
8181         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8183         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8184         * modules/powf: New file.
8185         * tests/test-math-c++.cc: Check the declaration of powf.
8186         * doc/posix-functions/powf.texi: Mention the new module.
8187
8188         pow: Use a .m4 file.
8189         * m4/pow.m4: New file.
8190         * modules/pow (Files): Add it.
8191         (configure.ac): Just invoke gl_FUNC_POW.
8192
8193 2011-10-08  Bruno Haible  <bruno@clisp.org>
8194
8195         Tests for module 'log10f'.
8196         * modules/log10f-tests: New file.
8197         * tests/test-log10f.c: New file.
8198
8199         New module 'log10f'.
8200         * lib/math.in.h (log10f): New declaration.
8201         * lib/log10f.c: New file.
8202         * m4/log10f.m4: New file.
8203         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8205         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8206         * modules/log10f: New file.
8207         * tests/test-math-c++.cc: Check the declaration of log10f.
8208         * doc/posix-functions/log10f.texi: Mention the new module.
8209
8210         log10: Use a .m4 file.
8211         * m4/log10.m4: New file.
8212         * modules/log10 (Files): Add it.
8213         (configure.ac): Just invoke gl_FUNC_LOG10.
8214
8215 2011-10-08  Bruno Haible  <bruno@clisp.org>
8216
8217         Tests for module 'logf'.
8218         * modules/logf-tests: New file.
8219         * tests/test-logf.c: New file.
8220
8221         New module 'logf'.
8222         * lib/math.in.h (logf): New declaration.
8223         * lib/logf.c: New file.
8224         * m4/logf.m4: New file.
8225         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8227         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8228         * modules/logf: New file.
8229         * tests/test-math-c++.cc: Check the declaration of logf.
8230         * doc/posix-functions/logf.texi: Mention the new module.
8231
8232         log: Use a .m4 file.
8233         * m4/log.m4: New file.
8234         * modules/log (Files): Add it.
8235         (configure.ac): Just invoke gl_FUNC_LOG.
8236
8237 2011-10-08  Bruno Haible  <bruno@clisp.org>
8238
8239         Tests for module 'expf'.
8240         * modules/expf-tests: New file.
8241         * tests/test-expf.c: New file.
8242
8243         New module 'expf'.
8244         * lib/math.in.h (expf): New declaration.
8245         * lib/expf.c: New file.
8246         * m4/expf.m4: New file.
8247         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8249         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8250         * modules/expf: New file.
8251         * tests/test-math-c++.cc: Check the declaration of expf.
8252         * doc/posix-functions/expf.texi: Mention the new module.
8253
8254         exp: Use a .m4 file.
8255         * m4/exp.m4: New file.
8256         * modules/exp (Files): Add it.
8257         (configure.ac): Just invoke gl_FUNC_EXP.
8258
8259 2011-10-08  Bruno Haible  <bruno@clisp.org>
8260
8261         Tests for module 'sqrtf'.
8262         * modules/sqrtf-tests: New file.
8263         * tests/test-sqrtf.c: New file.
8264
8265         New module 'sqrtf'.
8266         * lib/math.in.h (sqrtf): New declaration.
8267         * lib/sqrtf.c: New file.
8268         * m4/sqrtf.m4: New file.
8269         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8271         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8272         * modules/sqrtf: New file.
8273         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8274         * doc/posix-functions/sqrtf.texi: Mention the new module.
8275
8276 2011-10-08  Bruno Haible  <bruno@clisp.org>
8277
8278         Tests: Avoid link failures w.r.t. libintl.
8279         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8280         $(LIBINTL).
8281         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8282         $(LIBINTL).
8283         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8284         against $(LIBINTL).
8285         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8286         $(LIBINTL).
8287         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8288         $(LIBINTL).
8289         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8290
8291 2011-10-08  Bruno Haible  <bruno@clisp.org>
8292
8293         pow tests: Defeat compiler optimizations.
8294         * tests/test-pow.c (main): Assign arguments to x and y before use.
8295
8296 2011-10-08  Bruno Haible  <bruno@clisp.org>
8297
8298         gnulib-tool: Improve last commit.
8299         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8300         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8301         ignore dependencies that are not among the modules list.
8302
8303 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8304
8305         gnulib-tool: don't follow dependencies to avoided modules
8306         This fixes a bug that is related to the previous one.
8307         * gnulib-tool (func_modules_transitive_closure)
8308         (func_emit_autoconf_snippets):
8309         Check whether a dependency is acceptable before using it.
8310         (--extract-dependencies): Report an error if --avoid is also used,
8311         since this combination of options is not yet supported.
8312
8313         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8314         Problem reported by Peter Dyballa in
8315         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8316         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8317         when echoing "$condition".
8318
8319 2011-10-07  Bruno Haible  <bruno@clisp.org>
8320
8321         Fix documentation about math functions on MacOS X.
8322         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8323         MacOS X 10.5.
8324         * doc/posix-functions/fdim.texi: Likewise.
8325         * doc/posix-functions/feclearexcept.texi: Likewise.
8326         * doc/posix-functions/fegetenv.texi: Likewise.
8327         * doc/posix-functions/fegetround.texi: Likewise.
8328         * doc/posix-functions/feholdexcept.texi: Likewise.
8329         * doc/posix-functions/feraiseexcept.texi: Likewise.
8330         * doc/posix-functions/fesetenv.texi: Likewise.
8331         * doc/posix-functions/fesetround.texi: Likewise.
8332         * doc/posix-functions/fetestexcept.texi: Likewise.
8333         * doc/posix-functions/feupdateenv.texi: Likewise.
8334         * doc/posix-functions/fmax.texi: Likewise.
8335         * doc/posix-functions/fmin.texi: Likewise.
8336         * doc/posix-functions/log2.texi: Likewise.
8337         * doc/posix-functions/modff.texi: Likewise.
8338         * doc/posix-functions/nan.texi: Likewise.
8339         * doc/posix-functions/nanf.texi: Likewise.
8340         * doc/posix-functions/nextafterf.texi: Likewise.
8341         * doc/posix-functions/remquo.texi: Likewise.
8342
8343 2011-10-07  Bruno Haible  <bruno@clisp.org>
8344
8345         modff: Drop assumption about library that defines modff.
8346         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8347         AC_CHECK_FUNCS.
8348         * modules/modff (Files): Add m4/mathfunc.m4.
8349
8350 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8351
8352         raise tests: Avoid a GCC warning.
8353         * tests/test-raise.c (handler): Use _Noreturn.
8354
8355 2011-10-07  Bruno Haible  <bruno@clisp.org>
8356
8357         Tests for module 'ldexpf'.
8358         * modules/ldexpf-tests: New file.
8359         * tests/test-ldexpf.c: New file.
8360
8361         New module 'ldexpf'.
8362         * lib/math.in.h (ldexpf): New declaration.
8363         * lib/ldexpf.c: New file.
8364         * m4/ldexpf.m4: New file.
8365         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8367         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8368         * modules/ldexpf: New file.
8369         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8370         * doc/posix-functions/ldexpf.texi: Mention the new module.
8371
8372 2011-10-06  Bruno Haible  <bruno@clisp.org>
8373
8374         frexpf: Work around problems on IRIX and mingw.
8375         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8377         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8378         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8379         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8380         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8381         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8382
8383 2011-10-06  Bruno Haible  <bruno@clisp.org>
8384
8385         fabsf: Drop assumption about library that defines fabsf.
8386         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8387         AC_CHECK_FUNCS.
8388         * modules/fabsf (Files): Add m4/mathfunc.m4.
8389
8390 2011-10-06  Bruno Haible  <bruno@clisp.org>
8391
8392         frexpf: Drop assumption about library that defines frexpf.
8393         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8394         'int *', 'float *', 'long double *', 'float', 'long double'.
8395         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8396         AC_CHECK_FUNCS.
8397         * modules/frexpf (Files): Add m4/mathfunc.m4.
8398
8399         Tests for module 'frexpf'.
8400         * modules/frexpf-tests: New file.
8401         * tests/test-frexpf.c: New file.
8402
8403         New module 'frexpf'.
8404         * lib/math.in.h (frexpf): New declaration.
8405         * lib/frexpf.c: New file.
8406         * m4/frexpf.m4: New file.
8407         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8409         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8410         * modules/frexpf: New file.
8411         * tests/test-math-c++.cc: Check the declaration of frexpf.
8412         * doc/posix-functions/frexpf.texi: Mention the new module.
8413
8414 2011-10-06  Bruno Haible  <bruno@clisp.org>
8415
8416         math: Sort function declarations of math.in.h.
8417         * lib/math.in.h (frexp, logb): Move declarations.
8418
8419 2011-10-05  Bruno Haible  <bruno@clisp.org>
8420
8421         Tests for module 'modff'.
8422         * modules/modff-tests: New file.
8423         * tests/test-modff.c: New file.
8424
8425         New module 'modff'.
8426         * lib/math.in.h (modff): New declaration.
8427         * lib/modff.c: New file.
8428         * m4/modff.m4: New file.
8429         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8431         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8432         * modules/modff: New file.
8433         * tests/test-math-c++.cc: Check the declaration of modff.
8434         * doc/posix-functions/modff.texi: Mention the new module.
8435
8436         modf tests: Make test sharper.
8437         * tests/test-modf.c (main): Strengthen upper bound.
8438
8439         modf: Use a .m4 file.
8440         * m4/modf.m4: New file.
8441         * modules/modf (Files): Add it.
8442         (configure.ac): Just invoke gl_FUNC_MODF.
8443
8444 2011-10-05  Bruno Haible  <bruno@clisp.org>
8445
8446         Tests for module 'fmodf'.
8447         * modules/fmodf-tests: New file.
8448         * tests/test-fmodf.c: New file.
8449
8450         New module 'fmodf'.
8451         * lib/math.in.h (fmodf): New declaration.
8452         * lib/fmodf.c: New file.
8453         * m4/fmodf.m4: New file.
8454         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8456         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8457         * modules/fmodf: New file.
8458         * tests/test-math-c++.cc: Check the declaration of fmodf.
8459         * doc/posix-functions/fmodf.texi: Mention the new module.
8460
8461         fmod: Use a .m4 file.
8462         * m4/fmod.m4: New file.
8463         * modules/fmod (Files): Add it.
8464         (configure.ac): Just invoke gl_FUNC_FMOD.
8465
8466 2011-10-05  Bruno Haible  <bruno@clisp.org>
8467
8468         Tests for module 'fabsf'.
8469         * modules/fabsf-tests: New file.
8470         * tests/test-fabsf.c: New file.
8471
8472         New module 'fabsf'.
8473         * lib/math.in.h (fabsf): New declaration.
8474         * lib/fabsf.c: New file.
8475         * m4/fabsf.m4: New file.
8476         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8478         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8479         * modules/fabsf: New file.
8480         * tests/test-math-c++.cc: Check the declaration of fabsf.
8481         * doc/posix-functions/fabsf.texi: Mention the new module.
8482
8483         fabs: Use a .m4 file.
8484         * m4/fabs.m4: New file.
8485         * modules/fabs (Files): Add it.
8486         (configure.ac): Just invoke gl_FUNC_FABS.
8487
8488 2011-10-05  Jim Meyering  <meyering@redhat.com>
8489
8490         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8491         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8492         ls -lL regression introduced in coreutils-8.12, it does so at the
8493         cost of an additional stat call in the common case.  Besides, now
8494         that the kernel change that prompted commit 95f7c57f has been reverted
8495         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8496         we have no use for commit 95f7c57f, "file-has-acl: use
8497         acl_extended_file_nofollow if available".
8498
8499 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8500
8501         file-has-acl: revert unintended change in behavior of ls -L
8502         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8503         derived from...
8504         (file_has_acl): ...code here.  Call it.
8505         This problem was introduced with 2011-07-22 commit 95f7c57f,
8506         "file-has-acl: use acl_extended_file_nofollow if available".
8507         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8508
8509 2011-10-03  Bruno Haible  <bruno@clisp.org>
8510
8511         poll: Avoid link errors on MSVC.
8512         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8513         * modules/poll (Depends-on): Add sockets.
8514         (Link): New section.
8515         * NEWS: Mention the change.
8516         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8517         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8518         $(LIB_POLL) instead of $(LIBSOCKET).
8519
8520 2011-10-03  Bruno Haible  <bruno@clisp.org>
8521
8522         sys_select tests: Fix link error on MSVC 9.
8523         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8524         with $(LIB_SELECT) instead of $(LIBSOCKET).
8525
8526 2011-10-03  Bruno Haible  <bruno@clisp.org>
8527
8528         sys_select: Fix compilation error on mingw.
8529         * lib/sys_select.in.h: On native Windows, include <io.h>.
8530
8531 2011-10-03  Bruno Haible  <bruno@clisp.org>
8532
8533         wmemset: Support for MSVC.
8534         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8535         whether wmemset() exists.
8536
8537 2011-10-03  Bruno Haible  <bruno@clisp.org>
8538
8539         wmemmove: Support for MSVC.
8540         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8541         whether wmemmove() exists.
8542
8543 2011-10-03  Bruno Haible  <bruno@clisp.org>
8544
8545         wmemcpy: Support for MSVC.
8546         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8547         whether wmemcpy() exists.
8548
8549 2011-10-03  Bruno Haible  <bruno@clisp.org>
8550
8551         wmemcmp: Support for MSVC.
8552         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8553         whether wmemcmp() exists.
8554
8555 2011-10-03  Bruno Haible  <bruno@clisp.org>
8556
8557         wmemchr: Support for MSVC.
8558         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8559         whether wmemchr() exists.
8560
8561 2011-10-03  Bruno Haible  <bruno@clisp.org>
8562
8563         glthread/*, strsignal: Support for MSVC.
8564         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8565         including <winsock.h> on MSVC 9.
8566         * lib/glthread/lock.h: Likewise.
8567         * lib/glthread/thread.h: Likewise.
8568         * lib/glthread/tls.h: Likewise.
8569         * lib/glthread/yield.h: Likewise.
8570         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8571         if HAVE_UNISTD_H is false.
8572         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8573
8574 2011-10-03  Bruno Haible  <bruno@clisp.org>
8575
8576         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8577         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8578         Set to 100000.
8579
8580 2011-10-03  Bruno Haible  <bruno@clisp.org>
8581
8582         acl: Fix specification.
8583         * lib/file-has-acl.c (file_has_acl): Fix specification.
8584
8585 2011-10-03  Bruno Haible  <bruno@clisp.org>
8586
8587         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8588         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8589         (compute_curr_prefix, shared_library_fullname,
8590         find_shared_library_fullname, get_shared_library_fullname, relocate):
8591         Use it together with PIC && INSTALLDIR.
8592         Reported by <jojelino@gmail.com>
8593         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8594
8595 2011-10-01  Jim Meyering  <meyering@redhat.com>
8596
8597         maint.mk: adjust a release-related rule not to require use of gzip
8598         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8599         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8600         projects that build only .tar.xz files.  Also fix an erroneous test.
8601
8602         test-linkat: don't leave behind a temporary file
8603         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8604         Otherwise, coreutils' "make distcheck" would fail with this:
8605           Only in /c/cu/tests/torture/coreutils/test/\
8606             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8607           make[2]: *** [my-distcheck] Error 1
8608
8609         float, math: add omitted file
8610         * lib/itold.c: Add file, required for yesterday's float change.
8611
8612 2011-10-01  Bruno Haible  <bruno@clisp.org>
8613
8614         isinf: Fix for OpenBSD/x86.
8615         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8616         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8617         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8618
8619 2011-10-01  Bruno Haible  <bruno@clisp.org>
8620
8621         isfinite: Fix syntax error in configure test.
8622         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8623
8624         isfinite: Fix typo.
8625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8626         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8627
8628 2011-10-01  Bruno Haible  <bruno@clisp.org>
8629
8630         nonblocking tests: Fix test failure on Linux/IA-64.
8631         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8632         Set to 270000.
8633
8634 2011-10-01  Bruno Haible  <bruno@clisp.org>
8635
8636         mkfifoat tests: Fix a test failure on mingw.
8637         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8638         with error ENOSYS.
8639
8640 2011-09-30  Bruno Haible  <bruno@clisp.org>
8641
8642         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8643         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8644         'long double'. Set REPLACE_ITOLD.
8645         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8646         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8647         * lib/itold.c: New file.
8648         * modules/float (Files): Add lib/itold.c.
8649         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8650         (Makefile.am): Substitute REPLACE_ITOLD.
8651         * modules/math (Depends-on): Add float.
8652         (Makefile.am): Substitute REPLACE_ITOLD.
8653         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8654         * doc/posix-headers/math.texi: Likewise.
8655         * doc/posix-functions/logl.texi: Likewise.
8656
8657 2011-09-30  Bruno Haible  <bruno@clisp.org>
8658
8659         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8660         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8661         Set to 140000.
8662
8663 2011-09-30  Bruno Haible  <bruno@clisp.org>
8664
8665         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8666         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8667         invocation, say "right after AC_PROG_CC_STDC", not "right after
8668         AC_PROG_CC".
8669         Reported by Gary V. Vaughan <gary@gnu.org>.
8670
8671 2011-09-30  Bruno Haible  <bruno@clisp.org>
8672
8673         Centralize C99 requirement.
8674         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8675         * modules/stdarg (configure.ac-early): Invoke it instead of
8676         AC_PROG_CC_STDC.
8677         Reported by Gary V. Vaughan and Paul Eggert.
8678
8679 2011-09-29  Bruno Haible  <bruno@clisp.org>
8680
8681         float: Fix LDBL_MAX value on Linux/PowerPC.
8682         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8683         on Linux/PowerPC.
8684         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8685         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8686         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8687         platform.
8688         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8689
8690 2011-09-29  Bruno Haible  <bruno@clisp.org>
8691
8692         doc: Improve doc about gl_EARLY.
8693         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8694         AC_PROG_CC_STDC invocation.
8695         Reported by Gary V. Vaughan <gary@gnu.org>.
8696
8697 2011-09-28  Bruno Haible  <bruno@clisp.org>
8698
8699         fgetc, fputc, fread, fwrite tests: Fix link error.
8700         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8701         on non-MSVC platforms.
8702         * tests/test-fputc.c (main): Likewise.
8703         * tests/test-fread.c (main): Likewise.
8704         * tests/test-fwrite.c (main): Likewise.
8705         Reported by Jim Meyering.
8706
8707 2011-09-27  Bruno Haible  <bruno@clisp.org>
8708
8709         fputc, fwrite tests: Avoid test failure on MSVC.
8710         * tests/test-fgetc.c: Include msvc-inval.h.
8711         (main): Invoke gl_msvc_inval_ensure_handler.
8712         * tests/test-fputc.c: Include msvc-inval.h.
8713         (main): Invoke gl_msvc_inval_ensure_handler.
8714         * tests/test-fread.c: Include msvc-inval.h.
8715         (main): Invoke gl_msvc_inval_ensure_handler.
8716         * tests/test-fwrite.c: Include msvc-inval.h.
8717         (main): Invoke gl_msvc_inval_ensure_handler.
8718         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8719         * modules/fputc-tests (Depends-on): Likewise.
8720         * modules/fread-tests (Depends-on): Likewise.
8721         * modules/fwrite-tests (Depends-on): Likewise.
8722
8723 2011-09-27  Bruno Haible  <bruno@clisp.org>
8724
8725         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8726         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8727         (raise): Remove older, duplicated declaration.
8728         (_gl_raise_SIGPIPE): New declaration.
8729         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8730         (rpl_raise): Remove function.
8731         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8732         a gnulib-defined SIGPIPE here.
8733         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8734         'sigprocmask' has detected missing signal-blocking and the module
8735         'sigpipe' is enabled.
8736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8737
8738 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8739
8740         base64-tests: avoid memory leak
8741         * tests/test-base64.c (main): Plug memory leak.
8742
8743         base32: new module
8744         * modules/base32: New module.
8745         * lib/base32.c: New file.
8746         * lib/base32.h: Likewise.
8747         * m4/base32.m4: Likewise.
8748         * modules/base32-tests: New test.
8749         * tests/test-base32.c: Likewise.
8750         * MODULES.html.sh (Misc): Mention it.
8751
8752 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         gnulib: use more-standard license notice wording
8755         * gnulib-tool (func_emit_copyright_notice): When emitting a
8756         license notice into a file, use the standard wording as suggested
8757         by the current information for GNU maintainers, except say "file"
8758         rather than "program".  The new wording gives a license version
8759         number, which addresses an issue raised by Glenn Morris in
8760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8761         * m4/onceonly.m4: Use that same wording here, too.
8762
8763         dup2: minor simplification
8764         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8765         as lib/dup2.c no longer uses 'inline'.
8766
8767 2011-09-25  Bruno Haible  <bruno@clisp.org>
8768
8769         strings: Fix compilation error on MSVC.
8770         * lib/strings.in.h: Include <stddef.h> for size_t.
8771
8772 2011-09-25  Bruno Haible  <bruno@clisp.org>
8773
8774         fflush et al.: Document limitation on MSVC.
8775         * doc/posix-functions/fflush.texi: Document possible crash in handling
8776         mode other than DEFAULT_HANDLING.
8777         * doc/posix-functions/fgetc.texi: Likewise.
8778         * doc/posix-functions/fputc.texi: Likewise.
8779         * doc/posix-functions/fread.texi: Likewise.
8780         * doc/posix-functions/fwrite.texi: Likewise.
8781
8782 2011-09-25  Bruno Haible  <bruno@clisp.org>
8783
8784         msvc-inval: Allow three invalid parameter handling modes.
8785         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8786         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8787         macros.
8788         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8789         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8790         SANE_LIBRARY_HANDLING as a no-op.
8791         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8792         <stdlib.h>.
8793         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8794
8795 2011-09-25  Bruno Haible  <bruno@clisp.org>
8796
8797         msvc-inval: Make handler multithread-safe.
8798         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8799         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8800         declarations.
8801         (gl_msvc_inval_current): New declaration.
8802         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8803         Operate on the structure returned by gl_msvc_inval_current().
8804         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8805         Remove varaiables.
8806         (tls_index, tls_initialized): New variables.
8807         (not_per_thread): New variable.
8808         (gl_msvc_inval_current): New function.
8809         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8810         returned by gl_msvc_inval_current().
8811
8812 2011-09-25  Bruno Haible  <bruno@clisp.org>
8813
8814         msvc-inval: Install handler globally.
8815         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8816         !_MSC_VER.
8817         (gl_msvc_invalid_parameter_handler): Remove declaration.
8818         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8819         declarations.
8820         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8821         Install the handler globally, don't uninstall it.
8822         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8823         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8824         currently valid, call RaiseException instead.
8825         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8826         for !_MSC_VER.
8827
8828 2011-09-25  Bruno Haible  <bruno@clisp.org>
8829
8830         strerror_r-posix: Fix for MSVC 9.
8831         * lib/strerror_r.c (local_snprintf): New function.
8832         (snprintf): Define to local_snprintf, not to _snprintf.
8833
8834 2011-09-25  Bruno Haible  <bruno@clisp.org>
8835
8836         ftruncate: Support for MSVC 9.
8837         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8838         (chsize_nothrow): New function.
8839         (chsize): Redefine as a macro.
8840         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8841         * modules/ftruncate (Depends-on): Add msvc-inval.
8842
8843 2011-09-25  Bruno Haible  <bruno@clisp.org>
8844
8845         New module 'fstat'.
8846         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8847         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8848         * lib/fchdir.c (rpl_fstat): Remove function.
8849         * m4/fstat.m4: New file.
8850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8852         declared.
8853         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8854         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8855         * modules/fstat: New file.
8856         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8857         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8858         is set.
8859         * doc/posix-functions/fstat.texi: Mention the new module and the
8860         problem on MSVC.
8861         * NEWS: Mention the change.
8862         * modules/acl (Depends-on): Add fstat.
8863         * modules/chdir-safer (Depends-on): Likewise.
8864         * modules/chown (Depends-on): Likewise.
8865         * modules/copy-file (Depends-on): Likewise.
8866         * modules/fchdir (Depends-on): Likewise.
8867         * modules/fdopendir (Depends-on): Likewise.
8868         * modules/fopen (Depends-on): Likewise.
8869         * modules/fts (Depends-on): Likewise.
8870         * modules/getcwd (Depends-on): Likewise.
8871         * modules/isapipe (Depends-on): Likewise.
8872         * modules/linkat (Depends-on): Likewise.
8873         * modules/lseek (Depends-on): Likewise.
8874         * modules/mkdir-p (Depends-on): Likewise.
8875         * modules/open (Depends-on): Likewise.
8876         * modules/openat (Depends-on): Likewise.
8877         * modules/read-file (Depends-on): Likewise.
8878         * modules/renameat (Depends-on): Likewise.
8879         * modules/utimens (Depends-on): Likewise.
8880
8881 2011-09-25  Bruno Haible  <bruno@clisp.org>
8882
8883         linkat: Fix compilation on MSVC 9.
8884         * lib/linkat.c: Don't include <stdint.h>.
8885
8886 2011-09-25  Bruno Haible  <bruno@clisp.org>
8887
8888         fclose: Support for MSVC 9.
8889         * lib/fclose.c: Include msvc-inval.h.
8890         (fclose_nothrow): New function.
8891         (rpl_fclose): Use it.
8892         * modules/fclose (Depends-on): Add msvc-inval.
8893         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8894
8895 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8896
8897         dup2: minor simplifications
8898         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8899         that it's a performance win.
8900         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8901         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8902
8903 2011-09-24  Jim Meyering  <meyering@redhat.com>
8904
8905         test-futimens: avoid a warning from gcc -Wshadow
8906         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8907         to avoid a shadowing warning.
8908
8909 2011-09-24  Bruno Haible  <bruno@clisp.org>
8910
8911         fdopen: Support for MSVC 9.
8912         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8913         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8914         * lib/fdopen.c: Include msvc-inval.h.
8915         (fdopen_nothrow): New function.
8916         (rpl_fdopen): Use it.
8917         * modules/fdopen (Depends-on): Add msvc-inval.
8918         * modules/fclose-tests (Depends-on): Add fdopen.
8919         * modules/fflush-tests (Depends-on): Likewise.
8920         * modules/fgetc-tests (Depends-on): Likewise.
8921         * modules/fputc-tests (Depends-on): Likewise.
8922         * modules/fread-tests (Depends-on): Likewise.
8923         * modules/freopen-tests (Depends-on): Likewise.
8924         * modules/fseeko-tests (Depends-on): Likewise.
8925         * modules/ftello-tests (Depends-on): Likewise.
8926         * modules/fwrite-tests  (Depends-on): Likewise.
8927         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8928
8929 2011-09-24  Bruno Haible  <bruno@clisp.org>
8930
8931         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8932         * modules/fgetc-tests (Depends-on): Add unistd.
8933         * modules/fputc-tests (Depends-on): Likewise.
8934         * modules/fread-tests (Depends-on): Likewise.
8935         * modules/fwrite-tests (Depends-on): Likewise.
8936
8937 2011-09-24  Bruno Haible  <bruno@clisp.org>
8938
8939         dup: Simplify autoconf test.
8940         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8941         on gl_MSVC_INVAL's result.
8942
8943 2011-09-24  Bruno Haible  <bruno@clisp.org>
8944
8945         Tests for function fwrite().
8946         * modules/fwrite-tests: New file.
8947         * tests/test-fwrite.c: New file.
8948         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8949
8950         Tests for function fread().
8951         * modules/fread-tests: New file.
8952         * tests/test-fread.c: New file.
8953         * modules/stdio-tests (Depends-on): Add fread-tests.
8954
8955         Activate fputc tests.
8956         * modules/stdio-tests (Depends-on): Add fputc-tests.
8957
8958         Enhance fgetc, fputc tests.
8959         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8960         * tests/test-fputc.c (main): Likewise.
8961
8962 2011-09-24  Bruno Haible  <bruno@clisp.org>
8963
8964         write: Support for MSVC 9.
8965         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8966         is not 1.
8967         * lib/write.c (write_nothrow): New function.
8968         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8969         not 1. Use write_nothrow.
8970         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8971         invalid parameter handler.
8972         (gl_PREREQ_WRITE): New macro.
8973         * modules/write (Depends-on): Add msvc-inval.
8974         (configure.ac): Invoke gl_PREREQ_WRITE.
8975         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8976
8977 2011-09-24  Bruno Haible  <bruno@clisp.org>
8978
8979         read: Fix last commit.
8980         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8981
8982 2011-09-24  Bruno Haible  <bruno@clisp.org>
8983
8984         dup2: Fix last commit.
8985         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8986         (rpl_dup2): Disable fcntl workaround on native Windows.
8987
8988         sigprocmask: Make code safer.
8989         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8990         section that changes macro definitions for this compilation unit.
8991
8992 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8993
8994         dup2: clarify by coalescing Windows-specific material
8995         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8996         "msvc-nothrow.h"' to the Windows-specific section, so that the
8997         Emacs source need not contain these include files.
8998         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8999         Windows-specific fixes into this function rather than just the
9000         nothrow fix, as this shortens and clarifies the code.  Always
9001         define as a function, as that's a bit cleaner than having it be
9002         sometimes a function and sometimes a macro.
9003         (rpl_dup2): Move the Windows-specific stuff out of here and into
9004         ms_windows_dup2.  Don't protect the Haiku-related fix with
9005         "#if !defined __linux__", as the same code also works around
9006         a Linux kernel bug, and it doesn't add any system calls on any
9007         platform.  Add comment about FreeBSD 6.1.
9008
9009         sigprocmask: move #include directive
9010         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9011         Windows-specific section, so that the Emacs source need not
9012         contain msvc-inval.h.
9013
9014 2011-09-23  Bruno Haible  <bruno@clisp.org>
9015
9016         read: Support for MSVC 9.
9017         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9018         is not 1.
9019         * lib/read.c (read_nothrow): New function.
9020         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9021         read_nothrow.
9022         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9023         invalid parameter handler.
9024         (gl_PREREQ_READ): New macro.
9025         * modules/read (Depends-on): Add msvc-inval.
9026         (configure.ac): Invoke gl_PREREQ_READ.
9027         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9028
9029 2011-09-23  Bruno Haible  <bruno@clisp.org>
9030
9031         close: Support for MSVC 9.
9032         * lib/close.c: Include <errno.h>, msvc-inval.h.
9033         (close_nothrow): New function.
9034         (rpl_close): Use it.
9035         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9036         invalid parameter handler.
9037         * modules/close (Depends-on): Add msvc-inval.
9038         * modules/dup2-tests (Depends-on): Add close.
9039         * modules/dup3-tests (Depends-on): Likewise.
9040         * modules/fcntl-tests (Depends-on): Likewise.
9041         * modules/spawn-pipe-tests (Depends-on): Likewise.
9042         * modules/unistd-safer-tests (Depends-on): Likewise.
9043         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9044
9045 2011-09-23  Bruno Haible  <bruno@clisp.org>
9046
9047         New module 'dup'.
9048         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9049         Allow replacement.
9050         * lib/dup.c: New file.
9051         * lib/fchdir.c (rpl_dup): Remove function.
9052         * m4/dup.m4: New file.
9053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9054         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9056         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9057         * modules/dup: New file.
9058         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9059         'dup' module is in use.
9060         * modules/fdopendir (Depends-on): Add dup.
9061         * modules/fdutimensat-tests (Depends-on): Likewise.
9062         * modules/fts (Depends-on): Likewise.
9063         * modules/futimens-tests (Depends-on): Likewise.
9064         * modules/posix_spawnp-tests (Depends-on): Likewise.
9065         * modules/unistd-safer-tests (Depends-on): Likewise.
9066         * modules/utimens-tests (Depends-on): Likewise.
9067         * doc/posix-functions/dup.texi: Mention the new module and the problem
9068         on MSVC.
9069
9070 2011-09-23  Bruno Haible  <bruno@clisp.org>
9071
9072         getdtablesize: Support for MSVC 9.
9073         * lib/getdtablesize.c: Include msvc-inval.h.
9074         (_setmaxstdio_nothrow): New function.
9075         (_setmaxstdio): Redefine it.
9076         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9077         * modules/getdtablesize (Depends-on): Add msvc-inval.
9078         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9079
9080 2011-09-23  Bruno Haible  <bruno@clisp.org>
9081
9082         signal-h: Rename from signal.
9083         * modules/signal-h: Renamed from modules/signal.
9084         * modules/pthread_sigmask (Depends-on): Update.
9085         * modules/raise (Depends-on): Likewise.
9086         * modules/sigaction (Depends-on): Likewise.
9087         * modules/sigpipe (Depends-on): Likewise.
9088         * modules/sigprocmask (Depends-on): Likewise.
9089         * modules/sys_select (Depends-on): Likewise.
9090         * modules/signal-h-tests: Renamed from modules/signal-tests.
9091         (Files, Depends-on, Makefile.am): Update.
9092         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9093         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9094         (Files, Makefile.am): Update.
9095         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9096         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9097         * modules/signal: New placeholder file.
9098         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9099         * doc/posix-headers/signal.texi: Update.
9100         * NEWS: Mention the change.
9101
9102 2011-09-23  Bruno Haible  <bruno@clisp.org>
9103
9104         sigprocmask: Avoid crashes through signal() on MSVC 9.
9105         * lib/sigprocmask.c: Include msvc-inval.h.
9106         (signal_nothrow): New function.
9107         (signal): Redefine it.
9108         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9109         * modules/sigprocmask (Depends-on): Add msvc-inval.
9110         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9111
9112 2011-09-23  Bruno Haible  <bruno@clisp.org>
9113
9114         Tests for module 'raise'.
9115         * modules/raise-tests: New file.
9116         * tests/test-raise.c: New file.
9117
9118         raise: Support for MSVC.
9119         * lib/signal.in.h (raise): New declaration.
9120         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9121         for native Windows platforms.
9122         * m4/raise.m4: New file.
9123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9124         HAVE_RAISE, REPLACE_RAISE.
9125         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9126         REPLACE_RAISE.
9127         * modules/raise (Status, Notice): Remove fields.
9128         (Files): Add m4/raise.m4.
9129         (Depends-on): Add signal, msvc-inval.
9130         (configure.ac): Use the common idioms.
9131         (Maintainer): Add me.
9132         * tests/test-signal-c++.cc: Check the signature of raise.
9133         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9134
9135 2011-09-23  Bruno Haible  <bruno@clisp.org>
9136
9137         pipe2: Fix compilation on pre-C99 compilers.
9138         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9139
9140 2011-09-23  Bruno Haible  <bruno@clisp.org>
9141
9142         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9143         * lib/msvc-nothrow.h: New file.
9144         * lib/msvc-nothrow.c: New file.
9145         * m4/msvc-nothrow.m4: New file.
9146         * modules/msvc-nothrow: New file.
9147         * lib/dup2.c: Include msvc-nothrow.h.
9148         (rpl_dup2): No need to protect _get_osfhandle call here.
9149         * lib/accept4.c: Include msvc-nothrow.h.
9150         * lib/error.c: Likewise.
9151         * lib/fcntl.c: Likewise.
9152         * lib/lseek.c: Likewise.
9153         * lib/nonblocking.c: Likewise.
9154         * lib/poll.c: Likewise.
9155         * lib/read.c: Likewise.
9156         * lib/select.c: Likewise.
9157         * lib/sockets.h: Likewise.
9158         * lib/sockets.c: Likewise.
9159         * lib/stdio-read.c: Likewise.
9160         * lib/stdio-write.c: Likewise.
9161         * lib/write.c: Likewise.
9162         * lib/w32sock.h: Likewise.
9163         * lib/w32spawn.h: Likewise.
9164         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9165         * lib/fsync.c: Likewise.
9166         * lib/isapipe.c: Likewise.
9167         * modules/dup2 (Depends-on): Add msvc-nothrow.
9168         * modules/accept4 (Depends-on): Likewise.
9169         * modules/error (Depends-on): Likewise.
9170         * modules/fcntl (Depends-on): Likewise.
9171         * modules/lseek (Depends-on): Likewise.
9172         * modules/nonblocking (Depends-on): Likewise.
9173         * modules/poll (Depends-on): Likewise.
9174         * modules/read (Depends-on): Likewise.
9175         * modules/select (Depends-on): Likewise.
9176         * modules/sockets (Depends-on): Likewise.
9177         * modules/sigpipe (Depends-on): Likewise.
9178         * modules/write (Depends-on): Likewise.
9179         * modules/accept (Depends-on): Likewise.
9180         * modules/bind (Depends-on): Likewise.
9181         * modules/connect (Depends-on): Likewise.
9182         * modules/gethostname (Depends-on): Likewise.
9183         * modules/getpeername (Depends-on): Likewise.
9184         * modules/getsockname (Depends-on): Likewise.
9185         * modules/getsockopt (Depends-on): Likewise.
9186         * modules/ioctl (Depends-on): Likewise.
9187         * modules/listen (Depends-on): Likewise.
9188         * modules/recv (Depends-on): Likewise.
9189         * modules/recvfrom (Depends-on): Likewise.
9190         * modules/send (Depends-on): Likewise.
9191         * modules/sendto (Depends-on): Likewise.
9192         * modules/setsockopt (Depends-on): Likewise.
9193         * modules/shutdown (Depends-on): Likewise.
9194         * modules/socket (Depends-on): Likewise.
9195         * modules/execute (Depends-on): Likewise.
9196         * modules/spawn-pipe (Depends-on): Likewise.
9197         * modules/flock (Depends-on): Likewise.
9198         * modules/fsync (Depends-on): Likewise.
9199         * modules/isapipe (Depends-on): Likewise.
9200         * tests/test-cloexec.c: Include msvc-nothrow.h.
9201         * tests/test-dup-safer.c: Likewise.
9202         * tests/test-dup2.c: Likewise.
9203         * tests/test-dup3.c: Likewise.
9204         * tests/test-fcntl.c: Likewise.
9205         * tests/test-pipe.c: Likewise.
9206         * tests/test-pipe2.c: Likewise.
9207         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9208         * modules/unistd-safer-tests (Depends-on): Likewise.
9209         * modules/dup2-tests (Depends-on): Likewise.
9210         * modules/dup3-tests (Depends-on): Likewise.
9211         * modules/fcntl-tests (Depends-on): Likewise.
9212         * modules/pipe-posix-tests (Depends-on): Likewise.
9213         * modules/pipe2-tests (Depends-on): Likewise.
9214
9215 2011-09-23  Bruno Haible  <bruno@clisp.org>
9216
9217         dup2: Make code more maintainable.
9218         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9219         (rpl_dup2): Use it.
9220         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9221         * modules/dup2 (configure.ac): Invoke it.
9222         Reported by Paul Eggert.
9223
9224 2011-09-23  Bruno Haible  <bruno@clisp.org>
9225
9226         msvc-inval: Fix compilation error.
9227         * lib/msvc-inval.h: Include <excpt.h>.
9228
9229 2011-09-23  Bruno Haible  <bruno@clisp.org>
9230
9231         mkdir: Tweak for MSVC 9.
9232         * lib/sys_stat.in.h: Update comments.
9233         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9234
9235         Tests for module 'chdir'.
9236         * modules/chdir-tests: New file.
9237         * tests/test-chdir.c: New file.
9238
9239         New module 'chdir'.
9240         * modules/chdir: New file.
9241         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9242         (chdir): New declaration.
9243         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9245         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9246         * tests/test-unistd-c++.cc: Check signature of chdir.
9247         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9248         * modules/chdir-long (Depends-on): Add chdir.
9249         * modules/fchdir (Depends-on): Likewise.
9250         * modules/rename (Depends-on): Likewise.
9251         * modules/savewd (Depends-on): Likewise.
9252
9253         rmdir: Support for mingw, MSVC 9.
9254         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9255         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9256
9257         getcwd: Tweak for MSVC 9.
9258         * lib/unistd.in.h: Update comments.
9259         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9260
9261 2011-09-22  Bruno Haible  <bruno@clisp.org>
9262
9263         strerror_r-posix: Avoid a link error on MSVC.
9264         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9265         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9266
9267 2011-09-22  Bruno Haible  <bruno@clisp.org>
9268
9269         select: Avoid link errors on MSVC.
9270         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9271         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9272         * modules/pselect (Link): Likewise.
9273         * NEWS: Mention the change.
9274         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9275         test-select-stdin against $(LIB_SELECT).
9276         * modules/pselect-tests (Makefile.am): Link test-pselect against
9277         $(LIB_SELECT).
9278
9279 2011-09-22  Bruno Haible  <bruno@clisp.org>
9280
9281         select: Avoid compilation error on MSVC.
9282         * lib/select.c: Don't include <stdbool.h>.
9283
9284 2011-09-21  Bruno Haible  <bruno@clisp.org>
9285
9286         Consolidate all uses of PATH_MAX in *.m4 files.
9287         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9288         macros.
9289         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9290         and gl_PATHMAX_SNIPPET.
9291         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9293         * modules/chdir-long (Files): Add m4/pathmax.m4.
9294         * modules/getcwd (Files): Likewise.
9295
9296 2011-09-21  Bruno Haible  <bruno@clisp.org>
9297
9298         ftruncate: Un-deprecate, concentrate on Win32 support.
9299         * modules/ftruncate (Status, Notice): Remove sections.
9300         (Depends-on): Add largefile.
9301         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9302         non-mingw platforms.
9303         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9304         include <io.h>.
9305         * modules/perror-tests (Depends-on): Add ftruncate.
9306         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9307         'ftruncate' module.
9308
9309 2011-09-21  Bruno Haible  <bruno@clisp.org>
9310
9311         Add dependencies to new dirent related modules.
9312         * modules/opendir (Depends-on): Add closedir.
9313         * modules/getcwd (Depends-on): Add opendir, closedir.
9314         * modules/dirent-safer-tests (Depends-on): Likewise.
9315         * modules/fdopendir-tests (Depends-on): Likewise.
9316         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9317         * modules/renameat-tests (Depends-on): Likewise.
9318
9319 2011-09-21  Bruno Haible  <bruno@clisp.org>
9320
9321         opendir: Avoid compilation error on mingw.
9322         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9323         * modules/opendir (Depends-on): Add unistd.
9324
9325 2011-09-21  Bruno Haible  <bruno@clisp.org>
9326
9327         ftruncate tests: Avoid a test failure on mingw.
9328         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9329
9330 2011-09-21  Bruno Haible  <bruno@clisp.org>
9331
9332         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9333         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9334         native Windows.
9335
9336 2011-09-21  Bruno Haible  <bruno@clisp.org>
9337
9338         New module 'fdopen'.
9339         * lib/stdio.in.h (fdopen): New declaration.
9340         * lib/fdopen.c: New file.
9341         * m4/fdopen.m4: New file.
9342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9343         REPLACE_FDOPEN.
9344         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9345         REPLACE_FDOPEN.
9346         * modules/fdopen: New file.
9347         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9348         * tests/test-stdio-c++.cc: Check signature of fdopen.
9349         * doc/posix-functions/fdopen.texi: Mention the new module.
9350
9351 2011-09-21  Bruno Haible  <bruno@clisp.org>
9352
9353         unlockpt tests: Avoid test failure on NetBSD 5.1.
9354         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9355         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9356
9357 2011-09-21  Bruno Haible  <bruno@clisp.org>
9358
9359         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9360         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9361         * tests/test-getlogin_r.c (main): Likewise.
9362
9363 2011-09-20  Bruno Haible  <bruno@clisp.org>
9364
9365         time tests: Don't require pid_t.
9366         * doc/posix-headers/time.texi: Revert last change.
9367         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9368         * tests/test-time.c: Comment out the check for pid_t.
9369
9370 2011-09-20  Bruno Haible  <bruno@clisp.org>
9371
9372         fsync tests: Avoid a test failure on mingw.
9373         * tests/test-fsync.c (main): Allow a failure with EIO.
9374
9375 2011-09-20  Bruno Haible  <bruno@clisp.org>
9376
9377         euidaccess: Update comments.
9378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9379
9380 2011-09-20  Bruno Haible  <bruno@clisp.org>
9381
9382         Ensure EBADF returns for socket functions on mingw.
9383         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9384         descriptor is invalid.
9385         * lib/bind.c (rpl_bind): Likewise.
9386         * lib/connect.c (rpl_connect): Likewise.
9387         * lib/getpeername.c (rpl_getpeername): Likewise.
9388         * lib/getsockname.c (rpl_getsockname): Likewise.
9389         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9390         * lib/listen.c (rpl_listen): Likewise.
9391         * lib/recv.c (rpl_recv): Likewise.
9392         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9393         * lib/send.c (rpl_send): Likewise.
9394         * lib/sendto.c (rpl_sendto): Likewise.
9395         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9396         * lib/shutdown.c (rpl_shutdown): Likewise.
9397
9398 2011-09-20  Bruno Haible  <bruno@clisp.org>
9399
9400         select tests: EBADF tests.
9401         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9402         test_bad_fd): New functions.
9403         (test_function): Invoke also test_bad_fd.
9404
9405 2011-09-20  Bruno Haible  <bruno@clisp.org>
9406
9407         Tests for module 'posix_spawn_file_actions_addopen.
9408         * modules/posix_spawn_file_actions_addopen-tests: New file.
9409         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9410
9411         Tests for module 'posix_spawn_file_actions_adddup2'.
9412         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9413         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9414
9415         Tests for module 'posix_spawn_file_actions_addclose'.
9416         * modules/posix_spawn_file_actions_addclose-tests: New file.
9417         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9418
9419 2011-09-20  Bruno Haible  <bruno@clisp.org>
9420
9421         Tests for module 'unlockpt'.
9422         * modules/unlockpt-tests: New file.
9423         * tests/test-unlockpt.c: New file.
9424         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9425
9426         Tests for module 'grantpt'.
9427         * modules/grantpt-tests: New file.
9428         * tests/test-grantpt.c: New file.
9429         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9430
9431 2011-09-20  Bruno Haible  <bruno@clisp.org>
9432
9433         freopen tests: EBADF tests.
9434         * tests/test-freopen.c: Include errno.h, unistd.h.
9435         (main): Add tests for EBADF, commented out for the moment.
9436
9437         fclose tests: EBADF tests.
9438         * tests/test-fclose.c (main): Add tests for EBADF.
9439
9440         fflush tests: EBADF tests.
9441         * tests/test-fflush.c: Include errno.h, macros.h.
9442         (main): Add tests for EBADF.
9443
9444         ftello tests: EBADF tests.
9445         * tests/test-ftello4.sh: New file.
9446         * tests/test-ftello4.c: New file.
9447         * modules/ftello-tests (Files): Add them.
9448         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9449
9450         fseeko tests: EBADF tests.
9451         * tests/test-fseeko4.sh: New file.
9452         * tests/test-fseeko4.c: New file.
9453         * modules/fseeko-tests (Files): Add them.
9454         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9455
9456         Tests for function fputc().
9457         * modules/fputc-tests: New file.
9458         * tests/test-fputc.c: New file.
9459         * modules/stdio-tests (Depends-on): Add fputc-tests.
9460
9461         Tests for function fgetc().
9462         * modules/fgetc-tests: New file.
9463         * tests/test-fgetc.c: New file.
9464         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9465
9466         Tests for function fdopen().
9467         * modules/fdopen-tests: New file.
9468         * tests/test-fdopen.c: New file.
9469         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9470
9471         Tests for module 'vdprintf'.
9472         * modules/vdprintf-tests: New file.
9473         * tests/test-vdprintf.c: New file.
9474
9475         Tests for module 'dprintf'.
9476         * modules/dprintf-tests: New file.
9477         * tests/test-dprintf.c: New file.
9478
9479 2011-09-20  Bruno Haible  <bruno@clisp.org>
9480
9481         Tests for module 'ioctl'.
9482         * modules/ioctl-tests: New file.
9483         * tests/test-ioctl.c: New file.
9484
9485 2011-09-20  Bruno Haible  <bruno@clisp.org>
9486
9487         fcntl tests: EBADF tests.
9488         * tests/test-fcntl.c (main): Add more tests for EBADF.
9489
9490 2011-09-20  Bruno Haible  <bruno@clisp.org>
9491
9492         utimensat tests: EBADF tests.
9493         * tests/test-utimensat.c (main): Add tests for EBADF.
9494
9495         renameat tests: EBADF tests.
9496         * tests/test-renameat.c (main): Add tests for EBADF.
9497
9498         mkfifoat tests: EBADF tests.
9499         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9500
9501         readlinkat tests: EBADF tests.
9502         * tests/test-readlinkat.c (main): Add tests for EBADF.
9503
9504         symlinkat tests: EBADF tests.
9505         * tests/test-symlinkat.c (main): Add tests for EBADF.
9506
9507         linkat tests: EBADF tests.
9508         * tests/test-linkat.c (main): Add tests for EBADF.
9509
9510         Tests for module 'faccessat'.
9511         * modules/faccessat-tests: New file.
9512         * tests/test-faccessat.c: New file.
9513
9514         fdopendir tests: EBADF tests.
9515         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9516
9517         openat tests: EBADF tests.
9518         * tests/test-fchownat.c (main): Add tests for EBADF.
9519         * tests/test-fstatat.c (main): Likewise.
9520         * tests/test-mkdirat.c (main): Likewise.
9521         * tests/test-openat.c (main): Likewise.
9522         * tests/test-unlinkat.c (main): Likewise.
9523         * tests/test-fchmodat.c: New file.
9524         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9525         (Makefile.am): Also run 'test-fchmodat'.
9526
9527 2011-09-20  Bruno Haible  <bruno@clisp.org>
9528
9529         utimens, futimens, fdutimensat tests: EBADF tests.
9530         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9531
9532         Tests for function fstat().
9533         * modules/fstat-tests: New file.
9534         * tests/test-fstat.c: New file.
9535         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9536
9537 2011-09-20  Bruno Haible  <bruno@clisp.org>
9538
9539         test-ttyname_r tests: EBADF tests.
9540         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9541
9542         Tests for module 'isatty'.
9543         * modules/isatty-tests: New file.
9544         * tests/test-isatty.c: New file.
9545
9546         Tests for module 'write'.
9547         * modules/write-tests: New file.
9548         * tests/test-write.c: New file.
9549
9550         Tests for module 'read'.
9551         * modules/read-tests: New file.
9552         * tests/test-read.c: New file.
9553
9554         pwrite tests: EBADF tests.
9555         * tests/test-pwrite.c (main): Add tests for EBADF.
9556
9557         pread tests: EBADF tests.
9558         * tests/test-pread.c (main): Add tests for EBADF.
9559
9560         lseek tests: EBADF tests.
9561         * tests/test-lseek.c (main): Add more tests for EBADF.
9562
9563         Tests for module 'ftruncate'.
9564         * modules/ftruncate-tests: New file.
9565         * tests/test-ftruncate.sh: New file.
9566         * tests/test-ftruncate.c: New file.
9567
9568         fsync tests: EBADF tests.
9569         * tests/test-fsync.c (main): Add more tests for EBADF.
9570
9571         fdatasync tests: EBADF tests.
9572         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9573
9574         Tests for module 'fchown'.
9575         * modules/fchown-tests: New file.
9576         * tests/test-fchown.c: New file.
9577
9578         Tests for module 'fchmod'.
9579         * modules/fchmod-tests: New file.
9580         * tests/test-fchmod.c: New file.
9581
9582         fchdir tests: EBADF tests.
9583         * tests/test-fchdir.c (main): Add more tests for EBADF.
9584
9585         dup2 tests: EBADF tests.
9586         * tests/test-dup2.c (main): Add more tests for EBADF.
9587
9588         Tests for module 'dup'.
9589         * modules/dup-tests: New file.
9590         * tests/test-dup.c: New file.
9591
9592         Tests for module 'close'.
9593         * modules/close-tests: New file.
9594         * tests/test-close.c: New file.
9595
9596 2011-09-20  Bruno Haible  <bruno@clisp.org>
9597
9598         Tests for module 'shutdown'.
9599         * modules/shutdown-tests: New file.
9600         * tests/test-shutdown.c: New file.
9601
9602         Tests for module 'setsockopt'.
9603         * modules/setsockopt-tests: New file.
9604         * tests/test-setsockopt.c: New file.
9605
9606         Tests for module 'sendto'.
9607         * modules/sendto-tests: New file.
9608         * tests/test-sendto.c: New file.
9609
9610         Tests for module 'send'.
9611         * modules/send-tests: New file.
9612         * tests/test-send.c: New file.
9613
9614         Tests for module 'recvfrom'.
9615         * modules/recvfrom-tests: New file.
9616         * tests/test-recvfrom.c: New file.
9617
9618         Tests for module 'recv'.
9619         * modules/recv-tests: New file.
9620         * tests/test-recv.c: New file.
9621
9622         Tests for module 'listen'.
9623         * modules/listen-tests: New file.
9624         * tests/test-listen.c: New file.
9625
9626         Tests for module 'getsockopt'.
9627         * modules/getsockopt-tests: New file.
9628         * tests/test-getsockopt.c: New file.
9629
9630         Tests for module 'getsockname'.
9631         * modules/getsockname-tests: New file.
9632         * tests/test-getsockname.c: New file.
9633
9634         Tests for module 'getpeername'.
9635         * modules/getpeername-tests: New file.
9636         * tests/test-getpeername.c: New file.
9637
9638         Tests for module 'connect'.
9639         * modules/connect-tests: New file.
9640         * tests/test-connect.c: New file.
9641
9642         Tests for module 'bind'.
9643         * modules/bind-tests: New file.
9644         * tests/test-bind.c: New file.
9645
9646         accept4 tests: Fix for native Windows.
9647         * tests/test-accept4.c: Include sockets.h.
9648         (main): Invoke gl_sockets_startup.
9649         * modules/accept4-tests (Depends-on): Add sockets.
9650
9651         accept tests: Fix for native Windows.
9652         * tests/test-accept.c: Include sockets.h.
9653         (main): Invoke gl_sockets_startup.
9654         * modules/accept-tests (Depends-on): Add sockets.
9655
9656 2011-09-19  Bruno Haible  <bruno@clisp.org>
9657
9658         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9659         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9660         do...while(0).
9661         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9662         Suggested by Paul Eggert.
9663
9664 2011-09-19  Bruno Haible  <bruno@clisp.org>
9665
9666         sched: Ensure pid_t is defined.
9667         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9668         not define pid_t.
9669         * lib/sched.in.h: Include <sys/types.h>.
9670         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9672
9673 2011-09-19  Bruno Haible  <bruno@clisp.org>
9674
9675         msvc-inval: Ensure the entire expansion is a single statement.
9676         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9677         of braces.
9678
9679 2011-09-19  Jim Meyering  <meyering@redhat.com>
9680
9681         tests: use printf, not echo in init.sh's warn_ function
9682         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9683         misbehave when given strings containing a backslash or starting
9684         with e.g., -n.  James Youngman suggested setting IFS.
9685
9686 2011-09-19  Eric Blake  <eblake@redhat.com>
9687
9688         futimens: enhance test
9689         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9690         closed non-negative fd.
9691
9692         date: accept 'hence' as opposite of 'ago'
9693         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9694         * tests/test-parse-datetime.c (main): Enhance test.
9695         Suggested by Jesse Wilson.
9696
9697 2011-09-19  Jim Meyering  <meyering@redhat.com>
9698
9699         getcwd: don't fail in a deep directory on a system without openat
9700         Before this change, getcwd would fail when called from a directory
9701         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9702         the non-openat implementation used "..", "../..", "../../..", etc.
9703         to access ancestor directories.  With too many, that string would
9704         be longer than PATH_MAX.
9705         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9706         using gnulib's openat replacement.
9707         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9708         we're using the replacement function.
9709
9710 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9711
9712         maint.mk: avoid warnings from perl about missing files
9713         * top/maint.mk (def_sym_regex): Ignore files listed in
9714         $(gl_other_headers_) that do not exist, say because a project
9715         does not use a corresponding module.
9716
9717 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9718
9719         stat: use pathmax.h only if needed
9720         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9721         This is better for Emacs, which does not have a mingw port and
9722         therefore can avoid the pathmax module.
9723
9724         utimens: remove dependency on dup2
9725         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9726         to work around the Linux kernel bug.
9727         * modules/utimens (Depends-on): Remove dup2.
9728
9729 2011-09-18  Bruno Haible  <bruno@clisp.org>
9730
9731         inet_ntop, inet_pton: Look for it also in libresolv.
9732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9733         libnsl, search for it in libresolv.
9734         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9735         Needed on Solaris 7.
9736
9737 2011-09-18  Bruno Haible  <bruno@clisp.org>
9738
9739         accept, accept4 tests: Avoid link error on Solaris.
9740         * modules/accept-tests (Makefile.am): Link test-accept against
9741         $(LIBSOCKET).
9742         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9743         $(LIBSOCKET).
9744
9745         accept4: Avoid link error on Solaris.
9746         * modules/accept4 (Link): New section.
9747
9748         socket functions: Avoid link errors on Solaris.
9749         * modules/accept (Depends-on): Add socketlib.
9750         (Link): New section.
9751         * modules/bind (Depends-on): Add socketlib.
9752         (Link): New section.
9753         * modules/connect (Depends-on): Add socketlib.
9754         (Link): New section.
9755         * modules/getpeername (Depends-on): Add socketlib.
9756         (Link): New section.
9757         * modules/getsockname (Depends-on): Add socketlib.
9758         (Link): New section.
9759         * modules/getsockopt (Depends-on): Add socketlib.
9760         (Link): New section.
9761         * modules/listen (Depends-on): Add socketlib.
9762         (Link): New section.
9763         * modules/recv (Depends-on): Add socketlib.
9764         (Link): New section.
9765         * modules/recvfrom (Depends-on): Add socketlib.
9766         (Link): New section.
9767         * modules/send (Depends-on): Add socketlib.
9768         (Link): New section.
9769         * modules/sendto (Depends-on): Add socketlib.
9770         (Link): New section.
9771         * modules/setsockopt (Depends-on): Add socketlib.
9772         (Link): New section.
9773         * modules/shutdown (Depends-on): Add socketlib.
9774         (Link): New section.
9775         * modules/socket (Depends-on): Add socketlib.
9776         (Link): New section.
9777
9778 2011-09-18  Bruno Haible  <bruno@clisp.org>
9779
9780         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9781         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9782         than 5 seconds.
9783         * modules/ptsname-tests (configure.ac): Test for alarm.
9784
9785 2011-09-18  Bruno Haible  <bruno@clisp.org>
9786
9787         posix_spawn_file_actions_add*: Fix module dependencies.
9788         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9789         posix_spawn_file_actions_init.
9790         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9791         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9792
9793 2011-09-18  Bruno Haible  <bruno@clisp.org>
9794
9795         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9796         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9797         * tests/test-renameat.c (main): Likewise.
9798
9799 2011-09-18  Bruno Haible  <bruno@clisp.org>
9800
9801         Tests for module 'accept4'.
9802         * modules/accept4-tests: New file.
9803         * tests/test-accept4.c: New file.
9804
9805 2011-09-18  Bruno Haible  <bruno@clisp.org>
9806
9807         Tests for module 'accept'.
9808         * modules/accept-tests: New file.
9809         * tests/test-accept.c: New file.
9810
9811 2011-09-18  Bruno Haible  <bruno@clisp.org>
9812
9813         dup2: Support for MSVC.
9814         * lib/dup2.c: Include msvc-inval.h.
9815         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9816         _get_osfhandle calls.
9817         * modules/dup2 (Depends-on): Add msvc-inval.
9818         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9819
9820         New module 'msvc-inval'.
9821         * lib/msvc-inval.h: New file.
9822         * lib/msvc-inval.c: New file.
9823         * m4/msvc-inval.m4: New file.
9824         * modules/msvc-inval: New file.
9825
9826 2011-09-17  Bruno Haible  <bruno@clisp.org>
9827
9828         Tests for module 'pclose'.
9829         * modules/pclose-tests: New file.
9830
9831         New module 'pclose'.
9832         * lib/stdio.in.h (pclose): New declaration.
9833         * lib/pclose.c: New file.
9834         * m4/pclose.m4: New file.
9835         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9837         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9838         * modules/pclose: New file.
9839         * modules/popen-tests (Depends-on): Add pclose.
9840         * modules/popen-safer-tests (Depends-on): Likewise.
9841         * doc/posix-functions/pclose.texi: Mention the new module.
9842
9843 2011-09-17  Bruno Haible  <bruno@clisp.org>
9844
9845         popen: Support for MSVC.
9846         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9847         * lib/popen.c (popen): Provide alternate definition for native Windows.
9848         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9850         * modules/popen (Depends-on, configure.ac): Update condition.
9851         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9852         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9853         fixed.
9854
9855 2011-09-17  Bruno Haible  <bruno@clisp.org>
9856
9857         isnanl, isnand, isnanf: Work around MSVC bug.
9858         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9859
9860 2011-09-17  Bruno Haible  <bruno@clisp.org>
9861
9862         sys_socket tests: Fix recent mistake.
9863         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9864
9865 2011-09-17  Bruno Haible  <bruno@clisp.org>
9866
9867         putenv: Support for MSVC.
9868         * modules/putenv (Depends-on): Add environ.
9869         * lib/putenv.c (environ): Disable declaration.
9870         * lib/unistd.in.h: Update comment.
9871
9872 2011-09-17  Bruno Haible  <bruno@clisp.org>
9873
9874         math: Avoid macro redefinition warnings on MSVC.
9875         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9876         Undefine before redefining.
9877
9878 2011-09-17  Bruno Haible  <bruno@clisp.org>
9879
9880         doc: Mention functions which are declared as macros.
9881         * doc/posix-functions/*[fl].texi: Mention that some functions are
9882         defined as macros with arguments only.
9883
9884 2011-09-17  Bruno Haible  <bruno@clisp.org>
9885
9886         Add dependencies to new dirent related modules.
9887         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9888         * modules/fts (Depends-on): Likewise.
9889         * modules/glob (Depends-on): Likewise.
9890         * modules/savedir (Depends-on): Likewise.
9891         * modules/scandir (Depends-on): Likewise.
9892         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9893         * modules/fdopendir (Depends-on): Add opendir.
9894
9895 2011-09-17  Bruno Haible  <bruno@clisp.org>
9896
9897         inet_pton: Support for MSVC on Windows Vista or newer.
9898         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9899         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9900         HAVE_DECL_INET_PTON is defined.
9901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9902         On platforms with <winsock2.h>, test whether inet_pton is declared in
9903         <ws2tcpip.h>. If so, arrange to replace it.
9904         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9905         REPLACE_INET_PTON.
9906         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9907         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9908         (Depends-on, configure.ac): Update condition.
9909         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9910
9911 2011-09-17  Bruno Haible  <bruno@clisp.org>
9912
9913         inet_ntop: Support for MSVC on Windows Vista or newer.
9914         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9915         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9916         HAVE_DECL_INET_NTOP is defined.
9917         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9918         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9919         <ws2tcpip.h>. If so, arrange to replace it.
9920         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9921         REPLACE_INET_NTOP.
9922         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9923         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9924         (Depends-on, configure.ac): Update condition.
9925         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9926
9927 2011-09-16  Eric Blake  <eblake@redhat.com>
9928
9929         test-fsync: yet another enhancement
9930         * tests/test-fsync.c (main): Also test behavior on read-only text
9931         file.
9932
9933 2011-09-16  Bruno Haible  <bruno@clisp.org>
9934
9935         Enhance fsync, fdatasync tests.
9936         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9937         * tests/test-fdatasync.c (main): Likewise.
9938
9939 2011-09-16  Bruno Haible  <bruno@clisp.org>
9940
9941         Support for MSVC compiler: Ensure mode_t gets defined.
9942         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9943         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9945         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9946         * tests/test-fcntl-h.c: Check that mode_t is defined.
9947         * tests/test-sys_stat.c: Likewise.
9948         * tests/test-sys_types.c: Likewise.
9949         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9950         * doc/posix-headers/sys_stat.texi: Likewise.
9951         * doc/posix-headers/sys_types.texi: Likewise.
9952
9953 2011-09-16  Bruno Haible  <bruno@clisp.org>
9954
9955         sys_stat: Support for MSVC.
9956         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9957         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9958         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9959         MSVC.
9960
9961 2011-09-16  Bruno Haible  <bruno@clisp.org>
9962
9963         Support for MSVC compiler: Ensure off_t gets defined.
9964         * lib/unistd.in.h: Include <sys/types.h>.
9965         * tests/test-fcntl-h.c: Check that off_t is defined.
9966         * tests/test-sys_stat.c: Likewise.
9967         * tests/test-sys_types.c: Likewise.
9968
9969 2011-09-16  Eric Blake  <eblake@redhat.com>
9970
9971         fdatasync: port to Solaris
9972         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9973         * modules/fdatasync (Link): Document it.
9974         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9975
9976         fdatasync: port to MacOS X 10.7
9977         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9978         declared.
9979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9980         * modules/unistd (Makefile.am): Substitute it.
9981         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9982         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9983
9984         fdatasync: minor improvements
9985         * modules/fdatasync (Depends-on): Add condition for fsync.
9986         * lib/fdatasync.c (fdatasync): Add comment.
9987         * tests/test-unistd-c++.cc: Test fdatasync.
9988
9989         unistd: update refs to newer POSIX
9990         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9991         Suggested by Bruno Haible.
9992
9993         fdatasync: new module
9994         * modules/fsync (Description): Document difference to fdatasync.
9995         * modules/fdatasync: New module.
9996         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9997         * lib/fdatasync.c (fdatasync): Likewise.
9998         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9999         defaults.
10000         * modules/unistd (Makefile.am): Set witnesses.
10001         * lib/unistd.in.h (fdatasync): Declare.
10002         * MODULES.html.sh: Document it.
10003         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10004         * modules/fdatasync-tests: New test.
10005         * tests/test-fdatasync.c: Likewise.
10006
10007 2011-09-16  Eric Blake  <eblake@redhat.com>
10008
10009         test-fsync: enhance tests
10010         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10011         * tests/test-fsync.c (main): Enhance test.
10012
10013 2011-09-15  Bruno Haible  <bruno@clisp.org>
10014
10015         Support for MSVC compiler: Ensure ssize_t gets defined.
10016         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10017         * doc/posix-headers/stdio.texi: Likewise.
10018         * modules/stdio (Depends-on): Add ssize_t.
10019         * modules/sys_socket (Depends-on): Likewise.
10020         * modules/sys_types (Depends-on): Likewise.
10021         * modules/sys_uio (Depends-on): Likewise.
10022         * modules/unistd (Depends-on): Likewise.
10023         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10024         * tests/test-sys_types.c: Check that ssize_t is defined.
10025
10026 2011-09-14  Bruno Haible  <bruno@clisp.org>
10027
10028         Avoid using #, the m4 comment starter character, near brackets.
10029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10030         delimiter character in sed expressions.
10031         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10032         Suggested by Eric Blake.
10033
10034         Properly quote AC_CHECK_DECLS' 4th argument.
10035         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10036         argument.
10037         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10038         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10039         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10040         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10042         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10044         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10045         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10046         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10047         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10048         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10049         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10050         * m4/isinf.m4 (gl_ISINF): Likewise.
10051         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10052         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10057         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10058         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10059         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10060         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10061         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10062         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10064         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10066         Reported by Eric Blake.
10067
10068         Properly quote AC_CHECK_DECL's 4th argument.
10069         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10070         argument.
10071         * m4/argp.m4 (gl_ARGP): Likewise.
10072         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10073         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10074         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10075         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10076         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10077         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10079         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10081         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10082         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10083         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10084         Reported by Eric Blake.
10085
10086 2011-09-14  Eric Blake  <eblake@redhat.com>
10087
10088         opendir: avoid compile warning
10089         * lib/opendir.c (includes): Always include errno.h.
10090         Reported by Tatsuro MATSUOKA.
10091
10092 2011-09-14  Jim Meyering  <meyering@redhat.com>
10093
10094         maint.mk: sc_tight_scope: propagate failure from sub-make
10095         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10096         Reported by Martin von Gagern.
10097
10098 2011-09-13  Bruno Haible  <bruno@clisp.org>
10099
10100         tempname: Support for MSVC.
10101         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10102         MSVC.
10103         * modules/tempname (Depends-on): Add fcntl-h.
10104
10105 2011-09-13  Bruno Haible  <bruno@clisp.org>
10106
10107         sys_time: Support for MSVC.
10108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10109         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10110         include <winsock2.h>.
10111         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10112         function declarations that collide with POSIX.
10113         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10114         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10115
10116 2011-09-13  Bruno Haible  <bruno@clisp.org>
10117
10118         stat: Support for MSVC.
10119         * lib/stat.c: Include pathmax.h.
10120         * modules/stat (Depends-on): Add pathmax.
10121
10122         pathmax: Support for native Windows.
10123         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10124
10125 2011-09-12  Bruno Haible  <bruno@clisp.org>
10126
10127         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10128         * lib/dirent.in.h (struct dirent): New type.
10129         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10130         DT_WHT): New macros.
10131         (DIR): New type.
10132         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10133         (readdir, rewinddir): New declarations.
10134         * lib/dirent-private.h: New file.
10135         * lib/opendir.c: New file.
10136         * lib/readdir.c: New file.
10137         * lib/rewinddir.c: New file.
10138         * lib/closedir.c: New file.
10139         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10140         * m4/opendir.m4: New file.
10141         * m4/readdir.m4: New file.
10142         * m4/rewinddir.m4: New file.
10143         * m4/closedir.m4: New file.
10144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10145         REPLACE_CLOSEDIR here.
10146         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10147         readdir, rewinddir are declared.
10148         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10149         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10150         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10151         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10152         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10153         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10154         * modules/opendir: New file.
10155         * modules/readdir: New file.
10156         * modules/rewinddir: New file.
10157         * modules/closedir: New file.
10158         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10159         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10160         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10161         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10162         * NEWS: Mention the 'fchdir' change.
10163
10164 2011-09-11  Bruno Haible  <bruno@clisp.org>
10165
10166         asm-underscore.m4: Support for MSVC.
10167         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10168         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10169
10170 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10171
10172         Doc about crypt functions.
10173         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10174         needing for _GNU_SOURCE to get crypt.
10175         * doc/posix-functions/encrypt.texi: Likewise.
10176         * doc/posix-functions/setkey.texi: Likewise.
10177
10178 2011-09-11  Bruno Haible  <bruno@clisp.org>
10179
10180         doc: Update regarding MSVC 9.
10181         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10182         tested".
10183         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10184         * doc/posix-headers/*.texi: Likewise.
10185         * doc/pastposix-functions/*.texi: Likewise.
10186         * doc/glibc-functions/*.texi: Likewise.
10187         * doc/glibc-headers/*.texi: Likewise.
10188
10189 2011-09-11  Bruno Haible  <bruno@clisp.org>
10190
10191         unistd et al.: Don't assume <unistd.h> exists.
10192         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10193         does not exist.
10194         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10195         exist. But include <stdlib.h>.
10196         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10197         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10198         symlink() does not exist.
10199         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10200         include <io.h> instead.
10201         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10203         include <direct.h> instead.
10204         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10206         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10207         <io.h> instead.
10208         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10209         correctly if the system does not have hard links.
10210         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10211         <direct.h> instead.
10212         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10213         it when looking for function declarations.
10214         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10215         <direct.h> and <io.h> instead.
10216         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10217
10218 2011-09-11  Bruno Haible  <bruno@clisp.org>
10219
10220         strcase: Support for MSVC.
10221         * modules/strcase (Status, Notice): Remove obsoletion mark.
10222         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10223         * doc/posix-functions/strncasecmp.texi: Likewise.
10224
10225         strings: Don't assume <strings.h> exists.
10226         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10227         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10228         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10229         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10230
10231 2011-09-11  Bruno Haible  <bruno@clisp.org>
10232
10233         dirent: Don't assume <dirent.h> exists.
10234         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10235         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10236         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10237         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10238
10239 2011-09-11  Bruno Haible  <bruno@clisp.org>
10240
10241         Fix wint_t on MSVC.
10242         * lib/wchar.in.h (wint_t): On MSVC, override it.
10243         * lib/wctype.in.h (wint_t): Likewise.
10244         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10245         MSVC.
10246         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10247         * doc/posix-headers/wctype.texi: Likewise.
10248
10249 2011-09-11  Bruno Haible  <bruno@clisp.org>
10250
10251         sys_types: Fix typo.
10252         * lib/sys_types.in.h: Fix typo in comment.
10253         Reported by Paul Eggert.
10254
10255         Support for MSVC compiler: Ensure size_t gets defined.
10256         * modules/strings (Depends-on): Add 'sys_types'.
10257         * modules/sys_uio (Depends-on): Likewise.
10258         * lib/sys_uio.in.h: Update comment.
10259
10260         C++ tests for module 'sys_types'.
10261         * modules/sys_types-c++-tests: New file.
10262         * tests/test-sys_types-c++.cc: New file.
10263
10264         Tests for module 'sys_types'.
10265         * modules/sys_types-tests: New file.
10266         * tests/test-sys_types.c: New file.
10267
10268         New module 'sys_types'.
10269         * lib/sys_types.in.h: New file.
10270         * m4/sys_types_h.m4: New file.
10271         * modules/sys_types: New file.
10272         * doc/posix-headers/sys_types.texi: Mention the new module and the
10273         size_t problem on MSVC 9.
10274
10275 2011-09-11  Bruno Haible  <bruno@clisp.org>
10276
10277         Support for MSVC compiler: Avoid division by a literal 0.
10278         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10280         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10281         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10282         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10283         * tests/infinity.h: New file.
10284         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10285         on MSVC.
10286         * tests/test-ceilf1.c: Include infinity.h.
10287         (main): Use Infinityf.
10288         * tests/test-ceil1.c: Include infinity.h.
10289         (main): Use Infinityd.
10290         * tests/test-ceill.c: Include infinity.h.
10291         (main): Use Infinityl.
10292         * tests/test-dprintf-posix.c: Include infinity.h.
10293         (test_function): Use Infinityd.
10294         * tests/test-floorf1.c: Include infinity.h.
10295         (main): Use Infinityf.
10296         * tests/test-floor1.c: Include infinity.h.
10297         (main): Use Infinityd.
10298         * tests/test-floorl.c: Include infinity.h.
10299         (main): Use Infinityl.
10300         * tests/test-fprintf-posix.c: Include infinity.h.
10301         (test_function): Use Infinityd.
10302         * tests/test-frexp.c: Include infinity.h.
10303         (main): Use Infinityd.
10304         * tests/test-frexpl.c: Include infinity.h.
10305         (main): Use Infinityl.
10306         * tests/test-isfinite.c: Include infinity.h.
10307         (test_isfinitef): Use Infinityf.
10308         (test_isfinited): Use Infinityd.
10309         (test_isfinitel): Use Infinityl.
10310         * tests/test-isinf.c: Include infinity.h.
10311         (test_isinff): Use Infinityf.
10312         (test_isinfd): Use Infinityd.
10313         (test_isinfl): Use Infinityl.
10314         * tests/test-isnan.c: Include infinity.h.
10315         (test_float): Use Infinityf.
10316         (test_double): Use Infinityd.
10317         (test_long_double): Use Infinityl.
10318         * tests/test-isnanf.h: Include infinity.h.
10319         (main): Use Infinityf.
10320         * tests/test-isnand.h: Include infinity.h.
10321         (main): Use Infinityd.
10322         * tests/test-isnanl.h: Include infinity.h.
10323         (main): Use Infinityl.
10324         * tests/test-ldexpl.c: Include infinity.h.
10325         (main): Use Infinityl.
10326         * tests/test-printf-posix.h: Include infinity.h.
10327         (test_function): Use Infinityd.
10328         * tests/test-roundf1.c: Include infinity.h.
10329         (main): Use Infinityf.
10330         * tests/test-round1.c: Include infinity.h.
10331         (main): Use Infinityd.
10332         * tests/test-roundl.c: Include infinity.h.
10333         (main): Use Infinityl.
10334         * tests/test-signbit.c: Include infinity.h.
10335         (test_signbitf): Use Infinityf.
10336         (test_signbitd): Use Infinityd.
10337         (test_signbitl): Use Infinityl.
10338         * tests/test-snprintf-posix.h: Include infinity.h.
10339         (test_function): Use Infinityd, Infinityl.
10340         * tests/test-sprintf-posix.h: Include infinity.h.
10341         (test_function): Use Infinityd, Infinityl.
10342         * tests/test-truncf1.c: Include infinity.h.
10343         (main): Use Infinityf.
10344         * tests/test-trunc1.c: Include infinity.h.
10345         (main): Use Infinityd.
10346         * tests/test-truncl.c: Include infinity.h.
10347         (main): Use Infinityl.
10348         * tests/test-vasnprintf-posix.c: Include infinity.h.
10349         (test_function): Use Infinityd, Infinityl.
10350         * tests/test-vasprintf-posix.c: Include infinity.h.
10351         (test_function): Use Infinityd, Infinityl.
10352         * modules/ceilf-tests (Files): Add tests/infinity.h.
10353         * modules/ceil-tests (Files): Likewise.
10354         * modules/ceill-tests (Files): Likewise.
10355         * modules/dprintf-posix-tests (Files): Likewise.
10356         * modules/floorf-tests (Files): Likewise.
10357         * modules/floor-tests (Files): Likewise.
10358         * modules/floorl-tests (Files): Likewise.
10359         * modules/fprintf-posix-tests (Files): Likewise.
10360         * modules/frexp-tests (Files): Likewise.
10361         * modules/frexp-nolibm-tests (Files): Likewise.
10362         * modules/frexpl-tests (Files): Likewise.
10363         * modules/frexpl-nolibm-tests (Files): Likewise.
10364         * modules/isfinite-tests (Files): Likewise.
10365         * modules/isinf-tests (Files): Likewise.
10366         * modules/isnan-tests (Files): Likewise.
10367         * modules/isnanf-tests (Files): Likewise.
10368         * modules/isnanf-nolibm-tests (Files): Likewise.
10369         * modules/isnand-tests (Files): Likewise.
10370         * modules/isnand-nolibm-tests (Files): Likewise.
10371         * modules/isnanl-tests (Files): Likewise.
10372         * modules/isnanl-nolibm-tests (Files): Likewise.
10373         * modules/ldexpl-tests (Files): Likewise.
10374         * modules/printf-posix-tests (Files): Likewise.
10375         * modules/roundf-tests (Files): Likewise.
10376         * modules/round-tests (Files): Likewise.
10377         * modules/roundl-tests (Files): Likewise.
10378         * modules/signbit-tests (Files): Likewise.
10379         * modules/snprintf-posix-tests (Files): Likewise.
10380         * modules/sprintf-posix-tests (Files): Likewise.
10381         * modules/truncf-tests (Files): Likewise.
10382         * modules/trunc-tests (Files): Likewise.
10383         * modules/truncl-tests (Files): Likewise.
10384         * modules/vasnprintf-posix-tests (Files): Likewise.
10385         * modules/vasprintf-posix-tests (Files): Likewise.
10386         * modules/vdprintf-posix-tests (Files): Likewise.
10387         * modules/vfprintf-posix-tests (Files): Likewise.
10388         * modules/vprintf-posix-tests (Files): Likewise.
10389         * modules/vsnprintf-posix-tests (Files): Likewise.
10390         * modules/vsprintf-posix-tests (Files): Likewise.
10391         * modules/xprintf-posix-tests (Files): Likewise.
10392
10393 2011-09-11  Bruno Haible  <bruno@clisp.org>
10394
10395         Ensure pid_t gets defined.
10396         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10397         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10398         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10400         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10401         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10402         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10404         * tests/test-fcntl-h.c: Check that pid_t is defined.
10405         * tests/test-sched.c: Likewise.
10406         * tests/test-termios.c: Likewise.
10407         * tests/test-time.c: Likewise.
10408         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10409         * doc/posix-headers/signal.texi: Likewise.
10410         * doc/posix-headers/sys_types.texi: Likewise.
10411         * doc/posix-headers/time.texi: Likewise.
10412
10413 2011-09-11  Bruno Haible  <bruno@clisp.org>
10414
10415         acl: Fix compilation on Solaris 10 (older version).
10416         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10417         of ACE_EVERYONE.
10418         * lib/set-mode-acl.c (qset_acl): Likewise.
10419         Reported by Christian Jullien <eligis@orange.fr>.
10420
10421 2011-09-10  Bruno Haible  <bruno@clisp.org>
10422
10423         iconv, unsetenv: Add support for MSVC compiler.
10424         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10425         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10426
10427 2011-09-10  Bruno Haible  <bruno@clisp.org>
10428
10429         *printf: Add support for MSVC compiler.
10430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10431         handles the exception caused by the %n directive. When cross-compiling,
10432         guess no on native Windows.
10433         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10434         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10435         emulate it through vsnprintf.
10436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10437         * doc/posix-functions/dprintf.texi: Update documentation regarding
10438         MSVC 9.
10439         * doc/posix-functions/fprintf.texi: Likewise.
10440         * doc/posix-functions/printf.texi: Likewise.
10441         * doc/posix-functions/snprintf.texi: Likewise.
10442         * doc/posix-functions/sprintf.texi: Likewise.
10443         * doc/posix-functions/swprintf.texi: Likewise.
10444         * doc/posix-functions/vdprintf.texi: Likewise.
10445         * doc/posix-functions/vfprintf.texi: Likewise.
10446         * doc/posix-functions/vprintf.texi: Likewise.
10447         * doc/posix-functions/vsnprintf.texi: Likewise.
10448         * doc/posix-functions/vsprintf.texi: Likewise.
10449         * doc/glibc-functions/asprintf.texi: Likewise.
10450         * doc/glibc-functions/obstack_printf.texi: Likewise.
10451         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10452         * doc/glibc-functions/vasprintf.texi: Likewise.
10453
10454 2011-09-10  Bruno Haible  <bruno@clisp.org>
10455
10456         nocrash: Add support for native Windows.
10457         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10458
10459 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10460             Bruno Haible  <bruno@clisp.org>
10461
10462         absolute-header, include-next: Add support for MSVC compiler.
10463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10464         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10465         directory separator in #line directives.
10466         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10467         recognize also backslash as directory separator in #line directives.
10468
10469 2011-09-08  Jim Meyering  <meyering@redhat.com>
10470
10471         maint.mk: mark the post-release commit log with "maint: " prefix
10472         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10473         one-line commit-log summary.
10474
10475 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10476             Bruno Haible  <bruno@clisp.org>
10477
10478         Doc about crypt functions.
10479         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10480         systems.
10481         * doc/posix-functions/encrypt.texi: Likewise.
10482         * doc/posix-functions/setkey.texi: Likewise.
10483
10484 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10485
10486         * lib/gc.h: Fix copyright header.
10487
10488 2011-09-07  Bruno Haible  <bruno@clisp.org>
10489
10490         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10492         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10493
10494 2011-09-07  Bruno Haible  <bruno@clisp.org>
10495
10496         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10497         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10498         * lib/freopen.c: Likewise.
10499         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10500         * lib/lstat.c: Likewise.
10501         * lib/stat.c: Likewise.
10502         * lib/open.c: Use different syntax for include of <fcntl.h>.
10503         * lib/openat.c: Include fcntl.h again, explicitly.
10504
10505 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10506
10507         parse-datetime: document the newly accepted format
10508         * doc/parse-datetime.texi (Combined date and time of day items):
10509         New section.
10510
10511 2011-09-06  Bruno Haible  <bruno@clisp.org>
10512
10513         acl: Fix a test failure on newer Solaris 10 with ZFS.
10514         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10515         ENOSYS as no ACL.
10516         Reported by Jim Meyering.
10517
10518 2011-09-06  Bruno Haible  <bruno@clisp.org>
10519
10520         acl: Update for AIX >= 5.3 with NFS.
10521         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10522         ENOSYS as no ACL.
10523
10524         acl: Fix a test failure on AIX >= 5.3 with NFS.
10525         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10526         as no ACL.
10527
10528 2011-09-06  Bruno Haible  <bruno@clisp.org>
10529
10530         acl: Fix a test failure on IRIX 6.5 with NFS.
10531         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10532         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10533         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10534         * lib/copy-acl.c (qcopy_acl): Likewise.
10535
10536 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10537
10538         openat: port to AIX 7.1 with large files
10539         AIX 7.1 does a "#define openat open64at" if large files are in use,
10540         so we can't simply #undef openat.  Use the orig_openat trick (similar
10541         to orig_open in lib/open.c) to work around the problem.  Problem
10542         reported by Kevin Brott for GNU tar, in the thread containing
10543         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10544         * lib/openat.c (__need_system_fcntl_h): Define first.
10545         Include <fcntl.h> and <sys/types.h> before undefining.
10546         (orig_openat) [HAVE_OPENAT]: New inline function.
10547         (openat) [HAVE_OPENAT]: Do not undef.
10548         (rpl_openat): Use orig_openat, not openat.
10549
10550 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10551             Bruno Haible  <bruno@clisp.org>
10552
10553         acl: Avoid errors on NonStop Kernel.
10554         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10555         ENOTSUP errors.
10556
10557 2011-09-05  Bruno Haible  <bruno@clisp.org>
10558
10559         acl: Clean up Solaris code.
10560         * lib/acl-internal.h: Remove no-op #if.
10561         * lib/file-has-acl.c: Likewise.
10562         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10563         * lib/copy-acl.c (qcopy_acl): Likewise.
10564
10565 2011-09-05  Bruno Haible  <bruno@clisp.org>
10566
10567         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10568         binaries built on the original Solaris 10.
10569         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10570         trivial.
10571
10572 2011-09-05  Bruno Haible  <bruno@clisp.org>
10573
10574         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10575         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10576         10.
10577         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10578         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10579         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10580         instead of acl_get, facl_get, acl_set, facl_set.
10581
10582 2011-09-05  Bruno Haible  <bruno@clisp.org>
10583
10584         copy-file: Try unit tests on more file systems.
10585         * tests/test-copy-file-1.sh: New file.
10586         * tests/test-copy-file-2.sh: New file.
10587         * modules/copy-file-tests (Files): Add them.
10588         (Makefile.am): Add them to TESTS.
10589
10590         acl: Try unit tests on more file systems.
10591         * tests/test-file-has-acl-1.sh: New file.
10592         * tests/test-file-has-acl-2.sh: New file.
10593         * tests/test-set-mode-acl-1.sh: New file.
10594         * tests/test-set-mode-acl-2.sh: New file.
10595         * tests/test-copy-acl-1.sh: New file.
10596         * tests/test-copy-acl-2.sh: New file.
10597         * modules/acl-tests (Files): Add them.
10598         (Makefile.am): Add them to TESTS.
10599
10600 2011-09-04  Bruno Haible  <bruno@clisp.org>
10601
10602         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10603         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10604         10.
10605         (OLD_ALLOW, OLD_DENY): New macros.
10606         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10607         ACE_ACCESS_ALLOWED_ACE_TYPE.
10608         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10609         ACE_ACCESS_DENIED_ACE_TYPE.
10610         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10611         (NEW_ACE_EXECUTE): Fix value.
10612         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10613         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10614         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10615         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10616         NEW_ACE_SYNCHRONIZE): New macros.
10617         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10618         instead of acl_fromtext, acl_set, facl_set.
10619         Fixes a coreutils/tests/cp/perm failure.
10620
10621 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10622
10623         openat: test for fstatat (..., 0) bug
10624         Further testing with tar suggests that fstatat (..., 0)
10625         does not work in general, on AIX 7.1; see
10626         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10627         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10628         replacement fstatat (which is what older AIX releases were using
10629         anyway).
10630         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10631         use is now changed to orig_fstatat.  This was probably the right
10632         thing to do anyway.
10633         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10634         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10635         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10636         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10637         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10638         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10639         if the bug is found.
10640
10641         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10642         This tests for another fstatat bug on AIX 7.1:
10643         fstatat (AT_FDCWD, ..., 0) does not work.  See
10644         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10645         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10646         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10647         (rpl_fstatat): Adjust so that it works around either (or both)
10648         bugs if present.
10649         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10650
10651 2011-09-03  Karl Berry  <karl@gnu.org>
10652
10653         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10654         in index entries.
10655
10656 2011-09-02  Bruno Haible  <bruno@clisp.org>
10657
10658         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10659         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10660         values of AR, ARFLAGS, RANLIB.
10661         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10662
10663 2011-09-02  Bruno Haible  <bruno@clisp.org>
10664
10665         Find 'ar' program that fits with --host argument.
10666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10667
10668 2011-09-02  Bruno Haible  <bruno@clisp.org>
10669
10670         tests: init.sh: Support any non-GNU diff.
10671         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10672         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10673         Solaris 8.
10674
10675 2011-09-02  Bruno Haible  <bruno@clisp.org>
10676
10677         tests: init.sh: work also with any non-GNU diff that supports -u
10678         * tests/init.sh: Relax check for diff -u support.
10679         Rather than checking for GNU diff via --version, simply check
10680         for support for -u itself.  Useful at least on OpenBSD 4.9,
10681         AIX 7.1, IRIX 6.5, and Solaris 10.
10682
10683 2011-09-01  Bruno Haible  <bruno@clisp.org>
10684
10685         strtoimax, strtoumax: Document problem on HP-UX 11.
10686         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10687         * doc/posix-functions/strtoumax.texi: Likewise.
10688
10689 2011-09-01  Bruno Haible  <bruno@clisp.org>
10690
10691         strtoumax: Avoid link error on OSF/1 with DTK cc.
10692         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10693         defined as a function.
10694         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10695         strtoumax is defined, not whether it is declared.
10696
10697 2011-09-01  Bruno Haible  <bruno@clisp.org>
10698
10699         strtoimax: Avoid link error on OSF/1 with DTK cc.
10700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10701         defined as a function.
10702         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10703         strtoimax is defined, not whether it is declared.
10704
10705 2011-09-01  Bruno Haible  <bruno@clisp.org>
10706
10707         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10708         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10709         as a function.
10710         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10711         whether it is declared.
10712
10713 2011-09-01  Bruno Haible  <bruno@clisp.org>
10714
10715         imaxabs: Avoid link error on OSF/1 with DTK cc.
10716         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10717         as a function.
10718         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10719         whether it is declared.
10720
10721 2011-09-01  Bruno Haible  <bruno@clisp.org>
10722
10723         Tests for module 'strtoumax'.
10724         * modules/strtoumax-tests: New file.
10725         * tests/test-strtoumax.c: New file.
10726
10727         Tests for module 'strtoimax'.
10728         * modules/strtoimax-tests: New file.
10729         * tests/test-strtoimax.c: New file.
10730
10731         Tests for module 'imaxdiv'.
10732         * modules/imaxdiv-tests: New file.
10733         * tests/test-imaxdiv.c: New file.
10734
10735         Tests for module 'imaxabs'.
10736         * modules/imaxabs-tests: New file.
10737         * tests/test-imaxabs.c: New file.
10738
10739 2011-09-01  Bruno Haible  <bruno@clisp.org>
10740
10741         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10742         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10743         pthread_create.
10744
10745 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         openat: work around AIX 7.1 fstatat issue
10748         This should fix the problem that was not properly fixed
10749         in the previous change, dated 2011-08-30.
10750         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10751         __need_system_stat_h defined.
10752         (orig_fstatat) [HAVE_FSTATAT]: New function.
10753         (rpl_fstatat): Go back to the old way of doing things,
10754         except call orig_fstatat instead of fstatat.
10755         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10756         Remove unnecessary check whether fstatat fills in st_size etc.
10757
10758 2011-09-01  Bruno Haible  <bruno@clisp.org>
10759
10760         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10761         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10762         just include the system's header.
10763
10764 2011-08-31  Jim Meyering  <meyering@redhat.com>
10765
10766         tests: avoid spurious assertion failure in test-float.c on ppc64
10767         * tests/test-float.c (test_long_double): Comment out an assertion,
10768         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10769         with gcc-4.4.4.
10770
10771         maint: indent with spaces, not TABs
10772         I need to get in the habit of running gnulib's "make check".
10773         Both of these would have been caught.
10774         * m4/largefile.m4: Indent with spaces, not TABs.
10775         * lib/parse-datetime.y (iso_8601_time): Likewise.
10776         Spotted by Pádraig Brady.
10777
10778         test-parse-datetime.c: accommodate a relatively strict gcc warning
10779         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10780         to avoid a warning from gcc's -Werror=missing-declarations.
10781         Insert a few spaces-before-funcall-parenthesis.
10782
10783 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10784
10785         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10786         The parser now accepts ISO 8601 date-time strings with "T" as the
10787         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10788         with a space between the date and time strings.  Now it also parses
10789         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10790         variants like "2004-02-29T16:21:42.333-07:00"
10791         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10792         of day representation using the 'T' separator character.
10793         * doc/parse-datetime.texi (General date syntax): replace use of
10794         deprecated --iso-8601 option with --rfc-3339 in example of date
10795         command output formats that can be parsed.
10796         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10797         lib/parse-datetime.y.
10798         (gmt_offset): New function.
10799         (main): Add additional test cases to validate ISO8601 extended
10800         date and time of day parsing.
10801
10802 2011-08-31  Bruno Haible  <bruno@clisp.org>
10803
10804         freopen: Documentation.
10805         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10806         name.
10807         Reported by Claudio Bley <claudio.bley@gmail.com>.
10808
10809 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10810
10811         freopen: Don't crash if the filename argument is NULL.
10812         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10813         NULL.
10814
10815 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10816
10817         openat: work around AIX 7.1 fstatat bug
10818         Problem reported by Kevin Brott for GNU tar, in the thread containing
10819         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10820         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10821         FSTATAT_ST_SIZE_ETC_BROKEN.
10822         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10823         rpl_fstatat.
10824         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10825         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10826         AC_CHECK_FUNCS_ONCE for fstatat.
10827         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10828         fchmodat, mkdirat, openat and unlinkat.
10829
10830 2011-08-30  Bruno Haible  <bruno@clisp.org>
10831
10832         Avoid endless recursions if config.h includes some header files.
10833         * lib/fopen.c (__need_FILE): Define already before including config.h.
10834         * lib/freopen.c (__need_FILE): Likewise.
10835         * lib/open.c (__need_system_fcntl_h): Likewise.
10836         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10837         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10838         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10839
10840 2011-08-25  Karl Berry  <karl@gnu.org>
10841
10842         * config/srclist.txt (ylwrap): new try.
10843         * build-aux/ylwrap: new file.
10844
10845 2011-08-23  Bruno Haible  <bruno@clisp.org>
10846
10847         tmpdir: Use a good default directory on native Windows.
10848         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10849         (P_tmpdir): Default to _P_tmpdir on native Windows.
10850         (path_search): On native Windows, try the value returned by GetTempPath
10851         before trying P_tmpdir.
10852         * modules/tmpdir (Depends-on): Add pathmax.
10853         Suggested by John Darrington <john@darrington.wattle.id.au>.
10854
10855 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10856
10857         doc: fix typo in README-release
10858         * top/README-release: Capitalize first word of a sentence.
10859
10860 2011-08-19  Jim Meyering  <meyering@redhat.com>
10861
10862         fts: do not exhaust memory when processing million-entry directories
10863         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10864         directory would require about 256*N bytes of memory.  Thus, it was
10865         easy to construct a directory too large to be processed by any of
10866         those tools.  With this change, fts' maximum memory utilization is
10867         now limited to around 30MB.
10868         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10869         (fts_read): When we've processed the final entry (i.e., when
10870         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10871         using the parent entry to read any remaining entries.  Dispatch
10872         depending on what fts_build returns:
10873         - NULL+stop, aka failure: stop
10874         - NULL otherwise: move up in the dir hierarchy
10875         - non-NULL: handle this new entry
10876         (fts_build): Declare and use new local, continue_readdir.
10877         Prepare to be called from fts_read, when the entries
10878         from a partially-read directory have just been exhausted.
10879         In that case, we'll skip the opendir and instead use the parent's
10880         fts_dirp and derive dir_fd from that.
10881         Finally, in the readdir loop, if we read max_entries entries,
10882         exit the loop ensuring *not* to call closedir.  This is required
10883         so that fts_dirp can be reused on a subsequent call.
10884         Prompted by Ben England's report of memory exhaustion in find
10885         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10886
10887         maint: fts: move decl of `dp' down into while loop; split a long line
10888         * lib/fts.c (fts_build): No semantic change.
10889
10890         fts: add/use new struct member, fts_dirp
10891         We are about to use this to manage any directory with
10892         too many entries to read all of them into memory at once.
10893         To do that, we'll need to save the DIR* pointer in each
10894         affected FTSENT struct.
10895         * lib/fts_.h: Include <dirent.h>.
10896         (struct FTSENT) [fts_dirp]: New member.
10897         * lib/fts.c (closedir_and_clear): Define.
10898         Use it in place of closedir so that we are sure to
10899         clear the new fts_dirp member when done with it.
10900         (fts_alloc): Initialize the new member.
10901         (fts_lfree): Free, if needed.
10902
10903         maint: fts: give __opendir2 a new parameter and rename
10904         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10905         than surreptitiously using sole caller's "dir_fd".
10906         (fts_opendir): Rename from __opendir2.
10907
10908         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10909         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10910
10911         maint: fts.c: correct off-by-one indentation
10912         * lib/fts.c (fts_build): Correct indentation, change style
10913         of a couple of block comments, and bracing style.
10914
10915         maint: fts.c: move __opendir2 #define "up" out of function body
10916         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10917
10918         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10919         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10920         out for a long time and besides was useful only on BSD systems.
10921
10922 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10923
10924         regex: port to Stratus OpenVOS
10925         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10926         define to empty, rather than attempting nonportable optimizations.
10927         Problem reported by Paul Green in:
10928         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10929         and fix suggested by Eric Blake in:
10930         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10931
10932 2011-08-17  Eric Blake  <eblake@redhat.com>
10933
10934         getcwd: fix test failures on mingw
10935         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10936         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10937         test if long directory cannot be created, and allow mingw errno.
10938
10939         getcwd-lgpl: fix m4 to match relaxed test for BSD
10940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10941         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10942         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10943         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10944         signature problem.
10945
10946         getcwd: fix compilation on mingw64
10947         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10948         getcwd.
10949         Reported by Marc-André Lureau.
10950
10951         pipe2: silence compiler warning
10952         * lib/pipe2.c (pipe2): Hide label if it is not used.
10953
10954 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10955
10956         relocatable-prog: fix link error
10957         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10958         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10959         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10960         into modules/relocatable-lib without noticing that
10961         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10962         also needs to build relocatable.c.
10963
10964 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10968         shell code: it contained a 'break' that was not in a loop.
10969         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10970         via a shell-language loop; this may have been true in old Autoconf
10971         versions, but it's not true in Autoconf 2.68.  I found this bug
10972         when testing coreutils git on Solaris 8, whose shell complains
10973         about the syntax error.
10974
10975 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10976
10977         * lib/base64.c: Fix comment to reference RFC 4648.
10978         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10979         <gvtulder@gmail.com>.
10980
10981 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10982
10983         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10984
10985         po/Makefile.in.in: fix make -q problem
10986         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10987         rule, since there's no file named 'check-macro-version' and its
10988         use as a file breaks make -q.
10989         (all): Don't depend on check-macro-version.
10990         (CHECK_MACRO_VERSION): New macro.
10991         (stamp-po): Use it.
10992
10993         configmake: fix make -q problem
10994         * modules/configmake (configmake.h): Update configmake.h's time stamp
10995         even if the file does not change.  Otherwise, 'make -q' fails.
10996         Problem reported by Simon Josefsson in
10997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10998
10999 2011-08-11  Jim Meyering  <meyering@redhat.com>
11000
11001         git-version-gen: correct the advice in a comment
11002         * build-aux/git-version-gen: Correct comment.
11003         Don't recommend to list .tarball-version in .gitignore.
11004
11005 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         base64: fix off-by-one buffer size bug
11008         Problem and (trivial) fix reported by Gijs van Tulder in
11009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11010         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11011         * tests/test-base64.c (main): Catch the bug.
11012
11013 2011-08-10  Eric Blake  <eblake@redhat.com>
11014
11015         closein: correct comments
11016         * lib/closein.c (close_stdin): Improve comments.
11017
11018 2011-08-09  Bruno Haible  <bruno@clisp.org>
11019
11020         More tests for 'fseeko'.
11021         * tests/test-fseeko3.c: New file, from Eric Blake.
11022         * tests/test-fseeko3.sh: New file.
11023         * modules/fseeko-tests (Files): Add them.
11024         (TESTS): Add test-fseeko3.sh.
11025         (check_PROGRAMS): Add test-fseeko3.
11026
11027 2011-08-09  Eric Blake  <eblake@redhat.com>
11028
11029         fseeko: remove unneeded hack
11030         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11031
11032         fseeko: fix bug on glibc
11033         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11034         Reported by John W. Eaton.
11035
11036 2011-08-08  Bruno Haible  <bruno@clisp.org>
11037
11038         unictype/base: Fix interoperability with preinstalled libunistring.
11039         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11040         Reported by Simon Josefsson.
11041
11042 2011-08-08  Bruno Haible  <bruno@clisp.org>
11043
11044         iswblank: Detect declaration correctly.
11045         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11046         AC_CHECK_DECLS invocation.
11047
11048 2011-08-08  Bruno Haible  <bruno@clisp.org>
11049
11050         tcgetsid: Detect declaration correctly.
11051         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11052         AC_CHECK_DECLS invocation.
11053         Reported by Simon Josefsson.
11054
11055 2011-08-08  Eric Blake  <eblake@redhat.com>
11056
11057         largefile: fix typo that regressed large file support
11058         * modules/largefile (configure.ac-early): Fix section name.
11059
11060 2011-08-06  Karl Berry  <karl@gnu.org>
11061
11062         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11063         a separate module.
11064
11065 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11066
11067         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11068         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11069         get prototype for free.
11070
11071 2011-08-04  Bruno Haible  <bruno@clisp.org>
11072
11073         Tests for module 'pathmax'.
11074         * modules/pathmax-tests: New file.
11075         * tests/test-pathmax.c: New file.
11076
11077         canonicalize-lgpl: Support larger filenames on the Hurd.
11078         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11079         Reported by Paul Eggert.
11080
11081         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11082         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11083         * lib/chdir-long.h: Include pathmax.h.
11084         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11085         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11086         (PATH_MAX): Remove code that is done by pathmax.h.
11087         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11088         * lib/tmpfile.c: Add a comment.
11089         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11090         * modules/chdir-long (Depends-on): Add pathmax.
11091         * modules/getcwd (Depends-on): Add pathmax.
11092         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11093         is not defined.
11094         * doc/posix-headers/limits.texi: Mention the pathmax module.
11095         * NEWS: Mention the change.
11096
11097 2011-08-02  Bruno Haible  <bruno@clisp.org>
11098
11099         pthread_sigmask: Actually use results of gl_THREADLIB.
11100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11101         gl_THREADLIB, not gl_[]THREADLIB.
11102         Reported by Eric Blake.
11103
11104 2011-08-02  Jim Meyering  <meyering@redhat.com>
11105
11106         maint.mk: relax the default _gl_TS_function_match regexp
11107         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11108         space between function name and "(" in an "extern" declaration.
11109         That would fail to match a decl with no space there: extern void foo();
11110
11111 2011-07-31  Iain Nicol  <iain@thenicols.net>
11112
11113         git-version-gen: document that EXTRA_DIST must include .version
11114         * build-aux/git-version-gen: In the how-to-use comment, document
11115         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11116         will fail when run from an unpacked distribution tarball.
11117
11118 2011-08-01  Bruno Haible  <bruno@clisp.org>
11119
11120         wctype-h: Fix last change.
11121         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11122         REPLACE_TOWLOWER to 0.
11123         Reported by Sam Steingold <sds@gnu.org>.
11124
11125 2011-07-31  Bruno Haible  <bruno@clisp.org>
11126
11127         frexpl: Update autoconf test.
11128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11129         according to changes of 2011-06-20.
11130
11131 2011-07-31  Bruno Haible  <bruno@clisp.org>
11132
11133         sys_utsname: Add support for Minix.
11134         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11135         <sys/utsname.h>.
11136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11137         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11138
11139 2011-07-31  Bruno Haible  <bruno@clisp.org>
11140
11141         strings: Add support for Minix.
11142         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11143         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11144         * doc/posix-headers/strings.texi: Document the Minix problem.
11145
11146 2011-07-31  Bruno Haible  <bruno@clisp.org>
11147
11148         wctype-h: Add support for Minix.
11149         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11150         REPLACE_TOWLOWER.
11151         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11152         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11153         REPLACE_ISWCNTRL.
11154
11155 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11156
11157         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11158         This is a performance improvement for 64-bit hosts: it causes the
11159         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11160
11161 2011-07-31  Bruno Haible  <bruno@clisp.org>
11162
11163         stdioext: Add support for Minix.
11164         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11165         * lib/fpurge.c (fpurge): Likewise.
11166         * lib/freadahead.c (freadahead): Likewise.
11167         * lib/freadable.c (freadable): Likewise.
11168         * lib/freading.c (freading): Likewise.
11169         * lib/freadptr.c (freadptr): Likewise.
11170         * lib/freadseek.c (freadptrinc): Likewise.
11171         * lib/fseeko.c (rpl_fseeko): Likewise.
11172         * lib/fseterr.c (fseterr): Likewise.
11173         * lib/fwritable.c (fwritable): Likewise.
11174         * lib/fwriting.c (fwriting): Likewise.
11175         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11176         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11177
11178 2011-07-31  Bruno Haible  <bruno@clisp.org>
11179
11180         errno: Port to Minix.
11181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11182         ECONNABORTED are defined.
11183         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11184         GNULIB_defined_ECONNABORTED): New macros.
11185         * lib/strerror-override.h (strerror_override): Test also
11186         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11187         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11188         ECONNABORTED.
11189         * doc/posix-headers/errno.texi: Mention the Minix problem.
11190
11191 2011-07-31  Bruno Haible  <bruno@clisp.org>
11192
11193         Work around declaration collisions on Minix.
11194         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11195         defined, set REPLACE_MBSINIT.
11196         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11197         defined, set REPLACE_MBRTOWC.
11198         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11199         set REPLACE_MBRLEN.
11200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11201         defined, set REPLACE_MBSRTOWCS.
11202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11203         defined, set REPLACE_WCRTOMB.
11204         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11205         defined, set REPLACE_WCSRTOMBS.
11206
11207 2011-07-31  Bruno Haible  <bruno@clisp.org>
11208
11209         Add support for Minix with ACK compiler.
11210         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11211         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11212         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11213
11214 2011-07-31  Bruno Haible  <bruno@clisp.org>
11215
11216         Documentation about Minix.
11217         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11218         * doc/glibc-headers/*.texi: Likewise.
11219         * doc/posix-functions/*.texi: Likewise.
11220         * doc/glibc-functions/*.texi: Likewise.
11221
11222 2011-07-31  Bruno Haible  <bruno@clisp.org>
11223
11224         snippet/warn-on-use: Fix indentation.
11225         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11226
11227 2011-07-25  Jim Meyering  <meyering@redhat.com>
11228
11229         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11230         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11231         commands.
11232
11233 2011-07-27  Jim Meyering  <meyering@redhat.com>
11234
11235         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11236         * top/maint.mk (gl_extract_significant_defines_): Now that
11237         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11238         gnulib/lib/signal.in.h, and now that we recommend to
11239         define-if-undefined those two symbols in application code,
11240         we must filter them out of the "significant" list.
11241         This avoids a "make syntax-check" failure in coreutils.
11242
11243 2011-07-26  Eric Blake  <eblake@redhat.com>
11244
11245         warnings: add comments about previous patch
11246         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11247         * m4/include_next.m4: Likewise.
11248         * m4/warn-on-use.m4: Likewise.
11249         * m4/warnings.m4: Likewise, and simplify use.
11250         Suggested by Stefano Lattarini.
11251
11252         include-next, warnings: support older autoconf
11253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11254         AS_VAR_PUSHDEF in a way that works with older autoconf.
11255         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11256         Reported by Daniel P. Berrange.
11257
11258 2011-07-25  Bruno Haible  <bruno@clisp.org>
11259
11260         fseek, ftell: Fix doc.
11261         * doc/posix-functions/fseek.texi: Reword statement about
11262         AC_SYS_LARGEFILE.
11263         * doc/posix-functions/ftell.texi: Likewise.
11264
11265 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11266             Bruno Haible  <bruno@clisp.org>
11267
11268         Add dependencies to the 'largefile' module.
11269         * modules/fopen (Depends-on): Add 'largefile'.
11270         * modules/freopen (Depends-on): Likewise.
11271         * modules/fseeko (Depends-on): Likewise.
11272         * modules/ftello (Depends-on): Likewise.
11273         * modules/glob (Depends-on): Likewise.
11274         * modules/lseek (Depends-on): Likewise.
11275         * modules/lstat (Depends-on): Likewise.
11276         * modules/mkostemp (Depends-on): Likewise.
11277         * modules/mkostemps (Depends-on): Likewise.
11278         * modules/mkstemp (Depends-on): Likewise.
11279         * modules/mkstemps (Depends-on): Likewise.
11280         * modules/open (Depends-on): Likewise.
11281         * modules/openat (Depends-on): Likewise.
11282         * modules/pread (Depends-on): Likewise.
11283         * modules/pwrite (Depends-on): Likewise.
11284         * modules/scandir (Depends-on): Likewise.
11285         * modules/stat (Depends-on): Likewise.
11286         * modules/tmpfile (Depends-on): Likewise.
11287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11288         since the containing module now depends on the largefile module.
11289         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11290         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11291         off_t is fixed by gnulib.
11292         * doc/posix-functions/freopen.texi: Likewise.
11293         * doc/posix-functions/fseeko.texi: Likewise.
11294         * doc/posix-functions/fstatat.texi: Likewise.
11295         * doc/posix-functions/ftello.texi: Likewise.
11296         * doc/posix-functions/glob.texi: Likewise.
11297         * doc/posix-functions/lseek.texi: Likewise.
11298         * doc/posix-functions/lstat.texi: Likewise.
11299         * doc/posix-functions/mkstemp.texi: Likewise.
11300         * doc/posix-functions/open.texi: Likewise.
11301         * doc/posix-functions/openat.texi: Likewise.
11302         * doc/posix-functions/pread.texi: Likewise.
11303         * doc/posix-functions/pwrite.texi: Likewise.
11304         * doc/posix-functions/scandir.texi: Likewise.
11305         * doc/posix-functions/stat.texi: Likewise.
11306         * doc/posix-functions/tmpfile.texi: Likewise.
11307         * doc/glibc-functions/mkostemp.texi: Likewise.
11308         * doc/glibc-functions/mkostemps.texi: Likewise.
11309         * doc/glibc-functions/mkstemps.texi: Likewise.
11310
11311 2011-07-25  Bruno Haible  <bruno@clisp.org>
11312
11313         fcntl: Move AC_LIBOBJ invocation to module description.
11314         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11315         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11316
11317         fcntl: Remove call-in from fchdir.m4.
11318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11320
11321         dup3: Remove potential call-in from fchdir.m4.
11322         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11324
11325         dup2: Move AC_LIBOBJ invocation to module description.
11326         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11327         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11328         Don't invoke AC_LIBOBJ.
11329         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11330
11331         dup2: Remove call-in from fchdir.m4.
11332         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11334
11335         fclose: Move AC_LIBOBJ invocation to module description.
11336         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11337         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11338         to 1.
11339         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11340
11341         fclose: Remove call-in from close.m4.
11342         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11343         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11344
11345         close: Move AC_LIBOBJ invocation to module description.
11346         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11347         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11348         1.
11349         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11350
11351         close: Remove call-in from fchdir.m4.
11352         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11354
11355         open: Move AC_LIBOBJ invocation to module description.
11356         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11357         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11358         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11359
11360         open: Remove call-in from fchdir.m4.
11361         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11363
11364         fchdir: Start to remove gl_REPLACE_* idiom.
11365         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11366         (gl_FUNC_FCHDIR): Invoke it.
11367
11368 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         * lib/ftell.c (ftell): Comment out cast.
11371
11372         close: use gl_REPLACE_FCLOSE only if defined
11373         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11374         is defined.  The close module doesn't depend on the fclose module
11375         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11377         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11378
11379 2011-07-24  Jim Meyering  <meyering@redhat.com>
11380
11381         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11382         * tests/test-select.h (test_function): Declare as "static".
11383
11384 2011-07-24  Bruno Haible  <bruno@clisp.org>
11385
11386         doc: Mention the effects of AC_SYS_LARGEFILE.
11387         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11388         on this function.
11389         * doc/posix-functions/aio_error.texi: Likewise.
11390         * doc/posix-functions/aio_fsync.texi: Likewise.
11391         * doc/posix-functions/aio_read.texi: Likewise.
11392         * doc/posix-functions/aio_return.texi: Likewise.
11393         * doc/posix-functions/aio_suspend.texi: Likewise.
11394         * doc/posix-functions/aio_write.texi: Likewise.
11395         * doc/posix-functions/fgetpos.texi: Likewise.
11396         * doc/posix-functions/fopen.texi: Likewise.
11397         * doc/posix-functions/freopen.texi: Likewise.
11398         * doc/posix-functions/fsetpos.texi: Likewise.
11399         * doc/posix-functions/fstatvfs.texi: Likewise.
11400         * doc/posix-functions/ftruncate.texi: Likewise.
11401         * doc/posix-functions/ftw.texi: Likewise.
11402         * doc/posix-functions/getrlimit.texi: Likewise.
11403         * doc/posix-functions/glob.texi: Likewise.
11404         * doc/posix-functions/lio_listio.texi: Likewise.
11405         * doc/posix-functions/lockf.texi: Likewise.
11406         * doc/posix-functions/mkstemp.texi: Likewise.
11407         * doc/posix-functions/mmap.texi: Likewise.
11408         * doc/posix-functions/nftw.texi: Likewise.
11409         * doc/posix-functions/openat.texi: Likewise.
11410         * doc/posix-functions/opendir.texi: Likewise.
11411         * doc/posix-functions/posix_fadvise.texi: Likewise.
11412         * doc/posix-functions/posix_fallocate.texi: Likewise.
11413         * doc/posix-functions/pread.texi: Likewise.
11414         * doc/posix-functions/pwrite.texi: Likewise.
11415         * doc/posix-functions/readdir.texi: Likewise.
11416         * doc/posix-functions/readdir_r.texi: Likewise.
11417         * doc/posix-functions/rewinddir.texi: Likewise.
11418         * doc/posix-functions/scandir.texi: Likewise.
11419         * doc/posix-functions/seekdir.texi: Likewise.
11420         * doc/posix-functions/setrlimit.texi: Likewise.
11421         * doc/posix-functions/statvfs.texi: Likewise.
11422         * doc/posix-functions/telldir.texi: Likewise.
11423         * doc/posix-functions/tmpfile.texi: Likewise.
11424         * doc/posix-functions/truncate.texi: Likewise.
11425         * doc/glibc-functions/fallocate.texi: Likewise.
11426         * doc/glibc-functions/fstatfs.texi: Likewise.
11427         * doc/glibc-functions/fts_children.texi: Likewise.
11428         * doc/glibc-functions/fts_read.texi: Likewise.
11429         * doc/glibc-functions/getdirentries.texi: Likewise.
11430         * doc/glibc-functions/mkostemp.texi: Likewise.
11431         * doc/glibc-functions/mkostemps.texi: Likewise.
11432         * doc/glibc-functions/mkstemps.texi: Likewise.
11433         * doc/glibc-functions/preadv.texi: Likewise.
11434         * doc/glibc-functions/pwritev.texi: Likewise.
11435         * doc/glibc-functions/sendfile.texi: Likewise.
11436         * doc/glibc-functions/statfs.texi: Likewise.
11437
11438 2011-07-24  Bruno Haible  <bruno@clisp.org>
11439
11440         doc: Fix typo.
11441         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11442
11443 2011-07-24  Bruno Haible  <bruno@clisp.org>
11444
11445         doc: Mention fsusage.
11446         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11447
11448 2011-07-24  Bruno Haible  <bruno@clisp.org>
11449
11450         doc: Mention new glibc headers and functions.
11451         * doc/glibc-headers/gshadow.texi: New file.
11452         * doc/glibc-functions/endsgent.texi: New file.
11453         * doc/glibc-functions/fgetsgent.texi: New file.
11454         * doc/glibc-functions/fgetsgent_r.texi: New file.
11455         * doc/glibc-functions/getsgent.texi: New file.
11456         * doc/glibc-functions/getsgent_r.texi: New file.
11457         * doc/glibc-functions/getsgnam.texi: New file.
11458         * doc/glibc-functions/getsgnam_r.texi: New file.
11459         * doc/glibc-functions/putsgent.texi: New file.
11460         * doc/glibc-functions/setsgent.texi: New file.
11461         * doc/glibc-functions/sgetsgent.texi: New file.
11462         * doc/glibc-functions/sgetsgent_r.texi: New file.
11463         * doc/glibc-functions/malloc_info.texi: New file.
11464         * doc/glibc-functions/preadv.texi: New file.
11465         * doc/glibc-functions/pwritev.texi: New file.
11466         * doc/glibc-functions/register_printf_modifier.texi: New file.
11467         * doc/glibc-functions/register_printf_specifier.texi: New file.
11468         * doc/glibc-functions/register_printf_type.texi: New file.
11469         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11470         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11471         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11472         * doc/glibc-functions/pthread_getname_np.texi: New file.
11473         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11474         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11475         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11476         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11477         * doc/glibc-functions/pthread_setname_np.texi: New file.
11478         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11479         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11480         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11481         * doc/glibc-functions/qsort_r.texi: New file.
11482         * doc/glibc-functions/quick_exit.texi: New file.
11483         * doc/glibc-functions/syncfs.texi: New file.
11484         * doc/gnulib.texi: Include them.
11485         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11486         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11487         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11488         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11489         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11490         * doc/glibc-functions/execvpe.texi: Likewise.
11491
11492 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         ftell: don't include <unistd.h>
11495         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11496         guaranteed to define off_t, and the ftell module depends on the
11497         stdio module.
11498
11499         ftell: do not assume wraparound signed arithmetic
11500         * lib/ftell.c: Include <limits.h>.
11501         (ftell): Don't assume wraparound signed arithmetic.
11502
11503 2011-07-24  Bruno Haible  <bruno@clisp.org>
11504
11505         close: No longer depend on module 'fclose'.
11506         * modules/close (Depends-on): Remove fclose.
11507         * NEWS: Mention the change.
11508         Suggested by Sam Steingold <sds@gnu.org>.
11509
11510 2011-07-24  Bruno Haible  <bruno@clisp.org>
11511
11512         fsusage: Enable large volume support on AIX >= 5.2.
11513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11514         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11515         instead of STAT_STATVFS.
11516         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11517
11518         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11520         f_blocks field only on MacOS X.
11521
11522         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11524         * modules/fsusage (Depends-on): Add largefile.
11525
11526 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11527
11528         * README: Modernize discussion of signed integers.
11529         Assuming overflow wraparound is no longer safe.
11530         Mention ones' complement and signed magnitude.
11531
11532 2011-07-22  Bruno Haible  <bruno@clisp.org>
11533
11534         select tests, pselect tests: Refactor.
11535         * tests/test-select.h: New file, extracted from tests/test-select.c.
11536         (select_fn): New type.
11537         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11538         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11539         test_pipe): Add my_select argument.
11540         (test_function): Renamed from main. Add my_select argument.
11541         * tests/test-select.c: Move most code to tests/test-select.h. Include
11542         test-select.h.
11543         * modules/select-tests (Files): Add tests/test-select.h.
11544         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11545         (my_select, main): New functions.
11546         * modules/pselect-tests (Files): Add tests/test-select.h,
11547         tests/macros.h, tests/signature.h.
11548         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11549         (configure.ac): Check for <sys/wait.h>.
11550
11551 2011-07-22  Bruno Haible  <bruno@clisp.org>
11552
11553         sys_select tests: Check the signature of FD_*.
11554         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11555         signature tests from here...
11556         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11557         here.
11558         * modules/sys_select-tests (Files): Add tests/signature.h.
11559
11560 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11561
11562         largefile: new module, replacing large-inode
11563         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11564         * MODULES.html.sh: Add largefile, remove large-inode.
11565         * modules/largefile, m4/largefile.m4: New files.
11566         * modules/large-inode, m4/large-inode.m4: Remove.
11567
11568         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11570         implementations that use only 32 bits to count blocks.
11571         On typical hosts with 1024-byte blocks, this fails with file
11572         systems as small as 4 TiB.  Problem reported by Herb Wartens
11573         <http://debbugs.gnu.org/9140> and this should also fix a similar
11574         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11575
11576         large-inode: New module
11577         * MODULES.html.sh: Add it.
11578         * modules/large-inode, m4/large-inode.m4: New files.
11579
11580         extensions: Enable extensions on MacOS X 10.5 and later.
11581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11582
11583 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11584
11585         file-has-acl: use acl_extended_file_nofollow if available
11586         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11587         (acl_extended_file): New macro.
11588         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11589         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11590
11591 2011-07-21  Bruno Haible  <bruno@clisp.org>
11592
11593         Declare system functions in a way that works with C++.
11594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11595         declare fdopendir as extern "C".
11596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11597         declare frexpl as extern "C".
11598         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11599         declare gai_strerror as extern "C".
11600         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11601         programs, declare gai_strerror as extern "C".
11602         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11603         declare getlogin_r as extern "C".
11604         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11605         as extern "C".
11606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11607         declare ldexpl as extern "C".
11608         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11609         as extern "C".
11610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11611         program, declare getmntinfo as extern "C".
11612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11613         stpncpy as extern "C".
11614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11615         program, declare __xpg_strerror_r as extern "C".
11616         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11617         strndup as extern "C".
11618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11619         declare memset and bzero as extern "C".
11620         Reported by Sam Steingold <sds@gnu.org>.
11621
11622 2011-07-12  Jim Meyering  <meyering@redhat.com>
11623
11624         maint.mk: prohibit inclusion of "verify.h" without use
11625         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11626
11627 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11628
11629         timer-time: A new module to check for timer_settime()
11630         * m4/timer_time.m4: Check for the posix function.
11631         * modules/timer-time: Add the new module.
11632         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11633         Mention it.
11634
11635 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11636             Bruno Haible  <bruno@clisp.org>
11637
11638         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11640         not defined, assume POSIX threads and look for pthread_sigmask in
11641         $LIBS, without changing $CPPFLAGS.
11642
11643 2011-07-19  Bruno Haible  <bruno@clisp.org>
11644
11645         strstr: Update cross-compilation guess.
11646         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11647         CPUs, guess no, in view of glibc
11648         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11649         Suggested by Eric Blake. Reported by Reuben Thomas.
11650
11651 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11652
11653         getopt-gnu: suppress core dumps from detection code
11654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11655         to suppress core dumps that may well occur on glibc systems.
11656         * modules/getopt-gnu: Depend on nocrash.
11657
11658 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11659
11660         pthread_sigmask: ensure usleep is declared
11661         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11662         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11663
11664 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11665
11666         doc: Document NonStop portability issues.
11667         * doc/posix-functions/sigaction.texi (sigaction):
11668         * doc/posix-headers/signal.texi (signal.h):
11669         Document NonStop.  See Joachim Schmitz in
11670         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11671
11672 2011-07-15  Bruno Haible  <bruno@clisp.org>
11673
11674         ffsl, ffsll: Avoid unportable behaviour.
11675         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11676
11677 2011-07-15  Bruno Haible  <bruno@clisp.org>
11678
11679         ffs: More tests.
11680         * tests/test-ffs.c (NBITS): New macro.
11681         (main): Add more tests.
11682         * tests/test-ffsl.c (NBITS): New macro.
11683         (main): Add more tests.
11684         * tests/test-ffsll.c (NBITS): New macro.
11685         (main): Add more tests.
11686
11687 2011-07-15  Eric Blake  <eblake@redhat.com>
11688
11689         ffsl, ffsll: new modules
11690         * modules/ffsl: New file.
11691         * modules/ffsll: Likewise.
11692         * m4/ffsl.m4: Likewise.
11693         * m4/ffsll.m4: Likewise.
11694         * lib/ffsl.c: Likewise.
11695         * lib/ffsl.h: Likewise.
11696         * lib/ffsll.c: Likewise.
11697         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11698         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11699         * modules/string (Makefile.am): Substitute witnesses.
11700         * lib/strings.in.h (ffsl, ffsll): Declare.
11701         * modules/ffsl-tests: New test file.
11702         * modules/ffsll-tests: Likewise.
11703         * tests/test-ffsl.c: Likewise.
11704         * tests/test-ffsll.c: Likewise.
11705         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11706         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11707         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11708
11709         ffs: fix m4 prerequisite
11710         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11711
11712         ffs: avoid undefined behavior
11713         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11714         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11715         Reported by Bruno Haible.
11716
11717 2011-07-12  Bruno Haible  <bruno@clisp.org>
11718
11719         pthread_sigmask: Rely on module 'threadlib'.
11720         * modules/pthread_sigmask (Depends-on): Add threadlib.
11721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11722         is defined.
11723
11724 2011-07-12  Bruno Haible  <bruno@clisp.org>
11725
11726         regex: Depend on module 'strcase'.
11727         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11728
11729 2011-07-12  Jim Meyering  <meyering@redhat.com>
11730
11731         warn-on-use: fix typo in file name
11732         * modules/snippet/warn-on-use (Files): Correct file name:
11733         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11734
11735 2011-07-12  Bruno Haible  <bruno@clisp.org>
11736
11737         strings: Document module.
11738         * doc/posix-headers/strings.texi: Mention module 'strings'.
11739
11740 2011-07-12  Bruno Haible  <bruno@clisp.org>
11741
11742         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11743         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11744         (Files, Makefile.am): Update.
11745         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11746         * modules/stdlib (Depends-on): Update.
11747
11748 2011-07-12  Bruno Haible  <bruno@clisp.org>
11749
11750         * NEWS: Mention the changes.
11751
11752         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11753         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11754         (Files, Makefile.am): Update.
11755         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11756         * modules/arpa_inet (Depends-on): Update.
11757         * modules/ctype (Depends-on): Update.
11758         * modules/dirent (Depends-on): Update.
11759         * modules/fcntl-h (Depends-on): Update.
11760         * modules/glob (Depends-on): Update.
11761         * modules/iconv-h (Depends-on): Update.
11762         * modules/inttypes-incomplete (Depends-on): Update.
11763         * modules/langinfo (Depends-on): Update.
11764         * modules/locale (Depends-on): Update.
11765         * modules/math (Depends-on): Update.
11766         * modules/netdb (Depends-on): Update.
11767         * modules/poll-h (Depends-on): Update.
11768         * modules/pty (Depends-on): Update.
11769         * modules/search (Depends-on): Update.
11770         * modules/signal (Depends-on): Update.
11771         * modules/spawn (Depends-on): Update.
11772         * modules/stdio (Depends-on): Update.
11773         * modules/stdlib (Depends-on): Update.
11774         * modules/string (Depends-on): Update.
11775         * modules/strings (Depends-on): Update.
11776         * modules/sys_file (Depends-on): Update.
11777         * modules/sys_ioctl (Depends-on): Update.
11778         * modules/sys_select (Depends-on): Update.
11779         * modules/sys_socket (Depends-on): Update.
11780         * modules/sys_stat (Depends-on): Update.
11781         * modules/sys_time (Depends-on): Update.
11782         * modules/sys_times (Depends-on): Update.
11783         * modules/sys_utsname (Depends-on): Update.
11784         * modules/sys_wait (Depends-on): Update.
11785         * modules/termios (Depends-on): Update.
11786         * modules/time (Depends-on): Update.
11787         * modules/unistd (Depends-on): Update.
11788         * modules/wchar (Depends-on): Update.
11789         * modules/wctype-h (Depends-on): Update.
11790         * MODULES.html.sh (Support for building libraries and executables):
11791         Update.
11792
11793         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11794         * modules/snippet/unused-parameter: Renamed from
11795         modules/unused-parameter.
11796         (Files, Makefile.am): Update.
11797         * build-aux/snippet/unused-parameter.h: Renamed from
11798         build-aux/unused-parameter.h.
11799         * modules/selinux-h (Depends-on): Update.
11800         * modules/unistr/base (Depends-on): Update.
11801         * MODULES.html.sh (Core language properties): Update.
11802
11803         Rename module 'link-warning' to 'snippet/link-warning'.
11804         * modules/snippet/link-warning: Renamed from modules/link-warning.
11805         (Files, Makefile.am): Update.
11806         * build-aux/snippet/link-warning.h: Renamed from
11807         build-aux/link-warning.h.
11808         * MODULES.html.sh (Support for building libraries and executables):
11809         Update.
11810
11811         Rename module 'c++defs' to 'snippet/c++defs'.
11812         * modules/snippet/c++defs: Renamed from modules/c++defs.
11813         (Files, Makefile.am): Update.
11814         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11815         * modules/arpa_inet (Depends-on): Update.
11816         * modules/ctype (Depends-on): Update.
11817         * modules/dirent (Depends-on): Update.
11818         * modules/fcntl-h (Depends-on): Update.
11819         * modules/glob (Depends-on): Update.
11820         * modules/iconv-h (Depends-on): Update.
11821         * modules/langinfo (Depends-on): Update.
11822         * modules/locale (Depends-on): Update.
11823         * modules/math (Depends-on): Update.
11824         * modules/netdb (Depends-on): Update.
11825         * modules/poll-h (Depends-on): Update.
11826         * modules/pty (Depends-on): Update.
11827         * modules/search (Depends-on): Update.
11828         * modules/signal (Depends-on): Update.
11829         * modules/spawn (Depends-on): Update.
11830         * modules/stdio (Depends-on): Update.
11831         * modules/stdlib (Depends-on): Update.
11832         * modules/string (Depends-on): Update.
11833         * modules/strings (Depends-on): Update.
11834         * modules/sys_ioctl (Depends-on): Update.
11835         * modules/sys_select (Depends-on): Update.
11836         * modules/sys_socket (Depends-on): Update.
11837         * modules/sys_stat (Depends-on): Update.
11838         * modules/sys_time (Depends-on): Update.
11839         * modules/sys_wait (Depends-on): Update.
11840         * modules/termios (Depends-on): Update.
11841         * modules/time (Depends-on): Update.
11842         * modules/unistd (Depends-on): Update.
11843         * modules/wchar (Depends-on): Update.
11844         * modules/wctype-h (Depends-on): Update.
11845
11846         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11847         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11848         (Files, Makefile.am): Update.
11849         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11850         * modules/argv-iter (Depends-on): Update.
11851         * modules/arpa_inet (Depends-on): Update.
11852         * modules/dirent (Depends-on): Update.
11853         * modules/fcntl-h (Depends-on): Update.
11854         * modules/fnmatch (Depends-on): Update.
11855         * modules/getopt-posix (Depends-on): Update.
11856         * modules/glob (Depends-on): Update.
11857         * modules/iconv-h (Depends-on): Update.
11858         * modules/inttypes-incomplete (Depends-on): Update.
11859         * modules/locale (Depends-on): Update.
11860         * modules/math (Depends-on): Update.
11861         * modules/netdb (Depends-on): Update.
11862         * modules/search (Depends-on): Update.
11863         * modules/signal (Depends-on): Update.
11864         * modules/spawn (Depends-on): Update.
11865         * modules/stdio (Depends-on): Update.
11866         * modules/stdlib (Depends-on): Update.
11867         * modules/string (Depends-on): Update.
11868         * modules/strings (Depends-on): Update.
11869         * modules/sys_socket (Depends-on): Update.
11870         * modules/sys_stat (Depends-on): Update.
11871         * modules/sys_time (Depends-on): Update.
11872         * modules/sys_times (Depends-on): Update.
11873         * modules/sys_utsname (Depends-on): Update.
11874         * modules/time (Depends-on): Update.
11875         * modules/unistd (Depends-on): Update.
11876         * modules/wchar (Depends-on): Update.
11877         * MODULES.html.sh (Support for building libraries and executables):
11878         Update.
11879
11880 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11881
11882         Improvements on _Noreturn and related modules.
11883
11884         modules/_Exit-tests: test _Noreturn too
11885         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11886         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11887         (main): Use them.
11888
11889         stdnoreturn, stdnoreturn-tests: remove modules
11890         They're not needed here and a bit premature for use elsewhere.  See
11891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11892         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11893         * tests/test-stdnoreturn.c: Remove files.
11894         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11895         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11896         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11897         and using noreturn.
11898         * modules/openat, modules/sigpipe-die, modules/xalloc:
11899         * modules/xmemdup0, modules/xstrtol:
11900         Remove dependency on stdnoreturn.
11901
11902         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11903         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11904         Reparenthesize to avoid GCC warning.
11905         Support Microsoft's syntax.
11906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11907
11908         _Noreturn-tests: remove module
11909         * modules/_Noreturn-tests: Remove.
11910         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11911         * tests/test-_Noreturn.c: Remove.
11912         * tests/test-stdnoreturn.c: Merge from the old
11913         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11914
11915 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11916
11917         _Noreturn, stdnoreturn, and related modules.
11918
11919         * top/maint.mk: Adjust to new noreturn support.
11920         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11921         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11922
11923         xalloc: use stdnoreturn.h
11924         * lib/xalloc.h: Include <stdnoreturn.h>.
11925         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11926         * modules/xalloc (Depends-on): Add stdnoreturn.
11927
11928         xstrtol: use stdnoreturn.h
11929         * lib/xstrtol.h: Include <stdnoreturn.h>.
11930         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11931         * modules/xstrtol (Depends-on): Add stdnoreturn.
11932
11933         xmemdup0: use stdnoreturn.h
11934         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11935         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11936         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11937
11938         sigpipe-die: use stdnoreturn.h
11939         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11940         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11941         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11942
11943         openat: use stdnoreturn.h
11944         * lib/openat.h: Include <stdnoreturn.h>.
11945         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11946         * modules/openat (Depends-on): Add stdnoreturn.
11947
11948         * lib/openat-die.c (openat_save_fail): Modernize comment.
11949
11950         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11951
11952         * lib/glthread/thread.h: Modernize comment.
11953
11954         obstack: use _Noreturn
11955         * lib/obstack.c (__attribute__): Remove macro.
11956         (print_and_abort): Use _Noreturn.
11957
11958         c-stack: use _Noreturn
11959         * lib/c-stack.c (die, overflow_handler, segv_handler):
11960         Use _Noreturn rather than __attribute__((noreturn)).
11961
11962         argmatch-tests, exclude_tests: use _Noreturn
11963         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11964         Remove.
11965         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11966
11967         stdlib: use _Noreturn
11968         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11969         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11970         * modules/stdlib (Depends-on): Add _Noreturn.
11971         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11972
11973         stdnoreturn-tests: new module
11974         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11975
11976         stdnoreturn: new module
11977         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11978         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11979
11980         _Noreturn-tests: new module
11981         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11982
11983         _Noreturn: new module
11984         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11985         New section, mentioning it.
11986         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11987
11988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11989
11990 2011-07-11  Eric Blake  <eblake@redhat.com>
11991
11992         ffs: new module
11993         * modules/ffs: New file.
11994         * m4/ffs.m4: Likewise.
11995         * lib/ffs.c: Likewise.
11996         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11997         * modules/strings (Makefile.am): Substitute witness.
11998         (Depends-on): Add c++defs.
11999         * lib/strings.in.h (ffs): Declare.
12000         * modules/ffs-tests: New test file.
12001         * tests/test-ffs.c: Test new module.
12002         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12003         * doc/posix-functions/ffs.texi (ffs): Likewise.
12004
12005         regex: avoid compiler warning
12006         * lib/regex.c (includes): Include <strings.h>, for use of
12007         strcasecmp in regcomp.c.
12008         Reported by Joachim Schmitz.
12009
12010 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         stdint: respect system's intmax_t if INTMAX_MAX
12013         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12014         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12015         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12016         long but int64_t is long long, and where we will clash with the
12017         system intmax_t if we override it.  See
12018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12019         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12020         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12021         similarly for UINTMAX_C.
12022
12023 2011-07-08  Bruno Haible  <bruno@clisp.org>
12024
12025         pthread_sigmask tests: Avoid a compiler warning.
12026         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12027         non-zero.
12028
12029         sigprocmask tests: A better way to avoid a compiler warning.
12030         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12031         (main): Complain if system() returns non-zero.
12032         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12033
12034 2011-07-08  Bruno Haible  <bruno@clisp.org>
12035
12036         pthread_sigmask: Work around IRIX bug.
12037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12038         bug.
12039         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12040         there may be unblocked pending signals.
12041         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12042
12043 2011-07-08  Bruno Haible  <bruno@clisp.org>
12044
12045         pthread_sigmask: Work around Cygwin bug.
12046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12047         bug.
12048         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12049         the system's pthread_sigmask function.
12050         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12051
12052 2011-07-08  Bruno Haible  <bruno@clisp.org>
12053
12054         pthread_sigmask: Work around bug in single-threaded implementation.
12055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12056         FreeBSD, HP-UX, Solaris bug.
12057         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12058         * lib/pthread_sigmask.c: Include <stddef.h>.
12059         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12060         the system's pthread_sigmask function.
12061         * modules/pthread_sigmask (configure.ac): Invoke
12062         gl_PREREQ_PTHREAD_SIGMASK.
12063         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12064         HP-UX, Solaris.
12065
12066 2011-07-08  Eric Blake  <eblake@redhat.com>
12067
12068         test-sigprocmask: avoid compiler warning
12069         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12070         * tests/test-sigprocmask.c (main): Use it to silence warning.
12071         Reported by Jim Meyering.
12072
12073         test-snprintf: avoid compiler warning
12074         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12075         * tests/test-vsnprintf.c (main): Likewise.
12076         Reported by Jim Meyering.
12077
12078 2011-07-08  Bruno Haible  <bruno@clisp.org>
12079
12080         Tests for module 'pthread_sigmask'.
12081         * modules/pthread_sigmask-tests: New file.
12082         * tests/test-pthread_sigmask1.c: New file, based on
12083         tests/test-sigprocmask.c.
12084         * tests/test-pthread_sigmask2.c: New file.
12085
12086 2011-07-08  Jim Meyering  <meyering@redhat.com>
12087
12088         test-getopt.h: avoid warning about an unused variable
12089         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12090
12091 2011-07-07  Jim Meyering  <meyering@redhat.com>
12092
12093         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12094         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12095         now that it no longer contains leading TABs.
12096         Remove unused "url=FIXME" statement.
12097
12098 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12099
12100         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12101         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12102         When gl_THREADLIB is not in use, assume that the POSIX sematics
12103         are desired.  This is better for Emacs, which uses POSIX semantics
12104         on GNUish and/or POSIXish platforms, and does not use threads at
12105         all otherwise.
12106
12107         pthread_sigmask: fix typo when testing for libraries
12108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12109         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12110
12111 2011-07-08  Eric Blake  <eblake@redhat.com>
12112
12113         fts: introduce FTS_NOATIME
12114         * lib/fts_.h (FTS_NOATIME): New bit flag.
12115         (FTS_OPTIONMASK): Adjust.
12116         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12117         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12118
12119 2011-07-08  Bruno Haible  <bruno@clisp.org>
12120
12121         Tests for module 'thread'.
12122         * modules/thread-tests: New file.
12123         * tests/test-thread_self.c: New file.
12124         * tests/test-thread_create.cc: New file.
12125
12126 2011-07-08  Bruno Haible  <bruno@clisp.org>
12127
12128         thread: Avoid gcc warnings when using gl_thread_self().
12129         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12130         'void *'.
12131         (gl_thread_self_pointer): Update.
12132
12133 2011-07-07  Bruno Haible  <bruno@clisp.org>
12134
12135         signal-c++-tests: Check declaration of pthread_sigmask.
12136         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12137         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12138         $(LIB_PTHREAD_SIGMASK).
12139
12140 2011-07-07  Bruno Haible  <bruno@clisp.org>
12141
12142         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12143         * lib/signal.in.h (pthread_sigmask): Override if
12144         REPLACE_PTHREAD_SIGMASK is 1.
12145         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12146         REPLACE_PTHREAD_SIGMASK.
12147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12148         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12149         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12150         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12151         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12152
12153 2011-07-07  Bruno Haible  <bruno@clisp.org>
12154
12155         pthread_sigmask: Ensure declaration in <signal.h>.
12156         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12157         include <pthread.h>.
12158         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12159         problem.
12160
12161 2011-07-07  Bruno Haible  <bruno@clisp.org>
12162
12163         pthread_sigmask: Document the module.
12164         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12165
12166 2011-07-07  Bruno Haible  <bruno@clisp.org>
12167
12168         pthread_sigmask: Follow gnulib conventions.
12169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12170         gl_PTHREAD_SIGMASK.
12171         * modules/pthread_sigmask (configure.ac): Update.
12172
12173 2011-07-07  Bruno Haible  <bruno@clisp.org>
12174
12175         pthread_sigmask: Make declaration C++ safe.
12176         * lib/signal.in.h: In two special conditions, just do an #include_next.
12177         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12178         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12179         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12180         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12181         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12182         not REPLACE_PTHREAD_MASK.
12183         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12184         not REPLACE_PTHREAD_MASK.
12185         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12186
12187 2011-07-07  Bruno Haible  <bruno@clisp.org>
12188
12189         pthread_sigmask: Fix return value.
12190         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12191         * lib/pthread_sigmask.c: New file.
12192         * modules/pthread_sigmask (Files): Add it.
12193         (configure.ac): Invoke AC_LIBOBJ.
12194
12195 2011-07-07  Eric Blake  <eblake@redhat.com>
12196
12197         getopt: more portable argv creation
12198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12199         const, use char arrays rather than strings.
12200         Suggested by Paul Eggert.
12201
12202 2011-07-07  Bruno Haible  <bruno@clisp.org>
12203
12204         Tests for module 'sigprocmask'.
12205         * modules/sigprocmask-tests: New file.
12206         * tests/test-sigprocmask.c: New file.
12207
12208 2011-07-07  Bruno Haible  <bruno@clisp.org>
12209
12210         float tests: Tweak.
12211         * tests/test-float.c (main): Tweak skip message.
12212
12213 2011-07-07  Eric Blake  <eblake@redhat.com>
12214
12215         getopt: avoid compiler warning during configure
12216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12217         assigning string literals to non-const pointer.
12218
12219         getopt-gnu: avoid crash in glibc getopt
12220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12221         * tests/test-getopt.h (test_getopt): Enhance test.
12222         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12223         * doc/posix-functions/getopt.texi (getopt): Document it.
12224         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12226         Likewise.
12227
12228 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12229
12230         getopt: handle W; without long options in getopt [BZ #12922]
12231         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12232         but no long options are defined, just return 'W'.
12233
12234 2011-07-07  Bruno Haible  <bruno@clisp.org>
12235
12236         Avoid literal tabs.
12237         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12238         variable containing a tab instead of a literal tab.
12239         Reported by Jim Meyering.
12240
12241 2011-07-07  Bruno Haible  <bruno@clisp.org>
12242
12243         Comments.
12244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12245
12246 2011-07-06  Bruno Haible  <bruno@clisp.org>
12247
12248         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12249         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12250         <winsock2.h>.
12251         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12252         lib/sys_socket.in.h.
12253         (close, gethostname): Hide declarations from <winsock2.h>.
12254         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12255         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12256         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12257         (select): Don't override if gnulib's <sys/select.h> was already
12258         included.
12259         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12260         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12261         setsockopt, shutdown, select): Tweak indentation.
12262
12263 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12266         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12267         in an application that does not use the sys_select module.
12268
12269 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12270
12271         poll: do not return 0 on timeout=-1
12272         * lib/poll.c: Loop with yield if no events occured
12273
12274 2011-07-06  Eric Blake  <eblake@redhat.com>
12275
12276         pthread_sigmask: always replace when not using pthread
12277         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12278         replacement when using some threading other than pthread.  Fix
12279         logic bug.
12280
12281 2011-07-06  Bruno Haible  <bruno@clisp.org>
12282
12283         Comments.
12284         * m4/printf.m4: Update comments about mingw.
12285
12286 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12287
12288         sys_select: define sigset_t more portably
12289         * lib/sys_select.in.h: Always include <sys/types.h>, since
12290         we now need sigset_t and mingw defines it there.
12291         Include <signal.h> before split inclusion guard, to avoid
12292         mishaps on Solaris, whose <signal.h> eventually includes us.
12293         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12294         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12295         which come from ...
12296         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12297         gl_CHECK_TYPE_SIGSET_T.
12298         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12299         does the real work.
12300         * modules/sys_select (Depends-on): Add 'signal'.
12301
12302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12303         Suggested by Bruno Haible.
12304
12305         pselect: Use pthread_sigmask, not sigprocmask.
12306         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12307         multithreaded apps better than sigprocmask does.
12308         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12309         sigprocmask directly.
12310
12311 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12314         Don't #undef,  since we don't need any underlying pselect.
12315         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12316         (Depends-on): Add select.
12317         (Link): Add $(LIBSOCKET).
12318         These changes suggested by Bruno Haible.
12319
12320         pselect: document better
12321         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12322         * doc/posix-functions/pselect.texi (pselect): Document new module.
12323
12324         pthread_sigmask: new module
12325         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12326         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12327         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12328         This is done only as a macro; I don't know how well that'll
12329         work for C++.  Move <sys/types.h> include before the include_next,
12330         to avoid mishap on Solaris.
12331         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12332         * modules/signal (Makefile.am): Substitute the check's results.
12333         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12334
12335         test-pselect: new module
12336         * modules/pselect-tests, tests/test-pselect.c: New files.
12337         * tests/test-select.c, tests/test-sys_select-c++.cc:
12338         If TEST_PSELECT is defined, test pselect instead of testing select.
12339
12340         * tests/test-sys_select.c (sigset_t): Test for it, too.
12341         Suggested by Bruno Haible.
12342
12343 2011-07-05  Eric Blake  <eblake@redhat.com>
12344
12345         snprintf: guarantee %1$d, for libintl
12346         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12347         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12348         * doc/posix-functions/snprintf.texi (snprintf): Update.
12349         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12350         * tests/test-snprintf.c (main): Enhance test.
12351         * tests/test-vsnprintf.c (main): Likewise.
12352
12353 2011-07-05  Jim Meyering  <meyering@redhat.com>
12354
12355         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12356         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12357         per Bruno's request, to accommodate this idiom (no space after "#")
12358         even when the function is inside an #if block:
12359         char *
12360         gets (char *s)
12361         #undef gets
12362         {
12363           ...
12364         }
12365
12366 2011-07-04  Jim Meyering  <meyering@redhat.com>
12367
12368         maint: indent with spaces, not TABs, and add a rule to check this
12369         * tests/test-userspec.c: Indent with spaces, not TABs.
12370         * tests/test-argp.c: Likewise.
12371         * tests/test-c-stack2.sh: Likewise.
12372         * tests/test-parse-duration.sh: Likewise
12373         * m4/strtod.m4: Likewise.
12374         * m4/alloca.m4: Likewise.
12375         * m4/pselect.m4: Likewise.
12376         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12377
12378 2011-07-03  Jim Meyering  <meyering@redhat.com>
12379
12380         maint.mk: correct omissions in prohibit_argmatch_without_use check
12381         This rule would mistakenly report that argmatch.h is included without
12382         use even when both the argmatch and invalid_arg macro were used.
12383         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12384         of argmatch and invalid_arg.
12385
12386 2011-07-03  Bruno Haible  <bruno@clisp.org>
12387
12388         Comments about EINTR.
12389         * lib/safe-read.h: Explain the purpose of this module.
12390         * lib/safe-write.h: Likewise.
12391         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12392         module.
12393         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12394         module.
12395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12396
12397 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12398
12399         xnanosleep: Rewrite to use new dtotimespec module.
12400         It has the conversion code that used to be in xnanosleep.
12401         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12402         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12403         (TIME_T_MAX): Remove.
12404         (xnanosleep): Rewrite in terms of dtotimespec.
12405         * modules/xnanosleep (Depends-on): Add dtotimespec.
12406         Remove intprops, stdbool.
12407
12408         timespec-add, timespec-sub: new modules
12409         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12410         * lib/timespec-add.c, lib/timespec-sub.c:
12411         * modules/timespec-add, modules/timespec-sub: New files.
12412
12413         dtotimespec: new module
12414         * lib/timespec.h (dtotimespec): New decl.
12415         * lib/dtotimespec.c, modules/dtotimespec: New files.
12416
12417         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12418
12419         pselect: new module
12420         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12421         (pselect): New decls.
12422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12423         since the standard pselect decl uses 'restrict'.
12424         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12425         HAVE_PSELECT, REPLACE_PSELECT.
12426         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12427         HAVE_PSELECT, REPLACE_PSELECT.
12428         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12429
12430         sys_select: don't depend on sys_socket
12431         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12433         This fix works on GNU and GNU-like platforms, but has not been tested
12434         on native Windows.
12435         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12437         gl_HEADER_SYS_SOCKET.
12438         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12439         gl_PREREQ_SYS_H_WINSOCK2.
12440
12441 2011-06-29  Eric Blake  <eblake@redhat.com>
12442
12443         pipe2: fix C89 compile problem
12444         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12445         Reported by Bruno Haible.
12446
12447         pipe, pipe2: don't corrupt fd on error
12448         * lib/pipe.c (pipe): Leave fd unchanged on error.
12449         * lib/pipe2.c (pipe2): Likewise.
12450         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12451         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12452
12453 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12454
12455         mmap-anon: do not use regular expressions inadvertently
12456         * m4/mmap-anon.m4: Remove trailing period from strings sought
12457         in the output.
12458
12459 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12460
12461         nanosleep: fix integer overflow problem
12462         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12463         arithmetic wraps around on overflow.
12464
12465         nanosleep: simplify carrying
12466         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12467         first call to the underyling nanosleep, not for the last one.
12468         This doesn't fix any bugs, but it simplifies the computation of
12469         the remaining delay.  Found while auditing integer overflow issues.
12470
12471         dup2: remove test for existence of fcntl
12472         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12473         "#if HAVE_FCNTL", in the configure-time test program.
12474         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12475         and therefore speeds up "configure" a bit.  Found while
12476         adding the dup2 module to Emacs.
12477
12478 2011-06-24  Eric Blake  <eblake@redhat.com>
12479
12480         maint.mk: enhance useless header checks
12481         * top/maint.mk (_sc_header_without_use): Check both include
12482         styles.
12483         (sc_prohibit_assert_without_use)
12484         (sc_prohibit_close_stream_without_use)
12485         (sc_prohibit_getopt_without_use)
12486         (sc_prohibit_quotearg_without_use)
12487         (sc_prohibit_quote_without_use)
12488         (sc_prohibit_long_options_without_use)
12489         (sc_prohibit_inttostr_without_use)
12490         (sc_prohibit_ignore_value_without_use)
12491         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12492         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12493         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12494         (sc_prohibit_hash_pjw_without_use)
12495         (sc_prohibit_safe_read_without_use)
12496         (sc_prohibit_argmatch_without_use)
12497         (sc_prohibit_canonicalize_without_use)
12498         (sc_prohibit_root_dev_ino_without_use)
12499         (sc_prohibit_openat_without_use)
12500         (sc_prohibit_c_ctype_without_use)
12501         (sc_prohibit_signal_without_use)
12502         (sc_prohibit_stdio--_without_use)
12503         (sc_prohibit_stdio-safer_without_use)
12504         (sc_prohibit_strings_without_use)
12505         (sc_prohibit_intprops_without_use)
12506         (sc_prohibit_stddef_without_use)
12507         (sc_prohibit_xfreopen_without_use): Update clients.
12508
12509 2011-06-24  Jim Meyering  <meyering@redhat.com>
12510
12511         syntax-check: keep one maint.mk rule in sync with its header
12512         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12513         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12514         I prefer to avoid temporary files here, so use <(...), but that
12515         is not supported by /bin/sh, so...
12516         (SHELL): Define to /bin/bash.
12517
12518 2011-06-24  Eric Blake  <eblake@redhat.com>
12519
12520         maint.mk: update sc_prohibit_intprops_without_use
12521         * top/maint.mk (_intprops_names): Match recent changes.
12522
12523 2011-06-24  Bruno Haible  <bruno@clisp.org>
12524
12525         strerror-override: No-op tweak.
12526         * lib/strerror-override.h (strerror_override): Reorder conditions,
12527         for consistency with lib/strerror-override.c.
12528
12529 2011-06-23  Eric Blake  <eblake@redhat.com>
12530
12531         maint.mk: test further PATH_MAX issues
12532         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12533         (sc_prohibit_path_max_allocation): ...and also test alloca.
12534         Suggested by Jim Meyering.
12535
12536 2011-06-22  Eric Blake  <eblake@redhat.com>
12537
12538         maint.mk: add syntax-check to avoid char[PATH_MAX]
12539         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12540
12541         stat: be robust to PATH_MAX definition
12542         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12543         * modules/stat (Depends-on): Add verify.
12544
12545         link: work around IRIX bug
12546         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12547         * lib/link.c (rpl_link): Work around it.
12548         * tests/test-link.h (test_link): Enhance test.
12549         * doc/posix-functions/link.texi (link): Document the bug.
12550
12551         getopt: silence clang warning
12552         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12553         dereference.
12554         Reported by Gustavo Martin Domato.
12555
12556 2011-06-22  Jim Meyering  <meyering@redhat.com>
12557
12558         bootstrap: do not insert a blank line into each .gitignore file
12559         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12560
12561 2011-06-21  Eric Blake  <eblake@redhat.com>
12562
12563         perror: test for output mismatch
12564         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12565         perror on IRIX.
12566
12567         strerror_r: fix OpenBSD behavior on out-of-range
12568         * lib/strerror_r.c (strerror_r): Always use maximal string.
12569         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12570
12571         strerror_r: fix OpenBSD behavior on 0
12572         * lib/strerror-override.c (strerror_override): Also override 0
12573         when needed.
12574         * lib/strerror-override.h (strerror_override): Likewise.
12575         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12576         earlier.
12577         * lib/strerror_r.c (strerror_r): Likewise.
12578         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12579         behavior...
12580         (gl_FUNC_STRERROR_0): ...into new macro.
12581         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12582         is overridden.
12583         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12584         * modules/strerror-override (Files): Add strerror.m4.
12585         (configure.ac): Also provide override for 0 when needed.
12586         * doc/posix-functions/strerror.texi (strerror): Document this.
12587         * doc/posix-functions/perror.texi (perror): Likewise.
12588
12589         perror: adjust array size
12590         * modules/perror (Depends-on): Add strerror-override.
12591         * lib/perror.c (perror): Use it to avoid magic number.
12592
12593         strerror-override: reduce size
12594         * lib/strerror-override.c (strerror_override): Use fewer lines.
12595
12596 2011-06-20  Bruno Haible  <bruno@clisp.org>
12597
12598         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12599         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12600
12601 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12602
12603         alloca: port to compilers that can optimize like GCC 4.6.0
12604         * lib/alloca.c (find_stack_direction): New signature, taken from
12605         Autoconf git.  This works with GCC 4.6.0.  This code should never
12606         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12607         be used with other compilers that optimize as well as GCC 4.6.0 does.
12608         (alloca): Adjust to new signature.
12609         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12610         New macro, which patches Autoconf in a similar way.
12611
12612         c-stack: stop worrying about stack direction
12613         * lib/c-stack.c (find_stack_direction): Remove.
12614         (segv_handler): Don't worry about stack direction growth, as it's
12615         too much of a pain to configure this correctly, given how compilers
12616         are optimizing-away our stack-growth detection code.  Instead, assume
12617         that any access to just before or just after the stack is OK.
12618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12619         Don't require AC_FUNC_ALLOCA; no longer needed.
12620
12621 2011-06-20  Eric Blake  <eblake@redhat.com>
12622
12623         test-stat: don't allocate PATH_MAX bytes
12624         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12625         PATH_MAX-sized buffer.
12626         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12627         * modules/stat-tests (Depends-on): Likewise.
12628         * tests/test-fstatat.c (includes): Drop pathmax.h.
12629         * tests/test-stat.c (includes): Likewise.
12630         Reported by Bruno Haible.
12631
12632 2011-06-20  Bruno Haible  <bruno@clisp.org>
12633
12634         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12635         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12636         * lib/float.c: New file.
12637         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12638         REPLACE_FLOAT_LDBL.
12639         * modules/float (Files): Add lib/float.c.
12640         (configure.ac): Invoke AC_LIBOBJ.
12641         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12642
12643 2011-06-20  Bruno Haible  <bruno@clisp.org>
12644
12645         Tests for module 'float'.
12646         * modules/float-tests: New file.
12647         * tests/test-float.c: New file.
12648
12649 2011-06-19  Bruno Haible  <bruno@clisp.org>
12650
12651         isinf: Coding style.
12652         * lib/isinf.c: Use GNU coding style.
12653
12654 2011-06-19  Bruno Haible  <bruno@clisp.org>
12655
12656         linkat test: Avoid test failure on AIX 7.1.
12657         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12658         * tests/test-link.h (test_link): Likewise.
12659
12660 2011-06-19  Bruno Haible  <bruno@clisp.org>
12661
12662         pread test: Avoid test failure on OpenBSD 4.9.
12663         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12664
12665 2011-06-19  Bruno Haible  <bruno@clisp.org>
12666
12667         sprintf-posix: Fix test failure on AIX 7.1.
12668         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12669         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12670         on AIX.
12671         * doc/posix-functions/fprintf.texi: Likewise.
12672         * doc/posix-functions/printf.texi: Likewise.
12673         * doc/posix-functions/snprintf.texi: Likewise.
12674         * doc/posix-functions/sprintf.texi: Likewise.
12675         * doc/posix-functions/vdprintf.texi: Likewise.
12676         * doc/posix-functions/vfprintf.texi: Likewise.
12677         * doc/posix-functions/vprintf.texi: Likewise.
12678         * doc/posix-functions/vsnprintf.texi: Likewise.
12679         * doc/posix-functions/vsprintf.texi: Likewise.
12680
12681 2011-06-19  Bruno Haible  <bruno@clisp.org>
12682
12683         roundl-ieee: Fix test failure on AIX 7.1.
12684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12685         * doc/posix-functions/roundl.texi: Mention problem with negative
12686         arguments.
12687
12688 2011-06-19  Bruno Haible  <bruno@clisp.org>
12689
12690         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12691         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12692         * doc/posix-functions/round.texi: Mention problem with negative
12693         arguments.
12694         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12695
12696 2011-06-19  Bruno Haible  <bruno@clisp.org>
12697
12698         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12700         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12701         * doc/posix-functions/roundf.texi: Mention problem with negative
12702         arguments.
12703         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12704
12705 2011-06-19  Bruno Haible  <bruno@clisp.org>
12706
12707         ceilf-ieee: Work around bug on MacOS X 10.5.
12708         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12709
12710         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12711         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12712         IEEE compliant, avoid compiler optimizations.
12713         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12714         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12715         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12716         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12718         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12721         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12723
12724 2011-06-19  Bruno Haible  <bruno@clisp.org>
12725
12726         ceilf-ieee: Work around bug on AIX 7.1.
12727         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12728         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12729
12730 2011-06-19  Bruno Haible  <bruno@clisp.org>
12731
12732         ceil-ieee: Work around bug on AIX 7.1.
12733         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12734         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12735
12736 2011-06-18  Bruno Haible  <bruno@clisp.org>
12737
12738         fsync test: Avoid test failure on MacOS X and AIX.
12739         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12740         EINVAL.
12741
12742 2011-06-18  Bruno Haible  <bruno@clisp.org>
12743
12744         openat, fdopendir tests: Fix link errors.
12745         * modules/openat-tests (Depends-on): Add progname.
12746         * modules/fdopendir-tests (Depends-on): Likewise.
12747         * tests/test-fchownat.c: Include progname.h.
12748         (main): Call set_program_name.
12749         * tests/test-fstatat.c: Include progname.h.
12750         (main): Call set_program_name.
12751         * tests/test-mkdirat.c: Include progname.h.
12752         (main): Call set_program_name.
12753         * tests/test-openat.c: Include progname.h.
12754         (main): Call set_program_name.
12755         * tests/test-unlinkat.c: Include progname.h.
12756         (main): Call set_program_name.
12757         * tests/test-fdopendir.c: Include progname.h.
12758         (main): Call set_program_name.
12759
12760 2011-06-18  Bruno Haible  <bruno@clisp.org>
12761
12762         Doc update.
12763         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12764         HP-UX.
12765         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12766
12767 2011-06-18  Bruno Haible  <bruno@clisp.org>
12768
12769         getcwd tests: Avoid compilation error on HP-UX 11.31.
12770         * modules/getcwd-tests (Depends-on): Add pathmax.
12771         * tests/test-getcwd.c: Include pathmax.h.
12772
12773 2011-06-18  Bruno Haible  <bruno@clisp.org>
12774
12775         isfinite, isinf: Fix link error on AIX 6 and 7.
12776         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12777         needed, also test the macro with a 'float' argument.
12778         * m4/isinf.m4 (gl_ISINF): Likewise.
12779
12780 2011-06-18  Bruno Haible  <bruno@clisp.org>
12781
12782         getloadavg: Don't clobber LIBS. Regression from previous commit.
12783         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12784         AC_CHECK_LIB from here...
12785         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12786         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12787         gl_func_getloadavg_done.
12788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12789
12790 2011-06-18  Bruno Haible  <bruno@clisp.org>
12791
12792         clean-temp: Improve documentation.
12793         * lib/clean-temp.h: Explain better how to use this module.
12794         Reported by John Darrington <john@darrington.wattle.id.au>.
12795
12796 2011-06-17  Bruno Haible  <bruno@clisp.org>
12797
12798         pread, pwrite: Avoid cc warning on AIX.
12799         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12800         (pwrite): Likewise.
12801
12802 2011-06-17  Bruno Haible  <bruno@clisp.org>
12803
12804         spawn-pipe tests: Fix link error.
12805         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12807
12808 2011-06-17  Bruno Haible  <bruno@clisp.org>
12809
12810         Tests: Remove unnecessary dependency.
12811         * modules/canonicalize-tests (Depends-on): Remove progname.
12812         * modules/chown-tests (Depends-on): Likewise.
12813         * modules/dirname-tests (Depends-on): Likewise.
12814         * modules/fdopendir-tests (Depends-on): Likewise.
12815         * modules/fdutimensat-tests (Depends-on): Likewise.
12816         * modules/hash-tests (Depends-on): Likewise.
12817         * modules/lchown-tests (Depends-on): Likewise.
12818         * modules/linkat-tests (Depends-on): Likewise.
12819         * modules/renameat-tests (Depends-on): Likewise.
12820         * modules/spawn-pipe-tests (Depends-on): Likewise.
12821         * modules/utimensat-tests (Depends-on): Likewise.
12822
12823 2011-06-17  Bruno Haible  <bruno@clisp.org>
12824
12825         spawn-pipe tests: Fix link error.
12826         * tests/test-spawn-pipe-child.c: Undefine fflush.
12827
12828 2011-06-17  Bruno Haible  <bruno@clisp.org>
12829
12830         Fix tests link errors.
12831         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12832         * modules/chown-tests (Makefile.am): Don't link test-chown with
12833         LIBINTL.
12834         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12835         LIBINTL.
12836         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12837         LIBINTL.
12838         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12839         LIBINTL.
12840
12841 2011-06-16  Bruno Haible  <bruno@clisp.org>
12842
12843         crypto/gc-sha1: Fix recent regression.
12844         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12845         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12846
12847         crypto/gc-md5: Fix recent regression.
12848         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12849
12850         crypto/gc-md4: Fix recent regression.
12851         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12852         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12853
12854         crypto/gc-arctwo: Fix recent regression.
12855         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12856         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12857
12858         crypto/gc-rijndael: Fix recent regression.
12859         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12860         (configure.ac): Invoke AC_LIBOBJ here.
12861         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12863
12864         crypto/gc-hmac-sha1: Fix recent regression.
12865         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12866         (configure.ac): Invoke AC_LIBOBJ here.
12867         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12869
12870         crypto/gc-hmac-md5: Fix recent regression.
12871         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12872         (configure.ac): Invoke AC_LIBOBJ here.
12873         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12875
12876         crypto/gc-des: Fix recent regression.
12877         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12878         (configure.ac): Invoke AC_LIBOBJ here.
12879         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12881
12882         crypto/gc-arcfour: Fix recent regression.
12883         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12884         (configure.ac): Invoke AC_LIBOBJ here.
12885         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12887
12888 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12889
12890         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12891         After the 2011-05-21 change, this macro requires
12892         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12893         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12894
12895 2011-06-16  Bruno Haible  <bruno@clisp.org>
12896
12897         fprintftime: Move AC_LIBOBJ invocations to module description.
12898         * m4/fprintftime.m4: Remove file.
12899         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12900         (configure.ac): Remove gl_FPRINTFTIME call.
12901         (Makefile.am): Augment lib_SOURCES.
12902         Reported by Jim Meyering.
12903
12904 2011-06-16  Bruno Haible  <bruno@clisp.org>
12905
12906         tmpfile-safer: Finish 2011-05-23 commit.
12907         * m4/stdio-safer.m4: Really remove file.
12908         Reported by Jim Meyering.
12909
12910 2011-06-16  Bruno Haible  <bruno@clisp.org>
12911
12912         syntax-check: Fix typo.
12913         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12914         printf-posix.m4.
12915         Reported by Jim Meyering.
12916
12917 2011-06-13  Jim Meyering  <meyering@redhat.com>
12918
12919         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12920         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12921
12922 2011-05-23  Bruno Haible  <bruno@clisp.org>
12923
12924         yesno: Move AC_LIBOBJ invocations to module description.
12925         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12926         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12927
12928 2011-05-23  Bruno Haible  <bruno@clisp.org>
12929
12930         xstrtol: Move AC_LIBOBJ invocations to module description.
12931         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12932         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12933
12934 2011-05-23  Bruno Haible  <bruno@clisp.org>
12935
12936         xstrtold: Move AC_LIBOBJ invocations to module description.
12937         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12938         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12939
12940 2011-05-23  Bruno Haible  <bruno@clisp.org>
12941
12942         xstrtod: Move AC_LIBOBJ invocations to module description.
12943         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12944         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12945
12946 2011-05-23  Bruno Haible  <bruno@clisp.org>
12947
12948         xnanosleep: Move AC_LIBOBJ invocations to module description.
12949         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12950         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12951
12952 2011-05-23  Bruno Haible  <bruno@clisp.org>
12953
12954         xgetcwd: Move AC_LIBOBJ invocations to module description.
12955         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12956         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12957
12958 2011-05-23  Bruno Haible  <bruno@clisp.org>
12959
12960         xalloc: Move AC_LIBOBJ invocations to module description.
12961         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12962         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12963
12964 2011-05-23  Bruno Haible  <bruno@clisp.org>
12965
12966         write-any-file: Move AC_LIBOBJ invocations to module description.
12967         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12968         invocation.
12969         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12970
12971 2011-05-23  Bruno Haible  <bruno@clisp.org>
12972
12973         utimens: Move AC_LIBOBJ invocations to module description.
12974         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12975         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12976
12977 2011-05-23  Bruno Haible  <bruno@clisp.org>
12978
12979         utimecmp: Move AC_LIBOBJ invocations to module description.
12980         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12981         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12982
12983 2011-05-23  Bruno Haible  <bruno@clisp.org>
12984
12985         userspec: Move AC_LIBOBJ invocations to module description.
12986         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12987         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         unlinkdir: Move AC_LIBOBJ invocations to module description.
12992         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12993         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         unistd-safer: Move AC_LIBOBJ invocations to module description.
12998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12999         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         tempname: Move AC_LIBOBJ invocations to module description.
13004         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13005         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13006
13007 2011-05-23  Bruno Haible  <bruno@clisp.org>
13008
13009         strftime: Move AC_LIBOBJ invocations to module description.
13010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13011         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13012
13013 2011-05-23  Bruno Haible  <bruno@clisp.org>
13014
13015         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13016         * m4/stdlib-safer.m4: Remove file.
13017         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13018         (configure.ac): Remove gl_STDLIB_SAFER call.
13019         (Makefile.am): Augment lib_SOURCES.
13020
13021 2011-05-23  Bruno Haible  <bruno@clisp.org>
13022
13023         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13024         * m4/stdio-safer.m4: Remove file.
13025         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13026         (configure.ac): Remove gl_TMPFILE_SAFER call.
13027         (Makefile.am): Augment lib_SOURCES.
13028
13029 2011-05-23  Bruno Haible  <bruno@clisp.org>
13030
13031         popen-safer: Move AC_LIBOBJ invocations to module description.
13032         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13033         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13034         (configure.ac): Remove gl_POPEN_SAFER call.
13035         (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         freopen-safer: Move AC_LIBOBJ invocations to module description.
13040         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13041         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13042         (configure.ac): Remove gl_FREOPEN_SAFER call.
13043         (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         fopen-safer: Move AC_LIBOBJ invocations to module description.
13048         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13049         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13050         (configure.ac): Remove gl_FOPEN_SAFER call.
13051         (Makefile.am): Augment lib_SOURCES.
13052
13053 2011-05-23  Bruno Haible  <bruno@clisp.org>
13054
13055         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13056         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13057         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13058
13059 2011-05-23  Bruno Haible  <bruno@clisp.org>
13060
13061         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13062         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13063         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13064
13065 2011-05-23  Bruno Haible  <bruno@clisp.org>
13066
13067         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13068         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13069         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13070
13071 2011-05-23  Bruno Haible  <bruno@clisp.org>
13072
13073         settime: Move AC_LIBOBJ invocations to module description.
13074         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13075         * modules/settime (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         savedir: Move AC_LIBOBJ invocations to module description.
13080         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13081         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         save-cwd: Move AC_LIBOBJ invocations to module description.
13086         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13087         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         same: Move AC_LIBOBJ invocations to module description.
13092         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13093         * modules/same (Makefile.am): Augment lib_SOURCES.
13094
13095 2011-05-23  Bruno Haible  <bruno@clisp.org>
13096
13097         safe-write: Move AC_LIBOBJ invocations to module description.
13098         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13099         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13100         instead of gl_SAFE_WRITE.
13101         (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         safe-read: Move AC_LIBOBJ invocations to module description.
13106         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13107         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13108         of gl_SAFE_READ.
13109         (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         safe-alloc: Move AC_LIBOBJ invocations to module description.
13114         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13115         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13120         * m4/rijndael.m4: Remove file.
13121         * modules/crypto/rijndael (Files): Remove it.
13122         (configure.ac): Remove gl_RIJNDAEL call.
13123         (Makefile.am): Augment lib_SOURCES.
13124
13125 2011-05-23  Bruno Haible  <bruno@clisp.org>
13126
13127         readtokens: Move AC_LIBOBJ invocations to module description.
13128         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13129         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13130
13131 2011-05-23  Bruno Haible  <bruno@clisp.org>
13132
13133         read-file: Move AC_LIBOBJ invocations to module description.
13134         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13135         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13136         of gl_FUNC_READ_FILE.
13137         (Makefile.am): Augment lib_SOURCES.
13138
13139 2011-05-23  Bruno Haible  <bruno@clisp.org>
13140
13141         quotearg: Move AC_LIBOBJ invocations to module description.
13142         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13143         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13144
13145 2011-05-23  Bruno Haible  <bruno@clisp.org>
13146
13147         quote: Move AC_LIBOBJ invocations to module description.
13148         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13149         * modules/quote (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         posixver: Move AC_LIBOBJ invocations to module description.
13154         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13155         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13156
13157 2011-05-23  Bruno Haible  <bruno@clisp.org>
13158
13159         posixtm: Move AC_LIBOBJ invocations to module description.
13160         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13161         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         physmem: Move AC_LIBOBJ invocations to module description.
13166         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13167         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13172         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13173         invocation.
13174         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13175
13176 2011-05-23  Bruno Haible  <bruno@clisp.org>
13177
13178         mpsort: Move AC_LIBOBJ invocations to module description.
13179         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13180         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13181
13182 2011-05-23  Bruno Haible  <bruno@clisp.org>
13183
13184         modechange: Move AC_LIBOBJ invocations to module description.
13185         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13186         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13187
13188 2011-05-23  Bruno Haible  <bruno@clisp.org>
13189
13190         mkdir-p: Move AC_LIBOBJ invocations to module description.
13191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13192         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13193
13194 2011-05-23  Bruno Haible  <bruno@clisp.org>
13195
13196         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13197         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13198         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-23  Bruno Haible  <bruno@clisp.org>
13201
13202         mgetgroups: Move AC_LIBOBJ invocations to module description.
13203         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13204         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13205
13206 2011-05-23  Bruno Haible  <bruno@clisp.org>
13207
13208         memxor: Move AC_LIBOBJ invocations to module description.
13209         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13210         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13211
13212 2011-05-23  Bruno Haible  <bruno@clisp.org>
13213
13214         memcoll: Move AC_LIBOBJ invocations to module description.
13215         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13216         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13217
13218 2011-05-23  Bruno Haible  <bruno@clisp.org>
13219
13220         memcasecmp: Move AC_LIBOBJ invocations to module description.
13221         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13222         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13223
13224 2011-05-23  Bruno Haible  <bruno@clisp.org>
13225
13226         crypto/md5: Move AC_LIBOBJ invocations to module description.
13227         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13228         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         crypto/md4: Move AC_LIBOBJ invocations to module description.
13233         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13234         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13235
13236 2011-05-23  Bruno Haible  <bruno@clisp.org>
13237
13238         crypto/md2: Move AC_LIBOBJ invocations to module description.
13239         * m4/md2.m4: Remove file.
13240         * modules/crypto/md2 (Files): Remove it.
13241         (configure.ac): Remove gl_MD2 call.
13242         (Makefile.am): Augment lib_SOURCES.
13243
13244 2011-05-23  Bruno Haible  <bruno@clisp.org>
13245
13246         long-options: Move AC_LIBOBJ invocations to module description.
13247         * m4/long-options.m4: Remove file.
13248         * modules/long-options (Files): Remove it.
13249         (configure.ac): Remove gl_LONG_OPTIONS call.
13250         (Makefile.am): Augment lib_SOURCES.
13251
13252 2011-05-23  Bruno Haible  <bruno@clisp.org>
13253
13254         i-ring: Move AC_LIBOBJ invocations to module description.
13255         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13256         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13257
13258 2011-05-23  Bruno Haible  <bruno@clisp.org>
13259
13260         idcache: Move AC_LIBOBJ invocations to module description.
13261         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13262         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13263
13264 2011-05-23  Bruno Haible  <bruno@clisp.org>
13265
13266         human: Move AC_LIBOBJ invocations to module description.
13267         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13268         * modules/human (Makefile.am): Augment lib_SOURCES.
13269
13270 2011-05-23  Bruno Haible  <bruno@clisp.org>
13271
13272         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13273         * m4/hmac-sha1.m4: Remove file.
13274         * modules/crypto/hmac-sha1 (Files): Remove it.
13275         (configure.ac): Remove gl_HMAC_SHA1 call.
13276         (Makefile.am): Augment lib_SOURCES.
13277
13278 2011-05-23  Bruno Haible  <bruno@clisp.org>
13279
13280         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13281         * m4/hmac-md5.m4: Remove file.
13282         * modules/crypto/hmac-md5 (Files): Remove it.
13283         (configure.ac): Remove gl_HMAC_MD5 call.
13284         (Makefile.am): Augment lib_SOURCES.
13285
13286 2011-05-23  Bruno Haible  <bruno@clisp.org>
13287
13288         hash: Move AC_LIBOBJ invocations to module description.
13289         * m4/hash.m4: Remove file.
13290         * modules/hash (Files): Remove it.
13291         (configure.ac): Remove gl_HASH call.
13292         (Makefile.am): Augment lib_SOURCES.
13293
13294 2011-05-23  Bruno Haible  <bruno@clisp.org>
13295
13296         hard-locale: Move AC_LIBOBJ invocations to module description.
13297         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13298         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13299
13300 2011-05-23  Bruno Haible  <bruno@clisp.org>
13301
13302         getugroups: Move AC_LIBOBJ invocations to module description.
13303         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13304         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13305
13306 2011-05-23  Bruno Haible  <bruno@clisp.org>
13307
13308         gettime: Move AC_LIBOBJ invocations to module description.
13309         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13310         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13311
13312 2011-05-23  Bruno Haible  <bruno@clisp.org>
13313
13314         getndelim2: Move AC_LIBOBJ invocations to module description.
13315         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13316         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13317
13318 2011-05-23  Bruno Haible  <bruno@clisp.org>
13319
13320         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13321         * m4/gc-pbkdf2-sha1.m4: Remove file.
13322         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13323         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13324         (Makefile.am): Augment lib_SOURCES.
13325
13326 2011-05-23  Bruno Haible  <bruno@clisp.org>
13327
13328         fts: Move AC_LIBOBJ invocations to module description.
13329         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13330         * modules/fts (configure.ac): ... to here.
13331
13332 2011-05-23  Bruno Haible  <bruno@clisp.org>
13333
13334         file-type: Move AC_LIBOBJ invocations to module description.
13335         * m4/file-type.m4: Remove file.
13336         * modules/file-type (Files): Remove it.
13337         (configure.ac): Remove gl_FILE_TYPE call.
13338         (Makefile.am): Augment lib_SOURCES.
13339
13340 2011-05-23  Bruno Haible  <bruno@clisp.org>
13341
13342         filenamecat*: Respect rules for use of AC_LIBOBJ.
13343         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13344         Remove AC_LIBOBJ invocation.
13345         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13346         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13347
13348 2011-05-23  Bruno Haible  <bruno@clisp.org>
13349
13350         filemode: Move AC_LIBOBJ invocations to module description.
13351         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13352         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13353
13354 2011-05-23  Bruno Haible  <bruno@clisp.org>
13355
13356         openat-safer: Move AC_LIBOBJ invocations to module description.
13357         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13358         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13359
13360 2011-05-23  Bruno Haible  <bruno@clisp.org>
13361
13362         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13363         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13364         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13365
13366 2011-05-23  Bruno Haible  <bruno@clisp.org>
13367
13368         exclude: Move AC_LIBOBJ invocations to module description.
13369         * m4/exclude.m4: Remove file.
13370         * modules/exclude (Files): Remove it.
13371         (configure.ac): Remove gl_EXCLUDE call.
13372         (Makefile.am): Augment lib_SOURCES.
13373
13374 2011-05-23  Bruno Haible  <bruno@clisp.org>
13375
13376         dirname*: Respect rules for use of AC_LIBOBJ.
13377         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13378         invocations.
13379         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13380         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13381
13382 2011-05-23  Bruno Haible  <bruno@clisp.org>
13383
13384         dirent-safer: Move AC_LIBOBJ invocations to module description.
13385         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13386         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13387
13388 2011-05-23  Bruno Haible  <bruno@clisp.org>
13389
13390         crypto/des: Move AC_LIBOBJ invocations to module description.
13391         * m4/des.m4: Remove file.
13392         * modules/crypto/des (Files): Remove it.
13393         (configure.ac): Remove gl_DES call.
13394         (Makefile.am): Augment lib_SOURCES.
13395
13396 2011-05-23  Bruno Haible  <bruno@clisp.org>
13397
13398         cycle-check: Move AC_LIBOBJ invocations to module description.
13399         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13400         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13401
13402 2011-05-23  Bruno Haible  <bruno@clisp.org>
13403
13404         c-strtold: Move AC_LIBOBJ invocations to module description.
13405         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13406         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13407
13408 2011-05-23  Bruno Haible  <bruno@clisp.org>
13409
13410         c-strtod: Move AC_LIBOBJ invocations to module description.
13411         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13412         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13413
13414 2011-05-23  Bruno Haible  <bruno@clisp.org>
13415
13416         crc: Move AC_LIBOBJ invocations to module description.
13417         * m4/crc.m4: Remove file.
13418         * modules/crc (Files): Remove it.
13419         (configure.ac): Remove gl_CRC call.
13420         (Makefile.am): Augment lib_SOURCES.
13421
13422 2011-05-23  Bruno Haible  <bruno@clisp.org>
13423
13424         close-stream: Move AC_LIBOBJ invocations to module description.
13425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13426         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13427
13428 2011-05-23  Bruno Haible  <bruno@clisp.org>
13429
13430         closeout: Move AC_LIBOBJ invocations to module description.
13431         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13432         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13433
13434 2011-05-23  Bruno Haible  <bruno@clisp.org>
13435
13436         closein: Move AC_LIBOBJ invocations to module description.
13437         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13438         * modules/closein (Makefile.am): Augment lib_SOURCES.
13439
13440 2011-05-23  Bruno Haible  <bruno@clisp.org>
13441
13442         cloexec: Move AC_LIBOBJ invocations to module description.
13443         * m4/cloexec.m4: Remove file.
13444         * modules/cloexec (Files): Remove it.
13445         (configure.ac): Remove gl_CLOEXEC call.
13446         (Makefile.am): Augment lib_SOURCES.
13447
13448 2011-05-23  Bruno Haible  <bruno@clisp.org>
13449
13450         check-version: Move AC_LIBOBJ invocations to module description.
13451         * m4/check-version.m4: Remove file.
13452         * modules/check-version (Files): Remove it.
13453         (configure.ac): Remove gl_CHECK_VERSION call.
13454         (Makefile.am): Augment lib_SOURCES.
13455
13456 2011-05-23  Bruno Haible  <bruno@clisp.org>
13457
13458         chdir-safer: Move AC_LIBOBJ invocations to module description.
13459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13460         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13461
13462 2011-05-23  Bruno Haible  <bruno@clisp.org>
13463
13464         canonicalize: Move AC_LIBOBJ invocations to module description.
13465         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13466         AC_LIBOBJ invocation.
13467         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13468
13469 2011-05-23  Bruno Haible  <bruno@clisp.org>
13470
13471         canon-host: Move AC_LIBOBJ invocations to module description.
13472         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13473         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13474         instead of gl_CANON_HOST.
13475         (Makefile.am): Augment lib_SOURCES.
13476
13477 2011-05-23  Bruno Haible  <bruno@clisp.org>
13478
13479         backupfile: Move AC_LIBOBJ invocations to module description.
13480         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13481         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13482
13483 2011-05-23  Bruno Haible  <bruno@clisp.org>
13484
13485         argmatch: Move AC_LIBOBJ invocations to module description.
13486         * m4/argmatch.m4: Remove file.
13487         * modules/argmatch (Files): Remove it.
13488         (configure.ac): Remove gl_ARGMATCH call.
13489         (Makefile.am): Augment lib_SOURCES.
13490
13491 2011-05-23  Bruno Haible  <bruno@clisp.org>
13492
13493         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13494         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13495         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13496
13497 2011-05-23  Bruno Haible  <bruno@clisp.org>
13498
13499         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13500         * m4/arcfour.m4: Remove file.
13501         * modules/crypto/arcfour (Files): Remove it.
13502         (configure.ac): Remove gl_ARCFOUR call.
13503         (Makefile.am): Augment lib_SOURCES.
13504
13505 2011-05-22  Bruno Haible  <bruno@clisp.org>
13506
13507         write: Move AC_LIBOBJ invocations to module description.
13508         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13509         * modules/write (configure.ac): ... to here.
13510
13511 2011-05-22  Bruno Haible  <bruno@clisp.org>
13512
13513         wmemset: Move AC_LIBOBJ invocations to module description.
13514         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13515         here...
13516         * modules/wmemset (configure.ac): ... to here.
13517
13518 2011-05-22  Bruno Haible  <bruno@clisp.org>
13519
13520         wmemmove: Move AC_LIBOBJ invocations to module description.
13521         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13522         here...
13523         * modules/wmemmove (configure.ac): ... to here.
13524
13525 2011-05-22  Bruno Haible  <bruno@clisp.org>
13526
13527         wmemcpy: Move AC_LIBOBJ invocations to module description.
13528         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13529         here...
13530         * modules/wmemcpy (configure.ac): ... to here.
13531
13532 2011-05-22  Bruno Haible  <bruno@clisp.org>
13533
13534         wmemcmp: Move AC_LIBOBJ invocations to module description.
13535         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13536         here...
13537         * modules/wmemcmp (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         wmemchr: Move AC_LIBOBJ invocations to module description.
13542         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13543         here...
13544         * modules/wmemchr (configure.ac): ... to here.
13545
13546 2011-05-22  Bruno Haible  <bruno@clisp.org>
13547
13548         wcswidth: Move AC_LIBOBJ invocations to module description.
13549         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13550         here...
13551         * modules/wcswidth (configure.ac): ... to here.
13552
13553 2011-05-22  Bruno Haible  <bruno@clisp.org>
13554
13555         wcwidth: Respect rules for use of AC_LIBOBJ.
13556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13557         invocation from here...
13558         * modules/wcwidth (configure.ac): ... to here.
13559         (Depends-on): Update conditions.
13560
13561 2011-05-22  Bruno Haible  <bruno@clisp.org>
13562
13563         wctype: Move AC_LIBOBJ invocations to module description.
13564         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13565         invocation from here...
13566         * modules/wctype (configure.ac): ... to here.
13567         (Depends-on): Update conditions.
13568
13569 2011-05-22  Bruno Haible  <bruno@clisp.org>
13570
13571         wctrans: Move AC_LIBOBJ invocations to module description.
13572         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13573         invocation from here...
13574         * modules/wctrans (configure.ac): ... to here.
13575
13576 2011-05-22  Bruno Haible  <bruno@clisp.org>
13577
13578         wctomb: Move AC_LIBOBJ invocations to module description.
13579         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13580         invocations from here...
13581         * modules/wctomb (configure.ac): ... to here.
13582
13583 2011-05-22  Bruno Haible  <bruno@clisp.org>
13584
13585         wctob: Move AC_LIBOBJ invocations to module description.
13586         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13587         gl_PREREQ_WCTOB invocations from here...
13588         * modules/wctob (configure.ac): ... to here.
13589         (Depends-on): Update conditions.
13590
13591 2011-05-22  Bruno Haible  <bruno@clisp.org>
13592
13593         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13594         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13595         here...
13596         * modules/wcsxfrm (configure.ac): ... to here.
13597
13598 2011-05-22  Bruno Haible  <bruno@clisp.org>
13599
13600         wcstok: Move AC_LIBOBJ invocations to module description.
13601         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13602         * modules/wcstok (configure.ac): ... to here.
13603
13604 2011-05-22  Bruno Haible  <bruno@clisp.org>
13605
13606         wcsstr: Move AC_LIBOBJ invocations to module description.
13607         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13608         * modules/wcsstr (configure.ac): ... to here.
13609
13610 2011-05-22  Bruno Haible  <bruno@clisp.org>
13611
13612         wcsspn: Move AC_LIBOBJ invocations to module description.
13613         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13614         * modules/wcsspn (configure.ac): ... to here.
13615
13616 2011-05-22  Bruno Haible  <bruno@clisp.org>
13617
13618         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13619         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13620         gl_PREREQ_WCSRTOMBS invocations from here...
13621         * modules/wcsrtombs (configure.ac): ... to here.
13622
13623 2011-05-22  Bruno Haible  <bruno@clisp.org>
13624
13625         wcsrchr: Move AC_LIBOBJ invocations to module description.
13626         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13627         here...
13628         * modules/wcsrchr (configure.ac): ... to here.
13629
13630 2011-05-22  Bruno Haible  <bruno@clisp.org>
13631
13632         wcspbrk: Move AC_LIBOBJ invocations to module description.
13633         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13634         here...
13635         * modules/wcspbrk (configure.ac): ... to here.
13636
13637 2011-05-22  Bruno Haible  <bruno@clisp.org>
13638
13639         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13640         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13641         gl_PREREQ_WCSNRTOMBS invocations from here...
13642         * modules/wcsnrtombs (configure.ac): ... to here.
13643
13644 2011-05-22  Bruno Haible  <bruno@clisp.org>
13645
13646         wcsnlen: Move AC_LIBOBJ invocations to module description.
13647         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13648         here...
13649         * modules/wcsnlen (configure.ac): ... to here.
13650
13651 2011-05-22  Bruno Haible  <bruno@clisp.org>
13652
13653         wcsncpy: Move AC_LIBOBJ invocations to module description.
13654         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13655         here...
13656         * modules/wcsncpy (configure.ac): ... to here.
13657
13658 2011-05-22  Bruno Haible  <bruno@clisp.org>
13659
13660         wcsncmp: Move AC_LIBOBJ invocations to module description.
13661         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13662         here...
13663         * modules/wcsncmp (configure.ac): ... to here.
13664
13665 2011-05-22  Bruno Haible  <bruno@clisp.org>
13666
13667         wcsncat: Move AC_LIBOBJ invocations to module description.
13668         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13669         here...
13670         * modules/wcsncat (configure.ac): ... to here.
13671
13672 2011-05-22  Bruno Haible  <bruno@clisp.org>
13673
13674         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13675         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13676         from here...
13677         * modules/wcsncasecmp (configure.ac): ... to here.
13678
13679 2011-05-22  Bruno Haible  <bruno@clisp.org>
13680
13681         wcslen: Move AC_LIBOBJ invocations to module description.
13682         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13683         * modules/wcslen (configure.ac): ... to here.
13684
13685 2011-05-22  Bruno Haible  <bruno@clisp.org>
13686
13687         wcsdup: Move AC_LIBOBJ invocations to module description.
13688         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13689         * modules/wcsdup (configure.ac): ... to here.
13690
13691 2011-05-22  Bruno Haible  <bruno@clisp.org>
13692
13693         wcscspn: Move AC_LIBOBJ invocations to module description.
13694         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13695         here...
13696         * modules/wcscspn (configure.ac): ... to here.
13697
13698 2011-05-22  Bruno Haible  <bruno@clisp.org>
13699
13700         wcscpy: Move AC_LIBOBJ invocations to module description.
13701         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13702         * modules/wcscpy (configure.ac): ... to here.
13703
13704 2011-05-22  Bruno Haible  <bruno@clisp.org>
13705
13706         wcscoll: Move AC_LIBOBJ invocations to module description.
13707         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13708         here...
13709         * modules/wcscoll (configure.ac): ... to here.
13710
13711 2011-05-22  Bruno Haible  <bruno@clisp.org>
13712
13713         wcscmp: Move AC_LIBOBJ invocations to module description.
13714         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13715         * modules/wcscmp (configure.ac): ... to here.
13716
13717 2011-05-22  Bruno Haible  <bruno@clisp.org>
13718
13719         wcschr: Move AC_LIBOBJ invocations to module description.
13720         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13721         * modules/wcschr (configure.ac): ... to here.
13722
13723 2011-05-22  Bruno Haible  <bruno@clisp.org>
13724
13725         wcscat: Move AC_LIBOBJ invocations to module description.
13726         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13727         * modules/wcscat (configure.ac): ... to here.
13728
13729 2011-05-22  Bruno Haible  <bruno@clisp.org>
13730
13731         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13732         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13733         here...
13734         * modules/wcscasecmp (configure.ac): ... to here.
13735
13736 2011-05-22  Bruno Haible  <bruno@clisp.org>
13737
13738         wcrtomb: Move AC_LIBOBJ invocations to module description.
13739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13740         invocations from here...
13741         * modules/wcrtomb (configure.ac): ... to here.
13742
13743 2011-05-22  Bruno Haible  <bruno@clisp.org>
13744
13745         wcpncpy: Move AC_LIBOBJ invocations to module description.
13746         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13747         here...
13748         * modules/wcpncpy (configure.ac): ... to here.
13749
13750 2011-05-22  Bruno Haible  <bruno@clisp.org>
13751
13752         wcpcpy: Move AC_LIBOBJ invocations to module description.
13753         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13754         * modules/wcpcpy (configure.ac): ... to here.
13755
13756 2011-05-22  Bruno Haible  <bruno@clisp.org>
13757
13758         waitpid: Move AC_LIBOBJ invocations to module description.
13759         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13760         invocation from here...
13761         * modules/waitpid (configure.ac): ... to here.
13762
13763 2011-05-22  Bruno Haible  <bruno@clisp.org>
13764
13765         utimensat: Move AC_LIBOBJ invocations to module description.
13766         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13767         here...
13768         * modules/utimensat (configure.ac): ... to here.
13769
13770 2011-05-22  Bruno Haible  <bruno@clisp.org>
13771
13772         usleep: Move AC_LIBOBJ invocations to module description.
13773         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13774         here...
13775         * modules/usleep (configure.ac): ... to here.
13776
13777 2011-05-22  Bruno Haible  <bruno@clisp.org>
13778
13779         unlockpt: Move AC_LIBOBJ invocations to module description.
13780         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13781         gl_PREREQ_UNLOCKPT invocations from here...
13782         * modules/unlockpt (configure.ac): ... to here.
13783
13784 2011-05-22  Bruno Haible  <bruno@clisp.org>
13785
13786         unlink: Respect rules for use of AC_LIBOBJ.
13787         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13788         * modules/unlink (configure.ac): ... to here.
13789
13790 2011-05-22  Bruno Haible  <bruno@clisp.org>
13791
13792         uname: Move AC_LIBOBJ invocations to module description.
13793         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13795         here...
13796         * modules/uname (configure.ac): ... to here.
13797
13798 2011-05-22  Bruno Haible  <bruno@clisp.org>
13799
13800         ttyname_r: Move AC_LIBOBJ invocations to module description.
13801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13802         gl_PREREQ_TTYNAME_R invocations from here...
13803         * modules/ttyname_r (configure.ac): ... to here.
13804
13805 2011-05-22  Bruno Haible  <bruno@clisp.org>
13806
13807         tsearch: Move AC_LIBOBJ invocations to module description.
13808         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13809         invocations from here...
13810         * modules/tsearch (configure.ac): ... to here.
13811
13812 2011-05-22  Bruno Haible  <bruno@clisp.org>
13813
13814         towctrans: Move AC_LIBOBJ invocations to module description.
13815         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13816         AC_LIBOBJ invocation from here...
13817         * modules/towctrans (configure.ac): ... to here.
13818
13819 2011-05-22  Bruno Haible  <bruno@clisp.org>
13820
13821         tmpfile: Move AC_LIBOBJ invocations to module description.
13822         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13823         invocations from here...
13824         * modules/tmpfile (configure.ac): ... to here.
13825
13826 2011-05-22  Bruno Haible  <bruno@clisp.org>
13827
13828         times: Move AC_LIBOBJ invocations to module description.
13829         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13830         * modules/times (configure.ac): ... to here.
13831
13832 2011-05-22  Bruno Haible  <bruno@clisp.org>
13833
13834         time_r: Move AC_LIBOBJ invocations to module description.
13835         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13836         invocations from here...
13837         * modules/time_r (configure.ac): ... to here.
13838
13839 2011-05-22  Bruno Haible  <bruno@clisp.org>
13840
13841         timegm: Move AC_LIBOBJ invocations to module description.
13842         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13843         invocations from here...
13844         * modules/timegm (configure.ac): ... to here.
13845
13846 2011-05-22  Bruno Haible  <bruno@clisp.org>
13847
13848         tcgetsid: Move AC_LIBOBJ invocations to module description.
13849         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13850         and gl_PREREQ_TCGETSID invocations from here...
13851         * modules/tcgetsid (configure.ac): ... to here.
13852         (Depends-on): Update conditions.
13853
13854 2011-05-22  Bruno Haible  <bruno@clisp.org>
13855
13856         symlinkat: Move AC_LIBOBJ invocations to module description.
13857         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13858         here...
13859         * modules/symlinkat (configure.ac): ... to here.
13860
13861 2011-05-22  Bruno Haible  <bruno@clisp.org>
13862
13863         symlink: Move AC_LIBOBJ invocations to module description.
13864         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13865         here...
13866         * modules/symlink (configure.ac): ... to here.
13867
13868 2011-05-22  Bruno Haible  <bruno@clisp.org>
13869
13870         strverscmp: Move AC_LIBOBJ invocations to module description.
13871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13873         from here...
13874         * modules/strverscmp (configure.ac): ... to here.
13875
13876 2011-05-22  Bruno Haible  <bruno@clisp.org>
13877
13878         strtok_r: Move AC_LIBOBJ invocations to module description.
13879         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13880         and gl_PREREQ_STRTOK_R invocations from here...
13881         * modules/strtok_r (configure.ac): ... to here.
13882         (Depends-on): Update conditions.
13883
13884 2011-05-22  Bruno Haible  <bruno@clisp.org>
13885
13886         strtoumax: Move AC_LIBOBJ invocations to module description.
13887         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13889         from here...
13890         * modules/strtoumax (configure.ac): ... to here.
13891
13892 2011-05-22  Bruno Haible  <bruno@clisp.org>
13893
13894         strtoimax: Move AC_LIBOBJ invocations to module description.
13895         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13897         from here...
13898         * modules/strtoimax (configure.ac): ... to here.
13899
13900 2011-05-22  Bruno Haible  <bruno@clisp.org>
13901
13902         strtoull: Move AC_LIBOBJ invocations to module description.
13903         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13905         from here...
13906         * modules/strtoull (configure.ac): ... to here.
13907
13908 2011-05-22  Bruno Haible  <bruno@clisp.org>
13909
13910         strtoll: Move AC_LIBOBJ invocations to module description.
13911         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13913         here...
13914         * modules/strtoll (configure.ac): ... to here.
13915
13916 2011-05-22  Bruno Haible  <bruno@clisp.org>
13917
13918         strtoul: Move AC_LIBOBJ invocations to module description.
13919         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13920         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13921         * modules/strtoul (configure.ac): ... to here.
13922
13923 2011-05-22  Bruno Haible  <bruno@clisp.org>
13924
13925         strtol: Move AC_LIBOBJ invocations to module description.
13926         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13927         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13928         * modules/strtol (configure.ac): ... to here.
13929
13930 2011-05-22  Bruno Haible  <bruno@clisp.org>
13931
13932         strtod: Move AC_LIBOBJ invocations to module description.
13933         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13934         invocations from here...
13935         * modules/strtod (configure.ac): ... to here.
13936
13937 2011-05-22  Bruno Haible  <bruno@clisp.org>
13938
13939         strstr*: Move AC_LIBOBJ invocations to module description.
13940         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13941         invocations from here...
13942         * modules/strstr-simple (configure.ac): ... to here.
13943         * modules/strstr (configure.ac): ... and here.
13944
13945 2011-05-22  Bruno Haible  <bruno@clisp.org>
13946
13947         strsignal: Move AC_LIBOBJ invocations to module description.
13948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13949         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13950         * modules/strsignal (configure.ac): ... to here.
13951         (Depends-on): Update conditions.
13952
13953 2011-05-22  Bruno Haible  <bruno@clisp.org>
13954
13955         strsep: Move AC_LIBOBJ invocations to module description.
13956         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13958         here...
13959         * modules/strsep (configure.ac): ... to here.
13960
13961 2011-05-22  Bruno Haible  <bruno@clisp.org>
13962
13963         strptime: Move AC_LIBOBJ invocations to module description.
13964         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13965         gl_PREREQ_STRPTIME invocations from here...
13966         * modules/strptime (configure.ac): ... to here.
13967
13968 2011-05-22  Bruno Haible  <bruno@clisp.org>
13969
13970         strpbrk: Move AC_LIBOBJ invocations to module description.
13971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13973         here...
13974         * modules/strpbrk (configure.ac): ... to here.
13975
13976 2011-05-22  Bruno Haible  <bruno@clisp.org>
13977
13978         strnlen: Move AC_LIBOBJ invocations to module description.
13979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13980         invocations from here...
13981         * modules/strnlen (configure.ac): ... to here.
13982
13983 2011-05-22  Bruno Haible  <bruno@clisp.org>
13984
13985         strndup: Move AC_LIBOBJ invocations to module description.
13986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13987         invocations from here...
13988         * modules/strndup (configure.ac): ... to here.
13989         (Depends-on): Update conditions.
13990
13991 2011-05-22  Bruno Haible  <bruno@clisp.org>
13992
13993         strncat: Move AC_LIBOBJ invocations to module description.
13994         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13995         invocations from here...
13996         * modules/strncat (configure.ac): ... to here.
13997
13998 2011-05-22  Bruno Haible  <bruno@clisp.org>
13999
14000         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14001         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14002         invocations from here...
14003         * modules/strdup (configure.ac): ... to here.
14004         * modules/strdup-posix (configure.ac): ... and here.
14005
14006 2011-05-22  Bruno Haible  <bruno@clisp.org>
14007
14008         strcspn: Move AC_LIBOBJ invocations to module description.
14009         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14011         here...
14012         * modules/strcspn (configure.ac): ... to here.
14013
14014 2011-05-22  Bruno Haible  <bruno@clisp.org>
14015
14016         strchrnul: Move AC_LIBOBJ invocations to module description.
14017         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14018         gl_PREREQ_STRCHRNUL invocations from here...
14019         * modules/strchrnul (configure.ac): ... to here.
14020
14021 2011-05-22  Bruno Haible  <bruno@clisp.org>
14022
14023         strcasestr*: Move AC_LIBOBJ invocations to module description.
14024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14025         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14026         * modules/strcasestr-simple (configure.ac): ... to here.
14027         * modules/strcasestr (configure.ac): ... and here.
14028
14029 2011-05-22  Bruno Haible  <bruno@clisp.org>
14030
14031         strcase: Move AC_LIBOBJ invocations to module description.
14032         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14033         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14034         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14035         gl_PREREQ_STRNCASECMP invocations from here...
14036         * modules/strcase (configure.ac): ... to here.
14037
14038 2011-05-22  Bruno Haible  <bruno@clisp.org>
14039
14040         stpncpy: Move AC_LIBOBJ invocations to module description.
14041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14042         here...
14043         * modules/stpncpy (configure.ac): ... to here.
14044
14045 2011-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         stpcpy: Move AC_LIBOBJ invocations to module description.
14048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14050         here...
14051         * modules/stpcpy (configure.ac): ... to here.
14052
14053 2011-05-21  Bruno Haible  <bruno@clisp.org>
14054
14055         stat: Move AC_LIBOBJ invocations to module description.
14056         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14057         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14058         here...
14059         * modules/stat (configure.ac): ... to here.
14060
14061 2011-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         sleep: Move AC_LIBOBJ invocations to module description.
14064         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14065         * modules/sleep (configure.ac): ... to here.
14066
14067 2011-05-21  Bruno Haible  <bruno@clisp.org>
14068
14069         signbit: Move AC_LIBOBJ invocations to module description.
14070         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14071         * modules/signbit (configure.ac): ... to here.
14072
14073 2011-05-21  Bruno Haible  <bruno@clisp.org>
14074
14075         sigprocmask: Move AC_LIBOBJ invocations to module description.
14076         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14077         gl_PREREQ_SIGPROMASK invocations from here...
14078         * modules/sigprocmask (configure.ac): ... to here.
14079
14080 2011-05-21  Bruno Haible  <bruno@clisp.org>
14081
14082         sigaction: Move AC_LIBOBJ invocations to module description.
14083         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14084         gl_PREREQ_SIGACTION invocations from here...
14085         * modules/sigaction (configure.ac): ... to here.
14086
14087 2011-05-21  Bruno Haible  <bruno@clisp.org>
14088
14089         sig2str: Move AC_LIBOBJ invocations to module description.
14090         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14092         here...
14093         * modules/sig2str (configure.ac): ... to here.
14094
14095 2011-05-21  Bruno Haible  <bruno@clisp.org>
14096
14097         setlocale: Move AC_LIBOBJ invocations to module description.
14098         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14099         gl_PREREQ_SETLOCALE invocations from here...
14100         * modules/setlocale (configure.ac): ... to here.
14101
14102 2011-05-21  Bruno Haible  <bruno@clisp.org>
14103
14104         unsetenv: Move AC_LIBOBJ invocations to module description.
14105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14106         and gl_PREREQ_UNSETENV invocations from here...
14107         * modules/unsetenv (configure.ac): ... to here.
14108         (Depends-on): Update.
14109
14110 2011-05-21  Bruno Haible  <bruno@clisp.org>
14111
14112         setenv: Move AC_LIBOBJ invocations to module description.
14113         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14114         here...
14115         * modules/setenv (configure.ac): ... to here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         selinux-h: Move AC_LIBOBJ invocations to module description.
14120         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14121         AC_LIBOBJ invocation from here...
14122         * modules/selinux-h (configure.ac): ... to here.
14123
14124 2011-05-21  Bruno Haible  <bruno@clisp.org>
14125
14126         select: Respect rules for use of AC_LIBOBJ.
14127         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14128         here...
14129         * modules/select (configure.ac): ... to here.
14130
14131 2011-05-21  Bruno Haible  <bruno@clisp.org>
14132
14133         scandir: Move AC_LIBOBJ invocations to module description.
14134         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14135         invocations from here...
14136         * modules/scandir (configure.ac): ... to here.
14137
14138 2011-05-21  Bruno Haible  <bruno@clisp.org>
14139
14140         rpmatch: Move AC_LIBOBJ invocations to module description.
14141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14143         here...
14144         * modules/rpmatch (configure.ac): ... to here.
14145
14146 2011-05-21  Bruno Haible  <bruno@clisp.org>
14147
14148         rmdir: Respect rules for use of AC_LIBOBJ.
14149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14150         * modules/rmdir (configure.ac): ... to here.
14151
14152 2011-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         renameat: Move AC_LIBOBJ invocations to module description.
14155         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14156         here...
14157         * modules/renameat (configure.ac): ... to here.
14158
14159 2011-05-21  Bruno Haible  <bruno@clisp.org>
14160
14161         rename: Respect rules for use of AC_LIBOBJ.
14162         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14163         here...
14164         * modules/rename (configure.ac): ... to here.
14165
14166 2011-05-21  Bruno Haible  <bruno@clisp.org>
14167
14168         remove: Move AC_LIBOBJ invocations to module description.
14169         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14170         here...
14171         * modules/remove (configure.ac): ... to here.
14172
14173 2011-05-21  Bruno Haible  <bruno@clisp.org>
14174
14175         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14176         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14177         macro.
14178         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14179         * modules/relocatable-lib (configure.ac): ... to here.
14180         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14181         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14186         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14187         here...
14188         * modules/relocatable-prog (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         regex: Move AC_LIBOBJ invocations to module description.
14193         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14194         invocations from here...
14195         * modules/regex (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         realloc-*: Move AC_LIBOBJ invocations to module description.
14200         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14201         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14202         AC_LIBOBJ invocations from here...
14203         * modules/realloc-gnu (configure.ac): ... to here.
14204         * modules/realloc-posix (configure.ac): ... and here.
14205
14206 2011-05-21  Bruno Haible  <bruno@clisp.org>
14207
14208         readutmp: Move AC_LIBOBJ invocations to module description.
14209         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14210         * modules/readutmp (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         readlinkat: Move AC_LIBOBJ invocations to module description.
14215         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14216         here...
14217         * modules/readlinkat (configure.ac): ... to here.
14218
14219 2011-05-21  Bruno Haible  <bruno@clisp.org>
14220
14221         readlink: Move AC_LIBOBJ invocations to module description.
14222         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14223         gl_PREREQ_READLINK invocations from here...
14224         * modules/readlink (configure.ac): ... to here.
14225
14226 2011-05-21  Bruno Haible  <bruno@clisp.org>
14227
14228         readline: Move AC_LIBOBJ invocations to module description.
14229         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14230         gl_PREREQ_READLINE invocations from here...
14231         * modules/readline (configure.ac): ... to here.
14232
14233 2011-05-21  Bruno Haible  <bruno@clisp.org>
14234
14235         read: Move AC_LIBOBJ invocations to module description.
14236         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14237         * modules/read (configure.ac): ... to here.
14238
14239 2011-05-21  Bruno Haible  <bruno@clisp.org>
14240
14241         rawmemchr: Move AC_LIBOBJ invocations to module description.
14242         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14244         from here...
14245         * modules/rawmemchr (configure.ac): ... to here.
14246
14247 2011-05-21  Bruno Haible  <bruno@clisp.org>
14248
14249         random_r: Move AC_LIBOBJ invocations to module description.
14250         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14251         gl_PREREQ_RANDOM_R invocations from here...
14252         * modules/random_r (configure.ac): ... to here.
14253
14254 2011-05-21  Bruno Haible  <bruno@clisp.org>
14255
14256         pwrite: Move AC_LIBOBJ invocations to module description.
14257         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14258         * modules/pwrite (configure.ac): ... to here.
14259
14260 2011-05-21  Bruno Haible  <bruno@clisp.org>
14261
14262         putenv: Move AC_LIBOBJ invocations to module description.
14263         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14264         * modules/putenv (configure.ac): ... to here.
14265
14266 2011-05-21  Bruno Haible  <bruno@clisp.org>
14267
14268         login_tty: Move AC_LIBOBJ invocations to module description.
14269         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14270         * modules/login_tty (configure.ac): ... to here.
14271
14272 2011-05-21  Bruno Haible  <bruno@clisp.org>
14273
14274         openpty: Move AC_LIBOBJ invocations to module description.
14275         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14276         * modules/openpty (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         forkpty: Move AC_LIBOBJ invocations to module description.
14281         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14282         * modules/forkpty (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         ptsname: Move AC_LIBOBJ invocations to module description.
14287         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14288         invocations from here...
14289         * modules/ptsname (configure.ac): ... to here.
14290
14291 2011-05-21  Bruno Haible  <bruno@clisp.org>
14292
14293         pread: Move AC_LIBOBJ invocations to module description.
14294         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14295         * modules/pread (configure.ac): ... to here.
14296
14297 2011-05-21  Bruno Haible  <bruno@clisp.org>
14298
14299         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14300         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14301         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14302         * modules/posix_spawn (configure.ac): ... to here.
14303         * modules/posix_spawnp (configure.ac): ... and here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         popen: Move AC_LIBOBJ invocations to module description.
14308         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14309         invocations from here...
14310         * modules/popen (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         poll: Move AC_LIBOBJ invocations to module description.
14315         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14316         invocations from here...
14317         * modules/poll (configure.ac): ... to here.
14318
14319 2011-05-21  Bruno Haible  <bruno@clisp.org>
14320
14321         pipe-posix: Move AC_LIBOBJ invocations to module description.
14322         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14323         * modules/pipe-posix (configure.ac): ... to here.
14324
14325 2011-05-21  Bruno Haible  <bruno@clisp.org>
14326
14327         openat: Respect rules for use of AC_LIBOBJ.
14328         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14329         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14330         * modules/openat (configure.ac): ... to here.
14331
14332 2011-05-21  Bruno Haible  <bruno@clisp.org>
14333
14334         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14335         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14336         invocation from here...
14337         * modules/obstack-printf (configure.ac): ... to here.
14338         * modules/obstack-printf-posix (configure.ac): ... and here.
14339
14340 2011-05-21  Bruno Haible  <bruno@clisp.org>
14341
14342         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14344         from here...
14345         * modules/nl_langinfo (configure.ac): ... to here.
14346
14347 2011-05-21  Bruno Haible  <bruno@clisp.org>
14348
14349         nanosleep: Move AC_LIBOBJ invocations to module description.
14350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14351         gl_PREREQ_NANOSLEEP invocations from here...
14352         * modules/nanosleep (configure.ac): ... to here.
14353
14354 2011-05-21  Bruno Haible  <bruno@clisp.org>
14355
14356         mountlist: Move AC_LIBOBJ invocations to module description.
14357         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14358         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14359         * modules/mountlist (configure.ac): ... to here.
14360
14361 2011-05-21  Bruno Haible  <bruno@clisp.org>
14362
14363         mktime: Respect rules for use of AC_LIBOBJ.
14364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14365         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14366         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14367         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14368         * modules/mktime (configure.ac): ... to here.
14369         * modules/mktime-internal (configure.ac): ... and here.
14370         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         mkstemps: Move AC_LIBOBJ invocations to module description.
14375         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14376         here...
14377         * modules/mkstemps (configure.ac): ... to here.
14378
14379 2011-05-21  Bruno Haible  <bruno@clisp.org>
14380
14381         mkstemp: Move AC_LIBOBJ invocations to module description.
14382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14383         gl_PREREQ_MKSTEMP invocations from here...
14384         * modules/mkstemp (configure.ac): ... to here.
14385
14386 2011-05-21  Bruno Haible  <bruno@clisp.org>
14387
14388         mkostemps: Move AC_LIBOBJ invocations to module description.
14389         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14390         here...
14391         * modules/mkostemps (configure.ac): ... to here.
14392
14393 2011-05-21  Bruno Haible  <bruno@clisp.org>
14394
14395         mkostemp: Move AC_LIBOBJ invocations to module description.
14396         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14397         gl_PREREQ_MKOSTEMP invocations from here...
14398         * modules/mkostemp (configure.ac): ... to here.
14399
14400 2011-05-21  Bruno Haible  <bruno@clisp.org>
14401
14402         mknod: Move AC_LIBOBJ invocations to module description.
14403         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14404         * modules/mknod (configure.ac): ... to here.
14405
14406 2011-05-21  Bruno Haible  <bruno@clisp.org>
14407
14408         mkfifoat: Move AC_LIBOBJ invocations to module description.
14409         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14410         here...
14411         * modules/mkfifoat (configure.ac): ... to here.
14412
14413 2011-05-21  Bruno Haible  <bruno@clisp.org>
14414
14415         mkfifo: Respect rules for use of AC_LIBOBJ.
14416         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14417         here...
14418         * modules/mkfifo (configure.ac): ... to here.
14419
14420 2011-05-21  Bruno Haible  <bruno@clisp.org>
14421
14422         mkdtemp: Move AC_LIBOBJ invocations to module description.
14423         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14424         invocations from here...
14425         * modules/mkdtemp (configure.ac): ... to here.
14426
14427 2011-05-21  Bruno Haible  <bruno@clisp.org>
14428
14429         mkdir: Move AC_LIBOBJ invocations to module description.
14430         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14431         * modules/mkdir (configure.ac): ... to here.
14432
14433 2011-05-21  Bruno Haible  <bruno@clisp.org>
14434
14435         memset: Move AC_LIBOBJ invocations to module description.
14436         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14438         here...
14439         * modules/memset (configure.ac): ... to here.
14440
14441 2011-05-21  Bruno Haible  <bruno@clisp.org>
14442
14443         memrchr: Move AC_LIBOBJ invocations to module description.
14444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14446         here...
14447         * modules/memrchr (configure.ac): ... to here.
14448
14449 2011-05-21  Bruno Haible  <bruno@clisp.org>
14450
14451         mempcpy: Move AC_LIBOBJ invocations to module description.
14452         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14454         here...
14455         * modules/mempcpy (configure.ac): ... to here.
14456
14457 2011-05-21  Bruno Haible  <bruno@clisp.org>
14458
14459         memmove: Move AC_LIBOBJ invocations to module description.
14460         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14462         here...
14463         * modules/memmove (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         memmem*: Move AC_LIBOBJ invocations to module description.
14468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14469         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14470         here...
14471         (gl_FUNC_MEMMEM): ... and here...
14472         * modules/memmem-simple (configure.ac): ... to here.
14473         * modules/memmem (configure.ac): ... and here.
14474
14475 2011-05-21  Bruno Haible  <bruno@clisp.org>
14476
14477         memcpy: Move AC_LIBOBJ invocations to module description.
14478         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14480         here...
14481         * modules/memcpy (configure.ac): ... to here.
14482
14483 2011-05-21  Bruno Haible  <bruno@clisp.org>
14484
14485         memcmp: Simplify autoconf macro.
14486         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14487         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14488         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14489
14490 2011-05-21  Bruno Haible  <bruno@clisp.org>
14491
14492         memcmp: Move AC_LIBOBJ invocations to module description.
14493         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14494         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14495         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14496         * modules/memcmp (configure.ac): ... to here.
14497         (Depends-on): Update conditions.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         memchr: Respect rules for use of AC_LIBOBJ.
14502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14503         invocations from here...
14504         * modules/memchr (configure.ac): ... to here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         mbtowc: Move AC_LIBOBJ invocations to module description.
14509         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14510         invocations from here...
14511         * modules/mbtowc (configure.ac): ... to here.
14512
14513 2011-05-21  Bruno Haible  <bruno@clisp.org>
14514
14515         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14517         gl_PREREQ_MBSRTOWCS invocations from here...
14518         * modules/mbsrtowcs (configure.ac): ... to here.
14519
14520 2011-05-21  Bruno Haible  <bruno@clisp.org>
14521
14522         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14523         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14524         gl_PREREQ_MBSNRTOWCS invocations from here...
14525         * modules/mbsnrtowcs (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         mbsinit: Move AC_LIBOBJ invocations to module description.
14530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14531         invocations from here...
14532         * modules/mbsinit (configure.ac): ... to here.
14533
14534 2011-05-21  Bruno Haible  <bruno@clisp.org>
14535
14536         mbrlen: Move AC_LIBOBJ invocations to module description.
14537         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14538         invocations from here...
14539         * modules/mbrlen (configure.ac): ... to here.
14540
14541 2011-05-21  Bruno Haible  <bruno@clisp.org>
14542
14543         mbrtowc: Respect rules for use of AC_LIBOBJ.
14544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14545         invocations from here...
14546         * modules/mbrtowc (configure.ac): ... to here.
14547
14548 2011-05-21  Bruno Haible  <bruno@clisp.org>
14549
14550         malloc-*: Move AC_LIBOBJ invocations to module description.
14551         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14552         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14553         AC_LIBOBJ invocations from here...
14554         * modules/malloc-gnu (configure.ac): ... to here.
14555         * modules/malloc-posix (configure.ac): ... and here.
14556
14557 2011-05-21  Bruno Haible  <bruno@clisp.org>
14558
14559         lstat, openat: Respect rules for use of AC_LIBOBJ.
14560         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14561         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14562         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14563         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14564         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14565         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14566         here.
14567         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14568
14569 2011-05-21  Bruno Haible  <bruno@clisp.org>
14570
14571         lseek: Move AC_LIBOBJ invocations to module description.
14572         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14573         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14574         * modules/lseek (configure.ac): ... to here.
14575
14576 2011-05-21  Bruno Haible  <bruno@clisp.org>
14577
14578         linkat: Move AC_LIBOBJ invocations to module description.
14579         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14580         here...
14581         * modules/linkat (configure.ac): ... to here.
14582
14583 2011-05-21  Bruno Haible  <bruno@clisp.org>
14584
14585         link: Respect rules for use of AC_LIBOBJ.
14586         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14587         * modules/link (configure.ac): ... to here.
14588
14589 2011-05-21  Bruno Haible  <bruno@clisp.org>
14590
14591         lchown: Move AC_LIBOBJ invocations to module description.
14592         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14593         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14594         * modules/lchown (configure.ac): ... to here.
14595
14596 2011-05-21  Bruno Haible  <bruno@clisp.org>
14597
14598         iswctype: Move AC_LIBOBJ invocations to module description.
14599         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14600         here...
14601         * modules/iswctype (configure.ac): ... to here.
14602
14603 2011-05-21  Bruno Haible  <bruno@clisp.org>
14604
14605         iswblank: Move AC_LIBOBJ invocations to module description.
14606         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14607         here...
14608         * modules/iswblank (configure.ac): ... to here.
14609
14610 2011-05-21  Bruno Haible  <bruno@clisp.org>
14611
14612         atanl: Move AC_LIBOBJ invocations to module description.
14613         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14614         * modules/atanl (configure.ac): ... to here.
14615
14616 2011-05-21  Bruno Haible  <bruno@clisp.org>
14617
14618         acosl: Move AC_LIBOBJ invocations to module description.
14619         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14620         * modules/acosl (configure.ac): ... to here.
14621
14622 2011-05-21  Bruno Haible  <bruno@clisp.org>
14623
14624         asinl: Respect rules for use of AC_LIBOBJ.
14625         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14626         * modules/asinl (configure.ac): ... to here.
14627
14628 2011-05-21  Bruno Haible  <bruno@clisp.org>
14629
14630         tanl: Move AC_LIBOBJ invocations to module description.
14631         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14632         * modules/tanl (configure.ac): ... to here.
14633
14634 2011-05-21  Bruno Haible  <bruno@clisp.org>
14635
14636         cosl: Move AC_LIBOBJ invocations to module description.
14637         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14638         * modules/cosl (configure.ac): ... to here.
14639
14640 2011-05-21  Bruno Haible  <bruno@clisp.org>
14641
14642         sinl: Move AC_LIBOBJ invocations to module description.
14643         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14644         * modules/sinl (configure.ac): ... to here.
14645
14646 2011-05-21  Bruno Haible  <bruno@clisp.org>
14647
14648         logl: Move AC_LIBOBJ invocations to module description.
14649         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14650         * modules/logl (configure.ac): ... to here.
14651
14652 2011-05-21  Bruno Haible  <bruno@clisp.org>
14653
14654         expl: Move AC_LIBOBJ invocations to module description.
14655         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14656         * modules/expl (configure.ac): ... to here.
14657
14658 2011-05-21  Bruno Haible  <bruno@clisp.org>
14659
14660         roundl: Move AC_LIBOBJ invocations to module description.
14661         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14662         * modules/roundl (configure.ac): ... to here.
14663
14664 2011-05-21  Bruno Haible  <bruno@clisp.org>
14665
14666         round: Move AC_LIBOBJ invocations to module description.
14667         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14668         * modules/round (configure.ac): ... to here.
14669
14670 2011-05-21  Bruno Haible  <bruno@clisp.org>
14671
14672         roundf: Move AC_LIBOBJ invocations to module description.
14673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14674         * modules/roundf (configure.ac): ... to here.
14675
14676 2011-05-21  Bruno Haible  <bruno@clisp.org>
14677
14678         truncl: Move AC_LIBOBJ invocations to module description.
14679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14680         * modules/truncl (configure.ac): ... to here.
14681
14682 2011-05-21  Bruno Haible  <bruno@clisp.org>
14683
14684         trunc: Move AC_LIBOBJ invocations to module description.
14685         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14686         * modules/trunc (configure.ac): ... to here.
14687
14688 2011-05-21  Bruno Haible  <bruno@clisp.org>
14689
14690         truncf: Move AC_LIBOBJ invocations to module description.
14691         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14692         * modules/truncf (configure.ac): ... to here.
14693
14694 2011-05-21  Bruno Haible  <bruno@clisp.org>
14695
14696         ceill: Move AC_LIBOBJ invocations to module description.
14697         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14698         * modules/ceill (configure.ac): ... to here.
14699
14700 2011-05-21  Bruno Haible  <bruno@clisp.org>
14701
14702         ceil: Move AC_LIBOBJ invocations to module description.
14703         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14704         * modules/ceil (configure.ac): ... to here.
14705
14706 2011-05-21  Bruno Haible  <bruno@clisp.org>
14707
14708         ceilf: Move AC_LIBOBJ invocations to module description.
14709         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14710         * modules/ceilf (configure.ac): ... to here.
14711
14712 2011-05-21  Bruno Haible  <bruno@clisp.org>
14713
14714         floorl: Respect rules for use of AC_LIBOBJ.
14715         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14716         * modules/floorl (configure.ac): ... to here.
14717
14718 2011-05-21  Bruno Haible  <bruno@clisp.org>
14719
14720         floor: Respect rules for use of AC_LIBOBJ.
14721         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14722         * modules/floor (configure.ac): ... to here.
14723
14724 2011-05-21  Bruno Haible  <bruno@clisp.org>
14725
14726         floorf: Move AC_LIBOBJ invocations to module description.
14727         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14728         * modules/floorf (configure.ac): ... to here.
14729
14730 2011-05-20  Bruno Haible  <bruno@clisp.org>
14731
14732         sqrtl: Respect rules for use of AC_LIBOBJ.
14733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14734         * modules/sqrtl (configure.ac): ... to here.
14735
14736 2011-05-20  Bruno Haible  <bruno@clisp.org>
14737
14738         ldexpl: Respect rules for use of AC_LIBOBJ.
14739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14740         * modules/ldexpl (configure.ac): ... to here.
14741
14742 2011-05-20  Bruno Haible  <bruno@clisp.org>
14743
14744         frexpl*: Respect rules for use of AC_LIBOBJ.
14745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14746         invocation from here...
14747         * modules/frexpl (configure.ac): ... to here.
14748         * modules/frexpl-nolibm (configure.ac): ... and here.
14749
14750 2011-05-20  Bruno Haible  <bruno@clisp.org>
14751
14752         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14753         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14754         invocation from here...
14755         * modules/frexp (configure.ac): ... to here.
14756         * modules/frexp-nolibm (configure.ac): ... and here.
14757
14758 2011-05-20  Bruno Haible  <bruno@clisp.org>
14759
14760         isnan: Respect rules for use of AC_LIBOBJ.
14761         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14762         invocations here.
14763         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14764         REPLACE_ISNAN.
14765         * modules/isnand (configure.ac): Likewise.
14766         * modules/isnanl (configure.ac): Likewise.
14767
14768 2011-05-20  Bruno Haible  <bruno@clisp.org>
14769
14770         isnanl*: Respect rules for use of AC_LIBOBJ.
14771         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14772         invocation from here...
14773         * modules/isnanl (configure.ac): ... to here.
14774         * modules/isnanl-nolibm (configure.ac): ... and here.
14775
14776 2011-05-20  Bruno Haible  <bruno@clisp.org>
14777
14778         isnand*: Move AC_LIBOBJ invocations to module description.
14779         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14780         invocation from here...
14781         * modules/isnand (configure.ac): ... to here.
14782         * modules/isnand-nolibm (configure.ac): ... and here.
14783
14784 2011-05-20  Bruno Haible  <bruno@clisp.org>
14785
14786         isnanf*: Move AC_LIBOBJ invocations to module description.
14787         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14788         invocation from here...
14789         * modules/isnanf (configure.ac): ... to here.
14790         * modules/isnanf-nolibm (configure.ac): ... and here.
14791
14792 2011-05-20  Bruno Haible  <bruno@clisp.org>
14793
14794         isnan*: Separate the AC_LIBOBJ invocations.
14795         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14796         AC_LIBOBJ invocation.
14797         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14798         here.
14799         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14800         AC_LIBOBJ invocation.
14801         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14802         here.
14803         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14804         AC_LIBOBJ invocation.
14805         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14806         here.
14807         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14808
14809 2011-05-08  Bruno Haible  <bruno@clisp.org>
14810
14811         isinf: Move AC_LIBOBJ invocations to module description.
14812         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14813         * modules/isinf (configure.ac): ... to here.
14814
14815 2011-05-08  Bruno Haible  <bruno@clisp.org>
14816
14817         isfinite: Move AC_LIBOBJ invocations to module description.
14818         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14819         * modules/isfinite (configure.ac): ... to here.
14820
14821 2011-05-08  Bruno Haible  <bruno@clisp.org>
14822
14823         isblank: Move AC_LIBOBJ invocations to module description.
14824         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14825         here...
14826         * modules/isblank (configure.ac): ... to here.
14827
14828 2011-05-08  Bruno Haible  <bruno@clisp.org>
14829
14830         isapipe: Move AC_LIBOBJ invocations to module description.
14831         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14832         gl_PREREQ_ISAPIPE invocations from here...
14833         * modules/isapipe (configure.ac): ... to here.
14834         (Depends-on): Update condition.
14835
14836 2011-05-08  Bruno Haible  <bruno@clisp.org>
14837
14838         ioctl: Move AC_LIBOBJ invocations to module description.
14839         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14840         invocations from here...
14841         * modules/ioctl (configure.ac): ... to here.
14842         (Depends-on): Update condition.
14843
14844 2011-05-08  Bruno Haible  <bruno@clisp.org>
14845
14846         imaxdiv: Move AC_LIBOBJ invocations to module description.
14847         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14848         invocations from here...
14849         * modules/imaxdiv (configure.ac): ... to here.
14850
14851 2011-05-08  Bruno Haible  <bruno@clisp.org>
14852
14853         imaxabs: Move AC_LIBOBJ invocations to module description.
14854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14855         invocations from here...
14856         * modules/imaxabs (configure.ac): ... to here.
14857
14858 2011-05-08  Bruno Haible  <bruno@clisp.org>
14859
14860         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14862         AC_LIBOBJ invocations from here...
14863         * modules/getaddrinfo (configure.ac): ... to here.
14864         (Depends-on): Add conditions.
14865
14866 2011-05-08  Bruno Haible  <bruno@clisp.org>
14867
14868         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14869         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14870         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14871         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14872         (gl_PREREQ_INET_PTON): ... from here.
14873         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14874         gl_PREREQ_INET_PTON here.
14875         (Depends-on): Update condition.
14876
14877 2011-05-08  Bruno Haible  <bruno@clisp.org>
14878
14879         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14880         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14881         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14882         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14883         (gl_PREREQ_INET_NTOP): ... from here.
14884         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14885         gl_PREREQ_INET_NTOP here.
14886         (Depends-on): Update condition.
14887
14888 2011-05-08  Bruno Haible  <bruno@clisp.org>
14889
14890         iconv_open: Move AC_LIBOBJ invocations to module description.
14891         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14892         AC_LIBOBJ invocations from here...
14893         * modules/iconv_open (configure.ac): ... to here.
14894
14895 2011-05-08  Bruno Haible  <bruno@clisp.org>
14896
14897         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14898         If module 'iconv_open' is among the main modules and module
14899         'iconv_open-utf' is among the tests dependencies, then
14900         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14901         return the special iconv_t values. Therefore iconv() and iconv_close()
14902         must support these special iconv_t values, already in lib, not only in
14903         tests.
14904         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14906         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14907         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14908         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14909         (Depends-on): Add the dependencies of iconv_open-utf.
14910         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14911         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14912         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14913
14914 2011-05-08  Bruno Haible  <bruno@clisp.org>
14915
14916         group-member: Move AC_LIBOBJ invocations to module description.
14917         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14918         gl_PREREQ_GROUP_MEMBER invocations from here...
14919         * modules/group-member (configure.ac): ... to here.
14920
14921 2011-05-08  Bruno Haible  <bruno@clisp.org>
14922
14923         grantpt: Move AC_LIBOBJ invocations to module description.
14924         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14925         invocations from here...
14926         * modules/grantpt (configure.ac): ... to here.
14927
14928 2011-05-08  Bruno Haible  <bruno@clisp.org>
14929
14930         glob: Move AC_LIBOBJ invocations to module description.
14931         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14932         from here...
14933         * modules/glob (configure.ac): ... to here.
14934
14935 2011-05-08  Bruno Haible  <bruno@clisp.org>
14936
14937         getusershell: Move AC_LIBOBJ invocations to module description.
14938         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14939         Move AC_LIBOBJ invocation from here...
14940         * modules/getusershell (configure.ac): ... to here.
14941         (Depends-on): Update condition.
14942
14943 2011-05-08  Bruno Haible  <bruno@clisp.org>
14944
14945         gettimeofday: Move AC_LIBOBJ invocations to module description.
14946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14947         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14948         gl_PREREQ_GETTIMEOFDAY invocations from here...
14949         * modules/gettimeofday (configure.ac): ... to here.
14950
14951 2011-05-08  Bruno Haible  <bruno@clisp.org>
14952
14953         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14954         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14955         just gl_FUNC_TZSET.
14956         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14957         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14959         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14960
14961 2011-05-08  Bruno Haible  <bruno@clisp.org>
14962
14963         getsubopt: Move AC_LIBOBJ invocations to module description.
14964         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14965         gl_PREREQ_GETSUBOPT invocations from here...
14966         * modules/getsubopt (configure.ac): ... to here.
14967
14968 2011-05-08  Bruno Haible  <bruno@clisp.org>
14969
14970         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14971         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14972         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14973         * modules/getpass-gnu (configure.ac): ... to here.
14974
14975 2011-05-08  Bruno Haible  <bruno@clisp.org>
14976
14977         getpass: Move AC_LIBOBJ invocations to module description.
14978         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14979         gl_PREREQ_GETPASS invocations from here...
14980         * modules/getpass (configure.ac): ... to here.
14981
14982 2011-05-08  Bruno Haible  <bruno@clisp.org>
14983
14984         getpagesize: Move AC_LIBOBJ invocations to module description.
14985         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14986         from here...
14987         * modules/getpagesize (configure.ac): ... to here.
14988
14989 2011-05-08  Bruno Haible  <bruno@clisp.org>
14990
14991         getopt: Move AC_LIBOBJ invocations to module description.
14992         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14993         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14994         invocations from here...
14995         * modules/getopt-gnu (configure.ac): ... to here.
14996         * modules/getopt-posix (configure.ac): ... and here.
14997         (Depends-on): Update condition.
14998
14999 2011-05-08  Bruno Haible  <bruno@clisp.org>
15000
15001         getopt, argp: Respect rules for use of AC_LIBOBJ.
15002         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15003         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15004         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15005         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15006
15007 2011-05-08  Bruno Haible  <bruno@clisp.org>
15008
15009         getlogin_r: Move AC_LIBOBJ invocations to module description.
15010         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15011         gl_PREREQ_GETLOGIN_R invocations from here...
15012         * modules/getlogin_r (configure.ac): ... to here.
15013
15014 2011-05-08  Bruno Haible  <bruno@clisp.org>
15015
15016         getlogin: Move AC_LIBOBJ invocations to module description.
15017         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15018         here...
15019         * modules/getlogin (configure.ac): ... to here.
15020
15021 2011-05-08  Bruno Haible  <bruno@clisp.org>
15022
15023         getloadavg: Move AC_LIBOBJ invocations to module description.
15024         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15025         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15026         * modules/getloadavg (configure.ac): ... to here.
15027
15028 2011-05-08  Bruno Haible  <bruno@clisp.org>
15029
15030         gethrxtime: Move AC_LIBOBJ invocations to module description.
15031         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15032         LIB_GETHRXTIME from here...
15033         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15034         invocations from here...
15035         * modules/gethrxtime (configure.ac): ... to here.
15036
15037 2011-05-08  Bruno Haible  <bruno@clisp.org>
15038
15039         gethostname: Move AC_LIBOBJ invocations to module description.
15040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15041         gl_PREREQ_GETHOSTNAME invocations from here...
15042         * modules/gethostname (configure.ac): ... to here.
15043
15044 2011-05-08  Bruno Haible  <bruno@clisp.org>
15045
15046         getgroups: Move AC_LIBOBJ invocations to module description.
15047         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15048         here...
15049         * modules/getgroups (configure.ac): ... to here.
15050
15051 2011-05-08  Bruno Haible  <bruno@clisp.org>
15052
15053         getdtablesize: Move AC_LIBOBJ invocations to module description.
15054         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15055         invocation from here...
15056         * modules/getdtablesize (configure.ac): ... to here.
15057
15058 2011-05-08  Bruno Haible  <bruno@clisp.org>
15059
15060         getdomainname: Move AC_LIBOBJ invocations to module description.
15061         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15062         gl_PREREQ_GETDOMAINNAME invocations from here...
15063         * modules/getdomainname (configure.ac): ... to here.
15064
15065 2011-05-08  Bruno Haible  <bruno@clisp.org>
15066
15067         getline: Move AC_LIBOBJ invocations to module description.
15068         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15069         invocations from here...
15070         * modules/getline (configure.ac): ... to here.
15071
15072 2011-05-08  Bruno Haible  <bruno@clisp.org>
15073
15074         getline: Simplify.
15075         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15076         It's already handled through the module dependency.
15077
15078 2011-05-08  Bruno Haible  <bruno@clisp.org>
15079
15080         getdelim: Move AC_LIBOBJ invocations to module description.
15081         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15082         and gl_PREREQ_GETDELIM invocations from here...
15083         * modules/getdelim (configure.ac): ... to here.
15084         (Depends-on): Fix condition.
15085
15086 2011-05-08  Bruno Haible  <bruno@clisp.org>
15087
15088         getcwd: Move AC_LIBOBJ invocations to module description.
15089         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15090         invocations from here...
15091         * modules/getcwd (configure.ac): ... to here.
15092
15093 2011-05-08  Bruno Haible  <bruno@clisp.org>
15094
15095         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15096         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15097         here...
15098         * modules/getcwd-lgpl (configure.ac): ... to here.
15099
15100 2011-05-07  Bruno Haible  <bruno@clisp.org>
15101
15102         crypto/gc: Move AC_LIBOBJ invocations to module description.
15103         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15104         * modules/crypto/gc (configure.ac): ... to here.
15105
15106 2011-05-07  Bruno Haible  <bruno@clisp.org>
15107
15108         fwriting: Move AC_LIBOBJ invocations to module description.
15109         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15110         here...
15111         * modules/fwriting (configure.ac): ... to here.
15112
15113 2011-05-07  Bruno Haible  <bruno@clisp.org>
15114
15115         fwritable: Move AC_LIBOBJ invocations to module description.
15116         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15117         here...
15118         * modules/fwritable (configure.ac): ... to here.
15119
15120 2011-05-07  Bruno Haible  <bruno@clisp.org>
15121
15122         futimens: Move AC_LIBOBJ invocations to module description.
15123         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15124         here...
15125         * modules/futimens (configure.ac): ... to here.
15126
15127 2011-05-07  Bruno Haible  <bruno@clisp.org>
15128
15129         ftruncate: Move AC_LIBOBJ invocations to module description.
15130         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15131         gl_PREREQ_FTRUNCATE invocations from here...
15132         * modules/ftruncate (configure.ac): ... to here.
15133
15134 2011-05-07  Bruno Haible  <bruno@clisp.org>
15135
15136         fsync: Move AC_LIBOBJ invocations to module description.
15137         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15138         invocations from here...
15139         * modules/fsync (configure.ac): ... to here.
15140
15141 2011-05-07  Bruno Haible  <bruno@clisp.org>
15142
15143         fsusage: Move AC_LIBOBJ invocations to module description.
15144         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15145         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15146         * modules/fsusage (configure.ac): ... to here.
15147
15148 2011-05-07  Bruno Haible  <bruno@clisp.org>
15149
15150         freopen: Move AC_LIBOBJ invocations to module description.
15151         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15152         invocations from here...
15153         * modules/freopen (configure.ac): ... to here.
15154
15155 2011-05-07  Bruno Haible  <bruno@clisp.org>
15156
15157         free: Move AC_LIBOBJ invocations to module description.
15158         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15159         invocations from here...
15160         * modules/free (configure.ac): ... to here.
15161
15162 2011-05-07  Bruno Haible  <bruno@clisp.org>
15163
15164         freadable: Move AC_LIBOBJ invocations to module description.
15165         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15166         here...
15167         * modules/freadable (configure.ac): ... to here.
15168
15169 2011-05-07  Bruno Haible  <bruno@clisp.org>
15170
15171         fpurge: Move AC_LIBOBJ invocations to module description.
15172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15173         invocations from here...
15174         * modules/fpurge (configure.ac): ... to here.
15175
15176 2011-05-07  Bruno Haible  <bruno@clisp.org>
15177
15178         fpending: Move AC_LIBOBJ invocations to module description.
15179         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15180         gl_FUNC_FPENDING.
15181         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15182         invocations from here...
15183         * modules/fpending (configure.ac): ... to here.
15184
15185 2011-05-07  Bruno Haible  <bruno@clisp.org>
15186
15187         fopen: Move AC_LIBOBJ invocations to module description.
15188         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15189         invocations from here...
15190         * modules/fopen (configure.ac): ... to here.
15191
15192 2011-05-07  Bruno Haible  <bruno@clisp.org>
15193
15194         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15195         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15196         gl_FUNC_FNMATCH_POSIX.
15197         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15198         invocations from here...
15199         * modules/fnmatch (configure.ac): ... to here.
15200         * modules/fnmatch-gnu (configure.ac): ... and here.
15201
15202 2011-05-07  Bruno Haible  <bruno@clisp.org>
15203
15204         flock: Move AC_LIBOBJ invocations to module description.
15205         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15206         invocations from here...
15207         * modules/flock (configure.ac): ... to here.
15208
15209 2011-05-07  Bruno Haible  <bruno@clisp.org>
15210
15211         fileblocks: Move AC_LIBOBJ invocations to module description.
15212         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15213         gl_PREREQ_FILEBLOCKS invocations from here...
15214         * modules/fileblocks (configure.ac): ... to here.
15215
15216 2011-05-06  Bruno Haible  <bruno@clisp.org>
15217
15218         fflush: Move AC_LIBOBJ invocations to module description.
15219         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15220         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15221         invocations from here...
15222         * modules/fflush (configure.ac): ... to here.
15223
15224 2011-05-06  Bruno Haible  <bruno@clisp.org>
15225
15226         fdopendir: Move AC_LIBOBJ invocations to module description.
15227         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15228         here...
15229         * modules/fdopendir (configure.ac): ... to here.
15230         (Depends-on): Improve conditions.
15231
15232 2011-05-06  Bruno Haible  <bruno@clisp.org>
15233
15234         _Exit: Move AC_LIBOBJ invocations to module description.
15235         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15236         invocations from here...
15237         * modules/_Exit (configure.ac): ... to here.
15238
15239 2011-05-21  Bruno Haible  <bruno@clisp.org>
15240
15241         euidaccess: Respect rules for use of AC_LIBOBJ.
15242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15244         from here...
15245         * modules/euidaccess (configure.ac): ... to here.
15246
15247 2011-05-06  Bruno Haible  <bruno@clisp.org>
15248
15249         error: Move AC_LIBOBJ invocations to module description.
15250         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15251         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15252         invocations from here...
15253         * modules/error (configure.ac): ... to here.
15254
15255 2011-05-06  Bruno Haible  <bruno@clisp.org>
15256
15257         duplocale: Move AC_LIBOBJ invocations to module description.
15258         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15259         gl_PREREQ_DUPLOCALE invocations from here...
15260         * modules/duplocale (configure.ac): ... to here.
15261
15262 2011-05-05  Bruno Haible  <bruno@clisp.org>
15263
15264         dirfd: Move AC_LIBOBJ invocations to module description.
15265         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15266         gl_FUNC_DIRFD.
15267         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15268         here...
15269         * modules/dirfd (configure.ac): ... to here.
15270         (Depends-on): Fix condition.
15271
15272 2011-05-05  Bruno Haible  <bruno@clisp.org>
15273
15274         chown: Respect rules for use of AC_LIBOBJ.
15275         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15276         * modules/chown (configure.ac): ... to here.
15277
15278 2011-05-05  Bruno Haible  <bruno@clisp.org>
15279
15280         chdir-long: Move AC_LIBOBJ invocations to module description.
15281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15282         gl_PREREQ_CHDIR_LONG invocations from here...
15283         * modules/chdir-long (configure.ac): ... to here.
15284
15285 2011-05-05  Bruno Haible  <bruno@clisp.org>
15286
15287         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15288         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15289         from here...
15290         * modules/canonicalize-lgpl (configure.ac): ... to here.
15291
15292 2011-05-05  Bruno Haible  <bruno@clisp.org>
15293
15294         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15295         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15296         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15297         REPLACE_CALLOC.
15298         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15299         * modules/calloc-gnu (configure.ac): Likewise.
15300
15301 2011-05-05  Bruno Haible  <bruno@clisp.org>
15302
15303         btowc: Move AC_LIBOBJ invocations to module description.
15304         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15305         invocations from here...
15306         * modules/btowc (configure.ac): ... to here.
15307
15308 2011-05-21  Bruno Haible  <bruno@clisp.org>
15309
15310         atexit: Move AC_LIBOBJ invocations to module description.
15311         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15313         here...
15314         * modules/atexit (configure.ac): ... to here.
15315
15316 2011-05-05  Bruno Haible  <bruno@clisp.org>
15317
15318         atoll: Move AC_LIBOBJ invocations to module description.
15319         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15320         invocations from here...
15321         * modules/atoll (configure.ac): ... to here.
15322
15323 2011-05-05  Bruno Haible  <bruno@clisp.org>
15324
15325         argz: Move AC_LIBOBJ invocations to module description.
15326         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15327         * modules/argz (configure.ac): ... to here.
15328
15329 2011-05-05  Bruno Haible  <bruno@clisp.org>
15330
15331         alphasort: Move AC_LIBOBJ invocations to module description.
15332         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15333         gl_PREREQ_ALPHASORT invocations from here...
15334         * modules/alphasort (configure.ac): ... to here.
15335
15336 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15337
15338         verify: new macro verify_expr; verify_true deprecated
15339         * NEWS: Mention this.
15340         * doc/verify.texi (Compile-time Assertions): Document this.
15341         * lib/verify.h (verify_true): Deprecate.
15342         (verify_expr): New macro.
15343         * tests/test-verify.c (function): Test verify_expr.
15344
15345 2011-06-14  Jim Meyering  <meyering@redhat.com>
15346
15347         init.sh: give more portable redirection-related advice in a comment
15348         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15349         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15350         for lots of discussion.  Stefano Lattarini suggested the solution
15351         of putting "9>&2" after the command.  Reported by Bruno Haible.
15352
15353 2011-06-13  Bruno Haible  <bruno@clisp.org>
15354
15355         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15357         'none'.
15358
15359 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         ftoastr: use strtof only if HAVE_STRTOF
15362         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15364         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15365         * modules/ftoastr (configure.ac): Check for strtof.
15366
15367 2011-06-13  Bruno Haible  <bruno@clisp.org>
15368
15369         gnulib-tool: Addendum to 2011-06-08 commit.
15370         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15371         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15372
15373 2011-06-13  Bruno Haible  <bruno@clisp.org>
15374
15375         fseeko: Provide a non-inline replacement of fseek().
15376         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15377         * modules/fseeko (Depends-on): Add fseek.
15378         * modules/fseek (License): Change to LGPLv2+.
15379
15380 2011-06-13  Bruno Haible  <bruno@clisp.org>
15381
15382         ftello: Provide a non-inline replacement of ftell().
15383         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15384         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15385         not have ftello() (such as on mingw).
15386         * modules/ftello (Depends-on): Add ftell.
15387         * modules/ftell (License): Change to LGPLv2+.
15388
15389 2011-05-07  Bruno Haible  <bruno@clisp.org>
15390
15391         ftell: Move AC_LIBOBJ invocations to module description.
15392         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15393         * modules/ftell (configure.ac): ... to here.
15394
15395 2011-05-07  Bruno Haible  <bruno@clisp.org>
15396
15397         ftello: Respect rules for use of AC_LIBOBJ.
15398         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15399         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15400         here...
15401         * modules/ftello (configure.ac): ... to here.
15402
15403 2011-05-07  Bruno Haible  <bruno@clisp.org>
15404
15405         fseeko: Simplify.
15406         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15407         (gl_FUNC_FSEEKO): Inline it here.
15408
15409 2011-05-07  Bruno Haible  <bruno@clisp.org>
15410
15411         fseek: Move AC_LIBOBJ invocations to module description.
15412         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15413         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15414         * modules/fseek (configure.ac): ... to here.
15415
15416 2011-05-07  Bruno Haible  <bruno@clisp.org>
15417
15418         fseek: Respect rules for use of AC_LIBOBJ.
15419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15420         here...
15421         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15422
15423 2011-05-07  Bruno Haible  <bruno@clisp.org>
15424
15425         fseeko: Respect rules for use of AC_LIBOBJ.
15426         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15427         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15428         here...
15429         * modules/fseeko (configure.ac): ... to here.
15430
15431 2011-06-13  Bruno Haible  <bruno@clisp.org>
15432
15433         gnulib-tool: Allow comments in the 'Depends-on' section.
15434         * doc/gnulib.texi (Module description): Mention comment syntax in the
15435         Depends-on section.
15436         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15437
15438 2011-06-13  Bruno Haible  <bruno@clisp.org>
15439
15440         file-set.h: guard __attibute__ use, now that it's not always defined
15441         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15442         versions that support it.  This fixes a coreutils build failure with
15443         the vendor cc on HP-UX 11.31.
15444
15445 2011-06-12  Bruno Haible  <bruno@clisp.org>
15446
15447         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15448         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15449         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15450         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15451         (acl, aclsort): New declarations.
15452         (aclv_nontrivial): New declaration.
15453         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15454         (file_has_acl): Read also the second kind of HP-UX ACLs.
15455         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15456         kind of HP-UX ACLs if the first kind fails.
15457         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15458         second kind of HP-UX ACLs.
15459         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15460         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15461         agree.
15462         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15463         hpuxjfs.
15464         Handle hpuxjfs.
15465         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15466         hpuxjfs.
15467         Handle hpuxjfs.
15468         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15469         (func_test_same_acls): Use both lsacl and getacl.
15470         Handle hpuxjfs.
15471         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15472         (func_test_same_acls): Use both lsacl and getacl.
15473         Handle hpuxjfs.
15474
15475 2011-06-12  Bruno Haible  <bruno@clisp.org>
15476
15477         acl: Complete the 2010-08-10 fix.
15478         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15479         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15480         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15481         explicitly.
15482         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15483         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15484
15485 2011-06-12  Bruno Haible  <bruno@clisp.org>
15486
15487         spawn-pipe tests: Comments.
15488         * tests/test-spawn-pipe-child.c (main): Update comment.
15489         Reported by James Youngman <jay@gnu.org>.
15490
15491 2011-06-11  James Youngman  <jay@gnu.org>
15492
15493         New module 'stat-size'.
15494         * modules/stat-size: New module.  Provides macros for accessing
15495         file size information in instances of struct stat.  Depends on the
15496         fileblocks module because it calls st_blocks.
15497         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15498         * doc/gnulib.texi: Include stat-size.texi.
15499         * doc/stat-size.texi: Documentation for this module.
15500         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15501         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15502         AC_STRUCT_ST_BLOCKS.
15503
15504 2011-06-09  Bruno Haible  <bruno@clisp.org>
15505
15506         thread: Support pthreads-win32.
15507         * lib/glthread/thread.h (gl_thread_self): Define differently on
15508         pthreads-win32.
15509         (gl_null_thread): New declaration.
15510         (gl_thread_self_pointer): New macro.
15511         * lib/glthread/thread.c (gl_null_thread): New constant.
15512         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15513         gl_thread_self.
15514         * tests/test-tls.c: Likewise.
15515         Suggested by Paul Eggert. Reported by Eric Blake.
15516
15517 2011-06-09  Bruno Haible  <bruno@clisp.org>
15518
15519         thread: Fix confusion between NULL and 0.
15520         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15521         Reported by Paul Eggert.
15522
15523 2011-06-09  Bruno Haible  <bruno@clisp.org>
15524
15525         spawn-pipe tests: Avoid test failure on HP-UX 11.
15526         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15527         is closed.
15528
15529 2011-06-09  Bruno Haible  <bruno@clisp.org>
15530
15531         acl tests: Fix compilation error on HP-UX 11.
15532         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15533
15534 2011-06-09  Bruno Haible  <bruno@clisp.org>
15535
15536         rmdir: Avoid test failure on HP-UX 10.20.
15537         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15538         EEXIST.
15539
15540 2011-06-08  Eric Blake  <eblake@redhat.com>
15541
15542         perror: fix test on mingw
15543         * modules/perror-tests (Depends-on): Add dup2.
15544
15545         strerror_r-posix: fix on MacOS
15546         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15548         logic bug.
15549         * lib/strerror_r.c (strerror_r): Fix the bug.
15550         * lib/strerror.c (strerror): Likewise.
15551         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15552         problem.
15553         * doc/posix-functions/strerror.texi (strerror): Likewise.
15554         * doc/posix-functions/perror.texi (perror): Likewise.
15555         * tests/test-strerror.c (main): Enhance test.
15556         * tests/test-strerror_r.c (main): Likewise.
15557
15558 2011-06-08  Bruno Haible  <bruno@clisp.org>
15559
15560         gnulib-tool: Better isolation between different gnulib-tool invocations.
15561         * gnulib-tool: New option --witness-c-macro.
15562         (witness_c_macro): New variable.
15563         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15564         AM_CPPFLAGS define it as a C macro.
15565         (func_emit_tests_Makefile_am): Likewise.
15566         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15567         read it from there.
15568         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15569         m4_define, not AC_DEFUN.
15570         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15571         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15572         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15573         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15574         s|...|...|, to substitute the values of the GNULIB_* module indicator
15575         variables.
15576         * modules/dirent (Makefile.am): Likewise.
15577         * modules/fcntl-h (Makefile.am): Likewise.
15578         * modules/iconv-h (Makefile.am): Likewise.
15579         * modules/langinfo (Makefile.am): Likewise.
15580         * modules/locale (Makefile.am): Likewise.
15581         * modules/math (Makefile.am): Likewise.
15582         * modules/netdb (Makefile.am): Likewise.
15583         * modules/poll-h (Makefile.am): Likewise.
15584         * modules/pty (Makefile.am): Likewise.
15585         * modules/search (Makefile.am): Likewise.
15586         * modules/signal (Makefile.am): Likewise.
15587         * modules/spawn (Makefile.am): Likewise.
15588         * modules/stdio (Makefile.am): Likewise.
15589         * modules/stdlib (Makefile.am): Likewise.
15590         * modules/string (Makefile.am): Likewise.
15591         * modules/sys_ioctl (Makefile.am): Likewise.
15592         * modules/sys_select (Makefile.am): Likewise.
15593         * modules/sys_socket (Makefile.am): Likewise.
15594         * modules/sys_stat (Makefile.am): Likewise.
15595         * modules/sys_times (Makefile.am): Likewise.
15596         * modules/sys_utsname (Makefile.am): Likewise.
15597         * modules/sys_wait (Makefile.am): Likewise.
15598         * modules/termios (Makefile.am): Likewise.
15599         * modules/time (Makefile.am): Likewise.
15600         * modules/unistd (Makefile.am): Likewise.
15601         * modules/wchar (Makefile.am): Likewise.
15602
15603 2011-06-08  Eric Blake  <eblake@redhat.com>
15604
15605         strerror: simplify replacement
15606         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15607         * modules/strerror (configure.ac): No prereqs needed here...
15608         * modules/strerror-override (configure.ac): ...but this needs it.
15609         (Files): Add file for needed prereq macro.
15610
15611 2011-06-08  Bruno Haible  <bruno@clisp.org>
15612
15613         strerror_r-posix: Tweaks.
15614         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15615         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15617         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15618         (gl_FUNC_STRERROR_R): ... to here.
15619         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15620
15621 2011-06-07  Eric Blake  <eblake@redhat.com>
15622
15623         perror: document fixed bugs
15624         * doc/posix-functions/perror.texi (perror): Document recent
15625         patches.
15626
15627 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15628
15629         stat-time: get_stat_birthtime failure is better-defined
15630         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15631         return a timestamp whose tv_sec and tv_nsec values are both -1.
15632         Previously, the spec said only that the tv_nsec value was negative.
15633         This upward-compatible change simplifies GNU tar a bit.
15634
15635 2011-06-07  Eric Blake  <eblake@redhat.com>
15636
15637         strerror_r-posix: work around cygwin 1.7.9
15638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15639         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15640         bug without replacing strerror_r.
15641         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15642         strerror_r is buggy, but without requiring strerror_r compilation.
15643         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15644
15645         test-perror: relax test to ignore cygwin bug
15646         * tests/test-perror2.c (main): Relax test on requiring detection
15647         of stream errors, and use unbuffered stream.
15648         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15649         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15650         * doc/posix-functions/fputc.texi (fputc): Likewise.
15651         * doc/posix-functions/fputs.texi (fputs): Likewise.
15652         * doc/posix-functions/fputws.texi (fputws): Likewise.
15653         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15654         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15655         * doc/posix-functions/getopt.texi (getopt): Likewise.
15656         * doc/posix-functions/perror.texi (perror): Likewise.
15657         * doc/posix-functions/printf.texi (printf): Likewise.
15658         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15659         * doc/posix-functions/psignal.texi (psignal): Likewise.
15660         * doc/posix-functions/putc.texi (putc): Likewise.
15661         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15662         Likewise.
15663         * doc/posix-functions/putchar.texi (putchar): Likewise.
15664         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15665         Likewise.
15666         * doc/posix-functions/puts.texi (puts): Likewise.
15667         * doc/posix-functions/putwc.texi (putwc): Likewise.
15668         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15669         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15670         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15671         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15672         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15673         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15674         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15675         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15676
15677 2011-05-22  Bruno Haible  <bruno@clisp.org>
15678
15679         strerror: Move AC_LIBOBJ invocations to module description.
15680         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15681         gl_PREREQ_STRERROR invocations from here...
15682         * modules/strerror (configure.ac): ... to here.
15683
15684 2011-05-21  Bruno Haible  <bruno@clisp.org>
15685
15686         perror: Use common idiom.
15687         * modules/perror (configure.ac): Reorder statements.
15688
15689 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15690
15691         tests: fix usage message in 'mktempd_'
15692         * tests/init.sh (mktempd_): In the usage message, use literal
15693         'mktempd_', not '$ME' (which is even undefined), as the name of
15694         the subroutine.
15695
15696 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15697
15698         tests init: new function 'fatal_', for hard errors
15699         Before this patch, the only way offered by tests/init.sh to
15700         properly signal a hard error was the `framework_failure_'
15701         function.  But the error message issued by that function,
15702         as its name would suggest, refers to a set-up failure in the
15703         testsuite, while hard errors can obviously also be due to
15704         other reasons.  The best way to fix this inconsistency is to
15705         introduce a new function with a more general error message.
15706         * tests/init.sh (fatal_): New function.
15707
15708 2011-06-06  Eric Blake  <eblake@redhat.com>
15709
15710         canonicalize-lgpl: use common idiom
15711         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15712         over newer POSIX -Rf.
15713         Reported by Bruno Haible.
15714
15715         canonicalize-lgpl: work around AIX realpath bug
15716         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15717         * doc/posix-functions/realpath.texi (realpath): Document it.
15718         Reported by Bruno Haible.
15719
15720         strerror: work around FreeBSD bug
15721         * lib/strerror.c (strerror): Special case 0.
15722         Reported by Bruno Haible.
15723
15724         strerror-override: avoid bloating errno module
15725         * modules/errno (Files, configure.ac): Move replacement strings...
15726         * modules/strerror-override: ...to new module.
15727         * modules/strerror (Depends-on): Add strerror-override.
15728         * modules/strerror_r-posix (Depends-on): Likewise.
15729         * MODULES.html.sh: Document new module.
15730         Reported by Bruno Haible.
15731
15732 2011-06-06  Bruno Haible  <bruno@clisp.org>
15733
15734         spawn-pipe tests: Rename program.
15735         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15736         * tests/test-spawn-pipe-child.c: Update comment.
15737         * tests/test-spawn-pipe.sh: Update.
15738         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15739
15740         spawn-pipe tests: Link the child program only against libc.
15741         * tests/test-spawn-pipe-child.c: New file, extracted from
15742         tests/test-spawn-pipe.c.
15743         (main): Expect only one argument.
15744         (is_open): New function, copied from tests/test-pipe.c.
15745         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15746         (child_main): Remove function.
15747         (test_pipe): Pass only one argument to the child program.
15748         (main): Remove child process code. Expect the child program's name as
15749         first argument.
15750         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15751         argument.
15752         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15753         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15754         test-spawn-pipe-child against no libraries.
15755
15756 2011-06-06  Bruno Haible  <bruno@clisp.org>
15757
15758         careadlinkat: Avoid mismatch between ssize_t and int.
15759         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15760         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15761
15762 2011-06-06  Jim Meyering  <meyering@redhat.com>
15763
15764         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15765         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15766         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15767
15768 2011-06-05  Bruno Haible  <bruno@clisp.org>
15769
15770         ansi-c++-opt: Interoperability with libtool.
15771         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15772         set the variable to "no", not to ":".
15773         * NEWS: Mention the change.
15774
15775 2011-06-05  Bruno Haible  <bruno@clisp.org>
15776
15777         acl: Fix test failure on AIX 7.
15778         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15779         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15780
15781 2011-06-05  Bruno Haible  <bruno@clisp.org>
15782
15783         pipe-filter-ii: Fix test failure on AIX and IRIX.
15784         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15785         with EAGAIN, retry with a smaller buffer size.
15786
15787 2011-06-05  Bruno Haible  <bruno@clisp.org>
15788
15789         localename: Fix link dependencies.
15790         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15791         * modules/localename-tests (Makefile.am): Link test-localename with
15792         $(LIBTHREAD).
15793
15794 2011-06-05  Bruno Haible  <bruno@clisp.org>
15795
15796         error: Avoid gcc warning.
15797         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15798
15799 2011-06-05  Bruno Haible  <bruno@clisp.org>
15800
15801         unsetenv: Avoid gcc warning.
15802         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15803
15804 2011-06-05  Bruno Haible  <bruno@clisp.org>
15805
15806         setenv: Avoid gcc warning.
15807         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15808
15809 2011-06-05  Bruno Haible  <bruno@clisp.org>
15810
15811         sys_select: Ensure memset is declared also on AIX 7.
15812         * lib/sys_select.in.h: Include <string.h> also on AIX.
15813         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15814         self-contained also on AIX 7.1.
15815
15816 2011-06-04  Jim Meyering  <meyering@redhat.com>
15817
15818         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15819         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15820         function name, "error".
15821         (_gl_translatable_diag_func_re): New configurable variable.
15822
15823 2011-06-04  Bruno Haible  <bruno@clisp.org>
15824
15825         getopt: Avoid gcc warning.
15826         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15827
15828 2011-06-04  Bruno Haible  <bruno@clisp.org>
15829
15830         strerror_r: Fix comments.
15831         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15832         commit.
15833
15834 2011-06-04  Bruno Haible  <bruno@clisp.org>
15835
15836         perror: Fix compilation error.
15837         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15838         Undefine fprintf, not sprintf.
15839         * modules/perror (Depends-on): Remove intprops, verify.
15840
15841 2011-06-04  Bruno Haible  <bruno@clisp.org>
15842
15843         setlocale: Enable replacement on Cygwin 1.5.
15844         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15845         Cygwin 1.5.x.
15846         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15847         LC_CTYPE category also exists on Cygwin 1.5.x.
15848
15849 2011-06-04  Bruno Haible  <bruno@clisp.org>
15850
15851         strerror-override: Don't disable symbol renamings.
15852         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15853         * lib/strerror-override.c: Include config.h.
15854         (strerror_override): Don't undefine.
15855
15856 2011-06-03  Bruno Haible  <bruno@clisp.org>
15857
15858         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15859         * lib/localename.h: Update copyright header.
15860         * lib/localename.c: Likewise.
15861         * lib/relocatable.h: Likewise.
15862         * lib/relocatable.c: Likewise.
15863
15864 2011-06-02  Bruno Haible  <bruno@clisp.org>
15865
15866         doc: Fix a module name.
15867         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15868
15869 2011-06-02  Bruno Haible  <bruno@clisp.org>
15870
15871         pipe2: Remove dependency on 'nonblocking' module.
15872         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15873         O_NONBLOCK is defined by gnulib.
15874         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15875         is zero.
15876         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15877         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15878         defined by gnulib.
15879         (get_nonblocking_flag): New function.
15880         (main): Test O_NONBLOCK flag only if it is nonzero.
15881         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15882
15883 2011-06-03  Jim Meyering  <meyering@redhat.com>
15884
15885         maint: three new prohibit-header-without-use rules
15886         Prohibit use of cloexec.h, posixver.h, same.h without use.
15887         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15888         (sc_prohibit_posixver_without_use): Likewise.
15889         (sc_prohibit_same_without_use): Likewise.
15890
15891 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15892
15893         allocator: 'die' routine is now given requested size
15894         * lib/allocator.h (struct allocator.die): New size arg.
15895         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15896         If the actual problem is an ssize_t limitation, not a size_t or
15897         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15898
15899 2011-06-01  Eric Blake  <eblake@redhat.com>
15900
15901         strerror: drop strerror_r dependency
15902         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15903         * lib/strerror-override.c (strerror_override): ...to new file.
15904         * lib/strerror-override.h: Add prototype.
15905         * lib/strerror-impl.h: Delete.
15906         * lib/strerror.c (strerror): New implementation.
15907         * modules/errno (Files): Add new files.
15908         (configure.ac): Compile new file as appropriate.
15909         * modules/strerror (Files): Drop unused file.
15910         (Depends-on): Drop strerror_r-posix.
15911         * MODULES.html.sh: Document strerror_r-posix.
15912         Requested by Sam Steingold.
15913
15914         perror: call strerror_r directly
15915         * modules/perror (Files): Drop strerror-impl.h.
15916         * lib/perror.c (perror): Use our own stack buffer, rather than
15917         calling a wrapper that uses static storage.
15918         * doc/posix-functions/perror.texi (perror): Document a limitation
15919         of our replacement.
15920
15921         strerror_r: fix includes for FreeBSD
15922         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15923         since we use abort on some platforms.
15924         Reported by Matthias Bolte.
15925
15926 2011-05-31  Bruno Haible  <bruno@clisp.org>
15927
15928         Fix link errors in tests: openat-die uses gettext-h.
15929         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15930         against $(LIBINTL).
15931         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15932         against $(LIBINTL).
15933         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15934         $(LIBINTL).
15935         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15936         against $(LIBINTL).
15937         * modules/linkat-tests (Makefile.am): Link test-linkat against
15938         $(LIBINTL).
15939         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15940         $(LIBINTL).
15941         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15942         against $(LIBINTL).
15943         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15944         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15945         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15946         $(LIBINTL).
15947         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15948         $(LIBINTL).
15949         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15950         $(LIBINTL).
15951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15952
15953 2011-05-31  Bruno Haible  <bruno@clisp.org>
15954
15955         Fix link errors in tests: wait-process uses gettext-h.
15956         * modules/nonblocking-pipe-tests (Makefile.am): Set
15957         test_nonblocking_pipe_main_LDADD.
15958         * modules/nonblocking-socket-tests (Makefile.am): Link
15959         test-nonblocking-socket-main against $(LIBINTL).
15960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15961
15962 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15963
15964         assert-h: work around 'verify' incompatibility
15965         * lib/verify.h: Use @...@ directives, not ifdef.
15966         * modules/assert-h (assert.h): Implement the directives.
15967         (assert.h): Substitute the symbol-prefix more consistently.
15968
15969 2011-05-29  Jim Meyering  <meyering@redhat.com>
15970
15971         trim: remove three superfluous assignments
15972         * lib/trim.c (trim2): Remove three superfluous assignments
15973         and correct brace positioning.
15974
15975 2011-05-29  Bruno Haible  <bruno@clisp.org>
15976
15977         wctype-h: Avoid namespace pollution on Solaris 2.6.
15978         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15979         identifiers.
15980         * doc/posix-headers/wctype.texi: Mention the problem.
15981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15982
15983 2011-05-28  Jim Meyering  <meyering@redhat.com>
15984
15985         parse-datetime.y: accommodate -Wstrict-overflow
15986         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15987         placate -Wstrict-overflow.
15988
15989         trim: avoid a warning from -O2 -Wstrict-overflow
15990         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15991
15992 2011-05-29  Bruno Haible  <bruno@clisp.org>
15993
15994         gnulib-tool: Fix bug in yesterday's commit.
15995         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15996         twice.
15997
15998 2011-05-29  Bruno Haible  <bruno@clisp.org>
15999
16000         Allow multiple gnulib generated include files to be combined.
16001         * gnulib-tool (func_compute_include_guard_prefix): New function.
16002         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16003         ${gl_include_guard_prefix} references.
16004         (func_import, func_create_testdir): Invoke
16005         func_compute_include_guard_prefix.
16006         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16007         * lib/ctype.in.h: Likewise.
16008         * lib/dirent.in.h: Likewise.
16009         * lib/errno.in.h: Likewise.
16010         * lib/fcntl.in.h: Likewise.
16011         * lib/float.in.h: Likewise.
16012         * lib/getopt.in.h: Likewise.
16013         * lib/iconv.in.h: Likewise.
16014         * lib/langinfo.in.h: Likewise.
16015         * lib/locale.in.h: Likewise.
16016         * lib/math.in.h: Likewise.
16017         * lib/netdb.in.h: Likewise.
16018         * lib/netinet_in.in.h: Likewise.
16019         * lib/poll.in.h: Likewise.
16020         * lib/pthread.in.h: Likewise.
16021         * lib/pty.in.h: Likewise.
16022         * lib/sched.in.h: Likewise.
16023         * lib/se-selinux.in.h: Likewise.
16024         * lib/search.in.h: Likewise.
16025         * lib/signal.in.h: Likewise.
16026         * lib/spawn.in.h: Likewise.
16027         * lib/stdarg.in.h: Likewise.
16028         * lib/stddef.in.h: Likewise.
16029         * lib/stdint.in.h: Likewise.
16030         * lib/stdio.in.h: Likewise.
16031         * lib/stdlib.in.h: Likewise.
16032         * lib/string.in.h: Likewise.
16033         * lib/strings.in.h: Likewise.
16034         * lib/sys_file.in.h: Likewise.
16035         * lib/sys_ioctl.in.h: Likewise.
16036         * lib/sys_select.in.h: Likewise.
16037         * lib/sys_socket.in.h: Likewise.
16038         * lib/sys_stat.in.h: Likewise.
16039         * lib/sys_time.in.h: Likewise.
16040         * lib/sys_times.in.h: Likewise.
16041         * lib/sys_uio.in.h: Likewise.
16042         * lib/sys_utsname.in.h: Likewise.
16043         * lib/sys_wait.in.h: Likewise.
16044         * lib/sysexits.in.h: Likewise.
16045         * lib/termios.in.h: Likewise.
16046         * lib/time.in.h: Likewise.
16047         * lib/unistd.in.h: Likewise.
16048         * lib/wchar.in.h: Likewise.
16049         * lib/wctype.in.h: Likewise.
16050         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16051         * modules/ctype (Makefile.am): Likewise.
16052         * modules/dirent (Makefile.am): Likewise.
16053         * modules/errno (Makefile.am): Likewise.
16054         * modules/fcntl-h (Makefile.am): Likewise.
16055         * modules/float (Makefile.am): Likewise.
16056         * modules/getopt-posix (Makefile.am): Likewise.
16057         * modules/iconv-h (Makefile.am): Likewise.
16058         * modules/langinfo (Makefile.am): Likewise.
16059         * modules/locale (Makefile.am): Likewise.
16060         * modules/math (Makefile.am): Likewise.
16061         * modules/netdb (Makefile.am): Likewise.
16062         * modules/netinet_in (Makefile.am): Likewise.
16063         * modules/poll-h (Makefile.am): Likewise.
16064         * modules/pthread (Makefile.am): Likewise.
16065         * modules/pty (Makefile.am): Likewise.
16066         * modules/sched (Makefile.am): Likewise.
16067         * modules/search (Makefile.am): Likewise.
16068         * modules/selinux-h (Makefile.am): Likewise.
16069         * modules/signal (Makefile.am): Likewise.
16070         * modules/spawn (Makefile.am): Likewise.
16071         * modules/stdarg (Makefile.am): Likewise.
16072         * modules/stddef (Makefile.am): Likewise.
16073         * modules/stdint (Makefile.am): Likewise.
16074         * modules/stdio (Makefile.am): Likewise.
16075         * modules/stdlib (Makefile.am): Likewise.
16076         * modules/string (Makefile.am): Likewise.
16077         * modules/strings (Makefile.am): Likewise.
16078         * modules/sys_file (Makefile.am): Likewise.
16079         * modules/sys_ioctl (Makefile.am): Likewise.
16080         * modules/sys_select (Makefile.am): Likewise.
16081         * modules/sys_socket (Makefile.am): Likewise.
16082         * modules/sys_stat (Makefile.am): Likewise.
16083         * modules/sys_time (Makefile.am): Likewise.
16084         * modules/sys_times (Makefile.am): Likewise.
16085         * modules/sys_uio (Makefile.am): Likewise.
16086         * modules/sys_utsname (Makefile.am): Likewise.
16087         * modules/sys_wait (Makefile.am): Likewise.
16088         * modules/sysexits (Makefile.am): Likewise.
16089         * modules/termios (Makefile.am): Likewise.
16090         * modules/time (Makefile.am): Likewise.
16091         * modules/unistd (Makefile.am): Likewise.
16092         * modules/wchar (Makefile.am): Likewise.
16093         * modules/wctype-h (Makefile.am): Likewise.
16094         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16095
16096 2011-05-29  Bruno Haible  <bruno@clisp.org>
16097
16098         assert-h: Allow multiple gnulib generated replacements to coexist.
16099         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16100
16101 2011-05-29  Bruno Haible  <bruno@clisp.org>
16102
16103         argp: Allow coexistence with strerror_r-posix module.
16104         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16105         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16106         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16107         not the glibc signature.
16108
16109 2011-05-28  Bruno Haible  <bruno@clisp.org>
16110
16111         gnulib-tool: Alternative structure of testdirs, similar to --import.
16112         * gnulib-tool: New option --single-configure.
16113         (func_usage): Document it.
16114         (single_configure): New variable.
16115         (func_modules_transitive_closure_separately,
16116         func_modules_transitive_closure_separately,
16117         func_determine_use_libtests, func_modules_add_dummy_separately,
16118         func_modules_to_filelist_separately): New functions, extracted from
16119         func_import.
16120         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16121         (func_import): Use the new functions.
16122         (func_create_testdir): Set final_modules. Handle $single_configure =
16123         true case.
16124
16125 2011-05-28  Bruno Haible  <bruno@clisp.org>
16126
16127         getloadavg: Remove an unreliable safety check.
16128         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16129         getloadavg.c is in place.
16130         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16131         Reported by Sam Steingold <sds@gnu.org>.
16132
16133 2011-05-28  Bruno Haible  <bruno@clisp.org>
16134
16135         doc: Cleanup yet another file produced by texinfo.tex.
16136         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16137
16138 2011-05-28  Bruno Haible  <bruno@clisp.org>
16139
16140         Finish the conditional dependencies mechanism.
16141         * gnulib-tool: New option --no-conditional-dependencies.
16142         (func_usage): Document it. Don't mark --conditional-dependencies as
16143         experimental.
16144         (cond_dependencies): The possible values can now be true, false, empty.
16145         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16146         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16147         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16148
16149 2011-05-28  Bruno Haible  <bruno@clisp.org>
16150
16151         doc: Use a recent texinfo.tex.
16152         * doc/Makefile (tex_opts): New variable.
16153         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16154
16155 2011-05-28  Jim Meyering  <meyering@redhat.com>
16156
16157         intprops.h: adjust comment to match code change
16158         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16159         only once, it *may* have side effects.  Also fix an unrelated typo.
16160         (_GL_INT_SIGNED): Likewise.
16161
16162 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16163
16164         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16165
16166 2011-05-26  Bruno Haible  <bruno@clisp.org>
16167
16168         mbsrchr: Avoid collision with system function on Interix.
16169         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16170         Reported by Markus Duft <mduft@gentoo.org>.
16171
16172 2011-05-15  James Youngman  <jay@gnu.org>
16173
16174         getopt: for ambiguous options, enumerate the possibilities.
16175         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16176         the ambiguous options when an ambiguous prefix is given. This was
16177         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16178         glibc change was
16179         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16180
16181 2011-05-25  Eric Blake  <eblake@redhat.com>
16182
16183         getcwd: work around mingw bug
16184         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16185         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16186         Reported by Matthias Bolte.
16187
16188 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         test-intprops: disable -Wtype-limits diagnostics
16191         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16192         diagnostics.  Otherwise, the integer overflow macros generate many
16193         diagnostics.  Reported by Jim Meyering in
16194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16195
16196         intprops: shorten, to pacify gcc -Woverlength-strings
16197         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16198         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16199         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16200         likely to run afoul of C compiler limits for string constant lengths.
16201         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16202
16203 2011-05-24  Eric Blake  <eblake@redhat.com>
16204
16205         docs: document recently fixed glibc printf bug
16206         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16207         * doc/posix-functions/printf.texi (printf): Likewise.
16208         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16210
16211         closein-tests: convert to init.sh
16212         * modules/closein-tests (Files): Add init.sh
16213         * tests/test-closein.sh Use it.
16214
16215         yesno-tests: convert to init.sh
16216         * modules/yesno-tests (Files): Add init.sh.
16217         * tests/test-yesno.sh: Use it.
16218
16219         atexit-tests: ensure reliable exit status
16220         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16221         Reported by Bruno Haible.
16222
16223 2011-05-24  Bruno Haible  <bruno@clisp.org>
16224
16225         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16227         gl_PREREQ_STRERROR_R invocations from here...
16228         * modules/strerror_r-posix (configure.ac): ... to here.
16229
16230 2011-05-24  Eric Blake  <eblake@redhat.com>
16231
16232         strerror_r: fix missing header
16233         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16234
16235         strerror_r: fix AIX test failures
16236         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16237         ERANGE failure.
16238
16239         strerror_r: fix Solaris test failures
16240         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16241         failures.
16242         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16243
16244         strerror_r: enforce POSIX recommendations
16245         * lib/strerror_r.c (safe_copy): New helper method.
16246         (strerror_r): Guarantee a non-empty string.
16247         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16248         recent POSIX rulings and to match our strerror guarantees.
16249         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16250
16251 2011-05-24  Jim Meyering  <meyering@redhat.com>
16252
16253         test-perror2.c: avoid warning about unused variable
16254         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16255
16256 2011-05-24  Eric Blake  <eblake@redhat.com>
16257
16258         perror: avoid spurious test failure on HP-UX
16259         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16260
16261         tests: fix logic bug in init.sh
16262         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16263         shell.
16264
16265 2011-05-24  Jim Meyering  <meyering@redhat.com>
16266
16267         utimensat: do not reference an out-of-scope buffer
16268         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16269         declared in an inner scope, yet "times" would be dereferenced outside
16270         the scope in which "ts" was valid.
16271         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16272         of ts[2] "out/up", so that the use of aliased "times" (via
16273         "times = ts;") does not end up referencing an out-of-scope "ts"
16274
16275         opendir-safer.c: don't clobber errno; don't close negative FD
16276         * lib/opendir-safer.c (opendir_safer):
16277         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16278         file descriptor, and more importantly, don't clobber the
16279         offending errno value with EINVAL.  Before, upon failure
16280         of dup_safer, we would pass the negative file descriptor to
16281         fdopendir, which would clobber errno.
16282
16283 2011-05-23  Bruno Haible  <bruno@clisp.org>
16284
16285         idcache: Fix module description.
16286         * modules/idcache (Include): Set to "idcache.h".
16287
16288 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16289
16290         gnulib-tool: fix portability problem with MacOS sed
16291         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16292         before the "}".  Problem reported by Leo in
16293         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16294         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16295         sed_extract_condition1, sed_extract_condition2.
16296
16297 2011-05-23  Bruno Haible  <bruno@clisp.org>
16298
16299         hash: Simplify autoconf macro.
16300         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16301
16302 2011-05-23  Bruno Haible  <bruno@clisp.org>
16303
16304         getugroups: Fix module description.
16305         * modules/getugroups (Include): Set to "getugroups.h".
16306
16307 2011-05-23  Bruno Haible  <bruno@clisp.org>
16308
16309         linkat: Simplify autoconf macro.
16310         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16311
16312 2011-05-23  Bruno Haible  <bruno@clisp.org>
16313             Eric Blake  <eblake@redhat.com>
16314
16315         linkat, renameat: Update dependencies.
16316         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16317         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16318         symlinkat.
16319
16320 2011-05-23  Jim Meyering  <meyering@redhat.com>
16321
16322         maint.mk: more tight_scope improvements
16323         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16324         (_gl_TS_headers): Define only in if-0'd block.
16325         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16326         sometimes we must *not* use it.  Adjust uses accordingly.
16327         (sc_tight_scope): Use much simpler grep-based test to determine
16328         whether we skip this rule.
16329
16330         maint.mk: generalize/improve the tight-scope rule
16331         * top/maint.mk: Emit a warning when the test is skipped.
16332         (_gl_TS_dir): Add $(srcdir)/ prefix.
16333         (_gl_TS_function_match): Simplify, rather than trying
16334         to enumerate common types.  Otherwise, it would fail to match an
16335         "extern unsigned char const *" declaration in idutils.
16336         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16337         a way to support use of that type of macro.
16338         (_gl_TS_var_match): Simplify regexp.
16339         (_gl_TS_obj_files): New configurable variable.
16340         (_gl_TS_headers): Likewise.
16341
16342 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16343
16344         verify: fix bug when gnulib <assert.h> is also included
16345         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16346         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16347         Perhaps there's a better way, but this fixes the immediate problem.
16348         Problem reported by Bruno Haible in
16349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16350
16351 2011-05-22  Bruno Haible  <bruno@clisp.org>
16352
16353         xgetcwd: Simplify autoconf macro.
16354         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16355
16356 2011-05-22  Bruno Haible  <bruno@clisp.org>
16357
16358         New module 'mktime-internal'.
16359         * modules/mktime-internal: New file.
16360         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16361         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16362         mktime_internal as a C macro if libc has __mktime_internal.
16363         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16364         conditions.
16365         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16366
16367 2011-05-22  Bruno Haible  <bruno@clisp.org>
16368
16369         timegm: Correct mktime replacement statements.
16370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16371         defining mktime as a C macro. This completes a 2009-07-28 commit.
16372
16373 2011-05-22  Bruno Haible  <bruno@clisp.org>
16374
16375         timegm: Simplify autoconf macro.
16376         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16377
16378 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         clock-time: change to LGPLv2+.
16381         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16382         BSD-like but we have no mark for that; this is good enough for now.
16383
16384 2011-05-21  Bruno Haible  <bruno@clisp.org>
16385
16386         strerror_r: Fix comments.
16387         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16388
16389 2011-05-21  Bruno Haible  <bruno@clisp.org>
16390
16391         relocatable-prog-wrapper: Fix possible link error.
16392         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16393         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16394         (gl_FUNC_SETENV): ... to here.
16395         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16396         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16397
16398 2011-05-21  Bruno Haible  <bruno@clisp.org>
16399
16400         relocatable-prog-wrapper: Assume strerror() exists.
16401         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16402         m4/strerror.m4.
16403         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16404         * lib/relocwrapper.c: Remove mention of strerror module.
16405         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16407         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16408         C macro.
16409
16410 2011-05-21  Bruno Haible  <bruno@clisp.org>
16411
16412         select: Simplify replacement idiom.
16413         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16414         Win32 platforms.
16415         * lib/sys_select.in.h (select): Simplify accordingly.
16416         * modules/select (Depends-on): Likewise.
16417
16418 2011-05-21  Bruno Haible  <bruno@clisp.org>
16419
16420         mkdir-p: Simplify autoconf macro.
16421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16422         gl_FUNC_LCHOWN.
16423
16424 2011-05-21  Eric Blake  <eblake@redhat.com>
16425
16426         strerror_r: avoid clobbering strerror on cygwin
16427         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16428         fall back instead to sys_errlist.
16429         * modules/strerror (configure.ac): Add witness.
16430         * tests/test-strerror_r.c (main): Enhance test.
16431         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16432         * tests/test-perror2.c (main): Free memory before exit.
16433
16434 2011-05-21  Bruno Haible  <bruno@clisp.org>
16435
16436         mkdtemp: Use gnulib naming conventions.
16437         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16438         * modules/mkdtemp (configure.ac): Update.
16439
16440 2011-05-20  Eric Blake  <eblake@redhat.com>
16441
16442         strerror_r: avoid corrupting errno on Solaris
16443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16444         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16445
16446         strerror_r: avoid compiler warning
16447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16448
16449         strerror_r: simplify AIX code
16450         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16451
16452         test-perror: avoid spurious failure on FreeBSD
16453         * modules/perror-tests (Depends-on): Add strerror, now that
16454         strerror_r no longer pulls it in.
16455
16456 2011-05-20  Bruno Haible  <bruno@clisp.org>
16457
16458         strerror_r-posix: Remove unused dependencies.
16459         * modules/strerror_r-posix (Depends-on): Remove strerror.
16460         Reported by Eric Blake.
16461
16462 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16463
16464         intprops: remove assumption about A|B representation
16465         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16466         is a valid integer if both A and B are.  Although this is true for
16467         all known practical hosts, the C standard doesn't guarantee it,
16468         and the code need not assume it.  Also, this change may work around
16469         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16471
16472 2011-05-20  Eric Blake  <eblake@redhat.com>
16473
16474         perror: work around FreeBSD bug
16475         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16476         is broken.  Move AC_LIBOBJ...
16477         * modules/perror (configure.ac): Here.
16478         * doc/posix-functions/perror.texi (perror): Document this.
16479         * tests/test-perror2.c (main): Enhance test.
16480
16481         test-perror: check for strerror interactions
16482         * tests/macros.h (STREQ): Add macro.
16483         * modules/perror-tests (Files): Add second test.
16484         * tests/test-perror2.c (main): New file.
16485         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16486
16487         test-perror: rewrite to use init script
16488         * modules/perror-tests (Files): Add init.sh.
16489         * tests/test-perror.sh: Use temporary directory.
16490
16491 2011-05-20  Jim Meyering  <meyering@redhat.com>
16492
16493         maint: replace misused "a" with "an"
16494         * doc/intprops.texi: "a integer"
16495         * doc/regex.texi: "a explanation"
16496         * lib/alignof.h: "a object"
16497         * lib/argmatch.h: "a explanation"
16498         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16499         * lib/stdint.in.h: "a integer"
16500         * lib/userspec.c: "a owner"
16501         * doc/gnulib.texi: Fix "a idea", and reword.
16502
16503 2011-05-19  Jim Meyering  <meyering@redhat.com>
16504
16505         maint: correct misuse of "a" and "an"
16506         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16507         * lib/argp-help.c: "an docum...": s/an/a/
16508         * lib/argp-parse.c: "An vector": s/An/A/
16509         * lib/execute.c: "an native": s/an/a/
16510         * lib/spawn-pipe.c: Likewise.
16511         * lib/gc.h: "an Gc_rc": s/an/a/
16512         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16513         * lib/fts.c: "an stat.st_dev": s/an/a/
16514
16515 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         intprops-tests: work around HP-UX 11.23 cc bug with constants
16518         * tests/test-intprops.c (VERIFY): New macro.
16519         (main): Use it, instead of verify, to work around the compiler bug; see
16520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16521
16522         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16523         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16524         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16525         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16526         (_GL_REMAINDER_OVERFLOW): Use it.
16527
16528         intprops-tests: revert unsigned part of previous change
16529         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16530         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16531         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16533
16534 2011-05-19  Bruno Haible  <bruno@clisp.org>
16535
16536         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16537         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16538         strerror_r() returned without filling the buffer.
16539         Reported by Eric Blake.
16540
16541 2011-05-19  Eric Blake  <eblake@redhat.com>
16542
16543         strerror_r: guarantee unchanged errno
16544         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16545         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16546         failure.
16547         * tests/test-strerror_r.c (main): Enhance test.
16548
16549 2011-05-19  Bruno Haible  <bruno@clisp.org>
16550
16551         strerror_r: Reorder #if blocks.
16552         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16553         for consistency with the previous commit.
16554
16555 2011-05-19  Bruno Haible  <bruno@clisp.org>
16556
16557         perror: Avoid clobbering the strerror buffer when possible.
16558         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16559         * lib/strerror.c: Include it.
16560         * modules/strerror (Files): Add lib/strerror-impl.h.
16561         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16562         (my_strerror): New function, defined through lib/strerror-impl.h.
16563         (perror): Use it instead of strerror.
16564         * modules/perror (Files): Add lib/strerror-impl.h.
16565         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16566
16567 2011-05-19  Eric Blake  <eblake@redhat.com>
16568
16569         strerror_r: fix on newer cygwin
16570         * lib/strerror_r.c (strerror_r): Cygwin now has
16571         __xpg_strerror_r, use it.
16572
16573 2011-05-19  Bruno Haible  <bruno@clisp.org>
16574
16575         strerror_r: Avoid clobbering the strerror buffer when possible.
16576         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16577         (sys_nerr, sys_errlist): New declarations.
16578         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16579         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16580         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16581
16582 2011-05-19  Bruno Haible  <bruno@clisp.org>
16583
16584         strerror_r: Fix test failure on mingw.
16585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16586         EXTEND_STRERROR_R.
16587         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16588         macros from errno.in.h instead.
16589
16590 2011-05-19  Eric Blake  <eblake@redhat.com>
16591
16592         strerror: relax test for Solaris
16593         * tests/test-strerror.c (main): Permit Solaris behavior.
16594         * tests/test-strerror_r.c (main): Likewise.
16595
16596         strerror: enforce POSIX ruling on strerror(0)
16597         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16599         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16600         * doc/posix-functions/strerror.texi (strerror): Document it.
16601         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16602         * tests/test-strerror.c (main): Strengthen test.
16603         * tests/test-strerror_r.c (main): Likewise.
16604
16605 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         intprop-tests: port to older and more-pedantic compilers
16608         * modules/intprops-tests (Files): Add tests/macros.h.
16609         * tests/test-intprops.c: Include macros.h.
16610         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16611         it's no longer documented to expand to an integer constant expression.
16612         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16613         argument is floating point, as it's no longer documented to expand
16614         to an integer constant expression in that case.
16615         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16616         compiler bugs reported by Bruno Haible.  See
16617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16618         (U0, U1): New constants, to work around the same bugs.  Also,
16619         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16620
16621         intprops: work around C compiler bugs
16622         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16623         bug in Sun C 5.11 2010/08/13 and other compilers; see
16624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16625
16626         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16627         * doc/intprops.texi (Integer Type Determination): Fix
16628         documentation for TYPE_IS_INTEGER: it returns an constant
16629         expression, not an integer constant expression.  Fix doc for
16630         TYPE_SIGNED: it returns an integer constant expression only if its
16631         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16632         hardly worth documented that way....)
16633
16634 2011-05-18  Bruno Haible  <bruno@clisp.org>
16635
16636         strerror_r: Avoid clobbering the strerror buffer when possible.
16637         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16638         Handle gnulib defined errno values here. When strerror() returns NULL
16639         or an empty string, return EINVAL.
16640         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16641         gnulib defined errno values here.
16642         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16643
16644 2011-05-18  Eric Blake  <eblake@redhat.com>
16645
16646         fnmatch: avoid compiler warning
16647         * lib/fnmatch_loop.c (FCT): Use correct type.
16648         Reported by Matthias Bolte.
16649
16650 2011-05-13  Jim Meyering  <meyering@redhat.com>
16651
16652         maint.mk: three new prohibit_<HDR>_without_use rules
16653         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16654         (sc_prohibit_stdio-safer_without_use): Likewise.
16655         (sc_prohibit_xfreopen_without_use): Likewise.
16656
16657 2011-05-17  Jim Meyering  <meyering@redhat.com>
16658
16659         announce-gen: fail if the NEWS delta is empty
16660         If there's nothing noteworthy in NEWS, then either you forgot
16661         or you shouldn't be releasing.
16662         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16663
16664 2011-05-17  Pádraig Brady <P@draigBrady.com>
16665
16666         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16667         reserved symbols starting with double underscore from the check.
16668
16669 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16670
16671         intprops: add doc
16672         * doc/intprops.texi: New file, documenting intprops.
16673         * doc/gnulib.texi (Particular Modules): Include it.
16674
16675         verify: add doc to gnulib manual and fix example
16676         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16677         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16678         (Compile-time Assertions): Fix example so it can't overflow.
16679
16680 2011-05-17  Jim Meyering  <meyering@redhat.com>
16681
16682         warnings.m4: don't usurp save_CPPFLAGS variable name
16683         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16684
16685         doc: fix typo
16686         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16687
16688 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16689             Bruno Haible  <bruno@clisp.org>
16690
16691         doc: Tweak recent change.
16692         * README (Portability guidelines): Tweak new text.
16693         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16694         Interix 6.1.
16695
16696 2011-05-16  Eric Blake  <eblake@redhat.com>
16697
16698         inttypes: avoid autoconf warning
16699         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16700         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16701
16702 2011-05-16  Sam Steingold <sds@gnu.org>
16703         and Eric Blake  <eblake@redhat.com>
16704
16705         vc-list-files: accept multiple directory operands
16706         * build-aux/vc-list-files: Iterate over all remaining operands.
16707
16708 2011-05-16  Bruno Haible  <bruno@clisp.org>
16709
16710         Fix confusion regarding deprecated modules.
16711         * modules/calloc (Status, Notice): Mark module as deprecated, not
16712         obsolete.
16713         * modules/fnmatch-posix (Status, Notice): Likewise.
16714         * modules/getdate (Status, Notice): Likewise.
16715         * modules/getopt (Status, Notice): Likewise.
16716         * modules/malloc (Status, Notice): Likewise.
16717         * modules/pipe (Status, Notice): Likewise.
16718         * modules/realloc (Status, Notice): Likewise.
16719         * modules/rename-dest-slash (Status, Notice): Likewise.
16720         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16721         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16722         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16723         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16724         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16725
16726 2011-05-16  Bruno Haible  <bruno@clisp.org>
16727
16728         doc: List the target platforms.
16729         * doc/gnulib-intro.texi (Target Platforms): New section.
16730         * doc/gnulib.texi (Introduction): Update menu.
16731         * README (Portability guidelines): Refer to the new section. Update
16732         statement about oldest supported environment. Remove rationale why
16733         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16734         unportable C89 function.
16735         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16736         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16737
16738 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16741
16742 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16743
16744         intprops-tests: new module
16745         * modules/intprops-tests, tests/test-intprops.c: New files.
16746
16747         intprops: add safe, portable integer overflow checking
16748         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16749         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16750         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16751         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16752         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16753         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16754         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16755         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16756         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16757         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16758         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16759
16760 2011-05-12  James Youngman  <jay@gnu.org>
16761
16762         Add a test for glibc's Bugzilla bug #12378.
16763         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16764         doesn't allow the literal matching of a lone "[" (which is
16765         required by POSIX).
16766         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16767
16768 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16769
16770         Sync glibc change fixing Bugzilla bug #12378.
16771         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16772         beginning and fall back to matching as normal character if the
16773         string ends before the matching ']' is found.  This is what POSIX
16774         requires.
16775
16776 2011-05-13  Eric Blake  <eblake@redhat.com>
16777
16778         getcwd-lgpl: relax test for FreeBSD
16779         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16780         issue.
16781         * tests/test-getcwd-lgpl.c (main): Relax test.
16782         Reported by Matthias Bolte.
16783
16784 2011-05-11  Eric Blake  <eblake@redhat.com>
16785
16786         test-fflush: silence compiler warning
16787         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16788
16789 2011-05-11  Bruno Haible  <bruno@clisp.org>
16790
16791         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16793         * modules/canonicalize (Depends-on): Add 'nocrash'.
16794         * modules/canonicalize-lgpl (Depends-on): Likewise.
16795         * doc/posix-functions/realpath.texi: Update platforms list.
16796         Reported by Ryan Schmidt <ryandesign@macports.org>.
16797
16798 2011-05-11  Bruno Haible  <bruno@clisp.org>
16799
16800         group-member: Declare function in <unistd.h>.
16801         * lib/unistd.in.h (group_member): New declaration.
16802         * lib/group-member.h: Remove file.
16803         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16804         * tests/test-unistd-c++.cc: Check signature of group_member.
16805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16806         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16807         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16809         HAVE_GROUP_MEMBER.
16810         * modules/group-member (Files): Remove lib/group-member.h.
16811         (Depends-on): Add unistd. Specify conditions.
16812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16813         (Include): Change to <unistd.h>.
16814         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16815         HAVE_GROUP_MEMBER.
16816         * NEWS: Mention the change.
16817         * lib/euidaccess.c: Don't include group-member.h.
16818
16819 2011-05-11  Bruno Haible  <bruno@clisp.org>
16820
16821         group-member: Document module.
16822         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16823         module.
16824
16825 2011-05-11  Bruno Haible  <bruno@clisp.org>
16826
16827         fclose: Fix mistake earlier today.
16828         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16829
16830 2011-05-11  Eric Blake  <eblake@redhat.com>
16831
16832         fclose: preserve fflush errors
16833         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16834         Reported by Jim Meyering.
16835
16836         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16837         * build-aux/bootstrap (check_versions): When no specific version
16838         is required, merely check that the app produces an exit status
16839         that indicates its existence.
16840
16841         maint.mk: drop redundant check
16842         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16843         the same but better.
16844
16845 2011-05-11  Bruno Haible  <bruno@clisp.org>
16846
16847         fclose: Fix possible link error.
16848         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16849         unregister_shadow_fd. Improve comments.
16850         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16851         Eric Blake.
16852
16853 2011-05-11  Jim Meyering  <meyering@redhat.com>
16854
16855         maint.mk: improve "can not" detection and generalize rule name
16856         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16857         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16858         Use the same technique as in sc_prohibit_doubled_word, so that
16859         we recognize "can not" also when the words are separated by a newline.
16860         Suggested by Eric Blake.
16861         (perl_filename_lineno_text_): Define.  Factored out of...
16862         (prohibit_doubled_word_): ...here.  Use the new definition.
16863         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16864         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16865         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16866
16867 2011-05-10  Eric Blake  <eblake@redhat.com>
16868
16869         fclose: avoid double close race when possible
16870         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16871         all but WINDOWS_SOCKETS.
16872
16873 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16874
16875         openat: correct new comment
16876         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16877
16878 2011-05-10  Jim Meyering  <meyering@redhat.com>
16879
16880         openat: add comments
16881         * lib/openat-proc.c (openat_proc_name): Add comments,
16882         mostly from Eric Blake.
16883
16884 2011-05-09  Eric Blake  <eblake@redhat.com>
16885
16886         openat: reduce syscalls in first probe of /proc
16887         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16888         be a directory.  Simplify the probe for .. bugs.
16889         * modules/openat (Depends-on): Drop same-inode.
16890         Reported by Bastien ROUCARIES.
16891
16892 2011-05-09  Jim Meyering  <meyering@redhat.com>
16893
16894         maint.mk: change semantics/name of tight_scope variables
16895         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16896         Rename variables to align with semantics that make them more useful.
16897
16898         maint.mk: tweak new rule's name not to impinge
16899         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16900         (sc_tight_scope): Use new rule name rather than $@-0.
16901
16902         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16903         * top/maint.mk (sc_tight_scope): New rule.
16904         (sc_tight_scope-0): New rule, ifdef'd out.
16905         (_gl_TS_dir): Default.
16906         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16907         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16908
16909 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16910
16911         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16912         Haible <bruno@clisp.org>.
16913
16914 2011-05-08  Bruno Haible  <bruno@clisp.org>
16915
16916         Comments.
16917         * m4/isnanf.m4: Add comment.
16918         * m4/isnanl.m4: Likewise.
16919
16920 2011-05-08  Bruno Haible  <bruno@clisp.org>
16921
16922         glob: Remove obsolete macro.
16923         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16924
16925 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16926
16927         intprops: Sun C 5.11 supports __typeof__
16928         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16929         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16930         which is new.
16931         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16932
16933         intprops: switch to usual gnulib indenting and naming
16934         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16935         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16936
16937         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16938
16939 2011-05-08  Jim Meyering  <meyering@redhat.com>
16940
16941         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16942         * top/maint.mk (release-prep): Use make's --no-print-directory
16943         option when generating the announcement.  This eliminates the
16944         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16945         generated announcement template.
16946
16947 2011-05-08  Bruno Haible  <bruno@clisp.org>
16948
16949         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16950         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16951         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16952
16953 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16954
16955         ignore-value, verify: Omit include files from lib_SOURCES.
16956         * modules/ignore-value, modules/verify (Makefile.am):
16957         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16958         that leads Automake to duplicate use of am__objects_... variables
16959         in Makefile.in.  See
16960         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16961
16962 2011-05-07  Bruno Haible  <bruno@clisp.org>
16963
16964         fclose: Simplify autoconf macro.
16965         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16966         defined.
16967
16968 2011-05-07  Bruno Haible  <bruno@clisp.org>
16969
16970         canonicalize-lgpl: Fix autoconf macro ordering bug.
16971         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16972         gl_STDLIB_H_DEFAULTS.
16973
16974 2011-05-06  Eric Blake  <eblake@redhat.com>
16975
16976         maintainer-makefile: make sc_po_check easier to tune
16977         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16978         to probe for strings, such as an alternate location for gnulib.
16979
16980         fclose: guarantee behavior on seekable stdin
16981         * modules/fclose (Depends-on): Add fflush.
16982         * doc/posix-functions/fclose.texi (fclose): Document this.
16983         * tests/test-fclose.c (main): Make test for this unconditional.
16984
16985 2011-05-06  Bruno Haible  <bruno@clisp.org>
16986
16987         fflush, fpurge: Relicense under LGPLv2+.
16988         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16989         * modules/fpurge (License): Likewise.
16990         With permission from Eric Blake and Jim Meyering.
16991         Suggested by Eric Blake.
16992
16993 2011-05-06  Karl Berry  <karl@gnu.org>
16994
16995         * MODULES.html.sh (func_all_modules): remove exit.
16996
16997 2011-05-06  Jim Meyering  <meyering@redhat.com>
16998
16999         maint.mk: use info-gnu@ as the default only for a stable release
17000         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17001         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17002         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17004
17005 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17006
17007         assert-h: new module, which supports C1X-style static_assert
17008         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17009         * lib/verify.h: Revamp so that this can be copied into assert.h,
17010         while retaining the ability to use it standalone as before.
17011         Rename private identifiers so as not to encroach on the
17012         standard C namespace, since this is now used by assert.h.
17013         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17014         the old verify_true.
17015         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17016         the old verify_true.  Use _GL_VERIFY_TYPE.
17017         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17018         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17019         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17020         defined when this file is copied into the replacement assert.h.
17021         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17022         and _Static_assert is not built in.
17023         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17024         defined, and use the new macros mentioned above.
17025         * doc/posix-headers/assert.texi: Document this.
17026
17027 2011-05-05  Bruno Haible  <bruno@clisp.org>
17028
17029         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17030         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17031         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17032         gl_REPLACE_FCLOSE here.
17033         * modules/fflush (Depends-on): Remove fclose.
17034         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17035         combination with module 'fclose'.
17036
17037 2011-05-05  Bruno Haible  <bruno@clisp.org>
17038
17039         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17040         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17041         gl_FUNC_FFLUSH.
17042         (gl_FUNC_FFLUSH): Use it.
17043         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17045         gl_REPLACE_FSEEKO here.
17046
17047 2011-05-05  Bruno Haible  <bruno@clisp.org>
17048
17049         tzset: Relicense under LGPL.
17050         * modules/tzset (License): Change to LGPL.
17051         No agreement needed; it's a no-op.
17052
17053         strtoimax, strtoumax: Relicense under LGPL.
17054         * modules/strtoimax (License): Change to LGPL.
17055         * modules/strtoumax (License): Likewise.
17056         With permission from Jim Meyering, Paul Eggert:
17057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17059
17060         getgroups: Relicense under LGPL.
17061         * modules/getgroups (License): Change to LGPL.
17062         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17066
17067         nanosleep: Relicense under LGPL.
17068         * modules/nanosleep (License): Change to LGPL.
17069         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17070         Haible:
17071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17075
17076         futimens: Relicense under LGPL.
17077         * modules/futimens (License): Change to LGPL.
17078         With permission from Eric Blake:
17079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17080
17081         fflush: Relicense under LGPL.
17082         * modules/fflush (License): Change to LGPL.
17083         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17087
17088         tmpfile: Relicense under LGPL.
17089         * modules/tmpfile (License): Change to LGPL.
17090         With permission from Ben Pfaff:
17091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17092
17093         isfinite: Relicense under LGPL.
17094         * modules/isfinite (License): Change to LGPL.
17095         With permission from Ben Pfaff, Bruno Haible:
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17098
17099         acosl..tanl: Relicense under LGPL.
17100         * modules/acosl (License): Change to LGPL.
17101         * modules/asinl (License): Likewise.
17102         * modules/atanl (License): Likewise.
17103         * modules/cosl (License): Likewise.
17104         * modules/expl (License): Likewise.
17105         * modules/logl (License): Likewise.
17106         * modules/sinl (License): Likewise.
17107         * modules/sqrtl (License): Likewise.
17108         * modules/tanl (License): Likewise.
17109         Source code originally from glibc and Paolo Bonzini. Agreements:
17110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17112
17113 2011-05-05  Bruno Haible  <bruno@clisp.org>
17114
17115         signal: Define sighandler_t.
17116         * lib/signal.in.h (sighandler_t): New type.
17117         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17118         whether sighandler_t is defined.
17119         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17120         * modules/signal (Depends-on): Add extensions.
17121         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17122         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17123         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17124
17125 2011-05-05  Eric Blake  <eblake@redhat.com>
17126
17127         maint: remove useless REPLACE_*_H macros
17128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17129         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17130         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17131         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17132         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17133         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17134         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17135         * m4/btowc.m4: Update callers.
17136         * m4/dirfd.m4: Likewise.
17137         * m4/duplocale.m4: Likewise.
17138         * m4/fchdir.m4: Likewise.
17139         * m4/fdopendir.m4: Likewise.
17140         * m4/inet_ntop.m4: Likewise.
17141         * m4/inet_pton.m4: Likewise.
17142         * m4/ioctl.m4: Likewise.
17143         * m4/mbrlen.m4: Likewise.
17144         * m4/mbrtowc.m4: Likewise.
17145         * m4/mbsinit.m4: Likewise.
17146         * m4/mbsnrtowcs.m4: Likewise.
17147         * m4/mbsrtowcs.m4: Likewise.
17148         * m4/poll.m4: Likewise.
17149         * m4/setlocale.m4: Likewise.
17150         * m4/wcrtomb.m4: Likewise.
17151         * m4/wcsnrtombs.m4: Likewise.
17152         * m4/wcsrtombs.m4: Likewise.
17153         * m4/wctob.m4: Likewise.
17154         * m4/wcwidth.m4: Likewise.
17155         * modules/posix_spawn: Likewise.
17156         * modules/posix_spawn_file_actions_addclose: Likewise.
17157         * modules/posix_spawn_file_actions_adddup2: Likewise.
17158         * modules/posix_spawn_file_actions_addopen: Likewise.
17159         * modules/posix_spawn_file_actions_destroy: Likewise.
17160         * modules/posix_spawn_file_actions_init: Likewise.
17161         * modules/posix_spawnattr_destroy: Likewise.
17162         * modules/posix_spawnattr_getflags: Likewise.
17163         * modules/posix_spawnattr_getpgroup: Likewise.
17164         * modules/posix_spawnattr_getschedparam: Likewise.
17165         * modules/posix_spawnattr_getschedpolicy: Likewise.
17166         * modules/posix_spawnattr_getsigdefault: Likewise.
17167         * modules/posix_spawnattr_getsigmask: Likewise.
17168         * modules/posix_spawnattr_init: Likewise.
17169         * modules/posix_spawnattr_setflags: Likewise.
17170         * modules/posix_spawnattr_setpgroup: Likewise.
17171         * modules/posix_spawnattr_setschedparam: Likewise.
17172         * modules/posix_spawnattr_setschedpolicy: Likewise.
17173         * modules/posix_spawnattr_setsigdefault: Likewise.
17174         * modules/posix_spawnattr_setsigmask: Likewise.
17175         * modules/posix_spawnp: Likewise.
17176
17177 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17178
17179         Add option to do-release-commit-and-tag to specify branch.
17180         * build-aux/do-release-commit-and-tag: Add --branch.
17181
17182 2011-05-03  Bruno Haible  <bruno@clisp.org>
17183
17184         Avoid unnecessary compilation units, through conditional dependencies.
17185         * modules/accept (Depends-on): Add conditions to the dependencies.
17186         * modules/acosl (Depends-on): Likewise.
17187         * modules/argz (Depends-on): Likewise.
17188         * modules/asinl (Depends-on): Likewise.
17189         * modules/atanl (Depends-on): Likewise.
17190         * modules/atoll (Depends-on): Likewise.
17191         * modules/bind (Depends-on): Likewise.
17192         * modules/btowc (Depends-on): Likewise.
17193         * modules/canonicalize-lgpl (Depends-on): Likewise.
17194         * modules/ceil (Depends-on): Likewise.
17195         * modules/ceilf (Depends-on): Likewise.
17196         * modules/ceill (Depends-on): Likewise.
17197         * modules/chdir-long (Depends-on): Likewise.
17198         * modules/chown (Depends-on): Likewise.
17199         * modules/close (Depends-on): Likewise.
17200         * modules/connect (Depends-on): Likewise.
17201         * modules/cosl (Depends-on): Likewise.
17202         * modules/dirfd (Depends-on): Likewise.
17203         * modules/dprintf (Depends-on): Likewise.
17204         * modules/dprintf-posix (Depends-on): Likewise.
17205         * modules/error (Depends-on): Likewise.
17206         * modules/euidaccess (Depends-on): Likewise.
17207         * modules/expl (Depends-on): Likewise.
17208         * modules/faccessat (Depends-on): Likewise.
17209         * modules/fchdir (Depends-on): Likewise.
17210         * modules/fclose (Depends-on): Likewise.
17211         * modules/fcntl (Depends-on): Likewise.
17212         * modules/fdopendir (Depends-on): Likewise.
17213         * modules/fflush (Depends-on): Likewise.
17214         * modules/floor (Depends-on): Likewise.
17215         * modules/floorf (Depends-on): Likewise.
17216         * modules/floorl (Depends-on): Likewise.
17217         * modules/fnmatch (Depends-on): Likewise.
17218         * modules/fopen (Depends-on): Likewise.
17219         * modules/fprintf-posix (Depends-on): Likewise.
17220         * modules/frexp (Depends-on): Likewise.
17221         * modules/frexp-nolibm (Depends-on): Likewise.
17222         * modules/frexpl (Depends-on): Likewise.
17223         * modules/frexpl-nolibm (Depends-on): Likewise.
17224         * modules/fseek (Depends-on): Likewise.
17225         * modules/fsusage (Depends-on): Likewise.
17226         * modules/ftell (Depends-on): Likewise.
17227         * modules/ftello (Depends-on): Likewise.
17228         * modules/futimens (Depends-on): Likewise.
17229         * modules/getcwd (Depends-on): Likewise.
17230         * modules/getcwd-lgpl (Depends-on): Likewise.
17231         * modules/getdelim (Depends-on): Likewise.
17232         * modules/getdomainname (Depends-on): Likewise.
17233         * modules/getgroups (Depends-on): Likewise.
17234         * modules/gethostname (Depends-on): Likewise.
17235         * modules/getline (Depends-on): Likewise.
17236         * modules/getlogin_r (Depends-on): Likewise.
17237         * modules/getopt-posix (Depends-on): Likewise.
17238         * modules/getpeername (Depends-on): Likewise.
17239         * modules/getsockname (Depends-on): Likewise.
17240         * modules/getsockopt (Depends-on): Likewise.
17241         * modules/getsubopt (Depends-on): Likewise.
17242         * modules/getusershell (Depends-on): Likewise.
17243         * modules/glob (Depends-on): Likewise.
17244         * modules/grantpt (Depends-on): Likewise.
17245         * modules/iconv_open (Depends-on): Likewise.
17246         * modules/iconv_open-utf (Depends-on): Likewise.
17247         * modules/inet_ntop (Depends-on): Likewise.
17248         * modules/inet_pton (Depends-on): Likewise.
17249         * modules/ioctl (Depends-on): Likewise.
17250         * modules/isapipe (Depends-on): Likewise.
17251         * modules/isfinite (Depends-on): Likewise.
17252         * modules/isinf (Depends-on): Likewise.
17253         * modules/lchown (Depends-on): Likewise.
17254         * modules/ldexpl (Depends-on): Likewise.
17255         * modules/link (Depends-on): Likewise.
17256         * modules/linkat (Depends-on): Likewise.
17257         * modules/listen (Depends-on): Likewise.
17258         * modules/logl (Depends-on): Likewise.
17259         * modules/lstat (Depends-on): Likewise.
17260         * modules/mbrlen (Depends-on): Likewise.
17261         * modules/mbrtowc (Depends-on): Likewise.
17262         * modules/mbsinit (Depends-on): Likewise.
17263         * modules/mbsnrtowcs (Depends-on): Likewise.
17264         * modules/mbsrtowcs (Depends-on): Likewise.
17265         * modules/mbtowc (Depends-on): Likewise.
17266         * modules/memcmp (Depends-on): Likewise.
17267         * modules/mkdir (Depends-on): Likewise.
17268         * modules/mkdtemp (Depends-on): Likewise.
17269         * modules/mkfifo (Depends-on): Likewise.
17270         * modules/mkfifoat (Depends-on): Likewise.
17271         * modules/mknod (Depends-on): Likewise.
17272         * modules/mkostemp (Depends-on): Likewise.
17273         * modules/mkostemps (Depends-on): Likewise.
17274         * modules/mkstemp (Depends-on): Likewise.
17275         * modules/mkstemps (Depends-on): Likewise.
17276         * modules/mktime (Depends-on): Likewise.
17277         * modules/nanosleep (Depends-on): Likewise.
17278         * modules/open (Depends-on): Likewise.
17279         * modules/openat (Depends-on): Likewise.
17280         * modules/perror (Depends-on): Likewise.
17281         * modules/poll (Depends-on): Likewise.
17282         * modules/popen (Depends-on): Likewise.
17283         * modules/posix_spawn (Depends-on): Likewise.
17284         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17285         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17286         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17287         * modules/posix_spawnp (Depends-on): Likewise.
17288         * modules/pread (Depends-on): Likewise.
17289         * modules/printf-posix (Depends-on): Likewise.
17290         * modules/ptsname (Depends-on): Likewise.
17291         * modules/putenv (Depends-on): Likewise.
17292         * modules/pwrite (Depends-on): Likewise.
17293         * modules/readline (Depends-on): Likewise.
17294         * modules/readlink (Depends-on): Likewise.
17295         * modules/readlinkat (Depends-on): Likewise.
17296         * modules/recv (Depends-on): Likewise.
17297         * modules/recvfrom (Depends-on): Likewise.
17298         * modules/regex (Depends-on): Likewise.
17299         * modules/remove (Depends-on): Likewise.
17300         * modules/rename (Depends-on): Likewise.
17301         * modules/renameat (Depends-on): Likewise.
17302         * modules/rmdir (Depends-on): Likewise.
17303         * modules/round (Depends-on): Likewise.
17304         * modules/roundf (Depends-on): Likewise.
17305         * modules/roundl (Depends-on): Likewise.
17306         * modules/rpmatch (Depends-on): Likewise.
17307         * modules/select (Depends-on): Likewise.
17308         * modules/send (Depends-on): Likewise.
17309         * modules/sendto (Depends-on): Likewise.
17310         * modules/setenv (Depends-on): Likewise.
17311         * modules/setlocale (Depends-on): Likewise.
17312         * modules/setsockopt (Depends-on): Likewise.
17313         * modules/shutdown (Depends-on): Likewise.
17314         * modules/sigaction (Depends-on): Likewise.
17315         * modules/signbit (Depends-on): Likewise.
17316         * modules/sigprocmask (Depends-on): Likewise.
17317         * modules/sinl (Depends-on): Likewise.
17318         * modules/sleep (Depends-on): Likewise.
17319         * modules/snprintf (Depends-on): Likewise.
17320         * modules/snprintf-posix (Depends-on): Likewise.
17321         * modules/socket (Depends-on): Likewise.
17322         * modules/sprintf-posix (Depends-on): Likewise.
17323         * modules/sqrtl (Depends-on): Likewise.
17324         * modules/stat (Depends-on): Likewise.
17325         * modules/strchrnul (Depends-on): Likewise.
17326         * modules/strdup-posix (Depends-on): Likewise.
17327         * modules/strerror (Depends-on): Likewise.
17328         * modules/strerror_r-posix (Depends-on): Likewise.
17329         * modules/strndup (Depends-on): Likewise.
17330         * modules/strnlen (Depends-on): Likewise.
17331         * modules/strptime (Depends-on): Likewise.
17332         * modules/strsep (Depends-on): Likewise.
17333         * modules/strsignal (Depends-on): Likewise.
17334         * modules/strstr-simple (Depends-on): Likewise.
17335         * modules/strtod (Depends-on): Likewise.
17336         * modules/strtoimax (Depends-on): Likewise.
17337         * modules/strtok_r (Depends-on): Likewise.
17338         * modules/strtoumax (Depends-on): Likewise.
17339         * modules/symlink (Depends-on): Likewise.
17340         * modules/symlinkat (Depends-on): Likewise.
17341         * modules/tanl (Depends-on): Likewise.
17342         * modules/tcgetsid (Depends-on): Likewise.
17343         * modules/tmpfile (Depends-on): Likewise.
17344         * modules/trunc (Depends-on): Likewise.
17345         * modules/truncf (Depends-on): Likewise.
17346         * modules/truncl (Depends-on): Likewise.
17347         * modules/uname (Depends-on): Likewise.
17348         * modules/unlink (Depends-on): Likewise.
17349         * modules/unlockpt (Depends-on): Likewise.
17350         * modules/unsetenv (Depends-on): Likewise.
17351         * modules/usleep (Depends-on): Likewise.
17352         * modules/utimensat (Depends-on): Likewise.
17353         * modules/vasprintf (Depends-on): Likewise.
17354         * modules/vdprintf (Depends-on): Likewise.
17355         * modules/vdprintf-posix (Depends-on): Likewise.
17356         * modules/vfprintf-posix (Depends-on): Likewise.
17357         * modules/vprintf-posix (Depends-on): Likewise.
17358         * modules/vsnprintf (Depends-on): Likewise.
17359         * modules/vsnprintf-posix (Depends-on): Likewise.
17360         * modules/vsprintf-posix (Depends-on): Likewise.
17361         * modules/wcrtomb (Depends-on): Likewise.
17362         * modules/wcscasecmp (Depends-on): Likewise.
17363         * modules/wcscspn (Depends-on): Likewise.
17364         * modules/wcsdup (Depends-on): Likewise.
17365         * modules/wcsncasecmp (Depends-on): Likewise.
17366         * modules/wcsnrtombs (Depends-on): Likewise.
17367         * modules/wcspbrk (Depends-on): Likewise.
17368         * modules/wcsrtombs (Depends-on): Likewise.
17369         * modules/wcsspn (Depends-on): Likewise.
17370         * modules/wcsstr (Depends-on): Likewise.
17371         * modules/wcstok (Depends-on): Likewise.
17372         * modules/wcswidth (Depends-on): Likewise.
17373         * modules/wctob (Depends-on): Likewise.
17374         * modules/wctomb (Depends-on): Likewise.
17375         * modules/wctype (Depends-on): Likewise.
17376         * modules/wcwidth (Depends-on): Likewise.
17377         * modules/write (Depends-on): Likewise.
17378
17379 2011-05-03  Bruno Haible  <bruno@clisp.org>
17380
17381         Support for conditional dependencies.
17382         * doc/gnulib.texi (Module description): Document the syntax of
17383         conditional dependencies.
17384         * gnulib-tool: New option --conditional-dependencies.
17385         (func_usage): Document it.
17386         (cond_dependencies): New variable.
17387         (func_get_automake_snippet_conditional,
17388         func_get_automake_snippet_unconditional): New functions, extracted from
17389         func_get_automake_snippet.
17390         (func_get_automake_snippet): Use them.
17391         (sed_first_32_chars): New variable.
17392         (func_module_shellfunc_name): New function.
17393         (func_module_shellvar_name): New function.
17394         (func_module_conditional_name): New function.
17395         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17396         func_cond_module_condition): New functions.
17397         (func_modules_transitive_closure): Add support for conditional
17398         dependencies.
17399         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17400         conditional automake snippet in an automake conditional.
17401         (func_emit_autoconf_snippets): Emit shell functions that contain the
17402         code for conditional modules.
17403         (func_import, func_create_testdir): Update specification.
17404
17405 2011-05-03  Eric Blake  <eblake@redhat.com>
17406
17407         test-getaddrinfo: report error information
17408         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17409
17410 2011-05-03  Jim Meyering  <meyering@redhat.com>
17411
17412         bootstrap: avoid build failure when $GZIP is set
17413         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17414         program name.  If defined at all, it is supposed to list gzip options.
17415         Reported by Alan Curry in http://debbugs.gnu.org/8609
17416
17417 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17418
17419         readme-release: new module with release instructions
17420         * modules/readme-release: New module.
17421         * top/README-release: New file, from coreutils, grep, diffutils.
17422         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17423
17424 2011-05-02  Eric Blake  <eblake@redhat.com>
17425
17426         fflush: also replace fclose when fixing fflush
17427         * modules/fflush (Depends-on): Add fclose.
17428         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17429         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17430         memstreams with no backing fd.
17431         * doc/posix-functions/fclose.texi (fclose): Document the use of
17432         fflush module to fix the bug.
17433         * tests/test-fclose.c (main): Relax test when fclose is used in
17434         isolation.
17435
17436         fclose: add some tests
17437         * modules/fclose-tests: New test module.
17438         * tests/test-fclose.c: New file.
17439         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17440
17441         fclose: reduced dependencies
17442         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17443         simpler lseek.
17444         * lib/fclose.c (rpl_fclose): Likewise.
17445         Reported by Simon Josefsson.
17446
17447         exit: drop remaining clients
17448         * modules/argmatch (Depends-on): Replace exit with stdlib.
17449         * modules/copy-file (Depends-on): Likewise.
17450         * modules/execute (Depends-on): Likewise.
17451         * modules/exitfail (Depends-on): Likewise.
17452         * modules/obstack (Depends-on): Likewise.
17453         * modules/pagealign_alloc (Depends-on): Likewise.
17454         * modules/pipe-filter-gi (Depends-on): Likewise.
17455         * modules/pipe-filter-ii (Depends-on): Likewise.
17456         * modules/savewd (Depends-on): Likewise.
17457         * modules/spawn-pipe (Depends-on): Likewise.
17458         * modules/wait-process (Depends-on): Likewise.
17459         * modules/xsetenv (Depends-on): Likewise.
17460         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17461         * modules/git-merge-changelog (Depends-on): Likewise.
17462         * modules/long-options (Depends-on): Likewise.
17463         * modules/pt_chown (Depends-on): Likewise.
17464         * modules/sysexits (Depends-on): Likewise.
17465
17466         freading: relax license from LGPLv3+ to LGPLv2+
17467         * modules/freading (License): Relax LGPL version.
17468
17469 2011-05-02  Bruno Haible  <bruno@clisp.org>
17470
17471         fchdir: Remove unused dependencies.
17472         * modules/fchdir (Depends-on): Remove include_next.
17473
17474 2011-05-02  Bruno Haible  <bruno@clisp.org>
17475
17476         gnulib-tool: Refactor.
17477         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17478         from func_emit_autoconf_snippets.
17479         (func_emit_autoconf_snippets): Use it.
17480
17481 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17482
17483         * NEWS: Document removal of 'exit'.
17484         * modules/exit: Remove file.
17485
17486 2011-05-01  Bruno Haible  <bruno@clisp.org>
17487
17488         Update DEPENDENCIES.
17489         * DEPENDENCIES (gettext): Recommend the newest release.
17490         Reported by Simon Josefsson.
17491
17492 2011-05-01  Bruno Haible  <bruno@clisp.org>
17493
17494         gnulib-tool: Reduce code duplication.
17495         * gnulib-tool (func_emit_autoconf_snippets): New function.
17496         (func_import, func_create_testdir): Use it.
17497
17498 2011-04-30  Eric Blake  <eblake@redhat.com>
17499
17500         fclose: don't fail on non-seekable input stream
17501         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17502         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17503         since fflush is allowed to fail in that case.
17504
17505 2011-04-30  Bruno Haible  <bruno@clisp.org>
17506
17507         dup3: cleanup
17508         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17509
17510 2011-04-30  Bruno Haible  <bruno@clisp.org>
17511
17512         netdb: Make it work in C++ mode.
17513         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17514         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17515         module.
17516         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17517         gl_MODULE_INDICATOR_FOR_TESTS.
17518         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17519         * modules/netdb-c++-tests: New file.
17520         * tests/test-netdb-c++.cc: New file.
17521
17522 2011-04-30  Bruno Haible  <bruno@clisp.org>
17523
17524         New modules 'vfscanf', 'vscanf'.
17525         * modules/vfscanf: New file.
17526         * modules/vscanf: New file.
17527         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17528         here.
17529         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17530         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17531
17532 2011-04-30  Bruno Haible  <bruno@clisp.org>
17533
17534         passfd: Add comments.
17535         * lib/passfd.c: Add comments about platforms.
17536
17537 2011-04-30  Bruno Haible  <bruno@clisp.org>
17538
17539         sys_uio: Make <sys/uio.h> self-contained.
17540         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17541         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17542
17543 2011-04-30  Bruno Haible  <bruno@clisp.org>
17544
17545         sys_socket: Ensure 'struct iovec' definition.
17546         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17547         <sys/socket.h>.
17548         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17549
17550 2011-04-30  Bruno Haible  <bruno@clisp.org>
17551
17552         sys_uio: Protect definition of 'struct iovec'.
17553         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17554         it as a C struct.
17555
17556 2011-04-30  Bruno Haible  <bruno@clisp.org>
17557
17558         manywarnings: fix indentation
17559         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17560
17561 2011-04-30  Pádraig Brady <P@draigBrady.com>
17562
17563         manywarnings: add -Wno-missing-field-initializers if needed.
17564         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17565         option if it's needed to allow initialization with { 0, }
17566
17567 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17568
17569         announce-gen: cosmetic improvement
17570         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17571
17572 2011-04-29  Jim Meyering  <meyering@redhat.com>
17573
17574         vc-list-files: indent with spaces, not TABs
17575         * build-aux/vc-list-files: Convert leading TABs to spaces,
17576         to match the style of most other files in gnulib.
17577
17578         announce-gen: indent with spaces, not TABs
17579         * build-aux/announce-gen: Convert all TABs to spaces, to match
17580         the style of most other files in gnulib.
17581
17582 2011-04-29  Eric Blake  <eblake@redhat.com>
17583
17584         quotearg: avoid uninitialized variable use
17585         * lib/quotearg.c (quoting_options_from_style): Initialize
17586         remaining fields, and ensure that custom styles are only used via
17587         quoting_options rather than quoting_style.
17588
17589 2011-04-29  Jim Meyering  <meyering@redhat.com>
17590
17591         maint.mk: remove unused VC-tag variable
17592         * top/maint.mk (VC-tag): Remove unused variable.
17593
17594 2011-04-29  Bruno Haible  <bruno@clisp.org>
17595
17596         netdb: fix gai_strerror replacements
17597         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17598         * modules/netdb: Substitute it.
17599
17600 2011-04-29  Jim Meyering  <meyering@redhat.com>
17601
17602         test-getcwd.c: avoid new set-but-not-used warning
17603         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17604         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17605         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17606         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17607
17608         test-hash.c: avoid a new shadowing warning
17609         * tests/test-hash.c (main): Don't shadow "dup".
17610
17611 2011-04-28  Eric Blake  <eblake@redhat.com>
17612
17613         getaddrinfo: fix gai_strerror signature
17614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17615         and work around mingw with UNICODE defined.
17616         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17617         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17618         * modules/netdb (Makefile.am): Substitute it.
17619         * lib/netdb.in.h (gai_strerror): Declare replacement.
17620         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17621         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17622         the fix.
17623
17624         getsockopt: avoid compiler warning
17625         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17626         Reported by Matthias Bolte.
17627
17628         tests: drop unused link dependency
17629         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17630         * modules/dirent-safer-tests (Makefile.am): Likewise.
17631         * modules/fdopendir-tests (Makefile.am): Likewise.
17632         * modules/mkfifoat-tests (Makefile.am): Likewise.
17633         * modules/openat-safer-tests (Makefile.am): Likewise.
17634         * modules/openat-tests (Makefile.am): Likewise.
17635         * modules/readlinkat-tests (Makefile.am): Likewise.
17636         * modules/symlinkat-tests (Makefile.am): Likewise.
17637         * modules/linkat-tests (Makefile.am): Likewise.
17638         (Depends-on): Switch to filenamecat-lgpl.
17639         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17640         LIBINTL.
17641         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17642         * tests/test-linkat.c (main): Don't require xalloc.
17643
17644         hash, mgetgroups: drop xalloc dependency
17645         * lib/hash.c (includes): Adjust includes.
17646         * lib/mgetgroups.c (includes): Likewise.
17647         (xgetgroups): Move...
17648         * lib/xgetgroups.c: ...to new file.
17649         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17650         * modules/xgetgroups: New file, split from...
17651         * modules/mgetgroups: ...here.
17652         (Depends-on): Add xalloc-oversized.
17653         * modules/hash (Depends-on): Likewise.
17654         * modules/hash-tests (Depends-on): Drop xalloc.
17655         (test_hash_LDADD): Drop unused library.
17656         * tests/test-hash.c (main): Break xalloc dependency.
17657         (includes): Drop unused include.
17658
17659         xalloc-oversized: new module
17660         * modules/xalloc-oversized: New module.
17661         * modules/xalloc (Depends-on): Add it.
17662         * lib/xalloc.h (xalloc_oversized): Move...
17663         * lib/xalloc-oversized.h: ...into new file.
17664
17665         utimecmp: drop dependency on xmalloc
17666         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17667         due to memory pressure.
17668         * modules/utimecmp (Depends-on): Drop xalloc.
17669
17670 2011-04-27  Eric Blake  <eblake@redhat.com>
17671
17672         getcwd: fix mingw bugs
17673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17674         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17675         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17676
17677 2011-04-27  Bruno Haible  <bruno@clisp.org>
17678
17679         mkstemps: Ensure declaration on MacOS X 10.5.
17680         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17681         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17682         MacOS X.
17683
17684 2011-04-27  Bruno Haible  <bruno@clisp.org>
17685
17686         mkstemp: More documentation.
17687         * doc/posix-functions/mkstemp.texi: Document header file problem on
17688         MacOS X.
17689
17690 2011-04-27  Bruno Haible  <bruno@clisp.org>
17691
17692         mkstemp: Tweak configure message when cross-compiling.
17693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17694         result as a guess.
17695
17696 2011-04-27  Bruno Haible  <bruno@clisp.org>
17697
17698         clean-temp: Clarify what it does.
17699         * lib/clean-temp.h: Add more comments.
17700         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17701         module.
17702         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17703         * doc/glibc-functions/mkstemps.texi: Likewise.
17704         * doc/glibc-functions/mkostemps.texi: Likewise.
17705
17706 2011-04-27  Eric Blake  <eblake@redhat.com>
17707
17708         fchdir: avoid extra chdir and fix test
17709         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17710         getcwd-lgpl.
17711         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17712         have to be canonical.
17713         (canonicalize_file_name): Drop unused macro.
17714         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17715
17716         filenamecat-lgpl: fix licence
17717         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17718         when it was first created.
17719
17720         linkat, renameat: add missing dependency
17721         * modules/linkat (Depends-on): Require getcwd-lgpl.
17722         * modules/renameat (Depends-on): Likewise.
17723
17724         tests: reduce dependencies
17725         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17726         * tests/test-renameat.c (main): Likewise.
17727         * modules/linkat-tests (Depends-on): Relax dependency.
17728         * modules/renameat-tests (Depends-on): Likewise.
17729         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17730         dependency explicit.
17731
17732         save-cwd: reduce default dependency
17733         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17734         * lib/save-cwd.c: Update comments.
17735         * NEWS: Document the semantic change.
17736
17737         getcwd: enhance tests
17738         * tests/test-getcwd-lgpl.c: New file, taken from...
17739         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17740         repeat long path stress tests from m4 probe.
17741         * modules/getcwd-lgpl-tests: New module.
17742         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17743         * m4/getcwd-abort-bug.m4: Update comment.
17744         * m4/getcwd-path-max.m4: Likewise.
17745
17746         getcwd-lgpl: new module
17747         * modules/getcwd-lgpl: New module.
17748         * lib/getcwd-lgpl.c: New file.
17749         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17750         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17751         * modules/getcwd (configure.ac): Set C witness.
17752         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17753
17754         getcwd: tweak comments
17755         * m4/getcwd-abort-bug.m4: Fix comments.
17756         * m4/getcwd-path-max.m4: Likewise.
17757         * m4/getcwd.m4: Likewise.
17758
17759 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17760         and Eric Blake  <eblake@redhat.com>
17761
17762         mkstemp: replace if system version uses wrong permissions
17763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17764         read/write mode bits set in file created by mkstemp.
17765         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17766
17767 2011-04-27  Eric Blake  <eblake@redhat.com>
17768
17769         passfd: avoid compiler warning
17770         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17771         Reported by Laine Stump.
17772
17773 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17774
17775         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17776         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17777
17778 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17779         and Eric Blake  <eblake@redhat.com>
17780
17781         mkstemp: mention clean-temp module
17782         * lib/mkstemp.c: Add comment.
17783         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17784
17785 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17786
17787         inttypes: also provide default values for 32-bit tests
17788         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17789         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17790
17791 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17792
17793         strtoumax: remove dependency on strtoimax
17794         This is like the strtoull change of yesterday.
17795         * modules/strtoumax (Files): Add lib/strtoimax.c.
17796         (Depends-on): Remove strtoimax and add verify.
17797
17798         inttypes-incomplete: new module
17799         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17800         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17801         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17802         of gl_INTTYPES_H.
17803         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17804         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17805         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17806         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17807         * modules/strtoumax, modules/xstrtol (Depends-on):
17808         Depend on inttypes-incomplete, not inttypes.
17809         * modules/inttypes-incomplete: New module, containing the contents
17810         of the old modules/inttypes module, except that the Files: section
17811         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17812         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17813         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17814         (Depends-on): Depend only on inttypes-incomplete.
17815         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17816
17817         inttypes: omit now-redundant strtoimax and strtoumax work
17818         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17819         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17820
17821         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17822         This supports apps that need pointers to strtoimax and strtoumax,
17823         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17824         nonexistent functions.  See
17825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17826         et seq.
17827         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17829         a macro.
17830         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17831
17832 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17833
17834         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17835
17836 2011-04-25  Bruno Haible  <bruno@clisp.org>
17837
17838         strtol, strtoul: Mark modules as obsolete.
17839         * modules/strtol (Status, Notice): New sections.
17840         * modules/strtoul (Status, Notice): New sections.
17841
17842 2011-04-25  Bruno Haible  <bruno@clisp.org>
17843
17844         strtod: Remove check for strtod, unless supporting old platforms.
17845         * modules/strtod-obsolete: New file.
17846         * m4/strtod-obsolete.m4: New file.
17847         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17848         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17849         * modules/strtod (Depends-on): Add strtod-obsolete.
17850         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17851
17852 2011-04-25  Bruno Haible  <bruno@clisp.org>
17853
17854         strcase: Make module obsolete.
17855         * modules/strcase (Status, Notice): New sections.
17856
17857 2011-04-25  Bruno Haible  <bruno@clisp.org>
17858
17859         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17860         * modules/dup2-obsolete: New file.
17861         * m4/dup2-obsolete.m4: New file.
17862         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17863         gl_FUNC_DUP2_OBSOLETE is not also defined.
17864         * modules/dup2 (Depends-on): Add dup2-obsolete.
17865         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17866
17867 2011-04-25  Bruno Haible  <bruno@clisp.org>
17868
17869         strnlen: Avoid memchr related link error on old obsolete platforms.
17870         * modules/memchr-obsolete: New file.
17871         * m4/memchr-obsolete.m4: New file.
17872         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17873         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17874         * modules/memchr (Depends-on): Add memchr-obsolete.
17875         * modules/strnlen (Depends-on): Likewise.
17876         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17877
17878 2011-04-25  Jim Meyering  <meyering@redhat.com>
17879
17880         maint.mk: makefile_at_at_check extend and clean up
17881         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17882         in addition to */Makefile.am.
17883         Exempt legitimate uses of @VAR@ notation, e.g.,
17884         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17885         Remove obsolete coreutils-specific comment.
17886         Prompted by discussion here:
17887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17888
17889 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17890
17891         strtoul: remove dependency on strtol
17892         This is so that 'configure' need not check for strtol merely because
17893         the application needs strtoul.
17894         * modules/strtoul (Files): Add lib/strtol.c.
17895         (Depends-on): Remove strtol.
17896
17897         strtoull: remove dependency on strtoul
17898         This is like the strtoll change.
17899         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17900         (Depends-on): Remove strtoul.
17901
17902         strtoll: remove dependency on strtol
17903         This is so that 'configure' need not check for strtol merely because
17904         the application needs strtoll.
17905         * modules/strtoll (Files): Add lib/strtol.c.
17906         (Depends-on): Remove strtol.
17907
17908 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17909
17910         inttypes: Move some configure check to module 'imaxdiv'.
17911         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17912         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17913         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17914
17915 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17916
17917         inttypes: Move some configure check to module 'imaxabs'.
17918         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17919         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17920         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17921
17922 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17923
17924         inttypes: Remove configure tests that are not needed since 2009-12-31.
17925         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17926         gl_cv_header_working_inttypes_h.
17927
17928 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17929
17930         * modules/strnlen (Depends-on): Remove memchr.
17931         The strnlen implementation doesn't need the memchr module's fixes; see
17932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17933
17934         strtol: remove dependency on wchar
17935         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17936         * modules/strtol (Depends-on): Remove wchar.
17937
17938 2011-04-21  Eric Blake  <eblake@redhat.com>
17939
17940         passfd: fix test regression on Linux
17941         * modules/passfd-tests (configure.ac): Correct socketpair check.
17942
17943         passfd: speed up configure and drop unused code
17944         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17945         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17946         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17947         Instead of probing at configure for unix_scm_rights_bsd44_way,
17948         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17949         check to a struct member probe.
17950         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17951         (sendfd, recvfd): Update preprocessor checks.
17952         * modules/passfd (Files): Reflect rename, and drop unused file.
17953         (Depends-on): Drop unused dependency.
17954
17955         passfd: allow compilation on mingw
17956         * modules/sys_socket (Depends-on): Add sys_uio.
17957         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17958         iovec and a minimal struct msghdr.
17959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17960         * tests/test-sys_socket.c (main): Enhance test.
17961         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17962         guaranteed to provide what we need.
17963         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17964         * modules/passfd-tests (Depends-on): Add sys_wait.
17965         * tests/test-passfd.c (main): Skip test on mingw, for now.
17966         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17967         partial 'struct msghdr' implementation.
17968
17969         sys_uio: new module
17970         * modules/sys_uio: New module.
17971         * modules/sys_uio-tests: Likewise.
17972         * lib/sys_uio.in.h: New file.
17973         * m4/sys_uio_h.m4: Likewise.
17974         * tests/test-sys_uio.c: Likewise.
17975         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17976         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17977
17978 2011-04-20  Jim Meyering  <meyering@redhat.com>
17979
17980         useless-if-before-free: avoid false-positive
17981         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17982         disjunct so that it too requires a terminating ";".  Without that,
17983         this script would identify as useless one statement from gcc that
17984         was not:
17985           if (aligned_ptr)
17986             free (((void **) aligned_ptr) [-1]);
17987
17988 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17989
17990         doc: update users.txt.
17991         * users.txt: Add barcode.
17992
17993 2011-04-19  Bruno Haible  <bruno@clisp.org>
17994
17995         ioctl: Remove link dependency on native Windows.
17996         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17997         (gl_close_fn, gl_ioctl_fn): New types.
17998         (struct fd_hook): Renamed from struct close_hook. Change type of
17999         private_close_fn field. Add private_ioctl_fn field.
18000         (close_hook_fn): Add parameter for primary close method.
18001         (execute_close_hooks, execute_all_close_hooks): Likewise.
18002         (ioctl_hook_fn): New type.
18003         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18004         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18005         argument.
18006         (unregister_fd_hook): Renamed from unregister_close_hook.
18007         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18008         Don't include <unistd.h>.
18009         (close): Remove undef.
18010         (anchor): Update.
18011         (execute_close_hooks): Add argument for primary close method.
18012         (execute_all_close_hooks): Likewise.
18013         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18014         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18015         argument. Allow each argument to be NULL.
18016         (unregister_fd_hook): Renamed from unregister_close_hook.
18017         * lib/close.c (rpl_close): Pass 'close' function pointer to
18018         execute_all_close_hooks.
18019         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18020         (primary_ioctl): New function.
18021         (ioctl): Don't call ioctlsocket here. Instead, call
18022         execute_all_ioctl_hooks.
18023         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18024         close method.
18025         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18026         (fd_sockets_hook): Renamed from close_sockets_hook.
18027         (gl_sockets_startup, gl_sockets_cleanup): Update.
18028         * modules/fd-hook: Renamed from modules/close-hook. Update.
18029         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18030         * modules/sockets (Depends-on): Likewise.
18031         * modules/ioctl (Depends-on): Add fd-hook.
18032         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18033         GNULIB_SOCKET.
18034
18035 2011-04-19  Bruno Haible  <bruno@clisp.org>
18036
18037         Move the support of O_NONBLOCK in open() to the 'open' module.
18038         * modules/nonblocking (Depends-on): Remove 'open'.
18039         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18040         gl_cv_have_open_O_NONBLOCK.
18041         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18042         O_NONBLOCK support.
18043         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18044
18045 2011-04-17  Bruno Haible  <bruno@clisp.org>
18046
18047         pipe2: Simplify code.
18048         * lib/pipe2.c (pipe2): Reduce code duplication.
18049
18050 2011-04-17  Bruno Haible  <bruno@clisp.org>
18051
18052         nonblocking: Add comment.
18053         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18054
18055 2011-04-17  Bruno Haible  <bruno@clisp.org>
18056
18057         nonblocking: Add tests for sockets.
18058         * tests/test-nonblocking-socket.sh: New file.
18059         * tests/test-nonblocking-socket-main.c: New file.
18060         * tests/test-nonblocking-socket-child.c: New file.
18061         * tests/test-nonblocking-socket.h: New file.
18062         * tests/socket-server.h: New file.
18063         * tests/socket-client.h: New file.
18064         * modules/nonblocking-socket-tests: New file.
18065         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18066
18067 2011-04-17  Bruno Haible  <bruno@clisp.org>
18068
18069         nonblocking: Add tests for pipes.
18070         * tests/test-nonblocking-pipe.sh: New file.
18071         * tests/test-nonblocking-pipe-main.c: New file.
18072         * tests/test-nonblocking-pipe-child.c: New file.
18073         * tests/test-nonblocking-pipe.h: New file.
18074         * tests/test-nonblocking-writer.h: New file.
18075         * tests/test-nonblocking-reader.h: New file.
18076         * tests/test-nonblocking-misc.h: New file.
18077         * modules/nonblocking-pipe-tests: New file.
18078         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18079
18080 2011-04-16  Bruno Haible  <bruno@clisp.org>
18081
18082         gettext: Clarify the needed programmer actions.
18083         * modules/gettext (Notice): New field.
18084         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18085
18086 2011-04-16  Bruno Haible  <bruno@clisp.org>
18087
18088         strchrnul: Tweak last commit.
18089         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18090         bug.
18091         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18092         as in _GL_FUNCDECL_SYS.
18093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18094         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18095
18096 2011-04-15  Eric Blake  <eblake@redhat.com>
18097
18098         strchrnul: work around cygwin bug
18099         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18102         * modules/string (Makefile.am): Substitute it.
18103         * lib/string.in.h (strchrnul): Use it.
18104
18105 2011-04-15  Bruno Haible  <bruno@clisp.org>
18106
18107         Don't require lib/stdio-write.c when only module 'stdio' is used.
18108         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18109         invocation.
18110         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18111
18112 2011-04-14  Bruno Haible  <bruno@clisp.org>
18113
18114         Support non-blocking pipe I/O in read() on native Windows.
18115         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18116         (read): New declaration.
18117         * lib/read.c: New file.
18118         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18119         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18120         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18121         vscanf): New declarations.
18122         * lib/stdio-read.c: New file.
18123         * m4/read.m4: New file.
18124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18125         REPLACE_READ.
18126         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18127         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18128         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18129         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18130         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18131         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18132         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18133         * modules/read: New file.
18134         * modules/nonblocking (Files): Add lib/stdio-read.c.
18135         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18136         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18137         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18138         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18139         * modules/pread (Depends-on): Add read.
18140         * modules/safe-read (Depends-on): Likewise.
18141         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18142         gets, scanf, vfscanf, vscanf): Verify signatures.
18143         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18144         problem with non-blocking pipes.
18145         * doc/posix-functions/fgetc.texi: Likewise.
18146         * doc/posix-functions/fgets.texi: Likewise.
18147         * doc/posix-functions/fread.texi: Likewise.
18148         * doc/posix-functions/fscanf.texi: Likewise.
18149         * doc/posix-functions/getc.texi: Likewise.
18150         * doc/posix-functions/getchar.texi: Likewise.
18151         * doc/posix-functions/gets.texi: Likewise.
18152         * doc/posix-functions/scanf.texi: Likewise.
18153         * doc/posix-functions/vfscanf.texi: Likewise.
18154         * doc/posix-functions/vscanf.texi: Likewise.
18155
18156 2011-04-14  Bruno Haible  <bruno@clisp.org>
18157
18158         Support non-blocking pipe I/O in write() on native Windows.
18159         * lib/write.c (rpl_write): Split a write request that failed merely
18160         because the byte count was larger than the pipe buffer's size.
18161         * doc/posix-functions/write.texi: Mention the problem with large byte
18162         counts.
18163
18164 2011-04-14  Bruno Haible  <bruno@clisp.org>
18165
18166         wchar: Ensure that wchar_t gets defined on uClibc.
18167         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18168         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18169
18170 2011-04-13  Bruno Haible  <bruno@clisp.org>
18171
18172         safe-write, full-read: Avoid unnecessary compilation units.
18173         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18174         (Depends-on): Remove safe-read. Add ssize_t.
18175         * modules/full-read (Files): Add lib/full-write.c.
18176         (Depends-on): Add full-write.
18177
18178 2011-04-13  Bruno Haible  <bruno@clisp.org>
18179
18180         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18181         * modules/pwrite (Depends-on): Add 'write'.
18182
18183 2011-04-13  Bruno Haible  <bruno@clisp.org>
18184
18185         Support non-blocking pipe I/O in write() on native Windows.
18186         * lib/unistd.in.h (write): Enable replacement also if
18187         GNULIB_UNISTD_H_NONBLOCKING is 1.
18188         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18189         (rpl_write): When failing to write on a non-blocking pipe, change
18190         errno from ENOSPC to EAGAIN.
18191         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18192         putchar, puts, vfprintf, vprintf): Enable replacement also if
18193         GNULIB_STDIO_H_NONBLOCKING is 1.
18194         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18195         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18196         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18197         CALL_WITH_SIGPIPE_EMULATION.
18198         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18199         * m4/nonblocking.m4: New file.
18200         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18201         for non-blocking I/O support.
18202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18203         GNULIB_UNISTD_H_NONBLOCKING.
18204         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18205         required for non-blocking I/O support.
18206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18207         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18208         lib/stdio-write.c, m4/asm-underscore.m4.
18209         (Depends-on): Add stdio, unistd.
18210         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18211         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18212         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18213         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18214         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18215         problem with non-blocking pipes.
18216         * doc/posix-functions/fputc.texi: Likewise.
18217         * doc/posix-functions/fputs.texi: Likewise.
18218         * doc/posix-functions/fwrite.texi: Likewise.
18219         * doc/posix-functions/printf.texi: Likewise.
18220         * doc/posix-functions/putc.texi: Likewise.
18221         * doc/posix-functions/putchar.texi: Likewise.
18222         * doc/posix-functions/puts.texi: Likewise.
18223         * doc/posix-functions/vfprintf.texi: Likewise.
18224         * doc/posix-functions/vprintf.texi: Likewise.
18225         * doc/posix-functions/write.texi: Likewise.
18226
18227 2011-04-10  Jim Meyering  <meyering@redhat.com>
18228
18229         maint.mk: prohibit doubled words
18230         Detect them also when they're separated by a newline.
18231         There are 3 ways to customize it:
18232           - disable the test on a per file basis, as usual with rules using
18233             $(VC_LIST_EXCEPT)
18234           - replace the default doubled-word-selecting regexp (affects all files)
18235           - ignore a particular file-vs-doubled-word match
18236         I nearly used that last one to ignore the "is is" match in
18237         coreutils' NEWS file, since the text was "ls -is is ..."
18238         To do that, I would have added this line to cfg.mk:
18239           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18240         but it would have ignored any "is is" match in NEWS.
18241         Low probability, but still...
18242         Instead, I changed the text, slightly:
18243           -  ls -is is now consistent with ls -lis in ignoring values returned
18244           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18245         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18246         (prohibit_doubled_word_): Define.
18247         (sc_prohibit_doubled_word): New rule.
18248         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18249
18250 2011-04-10  Jim Meyering  <meyering@redhat.com>
18251
18252         maint: fix doubled-word typo in comment
18253         * m4/gethostname.m4: s/is is/it is/
18254         * m4/getdomainname.m4: Likewise.
18255
18256 2011-04-10  Jim Meyering  <meyering@redhat.com>
18257
18258         maint: remove doubled word: s/it it/it/
18259         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18260
18261 2011-04-10  Jim Meyering  <meyering@redhat.com>
18262
18263         maint.mk: remove useless semicolon and backslash
18264         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18265         semicolon and backslash.
18266
18267 2011-04-10  Bruno Haible  <bruno@clisp.org>
18268
18269         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18270         * modules/stdint-tests (Depends-on): Add wchar.
18271
18272 2011-04-10  Jim Meyering  <meyering@redhat.com>
18273
18274         maint: remove doubled words in comments, e.g., s/a a/a/
18275         * lib/strptime.c (day_of_the_week): s/the the/the/
18276         * tests/test-chown.h (test_chown): s/a a/a/
18277
18278         test-chown.h: correct a cast
18279         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18280         when the destination is a stat.st_gid.
18281
18282 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18283
18284         getaddrinfo: Fix test for sa_len member.
18285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18286         include <sys/types.h> before <sys/socket.h>.
18287
18288 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18289
18290         maint: change "can not" to "cannot"
18291         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18292         boundaries.
18293
18294 2011-04-09  Jim Meyering  <meyering@redhat.com>
18295
18296         maint: change "a a" to "a"
18297         * tests/test-lchown.h (test_lchown): s/a a/a/
18298
18299         maint.mk: prohibit \<the the\>
18300         * top/maint.mk (sc_prohibit_the_the): New rule.
18301
18302         maint: fix "the the" in comment
18303         * lib/count-one-bits.h: s/the the/the/
18304
18305         maint: change "can not" to "cannot"
18306         But do not change the occurrences in maintain.texi or in
18307         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18308         * doc/gnulib-tool.texi: s/can not/cannot/
18309         * doc/posix-functions/accept.texi (accept): Likewise.
18310         * doc/posix-functions/socket.texi (socket): Likewise.
18311         * lib/mbrtowc.c: Likewise.
18312
18313         maint.mk: prohibit use of "can not"
18314         * top/maint.mk (sc_prohibit_can_not): New rule.
18315         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18316
18317 2011-04-09  Bruno Haible  <bruno@clisp.org>
18318
18319         careadlinkat: Guard against misuse of careadlinkatcwd.
18320         * lib/careadlinkat.c: Include <stdlib.h>.
18321         (careadlinkatcwd): Check that the fd argument is as expected.
18322
18323 2011-04-09  Bruno Haible  <bruno@clisp.org>
18324
18325         careadlinkat: Use common coding style.
18326         * lib/careadlinkat.c: Move gnulib includes after system includes.
18327
18328 2011-04-09  Bruno Haible  <bruno@clisp.org>
18329
18330         careadlinkat: Clarify specification.
18331         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18332         (careadlinkatcwd): Add comment.
18333         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18334
18335 2011-04-09  Bruno Haible  <bruno@clisp.org>
18336
18337         areadlinkat: Avoid link error on many platforms.
18338         * modules/areadlinkat (Depends-on): Add areadlink.
18339
18340 2011-04-09  Bruno Haible  <bruno@clisp.org>
18341
18342         allocator, careadlinkat: Fix double-inclusion guard.
18343         * lib/allocator.h: Fix double-inclusion guard.
18344         * lib/careadlinkat.h: Likewise.
18345
18346 2011-04-09  Bruno Haible  <bruno@clisp.org>
18347
18348         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18349         * lib/relocwrapper.c: Update dependencies hierarchy.
18350         * build-aux/install-reloc: Update list of files to be compiled.
18351         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18352         lib/allocator.[hc].
18353
18354 2011-04-08  Eric Blake  <eblake@redhat.com>
18355
18356         strftime: silence gnulib-tool warning
18357         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18358
18359 2011-04-08  Bruno Haible  <bruno@clisp.org>
18360
18361         verify: Fix syntax error with GCC 4.6 in C++ mode.
18362         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18363         (HAVE_STATIC_ASSERT): New macro.
18364         (verify_true, verify): Use 'static_assert' if it is supported and
18365         '_Static_assert' is not supported.
18366
18367 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18368
18369         allocator: New module.
18370         * modules/allocator, lib/allocator.c: New files.
18371         * lib/allocator.h (stdlib_allocator): New decl.
18372         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18373         Remove.  Do not include <stdlib.h>.
18374         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18375         * modules/careadlinkat (Files): Remove lib/allocator.h.
18376         (Depends-on): Add allocator.
18377
18378         stdlib: let modules use system malloc, realloc
18379         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18380         if !_GL_USE_STDLIB_ALLOC.
18381         (malloc, realloc): Limit this change to a smaller scope.
18382
18383         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18384         (malloc, realloc): Don't #undef; no longer needed.
18385         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18386         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18387         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18388         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18389         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18390         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18391         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18392         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18393
18394         careadlinkat: rename members to avoid problem
18395         * lib/allocator.h (struct allocator): Rename members from
18396         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18397         and realloc are #define'd.  Reported by Eric Blake in
18398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18399         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18400
18401 2011-04-08  Eric Blake  <eblake@redhat.com>
18402
18403         nonblocking: reduce dependency
18404         * tests/test-nonblocking.c: Only test sockets when in use.
18405         * modules/nonblocking-tests (Depends-on): Drop socket.
18406         (Makefile.am): Link even if sockets are not present.
18407         * modules/pipe2-tests (Makefile.am): Likewise.
18408         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18409
18410         pipe2: fix O_NONBLOCK support on mingw
18411         * modules/pipe2 (Depends-on): Add nonblocking.
18412         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18413         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18414         * tests/test-nonblocking.c (main): Likewise.
18415         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18416
18417         fcntl-h: fix O_ACCMODE on cygwin
18418         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18419         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18420
18421         pipe-filter: drop O_NONBLOCK workarounds
18422         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18423         * modules/pipe-filter-ii (Depends-on): Likewise.
18424         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18425
18426         nonblocking: provide O_NONBLOCK for mingw
18427         * modules/nonblocking (Depends-on): Add open.
18428         (configure.ac): Set new witness macro.
18429         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18430         * modules/fcntl-h (Makefile.am): Substitute it.
18431         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18432         nonblocking module is in use.
18433         * lib/nonblocking.c: Adjust portability test.
18434         * lib/open.c (open): Don't let native open see gnulib flag.
18435         * tests/test-fcntl-h.c (main): Enhance test.
18436         * tests/test-open.h (test_open): Likewise.
18437         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18438
18439         careadlinkat: fix compilation error on mingw
18440         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18441         within struct allocator.
18442
18443 2011-04-06  Eric Blake  <eblake@redhat.com>
18444
18445         binary-io: relicense under LGPLv2+
18446         * modules/binary-io (License): Relax to LGPLv2+.
18447         Requested for libvirt, and required by pipe2.
18448
18449 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18450
18451         verify: use _Static_assert if available
18452         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18453         (verify_true, verify): Use it if available.  This generates better
18454         diagnostics with GCC 4.6.0 and later.
18455
18456 2011-04-05  Bruno Haible  <bruno@clisp.org>
18457
18458         Remove leftover generated .h files after config.status changed.
18459
18460         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18461         GL_GENERATE_ALLOCA_H.
18462         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18463         GL_GENERATE_ALLOCA_H evaluates to false.
18464
18465         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18466         GL_GENERATE_ARGZ_H.
18467         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18468         evaluates to false.
18469
18470         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18471         GL_GENERATE_BYTESWAP_H.
18472         * modules/byteswap (Makefile.am): Remove byteswap.h if
18473         GL_GENERATE_BYTESWAP_H evaluates to false.
18474
18475         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18476         GL_GENERATE_ERRNO_H.
18477         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18478         evaluates to false.
18479
18480         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18481         GL_GENERATE_FLOAT_H.
18482         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18483         evaluates to false.
18484
18485         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18486         GL_GENERATE_FNMATCH_H.
18487         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18488         GL_GENERATE_FNMATCH_H evaluates to false.
18489
18490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18491         GL_GENERATE_GLOB_H.
18492         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18493         evaluates to false.
18494
18495         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18496         automake conditional GL_GENERATE_ICONV_H.
18497         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18498         evaluates to false.
18499
18500         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18501         GL_GENERATE_NETINET_IN_H.
18502         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18503         GL_GENERATE_NETINET_IN_H evaluates to false.
18504
18505         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18506         conditional GL_GENERATE_PTHREAD_H.
18507         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18508         * modules/pthread (Makefile.am): Remove pthread.h if
18509         GL_GENERATE_PTHREAD_H evaluates to false.
18510
18511         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18512         GL_GENERATE_SCHED_H.
18513         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18514         evaluates to false.
18515
18516         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18517         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18518         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18519         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18520
18521         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18522         GL_GENERATE_STDARG_H.
18523         * modules/stdarg (Makefile.am): Remove stdarg.h if
18524         GL_GENERATE_STDARG_H evaluates to false.
18525
18526         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18527         GL_GENERATE_STDBOOL_H.
18528         * modules/stdbool (Makefile.am): Remove stdbool.h if
18529         GL_GENERATE_STDBOOL_H evaluates to false.
18530
18531         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18532         conditional GL_GENERATE_STDDEF_H.
18533         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18534         * modules/stddef (Makefile.am): Remove stddef.h if
18535         GL_GENERATE_STDDEF_H evaluates to false.
18536
18537         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18538         GL_GENERATE_STDINT_H.
18539         * modules/stdint (Makefile.am): Remove stdint.h if
18540         GL_GENERATE_STDINT_H evaluates to false.
18541
18542         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18543         GL_GENERATE_SYSEXITS_H.
18544         * modules/sysexits (Makefile.am): Remove sysexits.h if
18545         GL_GENERATE_SYSEXITS_H evaluates to false.
18546
18547         Reported by Karl Berry and Ralf Wildenhues.
18548
18549 2011-04-05  Bruno Haible  <bruno@clisp.org>
18550
18551         Ensure to rebuild generated .h files when config.status has changed.
18552         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18553         config.status.
18554         * modules/ctype (Makefile.am): Likewise.
18555         * modules/dirent (Makefile.am): Likewise.
18556         * modules/errno (Makefile.am): Likewise.
18557         * modules/fcntl-h (Makefile.am): Likewise.
18558         * modules/float (Makefile.am): Likewise.
18559         * modules/getopt-posix (Makefile.am): Likewise.
18560         * modules/glob (Makefile.am): Likewise.
18561         * modules/iconv-h (Makefile.am): Likewise.
18562         * modules/inttypes (Makefile.am): Likewise.
18563         * modules/langinfo (Makefile.am): Likewise.
18564         * modules/locale (Makefile.am): Likewise.
18565         * modules/math (Makefile.am): Likewise.
18566         * modules/netdb (Makefile.am): Likewise.
18567         * modules/netinet_in (Makefile.am): Likewise.
18568         * modules/poll-h (Makefile.am): Likewise.
18569         * modules/pthread (Makefile.am): Likewise.
18570         * modules/pty (Makefile.am): Likewise.
18571         * modules/sched (Makefile.am): Likewise.
18572         * modules/search (Makefile.am): Likewise.
18573         * modules/selinux-h (Makefile.am): Likewise.
18574         * modules/signal (Makefile.am): Likewise.
18575         * modules/spawn (Makefile.am): Likewise.
18576         * modules/stdarg (Makefile.am): Likewise.
18577         * modules/stdbool (Makefile.am): Likewise.
18578         * modules/stddef (Makefile.am): Likewise.
18579         * modules/stdint (Makefile.am): Likewise.
18580         * modules/stdio (Makefile.am): Likewise.
18581         * modules/stdlib (Makefile.am): Likewise.
18582         * modules/string (Makefile.am): Likewise.
18583         * modules/strings (Makefile.am): Likewise.
18584         * modules/sys_file (Makefile.am): Likewise.
18585         * modules/sys_ioctl (Makefile.am): Likewise.
18586         * modules/sys_select (Makefile.am): Likewise.
18587         * modules/sys_socket (Makefile.am): Likewise.
18588         * modules/sys_stat (Makefile.am): Likewise.
18589         * modules/sys_time (Makefile.am): Likewise.
18590         * modules/sys_times (Makefile.am): Likewise.
18591         * modules/sys_utsname (Makefile.am): Likewise.
18592         * modules/sys_wait (Makefile.am): Likewise.
18593         * modules/sysexits (Makefile.am): Likewise.
18594         * modules/termios (Makefile.am): Likewise.
18595         * modules/time (Makefile.am): Likewise.
18596         * modules/unistd (Makefile.am): Likewise.
18597         * modules/wchar (Makefile.am): Likewise.
18598         * modules/wctype-h (Makefile.am): Likewise.
18599         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18600
18601 2011-04-05  Bruno Haible  <bruno@clisp.org>
18602
18603         pipe2: Relicense under LGPLv2+.
18604         * modules/pipe2 (License): Change to LGPLv2+.
18605         Requested by Eric Blake, for libvirt.
18606
18607 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18608
18609         bootstrap: compute gnulib_extra_files after updating build_aux
18610         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18611         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18612
18613 2011-04-05  Eric Blake  <eblake@redhat.com>
18614
18615         bootstrap: preserve git whitelist item sorting
18616         * build-aux/bootstrap (sort_patterns): New function.
18617         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18618
18619 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18620
18621         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18622         sc_space_tab check.
18623
18624 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18625
18626         areadlink, areadlinkat: rewrite in terms of careadlinkat
18627         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18628         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18629         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18630         (malloc, realloc): Remove #undefs.
18631         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18632         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18633         readlink, ssize_t, stdint, unistd.
18634         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18635         areadlink, stdint.
18636
18637         careadlinkat: new module
18638         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18639         * modules/careadlinkat: New files, written by me with
18640         a review and feedback from Ben Pfaff in
18641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18642
18643 2011-04-01  Bruno Haible  <bruno@clisp.org>
18644
18645         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18646         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18647         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18648         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18649         Reported by Bruce Korb <bruce.korb@gmail.com>.
18650
18651 2011-04-01  Bruno Haible  <bruno@clisp.org>
18652
18653         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18654         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18655         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18656         * modules/wcpcpy (Depends-on): Add extensions.
18657         * modules/wcpncpy (Depends-on): Likewise.
18658         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18659         systems.
18660         * doc/posix-functions/wcpncpy.texi: Likewise.
18661         * doc/posix-functions/wcwidth.texi: Likewise.
18662
18663 2011-03-31  Eric Blake  <eblake@redhat.com>
18664
18665         nonblocking: fix mingw test failures
18666         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18667         non-blocking flag on regular file.
18668         (get_nonblocking_flag): Set errno on invalid fd.
18669         * tests/test-nonblocking.c (main): Avoid test failure on
18670         directories if fchdir is not active.
18671         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18672
18673 2011-03-31  Bruno Haible  <bruno@clisp.org>
18674
18675         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18676         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18677         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18678         Reported by Simon Josefsson <simon@josefsson.org>.
18679
18680 2011-03-31  Bruno Haible  <bruno@clisp.org>
18681         and Eric Blake  <eblake@redhat.com>
18682
18683         nonblocking: new module
18684         * modules/nonblocking: New module.
18685         * modules/nonblocking-tests: Likewise.
18686         * lib/nonblocking.h: New file.
18687         * lib/nonblocking.c: Likewise.
18688         * tests/test-nonblocking.c: New test.
18689         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18690
18691 2011-03-30  Bruno Haible  <bruno@clisp.org>
18692
18693         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18694         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18695         instead of 'printf' format for GCC >= 4.4.
18696         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18697         (fprintf, printf, vfprintf, vprintf): Declare with
18698         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18699         the system's vfprintf() function.
18700         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18701
18702 2011-03-30  Eric Blake  <eblake@redhat.com>
18703
18704         passfd: fix scoping bug
18705         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18706         before sendmsg/recvmsg.
18707
18708         passfd: standardize coding conventions
18709         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18710         can be learned at compile time.
18711         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18712         ifdefs.
18713         (sendfd, recvfd): Follow gnulib code conventions.
18714
18715         passfd: fix incorrect sendmsg arguments
18716         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18717         incorrect msg_controllen value.
18718         * modules/passfd-tests (Depends-on): Check for alarm.
18719         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18720         Reported by Bastien ROUCARIES.
18721
18722 2011-03-30  Bruno Haible  <bruno@clisp.org>
18723
18724         c-strcasestr: Relicense under LGPLv2+.
18725         * modules/c-strcasestr (License): Change to LGPLv2+.
18726         Requested by Eric Blake, for libvirt.
18727
18728 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18729
18730         * users.txt: Add libidn2.  Fix libtasn1 link.
18731
18732 2011-03-30  Jim Meyering  <meyering@redhat.com>
18733
18734         tests: readlink* ("",... fails with EINVAL on newer kernels
18735         readlink and readlinkat have typically failed with ENOENT for
18736         the invalid, empty file name,  "".  However, with the advent
18737         of linux-2.6.39, they fail with EINVAL.
18738         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18739         when operating on the empty file name.
18740         * tests/test-readlink.h (test_readlink): Likewise.
18741
18742 2011-03-29  Bruno Haible  <bruno@clisp.org>
18743
18744         Relicense some modules under LGPLv2+, for libidn2.
18745         * modules/array-mergesort (License): Change to LGPLv2+.
18746         * modules/c-strcaseeq (License): Likewise.
18747         * modules/striconveh (License): Likewise.
18748         * modules/striconveha (License): Likewise.
18749         * modules/uniconv/base (License): Likewise.
18750         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18751         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18752         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18753         * modules/unictype/base (License): Likewise.
18754         * modules/unictype/bidiclass-of (License): Likewise.
18755         * modules/unictype/category-M (License): Likewise.
18756         * modules/unictype/category-none (License): Likewise.
18757         * modules/unictype/category-of (License): Likewise.
18758         * modules/unictype/category-test (License): Likewise.
18759         * modules/unictype/category-test-withtable (License): Likewise.
18760         * modules/unictype/combining-class (License): Likewise.
18761         * modules/unictype/joiningtype-of (License): Likewise.
18762         * modules/unictype/scripts (License): Likewise.
18763         * modules/uninorm/base (License): Likewise.
18764         * modules/uninorm/canonical-decomposition (License): Likewise.
18765         * modules/uninorm/composition (License): Likewise.
18766         * modules/uninorm/decompose-internal (License): Likewise.
18767         * modules/uninorm/decomposition-table (License): Likewise.
18768         * modules/uninorm/nfc (License): Likewise.
18769         * modules/uninorm/nfd (License): Likewise.
18770         * modules/uninorm/u32-normalize (License): Likewise.
18771         * modules/unistr/base (License): Likewise.
18772         * modules/unistr/u32-cpy (License): Likewise.
18773         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18774         * modules/unistr/u32-to-u8 (License): Likewise.
18775         * modules/unistr/u32-uctomb (License): Likewise.
18776         * modules/unistr/u8-check (License): Likewise.
18777         * modules/unistr/u8-mblen (License): Likewise.
18778         * modules/unistr/u8-mbtouc (License): Likewise.
18779         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18780         * modules/unistr/u8-mbtoucr (License): Likewise.
18781         * modules/unistr/u8-prev (License): Likewise.
18782         * modules/unistr/u8-strlen (License): Likewise.
18783         * modules/unistr/u8-to-u32 (License): Likewise.
18784         * modules/unistr/u8-uctomb (License): Likewise.
18785         * modules/unitypes (License): Likewise.
18786         Requested by Simon Josefsson.
18787
18788 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18789
18790         lib-symbol-visibility: Add a notice.
18791         * modules/lib-symbol-visibility (Notice): New field.
18792
18793 2011-03-29  Bruno Haible  <bruno@clisp.org>
18794
18795         getaddrinfo: Doc fix.
18796         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18797         section "fixed in Gnulib".
18798
18799 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18800
18801         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18802         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18803
18804 2011-03-26  Bruno Haible  <bruno@clisp.org>
18805
18806         unictype/property-byname: Reduce the number of load-time relocations.
18807         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18808         (UC_PROPERTY_INDEX_*): New enumeration values.
18809         (uc_property_byname): Convert an index from the lookup table to an
18810         uc_property_t.
18811         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18812         values.
18813
18814 2011-03-26  Bruno Haible  <bruno@clisp.org>
18815
18816         unictype/property-byname: Allow omitted word separators and aliases.
18817         * lib/unictype/pr_byname.gperf: Add property names without word
18818         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18819         for 'space'.
18820
18821 2011-03-26  Bruno Haible  <bruno@clisp.org>
18822
18823         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18824         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18825         also hyphens to space.
18826         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18827         without spaces.
18828         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18829
18830 2011-03-26  Bruno Haible  <bruno@clisp.org>
18831
18832         unictype/joiningtype-byname: Recognize long names as well.
18833         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18834         a long name.
18835         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18836         unictype/joiningtype_byname.h.
18837         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18838         * lib/unictype/joiningtype_byname.gperf: New file.
18839         * modules/unictype/joiningtype-byname (Files): Add
18840         lib/unictype/joiningtype_byname.gperf.
18841         (Depends-on): Add gperf.
18842         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18843         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18844         long names.
18845
18846         Tests for module 'unictype/joiningtype-longname'.
18847         * modules/unictype/joiningtype-longname-tests: New file.
18848         * tests/unictype/test-joiningtype_longname.c: New file.
18849
18850         New module 'unictype/joiningtype-longname'.
18851         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18852         * lib/unictype/joiningtype_longname.c: New file.
18853         * modules/unictype/joiningtype-longname: New file.
18854         * modules/unictype/joiningtype-all (Depends-on): Add
18855         unictype/joiningtype-longname.
18856
18857 2011-03-26  Bruno Haible  <bruno@clisp.org>
18858
18859         unictype/bidiclass-byname: Recognize long names as well.
18860         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18861         name.
18862         * lib/unictype/bidi_byname.c: Include <string.h>,
18863         unictype/bidi_byname.h.
18864         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18865         * lib/unictype/bidi_byname.gperf: New file.
18866         * modules/unictype/bidiclass-byname (Files): Add
18867         lib/unictype/bidi_byname.gperf.
18868         (Depends-on): Add gperf.
18869         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18870         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18871         long names.
18872
18873         Tests for module 'unictype/bidiclass-longname'.
18874         * modules/unictype/bidiclass-longname-tests: New file.
18875         * tests/unictype/test-bidi_longname.c: New file.
18876
18877         New module 'unictype/bidiclass-longname'.
18878         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18879         * lib/unictype/bidi_longname.c: New file.
18880         * modules/unictype/bidiclass-longname: New file.
18881         * modules/unictype/bidiclass-all (Depends-on): Add
18882         unictype/bidiclass-longname.
18883
18884 2011-03-26  Bruno Haible  <bruno@clisp.org>
18885
18886         unictype/bidi*: Rename modules.
18887         * modules/unictype/bidiclass-all: Renamed from
18888         modules/unictype/bidicategory-all.
18889         * modules/unictype/bidiclass-name: Renamed from
18890         modules/unictype/bidiclass-name.
18891         (Description): Update.
18892         * modules/unictype/bidiclass-name-tests: Renamed from
18893         modules/unictype/bidicategory-name-tests.
18894         * modules/unictype/bidiclass-byname: Renamed from
18895         modules/unictype/bidicategory-byname.
18896         (Description): Update.
18897         * modules/unictype/bidiclass-byname-tests: Renamed from
18898         modules/unictype/bidicategory-byname-tests.
18899         * modules/unictype/bidiclass-of: Renamed from
18900         modules/unictype/bidicategory-of.
18901         (Description): Update.
18902         * modules/unictype/bidiclass-of-tests: Renamed from
18903         modules/unictype/bidicategory-of-tests.
18904         * modules/unictype/bidiclass-test: Renamed from
18905         modules/unictype/bidicategory-test.
18906         (Description): Update.
18907         * modules/unictype/bidiclass-test-tests: Renamed from
18908         modules/unictype/bidicategory-test-tests.
18909         * modules/unictype/bidicategory-all: New file, a simple redirection.
18910         * modules/unictype/bidicategory-name: Likewise.
18911         * modules/unictype/bidicategory-byname: Likewise.
18912         * modules/unictype/bidicategory-of: Likewise.
18913         * modules/unictype/bidicategory-test: Likewise.
18914         * modules/unictype/property-bidi-* (Dependencies): Update.
18915         * lib/unictype/bidi_*.c: Update comment.
18916
18917 2011-03-26  Bruno Haible  <bruno@clisp.org>
18918
18919         unictype/bidi*: Rename functions, part 2.
18920         * modules/unictype/bidicategory-name (configure.ac): Update required
18921         libunistring version.
18922         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18923
18924 2011-03-25  Bruno Haible  <bruno@clisp.org>
18925
18926         New module 'unictype/combining-class-all'.
18927         * modules/unictype/combining-class-all: New file.
18928
18929         Tests for module 'unictype/combining-class-byname'.
18930         * modules/unictype/combining-class-byname-tests: New file.
18931         * tests/unictype/test-combiningclass_byname.c: New file.
18932
18933         New module 'unictype/combining-class-byname'.
18934         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18935         * lib/unictype/combiningclass_byname.c: New file.
18936         * lib/unictype/combiningclass_byname.gperf: New file.
18937         * modules/unictype/combining-class-byname: New file.
18938
18939         Tests for module 'unictype/combining-class-longname'.
18940         * modules/unictype/combining-class-longname-tests: New file.
18941         * tests/unictype/test-combiningclass_longname.c: New file.
18942
18943         New module 'unictype/combining-class-longname'.
18944         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18945         * lib/unictype/combiningclass_longname.c: New file.
18946         * modules/unictype/combining-class-longname: New file.
18947
18948         Tests for module 'unictype/combining-class-name'.
18949         * modules/unictype/combining-class-name-tests: New file.
18950         * tests/unictype/test-combiningclass_name.c: New file.
18951
18952         New module 'unictype/combining-class-name'.
18953         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18954         * lib/unictype/combiningclass_name.c: New file.
18955         * modules/unictype/combining-class-name: New file.
18956
18957 2011-03-25  Bruno Haible  <bruno@clisp.org>
18958
18959         unictype/combining-class: Rename source files.
18960         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18961         of unictype/combining.h.
18962         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18963         Update.
18964         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18965         * modules/unictype/combining-class (Description): Fix.
18966         (Files, Makefile.am): Update.
18967         * tests/unictype/test-combiningclass.c: Renamed from
18968         tests/unictype/test-combining.c.
18969         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18970
18971 2011-03-25  Bruno Haible  <bruno@clisp.org>
18972
18973         unictype: Update list of canonical combining classes.
18974         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18975
18976 2011-03-25  Bruno Haible  <bruno@clisp.org>
18977
18978         unictype/category-byname: Recognize long names as well.
18979         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18980         a long name.
18981         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18982         unictype/categ_byname.h.
18983         (UC_CATEGORY_INDEX_*): New enumeration values.
18984         (uc_general_category_byname): Use uc_general_category_lookup and
18985         convert from index to value.
18986         * lib/unictype/categ_byname.gperf: New file.
18987         * modules/unictype/category-byname (Files): Add
18988         lib/unictype/categ_byname.gperf.
18989         (Depends-on): Add gperf.
18990         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18991         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18992         long names.
18993
18994         Tests for module 'unictype/category-longname'.
18995         * modules/unictype/category-longname-tests: New file.
18996         * tests/unictype/test-categ_longname.c: New file.
18997
18998         New module 'unictype/category-longname'.
18999         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19000         * lib/unictype/categ_longname.c: New file.
19001         * modules/unictype/category-longname: New file.
19002         * modules/unictype/category-all (Depends-on): Add it.
19003
19004 2011-03-25  Bruno Haible  <bruno@clisp.org>
19005
19006         Tests for module 'unictype/category-LC'.
19007         * modules/unictype/category-LC-tests: New file.
19008         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19009
19010         New module 'unictype/category-LC'.
19011         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19012         (UC_CATEGORY_LC): New declaration.
19013         (UC_CASED_LETTER): New macro.
19014         * lib/gen-uni-tables.c (is_category_LC): New function.
19015         (output_categories): Also handle category LC.
19016         (UC_CATEGORY_MASK_LC): New enumeration value.
19017         (general_category_byname): Also handle category LC.
19018         * lib/unictype/categ_LC.c: New file.
19019         * lib/unictype/categ_LC.h: New file, automatically generated.
19020         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19021         category LC.
19022         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19023         * modules/unictype/category-LC: New file.
19024         * modules/unictype/category-byname (Depends-on): Add
19025         unictype/category-LC.
19026         * modules/unictype/category-all (Depends-on): Likewise.
19027
19028 2011-03-25  Eric Blake  <eblake@redhat.com>
19029
19030         xmalloc: revert yesterday's regression
19031         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19032         realloc's underlying behavior (allowing allocation of zero-size
19033         objects, especially if malloc-gnu is also in use).
19034
19035 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19036
19037         maint.mk: add missing version to VC-tag
19038         * top/maint.mk: git tag was missing actual tag name; add it.
19039
19040         valgrind: do leak checking, and exit with code 1 on error (not 0)
19041         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19042         to VALGRIND.
19043
19044 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19045
19046         posix-modules: say what it does.
19047         * posix-modules: Add a line to the --help output saying what it does.
19048
19049 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19050
19051         xmalloc: Do not leak if underlying realloc is C99 compatible.
19052         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19053         This avoids a leak on C99-based systems.  See
19054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19055
19056 2011-03-24  Eric Blake  <eblake@redhat.com>
19057
19058         realloc: document portability problem
19059         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19060         passing 0 size to realloc.
19061
19062 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19063
19064         doc: update users.txt
19065         * users.txt: Add cvsps, tmpwatch
19066
19067 2011-03-23  Matt Rice  <ratmice@gmail.com>
19068
19069         doc: update users.txt
19070         * users.txt: Add gdb.
19071
19072 2011-03-23  Jim Meyering  <meyering@redhat.com>
19073
19074         doc: update users.txt
19075         Looking through matches up to the following URL (there are still
19076         several more pages), I found several projects that use gnulib:
19077         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19078         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19079         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19080
19081 2011-03-22  Bruno Haible  <bruno@clisp.org>
19082
19083         unictype/bidi*: Rename functions.
19084         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19085         uc_bidi_class, uc_is_bidi_class): New declarations.
19086         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19087         uc_bidi_category_byname.
19088         (uc_bidi_category_byname): New function.
19089         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19090         u_bidi_category_name.
19091         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19092         (uc_bidi_category_name): New function.
19093         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19094         uc_bidi_category.
19095         (uc_bidi_category): New function.
19096         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19097         uc_is_bidi_category. Invoke uc_bidi_class.
19098         (uc_is_bidi_category): New function.
19099         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19100         instead of uc_bidi_category_byname.
19101         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19102         instead of uc_bidi_category_name.
19103         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19104         uc_bidi_category.
19105         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19106         instead of uc_is_bidi_category.
19107
19108 2011-03-21  Bruno Haible  <bruno@clisp.org>
19109
19110         New module 'unictype/joininggroup-all'.
19111         * modules/unictype/joininggroup-all: New file.
19112
19113         Tests for module 'unictype/joininggroup-of'.
19114         * modules/unictype/joininggroup-of-tests: New file.
19115         * tests/unictype/test-joininggroup_of.c: New file.
19116         * tests/unictype/test-joininggroup_of.h: New file, automatically
19117         generated by gen-uni-tables.
19118
19119         New module 'unictype/joininggroup-of'.
19120         * modules/unictype/joininggroup-of: New file.
19121         * lib/unictype/joininggroup_of.c: New file.
19122         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19123         gen-uni-tables.
19124
19125         Tests for module 'unictype/joininggroup-byname'.
19126         * modules/unictype/joininggroup-byname-tests: New file.
19127         * tests/unictype/test-joininggroup_byname.c: New file.
19128
19129         New module 'unictype/joininggroup-byname'.
19130         * modules/unictype/joininggroup-byname: New file.
19131         * lib/unictype/joininggroup_byname.c: New file.
19132         * lib/unictype/joininggroup_byname.gperf: New file.
19133
19134         Tests for module 'unictype/joininggroup-name'.
19135         * modules/unictype/joininggroup-name-tests: New file.
19136         * tests/unictype/test-joininggroup_name.c: New file.
19137
19138         New module 'unictype/joininggroup-name'.
19139         * modules/unictype/joininggroup-name: New file.
19140         * lib/unictype/joininggroup_name.c: New file.
19141         * lib/unictype/joininggroup_name.h: New file.
19142
19143         New module 'unictype/joiningtype-all'.
19144         * modules/unictype/joiningtype-all: New file.
19145
19146         Tests for module 'unictype/joiningtype-of'.
19147         * modules/unictype/joiningtype-of-tests: New file.
19148         * tests/unictype/test-joiningtype_of.c: New file.
19149         * tests/unictype/test-joiningtype_of.h: New file, automatically
19150         generated by gen-uni-tables.
19151
19152         New module 'unictype/joiningtype-of'.
19153         * modules/unictype/joiningtype-of: New file.
19154         * lib/unictype/joiningtype_of.c: New file.
19155         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19156         gen-uni-tables.
19157
19158         Tests for module 'unictype/joiningtype-byname'.
19159         * modules/unictype/joiningtype-byname-tests: New file.
19160         * tests/unictype/test-joiningtype_byname.c: New file.
19161
19162         New module 'unictype/joiningtype-byname'.
19163         * modules/unictype/joiningtype-byname: New file.
19164         * lib/unictype/joiningtype_byname.c: New file.
19165
19166         Tests for module 'unictype/joiningtype-name'.
19167         * modules/unictype/joiningtype-name-tests: New file.
19168         * tests/unictype/test-joiningtype_name.c: New file.
19169
19170         New module 'unictype/joiningtype-name'.
19171         * modules/unictype/joiningtype-name: New file.
19172         * lib/unictype/joiningtype_name.c: New file.
19173
19174         unictype: Add support for Arabic shaping properties.
19175         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19176         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19177         declarations.
19178         (UC_JOINING_GROUP_*): New enumeration values.
19179         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19180         declarations.
19181         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19182         (unicode_joining_type): New variable.
19183         (UC_JOINING_GROUP_*): New enumeration values.
19184         (unicode_joining_group): New variable.
19185         (fill_arabicshaping, joining_type_as_c_identifier,
19186         output_joining_type_test, output_joining_type,
19187         joining_group_as_c_identifier, output_joining_group_test,
19188         output_joining_group): New functions.
19189         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19190         fill_arabicshaping and output_joining_type_test, output_joining_type,
19191         output_joining_group_test, output_joining_group.
19192         Reported by Simon Josefsson.
19193
19194 2011-03-21  Jim Meyering  <meyering@redhat.com>
19195
19196         strftime: fix a bug in yesterday's change
19197         * lib/strftime.c (add): Accommodate width's initial value of -1.
19198         Otherwise, nstrftime would copy uninitialized data into
19199         the result buffer.
19200
19201 2011-03-21  Jim Meyering  <meyering@redhat.com>
19202
19203         tests: add strftime-tests module
19204         * tests/test-strftime.c: New file.
19205         * modules/strftime-tests: New module.
19206
19207 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         strftime: don't assume a byte count fits in 'int'
19210         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19211         found this problem by static analysis, using gcc -Wstrict-overflow
19212         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19213         on an integer overflow having undefined behavior, but it turns out
19214         that the argument is a size, which might not fit in 'int' anyway,
19215
19216 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         stdio: don't require ignore_value around fwrite
19219
19220         This patch works around libc bug 11959
19221         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19222         Without this patch, applications must often write
19223         ignore_value (fwrite (...)) even though the ignore_value is
19224         not helpful here.  It's common to write many objects, using
19225         fwrite/printf/etc., and then use ferror to detect output error.
19226
19227         I considered making this patch optional, but decided against it,
19228         because libc is obviously being inconsistent here: there is no
19229         reason libc should insist that user code must inspect fwrite
19230         return's value without also insisting that it inspect printf's,
19231         putchar's, etc.  If user code wants to have a strict style where
19232         all these functions' values are checked (so that ferror need not
19233         be checked), we could add support for that style in a new gnulib
19234         module, but in the meantime it's better to be consistent and to
19235         support common usage.
19236
19237         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19238         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19239         that we are compiling in checking mode, and if not C++, and
19240         if not already wrapping fwrite for some other reason.
19241         (fwrite): #define to rpl_fwrite if the latter is defined.
19242
19243 2011-03-20  Bruno Haible  <bruno@clisp.org>
19244
19245         verror: Fix compilation error introduced on 2011-02-13.
19246         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19247         instead of __attribute__.
19248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19249
19250 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19251             Bruno Haible  <bruno@clisp.org>
19252
19253         socklen: do not depend on sys_socket
19254         While trying to modify Emacs to use gnulib's socklen module,
19255         I discovered a circular dependency: socklen depends on sys_socket
19256         and vice versa.  Emacs can use socklen, but it does not need
19257         sys_socket because it has its own substitute for sys/socket.h.
19258         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19259         gl_TYPE_SOCKLEN_T.
19260         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19261         gl_PREREQ_SYS_H_SOCKET.
19262         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19263         gl_PREREQ_SYS_H_SOCKET.
19264         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19265         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19266         * modules/socklen (Depends-on): Do not depend on sys_socket.
19267         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19268
19269 2011-03-20  Jim Meyering  <meyering@redhat.com>
19270
19271         maint.mk: sort file names *after* new transformation
19272         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19273         prefix would have led to an unwarranted failure in GNU parted.
19274         Sort after that transformation.
19275
19276 2011-03-19  Jim Meyering  <meyering@redhat.com>
19277
19278         maint.mk: fix po-file syntax-check rule
19279         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19280         Patch by Bruno Haible.
19281
19282 2011-03-19  Bruno Haible  <bruno@clisp.org>
19283
19284         socklen: Update comment.
19285         * m4/socklen.m4: Update comment about platforms.
19286
19287 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19288             Bruno Haible  <bruno@clisp.org>
19289
19290         inet_ntop, inet_pton: Simplify.
19291         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19292         documented to provide socklen_t and we already depend on sys_socket.
19293         * modules/inet_pton (Depends-on): Likewise.
19294         * lib/arpa_inet.in.h: Adjust comment.
19295
19296 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19297             Bruno Haible  <bruno@clisp.org>
19298
19299         netdb: Simplify.
19300         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19301         documented to provide socklen_t and we already depend on sys_socket.
19302         * lib/netdb.in.h: Adjust comment.
19303
19304 2011-03-19  Bruno Haible  <bruno@clisp.org>
19305
19306         sys_socket, netdb: Document problem with socklen_t.
19307         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19308         platforms.
19309         * doc/posix-headers/netdb.texi: Likewise.
19310
19311 2011-03-18  Eric Blake  <eblake@redhat.com>
19312
19313         maint.mk: let po check work in VPATH build
19314         * top/maint.mk (po_file): Allow cfg.mk override.
19315         (sc_po_check): Allow VPATH use.
19316         Reported by Jiri Denemark.
19317
19318 2011-03-16  Jim Meyering  <meyering@redhat.com>
19319
19320         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19321         Before, you would have had to create one .x-sc_ file per rule in order
19322         to exempt offending files.  Now, you may instead use a Make variable --
19323         usually defined in cfg.mk -- whose name identifies the affected rule.
19324         * top/maint.mk (_sc_excl): Define.
19325         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19326         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19327
19328 2011-03-13  Bruno Haible  <bruno@clisp.org>
19329
19330         ignore-value tests: Avoid warnings.
19331         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19332         empty for gcc < 3.4.
19333
19334 2011-03-13  Bruno Haible  <bruno@clisp.org>
19335
19336         passfd: Fix link error on Solaris.
19337         * modules/passfd (Description): Correct.
19338         (Depends-on): Add socketlib.
19339         (Link): New section.
19340         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19341
19342 2011-03-13  Bruno Haible  <bruno@clisp.org>
19343
19344         passfd: Fix link error on AIX 5.2.
19345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19346
19347 2011-03-13  Bruno Haible  <bruno@clisp.org>
19348
19349         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19350         * lib/sys_socket.in.h: Include <stddef.h>.
19351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19352         CMSG_FIRSTHDR. Remove unused variable.
19353
19354 2011-03-13  Bruno Haible  <bruno@clisp.org>
19355
19356         passfd: Fix compilation error on OpenBSD.
19357         * lib/passfd.c: Include <sys/uio.h>.
19358
19359 2011-03-13  Bruno Haible  <bruno@clisp.org>
19360
19361         passfd test: Fix warnings.
19362         * tests/test-passfd.c: Include <sys/wait.h>.
19363         (main): Fix typo.
19364
19365 2011-03-13  Bruno Haible  <bruno@clisp.org>
19366
19367         passfd module, part 4, tweaks.
19368         * tests/test-passfd.c: Reorder includes.
19369         (main): Fix perror and printf calls.
19370
19371 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19372
19373         passfd module, part 4.
19374         * modules/passfd-tests: New file.
19375         * tests/test-passfd.c: New file.
19376
19377 2011-03-13  Jim Meyering  <meyering@redhat.com>
19378
19379         Makefile: rely on GNU make; derive syntax-check rule names
19380         Rather than requiring that each sc_ rule be listed as a dependent
19381         of "check", use features of GNU make to derive the list.
19382         * Makefile (syntax-check-rules): Define.
19383         (check): Depend on the new variable, not the hard-coded list.
19384
19385 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19386             Bruno Haible  <bruno@clisp.org>
19387
19388         passfd module, part 3.
19389         * lib/passfd.h (recvfd): Add a flags argument.
19390         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19391         (recvfd): Add a flags argument.
19392         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19393         exists.
19394         * modules/passfd (Depends-on): Add cloexec.
19395         Suggested by Eric Blake.
19396
19397 2011-03-13  Bruno Haible  <bruno@clisp.org>
19398
19399         passfd module, part 2, tweaks.
19400         * modules/passfd (Files): Reorder.
19401         (Depends-on): Remove errno.
19402         (Include): Remove <sys/socket.h>, <sys/un.h>.
19403         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19404         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19405         specification header. Include <sys/socket.h> always. Don't include
19406         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19407         (sendfd): Clarify that it sets errno when it fails.
19408         (recvfd): Fix specification.
19409
19410 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19411
19412         passfd module, part 2.
19413         * modules/passfd: New file.
19414         * lib/passfd.h: New file.
19415         * lib/passfd.c: New file.
19416
19417 2011-03-12  Bruno Haible  <bruno@clisp.org>
19418
19419         wcswidth, mbswidth: Avoid integer overflow.
19420         * lib/wcswidth.c: Include <limits.h>.
19421         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19422         * lib/mbswidth.c: Include <limits.h>.
19423         (mbsnwidth): Avoid 'int' overflow.
19424         Reported by Jim Meyering.
19425
19426 2011-03-12  Bruno Haible  <bruno@clisp.org>
19427
19428         futimens, utimensat: Avoid endless recursion on Solaris 10.
19429         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19430         Solaris.
19431         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19432         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19433
19434 2011-03-11  Jim Meyering  <meyering@redhat.com>
19435
19436         maint.mk: relax a regexp to accommodate other formatting styles
19437         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19438         between "ngettext" and the following "(".
19439
19440 2011-03-11  Pádraig Brady <P@draigBrady.com>
19441
19442         maint.mk: suppress a false positive warning
19443         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19444         diagnostics are marked with ngettext.
19445
19446 2011-03-10  Eric Blake  <eblake@redhat.com>
19447
19448         wchar: add explicit dependencies, for Tru64
19449         * modules/mbmemcasecoll (Depends-on): Add wchar.
19450         * modules/mbtowc (Depends-on): Likewise.
19451         * modules/vasnprintf (Depends-on): Likewise.
19452         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19453         * modules/wctomb (Depends-on): Likewise.
19454         Reported by Peter O'Gorman.
19455
19456 2011-03-08  Bruno Haible  <bruno@clisp.org>
19457
19458         passfd module, part 1, tweaks.
19459         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19460         Improve indentation. Improve AC_MSG_CHECKING messages.
19461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19462         gl_SOCKET_FAMILIES.
19463
19464 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19465
19466         passfd module, part 1.
19467         * m4/afunix.m4: New file.
19468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19469         sockets.
19470
19471 2011-03-08  Bruno Haible  <bruno@clisp.org>
19472
19473         regex-quote: New API.
19474         * lib/regex-quote.h: Include <stdbool.h>.
19475         (struct regex_quote_spec): New type.
19476         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19477         New declarations.
19478         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19479         'const struct regex_quote_spec *' argument.
19480         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19481         (pcre_special): New constant.
19482         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19483         New functions.
19484         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19485         'const struct regex_quote_spec *' argument.
19486         * modules/regex-quote (Depends-on): Add stdbool.
19487         * tests/test-regex-quote.c (check): Update for new API. Add test for
19488         anchored results.
19489         * NEWS: Mention the API change.
19490         Reported by Reuben Thomas and Eric Blake.
19491
19492 2011-03-06  Bruno Haible  <bruno@clisp.org>
19493
19494         regex-quote: Fix creation of POSIX extended regular expressions.
19495         * lib/regex-quote.c (ere_special): Add grouping and alternation
19496         operators.
19497
19498 2011-03-05  Bruno Haible  <bruno@clisp.org>
19499
19500         doc: Improve doc regarding autopoint vs. gnulib.
19501         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19502         disable autopoint while running autoreconf.
19503         Suggested by Ralf Wildenhues.
19504
19505 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19506
19507         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19508         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19509
19510 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19511
19512         parse-duration: remove xalloc.h dependency
19513         * lib/parse-duration.c (parse_period): handle NULL return from
19514         strdup instead of calling xstrdup().
19515         * modules/parse-duration: remove "xalloc" dependency
19516
19517 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19518
19519         bootstrap: honor m4_base when running aclocal
19520         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19521
19522 2011-03-02  Jim Meyering  <meyering@redhat.com>
19523
19524         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19525         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19526         on request from Matt Booth.
19527
19528 2011-03-01  Eric Blake  <eblake@redhat.com>
19529
19530         test-link: work on Hurd
19531         * tests/test-link.h (test_link): Hurd rejects linking directories
19532         with EISDIR instead of the POSIX-mandated EPERM.
19533
19534 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19535
19536         stdio: simplify by moving files to printf-posix, sigpipe
19537         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19538         since this symbol is needed only if printf is replaced.
19539         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19540         Require gl_ASM_SYMBOL_PREFIX.
19541         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19542         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19543         (Depends-on): Add 'raise'.
19544         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19545         * modules/stdio (Files): Remove lib/stdio-write.c,
19546         m4/asm-underscore.m4.
19547         (Depends-on): Remove 'raise'.
19548
19549         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19550         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19551         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19552         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19553
19554 2011-02-28  Bruno Haible  <bruno@clisp.org>
19555
19556         localcharset: Assume ANSI C behaviour of free().
19557         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19558         calling free().
19559         Suggested by Simon Josefsson <simon@josefsson.org>.
19560
19561 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19562             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19563             Bruno Haible  <bruno@clisp.org>  (tiny change)
19564
19565         On Cygwin, use /proc file system instead of win32 API.
19566         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19567         Win32 file names.
19568         (DllMain): Simplify by removing Cygwin specific code.
19569         (find_shared_library_fullname): Use Linux specific implementation also
19570         for Cygwin.
19571         (get_shared_library_fullname): Update accordingly.
19572         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19573         Win32 file names.
19574         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19575         Cygwin specific code.
19576
19577 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19578             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19579
19580         Fix OpenMP flag detection for various Fortran compilers.
19581         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19582         OpenMP-conditional compilation construct, to force compile
19583         failure with missing OpenMP flag.
19584         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19585
19586 2011-02-25  Eric Blake  <eblake@redhat.com>
19587
19588         strstr: expand test coverage
19589         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19590         compilation.
19591         * tests/test-memmem.c (main): Duplicate tests.
19592         * tests/test-strcasestr.c (main): Likewise.
19593         * tests/test-c-strcasestr.c (main): Likewise.
19594
19595 2011-02-25  Jim Meyering  <meyering@redhat.com>
19596
19597         maint.mk: detect missing-NL-at-EOF, too
19598         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19599         it also detects when a file lacks a newline at EOF.
19600         (require_exactly_one_NL_at_EOF_): Renamed from
19601         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19602         since people may well have .x-sc_... file names tied to the
19603         existing name.  Suggested by Eric Blake.
19604
19605 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         dirname: move m4/dos.m4 functionality into lib/dosname.h
19608
19609         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19610         extracts symbols from it, puts them into config.h; but it's much
19611         easier to use the symbols directly.  filename.h already does this,
19612         but it disagrees with dos.m4 in some respects.  This patch
19613         introduces a different include file dosname.h that packages up
19614         dos.m4, and then later we can work on merging filename.h and
19615         dosname.h.  Applications that need only the easy-to-configure
19616         symbols should consider including dosname.h rather than dirname.h.
19617         * NEWS: Mention incompatible changes.
19618         * m4/dos.m4: Remove.
19619         * lib/dosname.h, modules/dosname: New files.
19620         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19621         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19622         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19623         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19624         Include dosname.h, not dirname.h.
19625         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19626         Include dosname.h, for definitions of symbols like ISSLASH
19627         that used to be in config.h.
19628         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19630         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19631         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19632         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19633         * modules/rmdir (Files): Likewise.
19634         * modules/stat (Files): Likewise.
19635         * modules/unlink (Files): Likewise.
19636         * modules/dirname-lgpl (Depends-on): Add dosname.
19637         * modules/lstat (Depends-on): Likewise.
19638         * modules/openat (Depends-on): Likewise.
19639         * modules/rmdir (Depends-on): Likewise.
19640         * modules/savewd (Depends-on): Likewise.
19641         * modules/stat (Depends-on): Likewise.
19642         * modules/unlink (Depends-on): Likewise.
19643         * modules/openat (Depends-on): Remove dirname-lgpl.
19644         * modules/savewd (Depends-on): Likewise.
19645         * tests/test-dirname.c: Do not use removed symbols like
19646         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19647         the remaining symbols, e.g., ISSLASH ('\\').
19648
19649 2011-02-25  Eric Blake  <eblake@redhat.com>
19650
19651         strstr: revert patches that introduced bug and pessimization
19652         * lib/str-two-way.h: Add another reference.
19653         (two_way_short_needle, two_way_long_needle): Revert changes from
19654         2011-02-24; they pessimize search speed.
19655         (critical_factorization): Partially revert changes from
19656         2010-06-22; they violate the requirement that the left half of the
19657         needle be smaller than the period of the needle.
19658
19659 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         filenamecat: remove unnecessary dependency on dirname-lgpl
19662         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19663         is no direct dependency, just an indirect one via filenamecat-lgpl.
19664
19665         remove: remove unnecessary use of m4/dos.m4
19666         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19667         * modules/remove (FILES): Remove m4/dos.m4.
19668
19669         * lib/openat-proc.c: Don't include dirname.h; not needed.
19670
19671         backupfile: remove unnecessary use of m4/dos.m4
19672         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19673         of its symbols are used by the backupfile code.  backupfile.c does
19674         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19675         for the rare case of programs that want all their backup file
19676         names to live within 8+3 limits, and dos.m4 doesn't address that.
19677         * modules/backupfile (Files): Remove m4/dos.m4.
19678
19679 2011-02-24  Jim Meyering  <meyering@redhat.com>
19680
19681         strstr: fix a bug whereby strstr would mistakenly return NULL
19682         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19683         in period calculation.
19684         (two_way_long_needle): Likewise.
19685         The original problem was reported by Mike Stump in
19686         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19687         Ralf Wildenhues provided the short needle and haystack.
19688         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19689         Add a more involved test to trigger the bug in two_way_long_needle.
19690
19691 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19692
19693         gnulib-tool: remove use of bold display in help screen
19694         * gnulib-tool (func_usage): Do not use bold display anymore in the
19695         help screen.  That was just meant to be a temporary emphasis for a
19696         backward-incompatible change.
19697
19698 2011-02-23  Bruno Haible  <bruno@clisp.org>
19699
19700         Fix misindentation of preprocessor directives.
19701         * lib/argp-namefrob.h: Reindent preprocessor directives.
19702         * lib/getopt_int.h (struct _getopt_data): Likewise.
19703         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19704         * lib/vasnprintf.c (decode_long_double): Likewise.
19705         * tests/test-argmatch.c: Insert blank lines, for clarity.
19706         * tests/test-exclude.c: Likewise.
19707
19708 2011-02-22  Bruno Haible  <bruno@clisp.org>
19709
19710         ioctl: Fix for MacOS X in 64-bit mode.
19711         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19712         value.
19713         Suggested by Eric Blake.
19714         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19715
19716 2011-02-22  Jim Meyering  <meyering@redhat.com>
19717
19718         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19719         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19720         in lib/.
19721
19722 2011-02-22  Eric Blake  <eblake@redhat.com>
19723
19724         maint: avoid any CDPATH issue
19725         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19726
19727         maint: adjust cpp indentation for my modules, as well
19728         * Makefile (sc_cpp_indent_check): Add my name.
19729         * lib/fbufmode.c: Filter through cppi.
19730         * lib/fpurge.c: Likewise.
19731         * lib/freadable.c: Likewise.
19732         * lib/freading.c: Likewise.
19733         * lib/fwritable.c: Likewise.
19734         * lib/fwriting.c: Likewise.
19735         * lib/sigaction.c: Likewise.
19736
19737 2011-02-22  Jim Meyering  <meyering@redhat.com>
19738
19739         maint: adjust cpp indentation to reflect nesting depth
19740         I.e., in a block of code that begins with an unnested "#if",
19741         put one space between the "#" in column 1 and following token.
19742         For example,
19743         -#include <sys/vfs.h>
19744         +# include <sys/vfs.h>
19745         Do this only in .c files that are part of a module I maintain.
19746         * lib/linkat.c: Filter through cppi.
19747         * lib/nanosleep.c: Likewise.
19748         * lib/openat.c: Likewise.
19749         * lib/openat-die.c: Likewise.
19750         * lib/dup3.c: Likewise.
19751         * lib/fchownat.c: Likewise.
19752         * lib/flock.c: Likewise.
19753         * lib/fsync.c: Likewise.
19754         * lib/fts.c: Likewise.
19755         * lib/getpass.c: Likewise.
19756         * lib/gettimeofday.c: Likewise.
19757         * lib/userspec.c: Likewise.
19758         * Makefile (sc_cpp_indent_check): New rule, to check this.
19759
19760 2011-02-22  Bruno Haible  <bruno@clisp.org>
19761
19762         New module 'wctomb'.
19763         * lib/stdlib.in.h (wctomb): New declaration.
19764         * lib/wctomb.c: New file.
19765         * lib/wctomb-impl.h: New file.
19766         * m4/wctomb.m4: New file.
19767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19768         REPLACE_WCTOMB.
19769         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19770         REPLACE_WCTOMB.
19771         * modules/wctomb: New file.
19772         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19773         * doc/posix-functions/wctomb.texi: Mention the new module.
19774         * modules/wctob (Depends-on): Add wctomb.
19775
19776 2011-02-22  Bruno Haible  <bruno@clisp.org>
19777
19778         New module 'mbtowc'.
19779         * lib/stdlib.in.h (mbtowc): New declaration.
19780         * lib/mbtowc.c: New file.
19781         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19782         * m4/mbtowc.m4: New file.
19783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19784         REPLACE_MBTOWC.
19785         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19786         REPLACE_MBTOWC.
19787         * modules/mbtowc: New file.
19788         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19789         * doc/posix-functions/mbtowc.texi: Mention the new module.
19790         * modules/btowc (Depends-on): Add mbtowc.
19791
19792 2011-02-22  Bruno Haible  <bruno@clisp.org>
19793
19794         wcrtomb: Add more tests for native Windows platforms.
19795         * tests/test-wcrtomb-w32-1.sh: New file.
19796         * tests/test-wcrtomb-w32-2.sh: New file.
19797         * tests/test-wcrtomb-w32-3.sh: New file.
19798         * tests/test-wcrtomb-w32-4.sh: New file.
19799         * tests/test-wcrtomb-w32-5.sh: New file.
19800         * tests/test-wcrtomb-w32.c: New file.
19801         * modules/wcrtomb-tests (Files): Add them.
19802         (Makefile.am): Arrange to run these tests.
19803         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19804         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19805
19806 2011-02-20  Bruno Haible  <bruno@clisp.org>
19807
19808         wcrtomb: Enhance test.
19809         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19810
19811 2011-02-20  Bruno Haible  <bruno@clisp.org>
19812
19813         mbrtowc: Tiny optimization.
19814         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19815
19816 2011-02-20  Jim Meyering  <meyering@redhat.com>
19817
19818         test-exclude.c: remove unmatched #endif
19819         * tests/test-exclude.c: Remove stray #endif, left over from
19820         the change of a week ago.
19821
19822 2011-02-19  Jim Meyering  <meyering@redhat.com>
19823
19824         git-version-gen: skip "-dirty" check when appropriate
19825         * build-aux/git-version-gen: Don't run any git commands when the
19826         version string comes from .tarball-version.  Prior to this, we
19827         would run git update-index --refresh even from a just-unpacked
19828         tarball directory, and that could affect a .git/ directory in a
19829         parent of the build directory.  Reported by Mike Frysinger.
19830
19831 2011-02-19  Bruno Haible  <bruno@clisp.org>
19832
19833         unictype/property-byname: Reduce the size of the 'data' segment.
19834         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19835
19836 2011-02-19  Bruno Haible  <bruno@clisp.org>
19837
19838         unictype/scripts: Reduce the size of the 'data' segment.
19839         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19840         '%pic'.
19841         * lib/unictype/scripts_byname.gperf: Regenerated.
19842
19843 2011-02-19  Bruno Haible  <bruno@clisp.org>
19844
19845         stdint: Update documentation.
19846         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19847
19848 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19849
19850         stdint: omit redundant check for wchar.h
19851         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19852         always tests whether wchar.h exists, so remove the now-redundant test.
19853
19854 2011-02-18  Bruno Haible  <bruno@clisp.org>
19855
19856         stdint: Cut dependency to module 'wchar'.
19857         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19858         include the necessary prerequisites.
19859         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19860         * modules/stdint (Depends-on): Remove wchar.
19861         (Makefile.am): Substitute HAVE_WCHAR_H.
19862         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19863
19864 2011-02-18  Eric Blake  <eblake@redhat.com>
19865
19866         longlong: skip, rather than fail, on cross-compilation
19867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19868         when cross-compiling; regression from 2011-02-16.
19869
19870 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19871
19872         * NEWS: Mention 2011-02-08 change to stdlib.
19873
19874 2011-02-17  Bruno Haible  <bruno@clisp.org>
19875
19876         getloadavg: Add comments about platforms.
19877         * m4/getloadavg.m4: Add comment.
19878         * lib/getloadavg.c: Likewise.
19879
19880 2011-02-17  Bruno Haible  <bruno@clisp.org>
19881
19882         getloadavg: Fix link error on Solaris 2.6.
19883         * modules/getloadavg (Link): New section.
19884         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19885         linking test-getloadavg.
19886         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19887         getloadavg.
19888
19889 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19890
19891         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19892         It was 'int', but this doesn't match the IRIX 6.5 manual.
19893         Suggested by Bruno Haible in
19894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19895
19896 2011-02-17  Bruno Haible  <bruno@clisp.org>
19897
19898         havelib: Fix comments.
19899         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19900         change.
19901
19902 2011-02-17  Bruno Haible  <bruno@clisp.org>
19903
19904         havelib: Update config.rpath.
19905         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19906
19907 2011-02-17  Bruno Haible  <bruno@clisp.org>
19908
19909         getloadavg test: Add some plausibility checks.
19910         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19911         is improbable.
19912
19913 2011-02-16  Eric Blake  <eblake@redhat.com>
19914
19915         maintainer-makefile: make syntax-check a no-op from tarballs
19916         * top/maint.mk (no-vc-detected): New rule.
19917         (local-checks-available): Use it to avoid hanging if someone tries
19918         'make syntax-check' from a tarball.  Also append to any non-syntax
19919         checks already defined in cfg.mk.
19920
19921 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19922
19923         longlong: tune, particularly for common case of c99
19924
19925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19926         or running anything if c99, or if unsigned long long int does not
19927         work.  In either case, we know the answer without further tests.
19928         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19929         it at most once, and use its results for both long long int and
19930         unsigned long long int.  This is more likely to be efficient in
19931         the common case where the program wants to check for both long
19932         long int and unsigned long long int.
19933         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19934         since the answer is already known.
19935
19936 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         getloadavg: set errno
19939         * lib/getloadavg.c: Set errno when returning -1.  If no other
19940         error number looks appropriate, set it to ENOSYS if the getloadavg
19941         looks like it can't possibly ever work, ENOTSUP otherwise.
19942         Suggested by Bruno Haible in
19943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19944
19945         getloadavg: trim unused parts and speed up 'configure'
19946         * NEWS: Document this.
19947         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19948         always compiled if getloadavg is absent.
19949         Move test code to ...
19950         * tests/test-getloadavg.c: New file, containing previous
19951         contents of test from lib/getloadavg.c.  It also contains
19952         suggestions by Bruno Haible in
19953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19954         * modules/getloadavg-tests: New file.
19955         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19956         Do tests in the same order as they're needed for getloadavg.c.
19957         Omit setgid-related tests that generate symbols KMEM_GROUP,
19958         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19959         Do only the tests that are needed to see whether the system has
19960         getloadavg, moving the other tests into ...
19961         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19962         NLIST_NAME_UNION; nobody should be using it.  Do not define
19963         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19964         relevant, as the user of this module shouldn't care how getloadavg
19965         is implemented.
19966
19967         getloadavg: omit unused var
19968         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19969
19970 2011-02-15  Jim Meyering  <meyering@redhat.com>
19971
19972         doc: update users.txt
19973         * users.txt: Update iwhd's URL.
19974
19975 2011-02-13  Bruno Haible  <bruno@clisp.org>
19976
19977         Consistent macro naming for macros that use GCC __attribute__.
19978         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19979         _ATTRIBUTE_NONNULL_.
19980         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19981         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19982         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19983         ATTRIBUTE_DEPRECATED.
19984         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19985         ATTRIBUTE_NORETURN.
19986         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19987         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19988         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19989         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19990         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19991         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19992         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19993         ATTRIBUTE_SENTINEL.
19994         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19995         ATTRIBUTE_RETURN_CHECK.
19996         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19997         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19998         ATTRIBUTE_NORETURN.
19999         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20000         Reported by Paul Eggert.
20001
20002 2011-02-13  Bruno Haible  <bruno@clisp.org>
20003
20004         Don't interfere with a program's definition of __attribute__.
20005         * lib/argp.h (__attribute__): Remove definition.
20006         (_GL_ATTRIBUTE_FORMAT): New macro.
20007         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20008         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20009         (_GL_ATTRIBUTE_FORMAT): New macro.
20010         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20011         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20012         GCC 3 or newer.
20013         * lib/error.h (__attribute__): Remove definition.
20014         (_GL_ATTRIBUTE_FORMAT): New macro.
20015         (error, error_at_line): Use it.
20016         * lib/hash.h (__attribute__): Remove definition.
20017         (ATTRIBUTE_WUR): Update definition. Define always.
20018         * lib/openat.h (__attribute__): Remove definition.
20019         (ATTRIBUTE_NORETURN): Update definition. Define always.
20020         * lib/sigpipe-die.h (__attribute__): Remove definition.
20021         (ATTRIBUTE_NORETURN): Update definition. Define always.
20022         * lib/vasnprintf.h (__attribute__): Remove definition.
20023         (_GL_ATTRIBUTE_FORMAT): New macro.
20024         (asnprintf, vasnprintf): Use it.
20025         * lib/xalloc.h (__attribute__): Remove definition.
20026         (ATTRIBUTE_NORETURN): Update definition. Define always.
20027         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20028         * lib/xmemdup0.h (__attribute__): Remove definition.
20029         (ATTRIBUTE_NORETURN): Update definition. Define always.
20030         * lib/xprintf.h (__attribute__): Remove definition.
20031         (_GL_ATTRIBUTE_FORMAT): New macro.
20032         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20033         * lib/xstrtol.h (__attribute__): Remove definition.
20034         (ATTRIBUTE_NORETURN): Update definition. Define always.
20035         * lib/xvasprintf.h (__attribute__): Remove definition.
20036         (_GL_ATTRIBUTE_FORMAT): New macro.
20037         (xasprintf, xvasprintf): Use it.
20038         * tests/test-argmatch.c (__attribute__): Remove definition.
20039         (ATTRIBUTE_NORETURN): Update definition. Define always.
20040         * tests/test-exclude.c (__attribute__): Remove definition.
20041         (ATTRIBUTE_NORETURN): Update definition. Define always.
20042         Reported by Paul Eggert.
20043
20044 2011-02-13  Bruno Haible  <bruno@clisp.org>
20045
20046         mbrtowc: Add more tests for native Windows platforms.
20047         * tests/test-mbrtowc-w32-1.sh: New file.
20048         * tests/test-mbrtowc-w32-2.sh: New file.
20049         * tests/test-mbrtowc-w32-3.sh: New file.
20050         * tests/test-mbrtowc-w32-4.sh: New file.
20051         * tests/test-mbrtowc-w32-5.sh: New file.
20052         * tests/test-mbrtowc-w32.c: New file.
20053         * modules/mbrtowc-tests (Files): Add them.
20054         (Makefile.am): Arrange to run these tests.
20055         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20056         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20057
20058 2011-02-13  Bruno Haible  <bruno@clisp.org>
20059
20060         mbrtowc: Work around native Windows bug.
20061         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20062         guess when no suitable locale for testing was found.
20063         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20064
20065 2011-02-13  Bruno Haible  <bruno@clisp.org>
20066
20067         mbsinit: Work around mingw bug.
20068         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20069         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20070         Windows.
20071         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20072
20073 2011-02-13  Bruno Haible  <bruno@clisp.org>
20074
20075         mbsinit: Don't crash for a NULL argument.
20076         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20077         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20078
20079 2011-02-13  Bruno Haible  <bruno@clisp.org>
20080
20081         Don't interfere with a program's definition of __attribute__.
20082         * lib/stdio.in.h (__attribute__): Remove definition.
20083         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20084         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20085         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20086         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20087         * lib/string.in.h (__attribute__): Remove definition.
20088         Reported by Paul Eggert.
20089
20090 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20091
20092         stdlib: don't get in the way of non-GCC __attribute__
20093         See thread starting at
20094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20095         Revert previous stdlib change, installing the following instead:
20096         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20097         to get in the way of a non-GCC compiler that supports __attribute__.
20098         (_GL_ATTRIBUTE_RETURN): New macro.
20099         (_Exit): Use it instead of __attribute__.
20100
20101 2011-02-12  Bruno Haible  <bruno@clisp.org>
20102
20103         quotearg test: Avoid test failure on mingw.
20104         * tests/test-quotearg.sh: Convert the locale identifier from native
20105         Windows syntax to Unix syntax.
20106
20107 2011-02-12  Bruno Haible  <bruno@clisp.org>
20108
20109         setlocale: Prefer gnulib's override over libintl's override.
20110         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20111         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20112         GNULIB_defined_setlocale is set.
20113
20114 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         stdlib: support non-GCC __attribute__
20117
20118         Fix a serious and tricky problem encountered when attempting to
20119         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20120         5.5, but it crashed due to memory corruption on Solaris 10 with
20121         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20122         bits that are otherwise zero.  This tagging is optional inside
20123         Emacs but is preferred and is used when __attribute__ ((__aligned
20124         (8))) works, as it does with both recent-enough GCC and with Sun C
20125         5.11.  However, Sun C 5.11 is not GCC and does not #define
20126         __GNUC__ and __GNUC_MINOR__.
20127
20128         When I added the getloadavg module to Emacs, it brought in
20129         stdlib.in.h, which contained this fragment:
20130
20131            #ifndef __attribute__
20132            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20133            #  define __attribute__(Spec)   /* empty */
20134            # endif
20135            #endif
20136
20137         When files that include <stdlib.h> were compiled with Sun C 5.11,
20138         the above code disabled __attribute__ ((__aligned (8))), which
20139         caused variables to not be properly aligned, which eventually led
20140         to the pointer corruption mentioned above.  (This was a bit hard
20141         to diagnose, unfortunately.)
20142
20143         Several "#define __attribute__(X) /* empty */" code snippets need
20144         to be eradicated from Gnulib to work with non-GCC compilers that
20145         support __attribute__.  The Autoconf way to do this is to test for
20146         each kind of attribute that we want support for, and selectively
20147         enable that in source code.
20148
20149         Fix this problem just for stdlib.h, by adding a test for the
20150         __noreturn__ attribute, and change stdlib.in.h to use that test
20151         when needed.  This technique can be easily generalized to the
20152         other *.in.h files and attributes, and a similar technique can be
20153         used for *.h and *.c files.  This patch is enough to solve the
20154         problem for Emacs + getloadavg, and I thought I'd publish it for
20155         feedback before undertaking further, similar fixes in other
20156         modules.
20157
20158         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20159         because it's not needed for stdlib.h.  It merely substitutes the
20160         value directly into stdlib.h.  We may well need to #define it, or
20161         similar symbols, for other modules, but it's nice to also have an
20162         option to not #define it for applications like Emacs that do not
20163         need it.
20164
20165         * lib/stdlib.in.h (__attribute__): Do not #define.
20166         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20167         be defined only if the _Exit module is also used.
20168         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20170         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20171         platforms.
20172         * modules/_Exit (Files): Add m4/attribute.m4.
20173         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20174         * m4/attribute.m4: New file.
20175
20176 2011-02-12  Bruno Haible  <bruno@clisp.org>
20177
20178         wcsrtombs: Work around bug on native Windows.
20179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20180         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20181         instead of len.
20182         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20183
20184 2011-02-12  Bruno Haible  <bruno@clisp.org>
20185
20186         mbsrtowcs: Work around bug on native Windows.
20187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20188         against mingw bug.
20189         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20190
20191 2011-02-12  Bruno Haible  <bruno@clisp.org>
20192
20193         Avoid setlocale bugs in tests.
20194         * modules/btowc (Dependencies): Add setlocale.
20195         * modules/c-strcase (Dependencies): Likewise.
20196         * modules/mbmemcasecmp (Dependencies): Likewise.
20197         * modules/mbmemcasecoll (Dependencies): Likewise.
20198         * modules/mbrtowc (Dependencies): Likewise.
20199         * modules/mbscasecmp (Dependencies): Likewise.
20200         * modules/mbscasestr (Dependencies): Likewise.
20201         * modules/mbschr (Dependencies): Likewise.
20202         * modules/mbscspn (Dependencies): Likewise.
20203         * modules/mbsinit (Dependencies): Likewise.
20204         * modules/mbsncasecmp (Dependencies): Likewise.
20205         * modules/mbsnrtowcs (Dependencies): Likewise.
20206         * modules/mbspbrk (Dependencies): Likewise.
20207         * modules/mbspcasecmp (Dependencies): Likewise.
20208         * modules/mbsrchr (Dependencies): Likewise.
20209         * modules/mbsrtowcs (Dependencies): Likewise.
20210         * modules/mbsspn (Dependencies): Likewise.
20211         * modules/mbsstr (Dependencies): Likewise.
20212         * modules/nl_langinfo (Dependencies): Likewise.
20213         * modules/quotearg (Dependencies): Likewise.
20214         * modules/unicase/locale-language (Dependencies): Likewise.
20215         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20216         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20217         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20218         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20219         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20220         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20221         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20222         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20223         * modules/vasnprintf-posix (Dependencies): Likewise.
20224         * modules/wcrtomb (Dependencies): Likewise.
20225         * modules/wcsnrtombs (Dependencies): Likewise.
20226         * modules/wcsrtombs (Dependencies): Likewise.
20227
20228 2011-02-12  Bruno Haible  <bruno@clisp.org>
20229
20230         setlocale: Workaround native Windows bug.
20231         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20232         succeeds but sets LC_CTYPE to "C", report a failure.
20233         * tests/test-setlocale2.sh: New file.
20234         * tests/test-setlocale2.c: New file.
20235         * modules/setlocale-tests (Files): Add the new files.
20236         (Makefile.am): Enable test-setlocale2.sh test.
20237         * doc/posix-functions/setlocale.texi: Mention workaround.
20238
20239 2011-02-11  Bruno Haible  <bruno@clisp.org>
20240
20241         Tests for module 'setlocale'.
20242         * modules/setlocale-tests: New file.
20243         * tests/test-setlocale1.sh: New file.
20244         * tests/test-setlocale1.c: New file.
20245
20246         New module 'setlocale'.
20247         * lib/locale.in.h (setlocale): New declaration.
20248         * lib/setlocale.c: New file, based on
20249         gettext/gettext-runtime/intl/setlocale.c.
20250         * m4/setlocale.m4: New file.
20251         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20252         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20253         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20254         REPLACE_SETLOCALE.
20255         * modules/setlocale: New file.
20256         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20257         * doc/posix-functions/setlocale.texi: Mention the new module.
20258
20259 2011-02-11  Bruno Haible  <bruno@clisp.org>
20260
20261         Prepare for locale dependent tests on mingw.
20262         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20263         because it has the wrong locale encoding.
20264         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20265         French_France.1252 instead of "fr".
20266         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20267         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20268         because it has the wrong locale encoding.
20269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20270         native Windows, try Turkish_Turkey.65001.
20271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20272         Chinese_China.54936.
20273
20274         Prepare for locale dependent tests on mingw.
20275         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20276         differently.
20277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20278         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20281
20282 2011-02-11  Eric Blake  <eblake@redhat.com>
20283
20284         strptime: avoid compiler warnings
20285         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20286         compiler warnings about dead code.
20287         Reported by Daniel P. Berrange.
20288
20289 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20290
20291         doc: update users.txt
20292         * users.txt: Add rcs.
20293
20294 2011-02-10  John W. Eaton  <jwe@gnu.org>
20295
20296         doc: update users.txt
20297         * users.txt: Add octave.
20298
20299 2011-02-10  Jim Meyering  <meyering@redhat.com>
20300
20301         doc: update users.txt
20302         * users.txt: Add iwhd.
20303
20304 2011-02-09  Bruno Haible  <bruno@clisp.org>
20305
20306         gnulib-tool: Make copyright notice adjustment more robust.
20307         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20308         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20309         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20310         License".
20311         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20312
20313 2011-02-06  Bruno Haible  <bruno@clisp.org>
20314
20315         New module 'towctrans'.
20316         * modules/towctrans: New file.
20317         * lib/wctype.in.h (towctrans): New declaration.
20318         * lib/towctrans.c: New file.
20319         * lib/towctrans-impl.h: New file.
20320         * m4/towctrans.m4: New file.
20321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20322         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20323         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20324         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20325         * doc/posix-functions/towctrans.texi: Mention the new module.
20326
20327 2011-02-06  Bruno Haible  <bruno@clisp.org>
20328
20329         New module 'wctrans'.
20330         * modules/wctrans: New file.
20331         * lib/wctype.in.h (wctrans): New declaration.
20332         * lib/wctrans.c: New file.
20333         * lib/wctrans-impl.h: New file.
20334         * m4/wctrans.m4: New file.
20335         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20336         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20337         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20338         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20339         * doc/posix-functions/wctrans.texi: Mention the new module.
20340
20341 2011-02-06  Bruno Haible  <bruno@clisp.org>
20342
20343         New module 'iswctype'.
20344         * modules/iswctype: New file.
20345         * lib/wctype.in.h (iswctype): New declaration.
20346         * lib/iswctype.c: New file.
20347         * lib/iswctype-impl.h: New file.
20348         * m4/iswctype.m4: New file.
20349         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20350         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20351         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20352         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20353         * doc/posix-functions/iswctype.texi: Mention the new module and the
20354         HP-UX 11.00 problem.
20355
20356 2011-02-06  Bruno Haible  <bruno@clisp.org>
20357
20358         New module 'wctype'.
20359         * modules/wctype: Change to represent the wctype() substitute.
20360         * lib/wctype.in.h (wctype): New declaration.
20361         * lib/wctype.c: New file.
20362         * lib/wctype-impl.h: New file.
20363         * m4/wctype.m4: New file.
20364         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20365         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20366         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20367         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20368         * doc/posix-functions/wctype.texi: Mention the new module and the
20369         HP-UX 11.00 problem.
20370
20371 2011-02-06  Bruno Haible  <bruno@clisp.org>
20372
20373         wctype-h: Ensure wctype_t and wctrans_t are defined.
20374         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20375         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20376         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20377         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20378         HAVE_WCTRANS_T.
20379         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20380
20381 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20382
20383         flock: fix license typo
20384
20385         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20386         omitted.
20387
20388 2011-02-08  Bruno Haible  <bruno@clisp.org>
20389
20390         Split large sed scripts, for HP-UX sed.
20391         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20392         to avoid HP-UX limit of 99 commands, in the near future.
20393         * modules/stdlib (Makefile.am): Likewise.
20394         * modules/unistd (Makefile.am): Likewise.
20395         * modules/wchar (Makefile.am): Likewise.
20396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20397         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20399
20400 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20401             Bruno Haible  <bruno@clisp.org>
20402
20403         stdlib: improve random_r modularization
20404         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20405         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20406         you also need the random_r module to get this material right.
20407         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20408         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20409         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20410
20411 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20412
20413         stdlib: don't depend on stdint
20414         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20415         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20416         be independent of whether stdint.h is needed.
20417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20418         here, instead of ...
20419         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20420         struct random_data should be using the random_r module, not just
20421         the stdlib module (which wouldn't make sense: what package needs
20422         just struct random_data without also needing random_r?).
20423         * modules/stdlib (Depends-on): Remove stdint.
20424
20425         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20426         See the thread rooted at
20427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20428         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20429         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20430         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20431         __VMS)); previously it was always included (via fcntl--.h).
20432         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20433         hand; this is good enough for load averages.  Also, do not use
20434         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20435         flags directly if available and don't bother otherwise.  (Packages
20436         that need the extra reliability should use the modules that define
20437         these flags on older platforms that lack them.)
20438         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20439         fcntl-safer.
20440
20441 2011-02-08  Jim Meyering  <meyering@redhat.com>
20442
20443         di-set.h, ino-map.h: add multiple-inclusion guard
20444         Technically, the guard is required only for ino-map.h, due to its
20445         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20446         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20447         * lib/ino-map.h: Likewise.
20448
20449 2011-02-06  Bruno Haible  <bruno@clisp.org>
20450
20451         iswblank: Ensure declaration on glibc systems.
20452         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20453         * modules/iswblank (Dependencies): Add 'extensions'.
20454         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20455
20456 2011-02-06  Bruno Haible  <bruno@clisp.org>
20457
20458         New module 'iswblank'.
20459         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20460         * modules/iswblank: New file.
20461         * modules/wctype-h (Files): Remove lib/iswblank.c.
20462         (Makefile.am): Substitute GNULIB_ISWBLANK.
20463         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20464         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20465         (gl_WCTYPE_H_DEFAULTS): New macro.
20466         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20467         * modules/iswblank-tests: New file.
20468         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20469         * tests/test-wctype-h.c (main): Remove iswblank tests.
20470         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20471         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20472         of 'wctype-h'.
20473         * NEWS: Mention the change.
20474         * modules/mbchar (Depends-on): Add iswblank.
20475
20476 2011-02-08  Bruno Haible  <bruno@clisp.org>
20477
20478         di-set tests: Refactor.
20479         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20480         unnecessary includes.
20481         (ASSERT): Remove macro.
20482         (main): Make C90 compliant by avoiding variable declaration after
20483         statement.
20484         * modules/di-set-tests (Files): Add tests/macros.h.
20485
20486 2011-02-08  Bruno Haible  <bruno@clisp.org>
20487
20488         ino-map tests: Refactor.
20489         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20490         unnecessary includes.
20491         (ASSERT): Remove macro.
20492         (main): Make C90 compliant by avoiding variable declaration after
20493         statement.
20494         * modules/ino-map-tests (Files): Add tests/macros.h.
20495
20496 2011-02-08  Jim Meyering  <meyering@redhat.com>
20497
20498         di-set: add "const" to a cast
20499         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20500         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20501
20502 2011-02-06  Bruno Haible  <bruno@clisp.org>
20503
20504         Rename module 'wctype' to 'wctype-h'.
20505         * modules/wctype-h: Renamed from modules/wctype.
20506         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20507         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20508         (Files, Depends-on, Makefile.am): Update.
20509         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20510         (Files, Makefile.am): Update.
20511         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20512         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20513         * doc/posix-headers/wctype.texi: Update.
20514         * doc/posix-functions/iswalnum.texi: Update.
20515         * doc/posix-functions/iswalpha.texi: Update.
20516         * doc/posix-functions/iswblank.texi: Update.
20517         * doc/posix-functions/iswcntrl.texi: Update.
20518         * doc/posix-functions/iswdigit.texi: Update.
20519         * doc/posix-functions/iswgraph.texi: Update.
20520         * doc/posix-functions/iswlower.texi: Update.
20521         * doc/posix-functions/iswprint.texi: Update.
20522         * doc/posix-functions/iswpunct.texi: Update.
20523         * doc/posix-functions/iswspace.texi: Update.
20524         * doc/posix-functions/iswupper.texi: Update.
20525         * doc/posix-functions/iswxdigit.texi: Update.
20526         * doc/posix-functions/towlower.texi: Update.
20527         * doc/posix-functions/towupper.texi: Update.
20528         * NEWS: Mention the change.
20529         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20530         * modules/mbchar (Dependencies): Likewise.
20531         * modules/mbswidth (Dependencies): Likewise.
20532         * modules/quotearg (Dependencies): Likewise.
20533         * modules/regex (Dependencies): Likewise.
20534         * modules/wcscasecmp (Dependencies): Likewise.
20535         * modules/wcsncasecmp (Dependencies): Likewise.
20536         * modules/wcwidth (Dependencies): Likewise.
20537
20538 2011-02-06  Bruno Haible  <bruno@clisp.org>
20539
20540         New module 'wcswidth'.
20541         * modules/wcswidth: New file.
20542         * lib/wchar.in.h (wcswidth): New declaration.
20543         * lib/wcswidth.c: New file.
20544         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20545         * m4/wcswidth.m4: New file.
20546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20548         REPLACE_WCSWIDTH.
20549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20550         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20551         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20552         * doc/posix-functions/wcswidth.texi: Mention the new module.
20553
20554 2011-02-06  Bruno Haible  <bruno@clisp.org>
20555
20556         New module 'wcstok'.
20557         * modules/wcstok: New file.
20558         * lib/wchar.in.h (wcstok): New declaration.
20559         * lib/wcstok.c: New file.
20560         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20561         * m4/wcstok.m4: New file.
20562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20565         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20566         * doc/posix-functions/wcstok.texi: Mention the new module.
20567
20568 2011-02-06  Bruno Haible  <bruno@clisp.org>
20569
20570         New module 'wcsstr'.
20571         * modules/wcsstr: New file.
20572         * lib/wchar.in.h (wcsstr): New declaration.
20573         * lib/wcsstr.c: New file.
20574         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20575         * m4/wcsstr.m4: New file.
20576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20579         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20580         * doc/posix-functions/wcsstr.texi: Mention the new module.
20581
20582 2011-02-06  Bruno Haible  <bruno@clisp.org>
20583
20584         New module 'wcspbrk'.
20585         * modules/wcspbrk: New file.
20586         * lib/wchar.in.h (wcspbrk): New declaration.
20587         * lib/wcspbrk.c: New file.
20588         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20589         * m4/wcspbrk.m4: New file.
20590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20593         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20594         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20595
20596 2011-02-06  Bruno Haible  <bruno@clisp.org>
20597
20598         New module 'wcsspn'.
20599         * modules/wcsspn: New file.
20600         * lib/wchar.in.h (wcsspn): New declaration.
20601         * lib/wcsspn.c: New file.
20602         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20603         * m4/wcsspn.m4: New file.
20604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20607         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20608         * doc/posix-functions/wcsspn.texi: Mention the new module.
20609
20610 2011-02-06  Bruno Haible  <bruno@clisp.org>
20611
20612         New module 'wcscspn'.
20613         * modules/wcscspn: New file.
20614         * lib/wchar.in.h (wcscspn): New declaration.
20615         * lib/wcscspn.c: New file.
20616         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20617         * m4/wcscspn.m4: New file.
20618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20621         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20622         * doc/posix-functions/wcscspn.texi: Mention the new module.
20623
20624 2011-02-06  Bruno Haible  <bruno@clisp.org>
20625
20626         New module 'wcsrchr'.
20627         * modules/wcsrchr: New file.
20628         * lib/wchar.in.h (wcsrchr): New declaration.
20629         * lib/wcsrchr.c: New file.
20630         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20631         * m4/wcsrchr.m4: New file.
20632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20635         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20636         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20637
20638 2011-02-06  Bruno Haible  <bruno@clisp.org>
20639
20640         New module 'wcschr'.
20641         * modules/wcschr: New file.
20642         * lib/wchar.in.h (wcschr): New declaration.
20643         * lib/wcschr.c: New file.
20644         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20645         * m4/wcschr.m4: New file.
20646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20649         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20650         * doc/posix-functions/wcschr.texi: Mention the new module.
20651
20652 2011-02-06  Bruno Haible  <bruno@clisp.org>
20653
20654         New module 'wcsdup'.
20655         * modules/wcsdup: New file.
20656         * lib/wchar.in.h (wcsdup): New declaration.
20657         * lib/wcsdup.c: New file.
20658         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20659         * m4/wcsdup.m4: New file.
20660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20663         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20664         * doc/posix-functions/wcsdup.texi: Mention the new module.
20665
20666 2011-02-06  Bruno Haible  <bruno@clisp.org>
20667
20668         New module 'wcsxfrm'.
20669         * modules/wcsxfrm: New file.
20670         * lib/wchar.in.h (wcsxfrm): New declaration.
20671         * lib/wcsxfrm.c: New file.
20672         * lib/wcsxfrm-impl.h: New file.
20673         * m4/wcsxfrm.m4: New file.
20674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20677         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20678         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20679
20680 2011-02-06  Bruno Haible  <bruno@clisp.org>
20681
20682         New module 'wcscoll'.
20683         * modules/wcscoll: New file.
20684         * lib/wchar.in.h (wcscoll): New declaration.
20685         * lib/wcscoll.c: New file.
20686         * lib/wcscoll-impl.h: New file.
20687         * m4/wcscoll.m4: New file.
20688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20691         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20692         * doc/posix-functions/wcscoll.texi: Mention the new module.
20693
20694 2011-02-06  Bruno Haible  <bruno@clisp.org>
20695
20696         New module 'wcsncasecmp'.
20697         * modules/wcsncasecmp: New file.
20698         * lib/wchar.in.h (wcsncasecmp): New declaration.
20699         * lib/wcsncasecmp.c: New file.
20700         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20701         * m4/wcsncasecmp.m4: New file.
20702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20705         HAVE_WCSNCASECMP.
20706         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20707         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20708
20709 2011-02-06  Bruno Haible  <bruno@clisp.org>
20710
20711         New module 'wcscasecmp'.
20712         * modules/wcscasecmp: New file.
20713         * lib/wchar.in.h (wcscasecmp): New declaration.
20714         * lib/wcscasecmp.c: New file.
20715         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20716         * m4/wcscasecmp.m4: New file.
20717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20720         HAVE_WCSCASECMP.
20721         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20722         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20723
20724 2011-02-05  Bruno Haible  <bruno@clisp.org>
20725
20726         New module 'wcsncmp'.
20727         * modules/wcsncmp: New file.
20728         * lib/wchar.in.h (wcsncmp): New declaration.
20729         * lib/wcsncmp.c: New file.
20730         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20731         * m4/wcsncmp.m4: New file.
20732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20735         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20736         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20737
20738 2011-02-05  Bruno Haible  <bruno@clisp.org>
20739
20740         New module 'wcscmp'.
20741         * modules/wcscmp: New file.
20742         * lib/wchar.in.h (wcscmp): New declaration.
20743         * lib/wcscmp.c: New file.
20744         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20745         * m4/wcscmp.m4: New file.
20746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20749         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20750         * doc/posix-functions/wcscmp.texi: Mention the new module.
20751
20752 2011-02-05  Bruno Haible  <bruno@clisp.org>
20753
20754         New module 'wcsncat'.
20755         * modules/wcsncat: New file.
20756         * lib/wchar.in.h (wcsncat): New declaration.
20757         * lib/wcsncat.c: New file.
20758         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20759         * m4/wcsncat.m4: New file.
20760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20763         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20764         * doc/posix-functions/wcsncat.texi: Mention the new module.
20765
20766 2011-02-05  Bruno Haible  <bruno@clisp.org>
20767
20768         New module 'wcscat'.
20769         * modules/wcscat: New file.
20770         * lib/wchar.in.h (wcscat): New declaration.
20771         * lib/wcscat.c: New file.
20772         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20773         * m4/wcscat.m4: New file.
20774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20777         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20778         * doc/posix-functions/wcscat.texi: Mention the new module.
20779
20780 2011-02-05  Bruno Haible  <bruno@clisp.org>
20781
20782         New module 'wcpncpy'.
20783         * modules/wcpncpy: New file.
20784         * lib/wchar.in.h (wcpncpy): New declaration.
20785         * lib/wcpncpy.c: New file.
20786         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20787         * m4/wcpncpy.m4: New file.
20788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20790         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20791         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20792         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20793
20794 2011-02-05  Bruno Haible  <bruno@clisp.org>
20795
20796         New module 'wcsncpy'.
20797         * modules/wcsncpy: New file.
20798         * lib/wchar.in.h (wcsncpy): New declaration.
20799         * lib/wcsncpy.c: New file.
20800         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20801         * m4/wcsncpy.m4: New file.
20802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20805         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20806         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20807
20808 2011-02-05  Bruno Haible  <bruno@clisp.org>
20809
20810         New module 'wcpcpy'.
20811         * modules/wcpcpy: New file.
20812         * lib/wchar.in.h (wcpcpy): New declaration.
20813         * lib/wcpcpy.c: New file.
20814         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20815         * m4/wcpcpy.m4: New file.
20816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20818         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20819         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20820         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20821
20822 2011-02-05  Bruno Haible  <bruno@clisp.org>
20823
20824         New module 'wcscpy'.
20825         * modules/wcscpy: New file.
20826         * lib/wchar.in.h (wcscpy): New declaration.
20827         * lib/wcscpy.c: New file.
20828         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20829         * m4/wcscpy.m4: New file.
20830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20833         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20834         * doc/posix-functions/wcscpy.texi: Mention the new module.
20835
20836 2011-02-05  Bruno Haible  <bruno@clisp.org>
20837
20838         New module 'wcsnlen'.
20839         * modules/wcsnlen: New file.
20840         * lib/wchar.in.h (wcsnlen): New declaration.
20841         * lib/wcsnlen.c: New file.
20842         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20843         * m4/wcsnlen.m4: New file.
20844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20847         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20848         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20849
20850 2011-02-05  Bruno Haible  <bruno@clisp.org>
20851
20852         New module 'wcslen'.
20853         * modules/wcslen: New file.
20854         * lib/wchar.in.h (wcslen): New declaration.
20855         * lib/wcslen.c: New file.
20856         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20857         * m4/wcslen.m4: New file.
20858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20861         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20862         * doc/posix-functions/wcslen.texi: Mention the new module.
20863
20864 2011-02-05  Bruno Haible  <bruno@clisp.org>
20865
20866         New module 'wmemset'.
20867         * modules/wmemset: New file.
20868         * lib/wchar.in.h (wmemset): New declaration.
20869         * lib/wmemset.c: New file.
20870         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20871         * m4/wmemset.m4: New file.
20872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20874         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20875         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20876         * doc/posix-functions/wmemset.texi: Mention the new module.
20877
20878 2011-02-05  Bruno Haible  <bruno@clisp.org>
20879
20880         New module 'wmemmove'.
20881         * modules/wmemmove: New file.
20882         * lib/wchar.in.h (wmemmove): New declaration.
20883         * lib/wmemmove.c: New file.
20884         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20885         * m4/wmemmove.m4: New file.
20886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20888         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20889         HAVE_WMEMMOVE.
20890         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20891         * doc/posix-functions/wmemmove.texi: Mention the new module.
20892
20893 2011-02-05  Bruno Haible  <bruno@clisp.org>
20894
20895         New module 'wmemcpy'.
20896         * modules/wmemcpy: New file.
20897         * lib/wchar.in.h (wmemcpy): New declaration.
20898         * lib/wmemcpy.c: New file.
20899         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20900         * m4/wmemcpy.m4: New file.
20901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20903         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20904         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20905         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20906
20907 2011-02-05  Bruno Haible  <bruno@clisp.org>
20908
20909         New module 'wmemcmp'.
20910         * modules/wmemcmp: New file.
20911         * lib/wchar.in.h (wmemcmp): New declaration.
20912         * lib/wmemcmp.c: New file.
20913         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20914         * m4/wmemcmp.m4: New file.
20915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20917         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20918         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20919         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20920
20921 2011-02-07  Jim Meyering  <meyering@redhat.com>
20922
20923         di-set, ino-map: new modules, from coreutils
20924         * lib/di-set.c: New file.
20925         * lib/di-set.h: Likewise.
20926         * lib/ino-map.c: Likewise.
20927         * lib/ino-map.h: Likewise.
20928         * modules/di-set: Likewise.
20929         * modules/di-set-tests: Likewise.
20930         * modules/ino-map: Likewise.
20931         * modules/ino-map-tests: Likewise.
20932         * tests/test-di-set.c: Likewise.
20933         * tests/test-ino-map.c: Likewise.
20934
20935 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         getloadavg: merge minor changes from Emacs
20938
20939         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20940         (getloadavg): Use memset, not bzero.
20941
20942         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20943         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20944         clash (bug#86).
20945
20946 2010-11-14  Bruno Haible  <bruno@clisp.org>
20947
20948         Allow multiple gnulib generated replacements to coexist.
20949         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20950         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20951         * lib/langinfo.in.h (nl_item): Likewise.
20952         * lib/math.in.h (_NaN, NAN): Likewise.
20953         * lib/netdb.in.h (struct addrinfo): Likewise.
20954         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20955         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20956         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20957         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20958         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20959         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20960         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20961         pthread_mutexattr_init, pthread_mutexattr_settype,
20962         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20963         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20964         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20965         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20966         * lib/sched.in.h (struct sched_param): Likewise.
20967         * lib/se-selinux.in.h (security_class_t, security_context_t,
20968         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20969         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20970         lsetfilecon, fsetfilecon, security_check_context,
20971         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20972         Likewise.
20973         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20974         Likewise.
20975         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20976         _gl_function_taking_int_returning_void_t, union sigval,
20977         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20978         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20979         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20980         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20981         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20982         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20983         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20984         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20985         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20986         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20987         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20988         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20989         socklen_t, rpl_fd_isset): Likewise.
20990         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20991         * lib/sys_time.in.h (struct timeval): Likewise.
20992         * lib/sys_times.in.h (struct tms): Likewise.
20993         * lib/sys_utsname.in.h (struct utsname):
20994         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20995         * lib/unistd.in.h (getpagesize): Likewise.
20996         * lib/wchar.in.h (mbstate_t): Likewise.
20997         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20998         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20999         towlower, towupper): Likewise.
21000         Reported by Sam Steingold <sds@gnu.org>.
21001
21002 2011-02-05  Eric Blake  <eblake@redhat.com>
21003
21004         unsetenv: work around Haiku issues
21005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21006         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21007
21008 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21009
21010         libposix: avoid calling error() within libposix
21011         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21012         is defined.
21013
21014 2011-02-05  Eric Blake  <eblake@redhat.com>
21015
21016         strerror_r-posix: port to cygwin
21017         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21018         implementation.
21019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21020         * tests/test-strerror_r.c (main): Fix test.
21021         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21022         issue.
21023
21024 2011-02-05  Bruno Haible  <bruno@clisp.org>
21025
21026         New module 'wmemchr'.
21027         * modules/wmemchr: New file.
21028         * lib/wchar.in.h (wmemchr): New declaration.
21029         * lib/wmemchr.c: New file.
21030         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21031         * m4/wmemchr.m4: New file.
21032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21035         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21036         * doc/posix-functions/wmemchr.texi: Mention the new module.
21037
21038 2011-02-04  Eric Blake  <eblake@redhat.com>
21039
21040         fdopendir: detect FreeBSD bug
21041         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21042         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21043
21044 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21045
21046         stdbool: do not define HAVE_STDBOOL_H
21047         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21048         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21049         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21050         imported from the latest Autoconf git.  It was motivated by Emacs,
21051         which uses gnulib but does not need HAVE_STDBOOL_H.
21052
21053 2011-02-04  Bruno Haible  <bruno@clisp.org>
21054
21055         wcsnrtombs: Prepare for new module wwcsnrtombs.
21056         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21057         * lib/wcsnrtombs.c: Include it.
21058         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21059
21060         wcsrtombs: Prepare for new module wwcsrtombs.
21061         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21062         * lib/wcsrtombs.c: Include it.
21063         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21064
21065         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21066         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21067         * lib/mbsnrtowcs.c: Include it.
21068         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21069
21070         mbsrtowcs: Prepare for new module mbsrtowwcs.
21071         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21072         * lib/mbsrtowcs.c: Include it.
21073         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21074
21075 2011-02-04  Bruno Haible  <bruno@clisp.org>
21076
21077         vasnprintf: Reduce use of malloc for small format strings.
21078         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21079         (arguments): Add room for the first 7 arguments.
21080         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21081         (char_directives, u8_directives, u16_directives, u32_directives): Add
21082         room for the first 7 directives.
21083         * lib/printf-parse.c: Include <string.h>.
21084         (PRINTF_PARSE): Change memory handling code so that it uses the first
21085         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21086         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21087         Reported by Pádraig Brady <P@draigbrady.com>.
21088
21089 2011-01-31  Eric Blake  <eblake@redhat.com>
21090
21091         dup2: work around Haiku bug
21092         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21093         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21094         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21095         * tests/test-dup2.c (main): Enhance test.
21096
21097 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21098
21099         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21100         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21101         declared by eglibc 2.11.2.
21102         * lib/stdio.in.h: Likewise.
21103
21104 2011-01-31  Eric Blake  <eblake@redhat.com>
21105
21106         ignore-value: add missing test dependency
21107         * tests/test-ignore-value.c: Revert previous change; stdio.h
21108         provides off_t.
21109         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21110
21111 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21112
21113         mktime: clarify long_int width checking
21114         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21115         the top level, to make it clearer that the assumption about
21116         long_int width is being checked.  See
21117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21118
21119 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21120
21121         ignore-value: Fix self-test.
21122         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21123
21124 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21125
21126         TYPE_MAXIMUM: avoid theoretically undefined behavior
21127         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21128         negative number, which the C Standard says has undefined behavior.
21129         In practice this is not a problem, but might as well do it by the book.
21130         Reported by Rich Felker and Eric Blake; see
21131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21132         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21133         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21135         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21136         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21137         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21138
21139         mktime: #undef mktime before #defining it
21140         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21141
21142         mktime: systematically normalize tm_isdst comparisons
21143         * lib/mktime.c (isdst_differ): New function.
21144         (__mktime_internal): Use it systematically for all isdst comparisons.
21145         This completes the fix for libc BZ #6723, and removes the need for
21146         normalizing tm_isdst.  See
21147         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21148         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21149
21150         mktime: fix some integer overflow issues and sidestep the rest
21151
21152         This was prompted by a bug report by Benjamin Lindner for MinGW
21153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21154         His bug is due to signed integer overflow (0 - INT_MIN), and I
21155         I scanned through mktime.c looking for other integer overflow
21156         problems, fixing all the bugs I found.
21157
21158         Although the C Standard says the resulting code is still not safe
21159         in the presence of integer overflow, in practice it should be good
21160         enough for all real-world two's-complement implementations, except
21161         for debugging environments that deliberately trap on integer
21162         overflow (e.g., gcc -ftrapv).
21163
21164         * lib/mktime.c (WRAPV): New macro.
21165         (SHR): Also check that long_int and time_t shift right in the
21166         usual way, before using the fast-but-unportable method.
21167         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21168         used.  The code already assumed two's complement, so there's
21169         no need to test for alternatives.  All uses removed.
21170         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21171         the C standard.  Problem reported by Rich Felker in
21172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21173         (twos_complement_arithmetic): Also check long_int and time_t.
21174         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21175         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21176         (__mktime_internal): Avoid integer overflow with unary subtraction
21177         in two instances where -1 - X is an adequate replacement for -X,
21178         since the calculations are approximate.
21179
21180 2011-01-29  Eric Blake  <eblake@redhat.com>
21181
21182         mktime: avoid infinite loop
21183         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21184         type; behavior is still undefined but portable to all known targets.
21185         Reported by Rich Felker.
21186
21187 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21188
21189         rename, unlink, same-inode: Relicense.
21190         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21191         * modules/unlink (License): Likewise.
21192         * modules/same-inode (License): Likewise.
21193
21194 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         mktime: avoid problems on NetBSD 5 / i386
21197         * lib/mktime.c (long_int): New type.  This works around a problem
21198         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21199         but time_t is 64 bits, and where I expect the existing code is
21200         wrong in some cases.
21201         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21202         (ydhms_diff): Bring back the compile-time check for wide-enough
21203         year and yday.
21204
21205         mktime: fix misspelling in comment
21206         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21207         This merges all recent glibc changes of importance.
21208
21209 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21210
21211         move-if-change: cope with concurrent mv of identical file.
21212         * build-aux/move-if-change (CMPPROG): Accept environment
21213         variable as an override for `cmp'.
21214         (usage): Document CMPPROG.
21215         Adjust comparison to drop stdout.  Cope with failure of mv if
21216         the target file exists and is identical to the source, for
21217         parallel builds.
21218         Report from H.J. Lu against binutils in PR binutils/12283.
21219
21220 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21221
21222         * users.txt: Mention sharutils.
21223
21224 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21225
21226         * users.txt: Mention OATH Toolkit.
21227
21228 2011-01-27  Bruno Haible  <bruno@clisp.org>
21229
21230         Prepare for supporting FreeBSD 10.
21231         * build-aux/config.libpath: Remove handling of freebsd1*.
21232
21233 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21234
21235         Prepare for supporting FreeBSD 10.
21236         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21237         match FreeBSD 10.0.
21238
21239 2011-01-27  Bruno Haible  <bruno@clisp.org>
21240
21241         vma-iter, get-rusage-as: Add OpenBSD support.
21242         * modules/vma-iter (configure.ac): Test for mquery.
21243         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21244         * lib/vma-iter.c: Include <sys/mman.h>.
21245         (vma_iterate): Add an implementation based on mquery().
21246         * lib/resource-ext.h (get_rusage_as): Update comments.
21247         * lib/get-rusage-as.c: Likewise.
21248         * lib/get-rusage-data.c: Likewise.
21249
21250 2011-01-26  Karl Berry  <karl@gnu.org>
21251
21252         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21253         variables to make it easier to override the makeinfo program used.
21254
21255 2011-01-26  Eric Blake  <eblake@redhat.com>
21256
21257         fcntl: work around Haiku F_DUPFD bugs
21258         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21259         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21260         cloexec bit on duplication.
21261         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21262
21263 2011-01-26  Bruno Haible  <bruno@clisp.org>
21264
21265         Enable memory leak tests on AIX.
21266         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21267         * tests/test-fprintf-posix3.c (main): Likewise.
21268
21269 2011-01-26  Bruno Haible  <bruno@clisp.org>
21270
21271         Tests for module 'get-rusage-data'.
21272         * modules/get-rusage-data-tests: New file.
21273         * tests/test-get-rusage-data.c: New file.
21274
21275         New module 'get-rusage-data'.
21276         * lib/resource-ext.h (get_rusage_data): New declaration.
21277         * lib/get-rusage-data.c: New file.
21278         * modules/get-rusage-data: New file.
21279
21280 2011-01-25  Bruno Haible  <bruno@clisp.org>
21281
21282         get-rusage-as: Allow for easier testing.
21283         * lib/resource-ext.h (get_rusage_as): Add comment.
21284         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21285         (main): New function for interactive testing.
21286
21287 2011-01-25  Bruno Haible  <bruno@clisp.org>
21288
21289         vma-iter: Treat Haiku like BeOS.
21290         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21291         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21292
21293 2011-01-25  Eric Blake  <eblake@redhat.com>
21294
21295         c-stack: fix regression on cygwin when libsigsegv is present
21296         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21297
21298 2011-01-24  Bruno Haible  <bruno@clisp.org>
21299
21300         vma-iter: Avoid empty intervals.
21301         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21302         on an empty interval.
21303
21304 2011-01-24  Jim Meyering  <meyering@redhat.com>
21305
21306         u64: remove unnecessary #include
21307         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21308
21309 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21310
21311         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21312         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21313
21314 2011-01-23  Bruno Haible  <bruno@clisp.org>
21315
21316         New module 'vma-iter'.
21317         * lib/vma-iter.h: New file.
21318         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21319         * modules/vma-iter: New file.
21320         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21321         for get_rusage_as_via_iterator.
21322         (vma_iterate_callback): New function.
21323         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21324         * modules/get-rusage-as (Depends-on): Add vma-iter.
21325
21326 2011-01-23  Bruno Haible  <bruno@clisp.org>
21327
21328         uninorm: Tweak includes.
21329         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21330         Reported by Jim Meyering.
21331
21332 2011-01-23  Bruno Haible  <bruno@clisp.org>
21333
21334         get-rusage-as: Improve on NetBSD.
21335         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21336         /proc, like on FreeBSD.
21337
21338 2011-01-23  Jim Meyering  <meyering@redhat.com>
21339
21340         xreadlink.h: remove unnecessary #include
21341         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21342
21343         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21344         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21345
21346 2011-01-23  Bruno Haible  <bruno@clisp.org>
21347
21348         get-rusage-as: Fix bug.
21349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21350         original limit when aborting the first loop.
21351
21352 2011-01-23  Bruno Haible  <bruno@clisp.org>
21353
21354         wctype: Ensure valid C syntax.
21355         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21356         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21357
21358 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21359
21360         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21362         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21363         as they are needed only for configure's test case.
21364         This removes two unnecessary symbols from config.h.
21365
21366         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21367         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21369         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21370         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21371         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21372         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21373         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21374         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21375         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21378         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21380         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21381         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21382         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21383         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21384
21385 2011-01-21  Eric Blake  <eblake@redhat.com>
21386
21387         maintainer-makefile: work with older git for submodule check
21388         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21389         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21390         Reported by Matthias Bolte.
21391
21392         bootstrap: minor portability fixes
21393         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21394         (usage): Omit leading capital and trailing . on help phrases, per
21395         GNU Coding Standards.
21396         (check_versions, top level): Prefix messages with script name.
21397
21398 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21399
21400         bootstrap: support --no-git option
21401         * build-aux/bootstrap: Add --no-git option, to be used when
21402         --gnulib-srcdir points to the exact desired checkout.
21403
21404 2011-01-21  Eric Blake  <eblake@redhat.com>
21405
21406         strerror_r-posix: work with glibc 2.13
21407         * lib/strerror_r.c (strerror_r): Fix return type.
21408
21409 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21410             Bruno Haible  <bruno@clisp.org>
21411
21412         uN_strstr: New unit tests.
21413         * modules/unistr/u8-strstr-tests: New file.
21414         * modules/unistr/u16-strstr-tests: New file.
21415         * modules/unistr/u32-strstr-tests: New file.
21416         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21417         * tests/unistr/test-u8-strstr.c: New file.
21418         * tests/unistr/test-u16-strstr.c: New file.
21419         * tests/unistr/test-u32-strstr.c: New file.
21420
21421 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21422             Bruno Haible  <bruno@clisp.org>
21423
21424         Make uN_strstr functions O(n) worst-case.
21425         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21426         16-bit and 32-bit unit cases, use the unibyte algorithm from
21427         lib/mbsstr.c.
21428         * lib/unistr/u8-strstr.c: Include <string.h>.
21429         (UNIT_IS_UINT8_T): New macro.
21430         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21431         (U_STRLEN, U_STRNLEN): New macros.
21432         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21433         (U_STRLEN, U_STRNLEN): New macros.
21434         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21435         (configure.ac): Update required libunistring version.
21436         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21437         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21438         malloca.
21439         (configure.ac): Update required libunistring version.
21440         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21441         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21442         malloca.
21443         (configure.ac): Update required libunistring version.
21444
21445 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21446             Bruno Haible  <bruno@clisp.org>
21447
21448         Prepare for faster uN_strstr functions.
21449         * lib/str-kmp.h: Support definable UNITs.
21450         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21451         needle_len argument.
21452         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21453         * lib/mbscasestr.c (mbscasestr): Likewise.
21454
21455 2011-01-21  Pádraig Brady <P@draigBrady.com>
21456
21457         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21458         * tests/test-malloca.c (main): Unset the environment variable
21459         to greatly speed up the test.
21460         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21461         * modules/malloca-tests: Depend on unsetenv.
21462
21463 2011-01-21  Pádraig Brady <P@draigBrady.com>
21464
21465         ignore-value: remove stdint dependency
21466         * lib/ignore-value.h: Remove <stdint.h>
21467         * modules/ignore-value: Remove stdint dependency.
21468
21469 2011-01-21  Jim Meyering  <meyering@redhat.com>
21470
21471         maint.mk: adjust variable name to be consistent with other gl_ vars
21472         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21473         to be lower case.
21474
21475 2011-01-20  Jim Meyering  <meyering@redhat.com>
21476
21477         maint.mk: make "check" depend on public-submodule-commit by default
21478         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21479
21480 2011-01-20  Bruno Haible  <bruno@clisp.org>
21481
21482         mbfile, mbiter: Complete change from 2008-12-21.
21483         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21484         * m4/mbiter.m4 (gl_MBITER): Likewise.
21485
21486 2011-01-20  Jim Meyering  <meyering@redhat.com>
21487
21488         init.sh: insert space between each function name and "()"
21489         * tests/init.sh: Make it a little easier to see that a function's
21490         name is "warn_", and not "warn" when looking at the first part of
21491         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21492
21493 2011-01-20  Jim Meyering  <meyering@redhat.com>
21494
21495         mountlist: clean up code formatting
21496         * lib/mountlist.c (read_file_system_list): Split a long line,
21497         correct bracing style, use NULL in place of "(struct statfs *)0",
21498         don't parenthesize return value, add spaces around "=" and after
21499         ";-in-for-stmt".
21500
21501 2011-01-14  Markus Duft <mduft@gentoo.org>
21502
21503         mountlist: add support for Interix
21504         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21505         Apply statvfs to all entries of /dev/fs.
21506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21507         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21508
21509 2011-01-20  Jim Meyering  <meyering@redhat.com>
21510
21511         maint.mk: improve the public-submodule-commit rule
21512         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21513         to suppress printing of its commands... unless V=1.
21514         Add git submodule's --quiet option to suppress printing of e.g.,
21515         "Entering gnulib" output.
21516         "cd" into $(srcdir) before running git submodule.
21517
21518 2011-01-20  Bruno Haible  <bruno@clisp.org>
21519
21520         include_next: Fix bug introduced on 2011-01-18.
21521         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21522         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21523         ac_cv_header_... variable if the second argument is not 'check'.
21524         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21525         gl_NEXT_HEADERS_INTERNAL.
21526
21527 2011-01-20  Bruno Haible  <bruno@clisp.org>
21528
21529         Allow the user to avoid the GNULIB_TEST_* macros.
21530         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21531         Suggested by Paul Eggert.
21532
21533 2011-01-14  Jim Meyering  <meyering@redhat.com>
21534
21535         bootstrap: avoid failure when there is no .gitmodules file
21536         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21537         has been assigned to, even when its value is the empty string.
21538         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21539         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21540         Reported by John W. Eaton <jwe@gnu.org>.
21541
21542 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21543
21544         assume <ctype.h>, ..., <time.h> exist
21545         For years gnulib has been assuming the existence of the headers
21546         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21547         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21548         them, since they don't appear to be needed.
21549         * README (Portability guidelines): Document this.
21550         * lib/flock.c: Assume <fcntl.h> exists.
21551         * lib/regex_internal.h: Assume <locale.h> exists.
21552         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21554         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21555         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21556         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21557         * m4/regex.m4 (gl_REGEX): Likewise.
21558         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21559         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21560         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21561         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21562         * tests/test-argp.c: Likewise.
21563         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21564
21565         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21566         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21567         AA_APPLE_UNIVERSAL_BUILD.  See
21568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21569         * NEWS: Document this.
21570
21571 2011-01-19  Eric Blake  <eblake@redhat.com>
21572
21573         c-stack: assume stack overflow if SA_SIGINFO unsupported
21574         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21575         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21576         sigaction will work.
21577         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21578         behavior match Linux.
21579         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21580
21581         stdbool-tests: accomodate Haiku
21582         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21583
21584         binary-io: fix O_TEXT on Haiku
21585         * modules/binary-io (Depends-on): Add fcntl-h.
21586         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21587         than blindly undefining O_TEXT.
21588         Reported by Scott McCreary.
21589
21590 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21591
21592         include_next: do not check for standard headers like stddef.h
21593
21594         I found this problem when modifying Emacs to use gnulib.
21595         I noticed that it added HAVE_STDDEF_H to config.h, even though
21596         gnulib always assumes <stddef.h> exists as per README and this
21597         symbol is unnecessary.
21598         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21599         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21600         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21601         faster for headers like stddef.h that are known to exist.
21602         (gl_CHECK_NEXT_HEADERS): Use it.
21603         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21604         rather than gl_CHECK_NEXT_HEADERS.
21605         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21606         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21607
21608 2011-01-18  Eric Blake  <eblake@redhat.com>
21609
21610         ansi-c++-opt: skip C++ dependency style if C++ is unused
21611         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21612         tests when we know C++ compilation is not desired.
21613         Reported by Scott McCreary.
21614
21615 2011-01-18  Bruno Haible  <bruno@clisp.org>
21616
21617         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21618         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21619         (main): Perform test also when getrlimit and setrlimit don't exist or
21620         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21621         limiting the address space size using setrlimit, compare the address
21622         space size before and after the the test.
21623         * tests/test-dprintf-posix2.c: Likewise.
21624         * tests/test-fprintf-posix3.sh: Update skip messages.
21625         * tests/test-dprintf-posix2.sh: Likewise.
21626         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21627         * modules/dprintf-posix-tests (Depends-on): Likewise.
21628         Reported by Bruce Korb <bkorb@gnu.org> and
21629         Gary V. Vaughan <gary@gnu.org>.
21630
21631 2011-01-18  Bruno Haible  <bruno@clisp.org>
21632
21633         get-rusage-as: Improvement for Cygwin.
21634         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21635         areas that are merely reserved.
21636
21637 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21638
21639         strftime: remove dependencies on multibyte modules
21640
21641         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21642         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21643         only if __osf__ is defined, and I suspect OSF doesn't need these
21644         other modules.  If my guess is wrong, we'll need to come up with a
21645         variant of strftime that doesn't need the multibyte modules.
21646
21647         I discovered this problem when attempting modify Emacs to use the
21648         strftime module.  With the previous gnulib, this caused Emacs to
21649         need 31 new files, ranging from lib/config.charset to
21650         m4/wint_t.m4.  This was overkill and I expect would be offputting
21651         to the Emacs maintainers.  After this change, only 6 new files are
21652         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21653         stdbool.m4, and tm_gmtoff.m4.
21654
21655         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21656         Suggested by Bruno Haible in
21657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21659         and do not check for wchar.h.
21660         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21661         (Depends-on): Remove mbrlen, mbsinit, wchar.
21662
21663 2011-01-18  Bruno Haible  <bruno@clisp.org>
21664
21665         Tests for module 'get-rusage-as'.
21666         * modules/get-rusage-as-tests: New file.
21667         * tests/test-get-rusage-as.c: New file.
21668
21669         New module 'get-rusage-as'.
21670         * modules/get-rusage-as: New file.
21671         * lib/resource-ext.h: New file.
21672         * lib/get-rusage-as.c: New file.
21673
21674 2011-01-17  Eric Blake  <eblake@redhat.com>
21675
21676         sigaction: relax license from LGPLv3+ to LGPLv2+
21677         * modules/sigaction (License): Relax to LGPLv2+.
21678
21679 2011-01-14  Bruno Haible  <bruno@clisp.org>
21680
21681         filemode: Make function declarations usable in C++ mode.
21682         * lib/filemode.h: Enclose function declarations in extern "C" block.
21683         Reported by John W. Eaton <jwe@gnu.org>.
21684
21685 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21686
21687         save-cwd: no longer include "xgetcwd.h"
21688         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21689         This avoids a compilation failure in projects that use save-cwd
21690         without also using the xgetcwd module.
21691
21692 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21693
21694         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21695         This is so that a program like Emacs, which needs only dtoastr,
21696         does not have to bother with distributing and compiling ftoastr
21697         and ldtoastr.
21698         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21699         * modules/dtoastr, modules/ldtoastr: New files.
21700         * modules/ftoastr: Now works just for 'float'.
21701         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21702         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21703         dtoastr.c, ldtoastr.c.
21704
21705 2011-01-11  Jim Meyering  <meyering@redhat.com>
21706
21707         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21708         There is no need to work around the lack of the fchdir function,
21709         since gnulib can now provide a replacement when required.
21710         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21711         * modules/save-cwd (Depends-on): Add fchdir.
21712
21713 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21714
21715         openat, save-cwd: avoid xmalloc
21716
21717         This removes a direct (but undocumented) dependency of openat on
21718         xalloc, along with an indirect dependency via save-cwd.  It also
21719         removes a dependency of save-cwd on xgetcwd, and thereby
21720         indirectly on xalloc.  This change causes the openat substitute
21721         to fall back on save_cwd when memory is tight, and for save_cwd to
21722         fail instead of dying when memory is tight, but that's good enough.
21723         Problem and initial idea for fix reported by Bastien Roucaries in
21724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21725
21726         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21727         xalloc.h (for xmalloc).
21728         (openat_proc_name): Use malloc, not xmalloc.
21729         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21730         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21731
21732         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21733         This avoids heap allocation for file names whose lengths are in
21734         the range 512..1023, with the upper bound increasing to at most
21735         4031 depending on the platform's PATH_MAX.  (We do not want
21736         pathmax.h here as it might supply a non-constant PATH_MAX.)
21737         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21738         Perhaps they should be moved to malloca.h?
21739         (OPENAT_BUFFER_SIZE): Use them.
21740
21741 2011-01-10  Bruno Haible  <bruno@clisp.org>
21742
21743         doc: Update users.txt.
21744         * users.txt: Add recutils.
21745
21746 2011-01-09  Karl Berry  <karl@gnu.org>
21747
21748         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21749
21750         * doc/configmake.texi: New file.
21751         * doc/gnulib.texi: Include it.
21752         * modules/configmake: Move documentation from here.
21753
21754 2011-01-09  Bruno Haible  <bruno@clisp.org>
21755
21756         Update to Unicode 6.0.0.
21757         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21758         (get_lbp): Update for Unicode 6.0.0.
21759         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21760         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21761         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21762         U+11001, U+11038..U+11046. Remove U+06DE.
21763         (uc_width): Fix bounds of planes.
21764         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21765         lib/uniwidth/width.c.
21766         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21767         trailing whitespace removed.
21768         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21769         without comments, but with the original copyright notice.
21770         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21771         * lib/unicase/ignorable.h: Likewise.
21772         * lib/unicase/tocasefold.h: Likewise.
21773         * lib/unicase/tolower.h: Likewise.
21774         * lib/unicase/totitle.h: Likewise.
21775         * lib/unicase/toupper.h: Likewise.
21776         * lib/unictype/bidi_of.h: Likewise.
21777         * lib/unictype/blocks.h: Likewise.
21778         * lib/unictype/categ_C.h: Likewise.
21779         * lib/unictype/categ_Cn.h: Likewise.
21780         * lib/unictype/categ_L.h: Likewise.
21781         * lib/unictype/categ_Ll.h: Likewise.
21782         * lib/unictype/categ_Lm.h: Likewise.
21783         * lib/unictype/categ_Lo.h: Likewise.
21784         * lib/unictype/categ_Lu.h: Likewise.
21785         * lib/unictype/categ_M.h: Likewise.
21786         * lib/unictype/categ_Mc.h: Likewise.
21787         * lib/unictype/categ_Me.h: Likewise.
21788         * lib/unictype/categ_Mn.h: Likewise.
21789         * lib/unictype/categ_N.h: Likewise.
21790         * lib/unictype/categ_Nd.h: Likewise.
21791         * lib/unictype/categ_No.h: Likewise.
21792         * lib/unictype/categ_P.h: Likewise.
21793         * lib/unictype/categ_Po.h: Likewise.
21794         * lib/unictype/categ_S.h: Likewise.
21795         * lib/unictype/categ_Sc.h: Likewise.
21796         * lib/unictype/categ_Sk.h: Likewise.
21797         * lib/unictype/categ_Sm.h: Likewise.
21798         * lib/unictype/categ_So.h: Likewise.
21799         * lib/unictype/categ_of.h: Likewise.
21800         * lib/unictype/combining.h: Likewise.
21801         * lib/unictype/ctype_alnum.h: Likewise.
21802         * lib/unictype/ctype_alpha.h: Likewise.
21803         * lib/unictype/ctype_graph.h: Likewise.
21804         * lib/unictype/ctype_lower.h: Likewise.
21805         * lib/unictype/ctype_print.h: Likewise.
21806         * lib/unictype/ctype_punct.h: Likewise.
21807         * lib/unictype/ctype_upper.h: Likewise.
21808         * lib/unictype/decdigit.h: Likewise.
21809         * lib/unictype/digit.h: Likewise.
21810         * lib/unictype/numeric.h: Likewise.
21811         * lib/unictype/pr_alphabetic.h: Likewise.
21812         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21813         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21814         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21815         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21816         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21817         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21818         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21819         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21820         * lib/unictype/pr_case_ignorable.h: Likewise.
21821         * lib/unictype/pr_cased.h: Likewise.
21822         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21823         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21824         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21825         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21826         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21827         * lib/unictype/pr_combining.h: Likewise.
21828         * lib/unictype/pr_composite.h: Likewise.
21829         * lib/unictype/pr_currency_symbol.h: Likewise.
21830         * lib/unictype/pr_decimal_digit.h: Likewise.
21831         * lib/unictype/pr_deprecated.h: Likewise.
21832         * lib/unictype/pr_format_control.h: Likewise.
21833         * lib/unictype/pr_grapheme_base.h: Likewise.
21834         * lib/unictype/pr_grapheme_extend.h: Likewise.
21835         * lib/unictype/pr_grapheme_link.h: Likewise.
21836         * lib/unictype/pr_id_continue.h: Likewise.
21837         * lib/unictype/pr_id_start.h: Likewise.
21838         * lib/unictype/pr_ideographic.h: Likewise.
21839         * lib/unictype/pr_lowercase.h: Likewise.
21840         * lib/unictype/pr_math.h: Likewise.
21841         * lib/unictype/pr_numeric.h: Likewise.
21842         * lib/unictype/pr_other_alphabetic.h: Likewise.
21843         * lib/unictype/pr_other_id_continue.h: Likewise.
21844         * lib/unictype/pr_other_math.h: Likewise.
21845         * lib/unictype/pr_punctuation.h: Likewise.
21846         * lib/unictype/pr_sentence_terminal.h: Likewise.
21847         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21848         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21849         * lib/unictype/pr_unified_ideograph.h: Likewise.
21850         * lib/unictype/pr_uppercase.h: Likewise.
21851         * lib/unictype/pr_xid_continue.h: Likewise.
21852         * lib/unictype/pr_xid_start.h: Likewise.
21853         * lib/unictype/scripts.h: Likewise.
21854         * lib/unictype/scripts_byname.gperf: Likewise.
21855         * lib/unictype/sy_java_ident.h: Likewise.
21856         * lib/unigbrk/gbrkprop.h: Likewise.
21857         * lib/unilbrk/lbrkprop1.h: Likewise.
21858         * lib/unilbrk/lbrkprop2.h: Likewise.
21859         * lib/uninorm/decomposition-table2.h: Likewise.
21860         * lib/uniwbrk/wbrkprop.h: Likewise.
21861         * tests/unicase/test-cased.c: Likewise.
21862         * tests/unicase/test-ignorable.c: Likewise.
21863         * tests/unicase/test-uc_tolower.c: Likewise.
21864         * tests/unicase/test-uc_totitle.c: Likewise.
21865         * tests/unicase/test-uc_toupper.c: Likewise.
21866         * tests/unictype/test-categ_C.c: Likewise.
21867         * tests/unictype/test-categ_Cn.c: Likewise.
21868         * tests/unictype/test-categ_L.c: Likewise.
21869         * tests/unictype/test-categ_Ll.c: Likewise.
21870         * tests/unictype/test-categ_Lm.c: Likewise.
21871         * tests/unictype/test-categ_Lo.c: Likewise.
21872         * tests/unictype/test-categ_Lu.c: Likewise.
21873         * tests/unictype/test-categ_M.c: Likewise.
21874         * tests/unictype/test-categ_Mc.c: Likewise.
21875         * tests/unictype/test-categ_Me.c: Likewise.
21876         * tests/unictype/test-categ_Mn.c: Likewise.
21877         * tests/unictype/test-categ_N.c: Likewise.
21878         * tests/unictype/test-categ_Nd.c: Likewise.
21879         * tests/unictype/test-categ_No.c: Likewise.
21880         * tests/unictype/test-categ_P.c: Likewise.
21881         * tests/unictype/test-categ_Po.c: Likewise.
21882         * tests/unictype/test-categ_S.c: Likewise.
21883         * tests/unictype/test-categ_Sc.c: Likewise.
21884         * tests/unictype/test-categ_Sk.c: Likewise.
21885         * tests/unictype/test-categ_Sm.c: Likewise.
21886         * tests/unictype/test-categ_So.c: Likewise.
21887         * tests/unictype/test-ctype_alnum.c: Likewise.
21888         * tests/unictype/test-ctype_alpha.c: Likewise.
21889         * tests/unictype/test-ctype_graph.c: Likewise.
21890         * tests/unictype/test-ctype_lower.c: Likewise.
21891         * tests/unictype/test-ctype_print.c: Likewise.
21892         * tests/unictype/test-ctype_punct.c: Likewise.
21893         * tests/unictype/test-ctype_upper.c: Likewise.
21894         * tests/unictype/test-decdigit.h: Likewise.
21895         * tests/unictype/test-digit.h: Likewise.
21896         * tests/unictype/test-numeric.h: Likewise.
21897         * tests/unictype/test-pr_alphabetic.c: Likewise.
21898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21899         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21900         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21902         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21903         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21905         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21906         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21907         * tests/unictype/test-pr_cased.c: Likewise.
21908         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21909         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21910         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21911         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21912         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21913         * tests/unictype/test-pr_combining.c: Likewise.
21914         * tests/unictype/test-pr_composite.c: Likewise.
21915         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21916         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21917         * tests/unictype/test-pr_deprecated.c: Likewise.
21918         * tests/unictype/test-pr_format_control.c: Likewise.
21919         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21920         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21921         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21922         * tests/unictype/test-pr_id_continue.c: Likewise.
21923         * tests/unictype/test-pr_id_start.c: Likewise.
21924         * tests/unictype/test-pr_ideographic.c: Likewise.
21925         * tests/unictype/test-pr_lowercase.c: Likewise.
21926         * tests/unictype/test-pr_math.c: Likewise.
21927         * tests/unictype/test-pr_numeric.c: Likewise.
21928         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21929         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21930         * tests/unictype/test-pr_other_math.c: Likewise.
21931         * tests/unictype/test-pr_punctuation.c: Likewise.
21932         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21933         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21934         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21935         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21936         * tests/unictype/test-pr_uppercase.c: Likewise.
21937         * tests/unictype/test-pr_xid_continue.c: Likewise.
21938         * tests/unictype/test-pr_xid_start.c: Likewise.
21939         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21940         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21941         changes.
21942         * lib/unictype/categ_Cc.h: Likewise.
21943         * lib/unictype/categ_Cf.h: Likewise.
21944         * lib/unictype/categ_Co.h: Likewise.
21945         * lib/unictype/categ_Cs.h: Likewise.
21946         * lib/unictype/categ_Lt.h: Likewise.
21947         * lib/unictype/categ_Nl.h: Likewise.
21948         * lib/unictype/categ_Pc.h: Likewise.
21949         * lib/unictype/categ_Pd.h: Likewise.
21950         * lib/unictype/categ_Pe.h: Likewise.
21951         * lib/unictype/categ_Pf.h: Likewise.
21952         * lib/unictype/categ_Pi.h: Likewise.
21953         * lib/unictype/categ_Ps.h: Likewise.
21954         * lib/unictype/categ_Z.h: Likewise.
21955         * lib/unictype/categ_Zl.h: Likewise.
21956         * lib/unictype/categ_Zp.h: Likewise.
21957         * lib/unictype/categ_Zs.h: Likewise.
21958         * lib/unictype/ctype_blank.h: Likewise.
21959         * lib/unictype/ctype_cntrl.h: Likewise.
21960         * lib/unictype/ctype_digit.h: Likewise.
21961         * lib/unictype/ctype_space.h: Likewise.
21962         * lib/unictype/ctype_xdigit.h: Likewise.
21963         * lib/unictype/mirror.h: Likewise.
21964         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21965         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21966         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21967         * lib/unictype/pr_bidi_control.h: Likewise.
21968         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21969         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21970         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21971         * lib/unictype/pr_bidi_pdf.h: Likewise.
21972         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21973         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21974         * lib/unictype/pr_dash.h: Likewise.
21975         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21976         * lib/unictype/pr_diacritic.h: Likewise.
21977         * lib/unictype/pr_extender.h: Likewise.
21978         * lib/unictype/pr_hex_digit.h: Likewise.
21979         * lib/unictype/pr_hyphen.h: Likewise.
21980         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21981         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21982         * lib/unictype/pr_ignorable_control.h: Likewise.
21983         * lib/unictype/pr_iso_control.h: Likewise.
21984         * lib/unictype/pr_join_control.h: Likewise.
21985         * lib/unictype/pr_left_of_pair.h: Likewise.
21986         * lib/unictype/pr_line_separator.h: Likewise.
21987         * lib/unictype/pr_logical_order_exception.h: Likewise.
21988         * lib/unictype/pr_non_break.h: Likewise.
21989         * lib/unictype/pr_not_a_character.h: Likewise.
21990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21992         * lib/unictype/pr_other_id_start.h: Likewise.
21993         * lib/unictype/pr_other_lowercase.h: Likewise.
21994         * lib/unictype/pr_other_uppercase.h: Likewise.
21995         * lib/unictype/pr_paired_punctuation.h: Likewise.
21996         * lib/unictype/pr_paragraph_separator.h: Likewise.
21997         * lib/unictype/pr_pattern_syntax.h: Likewise.
21998         * lib/unictype/pr_pattern_white_space.h: Likewise.
21999         * lib/unictype/pr_private_use.h: Likewise.
22000         * lib/unictype/pr_quotation_mark.h: Likewise.
22001         * lib/unictype/pr_radical.h: Likewise.
22002         * lib/unictype/pr_soft_dotted.h: Likewise.
22003         * lib/unictype/pr_space.h: Likewise.
22004         * lib/unictype/pr_titlecase.h: Likewise.
22005         * lib/unictype/pr_variation_selector.h: Likewise.
22006         * lib/unictype/pr_white_space.h: Likewise.
22007         * lib/unictype/pr_zero_width.h: Likewise.
22008         * lib/unictype/sy_c_ident.h: Likewise.
22009         * lib/unictype/sy_c_whitespace.h: Likewise.
22010         * lib/unictype/sy_java_whitespace.h: Likewise.
22011         * lib/uninorm/composition-table.gperf: Likewise.
22012         * lib/uninorm/decomposition-table1.h: Likewise.
22013         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22014         LB8.
22015         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22016         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22017         * modules/unictype/*: Bump version number of expected libunistring
22018         version.
22019
22020 2011-01-09  Bruno Haible  <bruno@clisp.org>
22021
22022         Update to Unicode 5.2.0.
22023         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22024         trailing whitespace removed.
22025
22026 2011-01-09  Bruno Haible  <bruno@clisp.org>
22027
22028         New Unicode character properties, from Unicode 5.2.0.
22029         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22030         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22031         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22032         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22033         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22034         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22035         uc_is_property_cased, uc_is_property_case_ignorable,
22036         uc_is_property_changes_when_lowercased,
22037         uc_is_property_changes_when_uppercased,
22038         uc_is_property_changes_when_titlecased,
22039         uc_is_property_changes_when_casefolded,
22040         uc_is_property_changes_when_casemapped): New declarations.
22041         * lib/unictype/pr_byname.gperf: Add the new properties.
22042         * modules/unictype/property-byname (Depends-on): Depend on the new
22043         properties modules.
22044         * modules/unictype/property-all (Depends-on): Likewise.
22045         * MODULES.html.sh (Unicode string functions): Add
22046         unictype/property-case-ignorable, unictype/property-cased,
22047         unictype/property-changes-when-casefolded,
22048         unictype/property-changes-when-casemapped,
22049         unictype/property-changes-when-lowercased,
22050         unictype/property-changes-when-titlecased,
22051         unictype/property-changes-when-uppercased.
22052
22053         New module 'unictype/property-changes-when-casemapped'.
22054         * modules/unictype/property-changes-when-casemapped: New file.
22055         * lib/unictype/pr_changes_when_casemapped.c: New file.
22056         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22057         generated by gen-uni-tables.
22058         * modules/unictype/property-changes-when-casemapped-tests: New file.
22059         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22060         automatically generated by gen-uni-tables.
22061
22062         New module 'unictype/property-changes-when-casefolded'.
22063         * modules/unictype/property-changes-when-casefolded: New file.
22064         * lib/unictype/pr_changes_when_casefolded.c: New file.
22065         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22066         generated by gen-uni-tables.
22067         * modules/unictype/property-changes-when-casefolded-tests: New file.
22068         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22069         automatically generated by gen-uni-tables.
22070
22071         New module 'unictype/property-changes-when-titlecased'.
22072         * modules/unictype/property-changes-when-titlecased: New file.
22073         * lib/unictype/pr_changes_when_titlecased.c: New file.
22074         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22075         generated by gen-uni-tables.
22076         * modules/unictype/property-changes-when-titlecased-tests: New file.
22077         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22078         automatically generated by gen-uni-tables.
22079
22080         New module 'unictype/property-changes-when-uppercased'.
22081         * modules/unictype/property-changes-when-uppercased: New file.
22082         * lib/unictype/pr_changes_when_uppercased.c: New file.
22083         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22084         generated by gen-uni-tables.
22085         * modules/unictype/property-changes-when-uppercased-tests: New file.
22086         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22087         automatically generated by gen-uni-tables.
22088
22089         New module 'unictype/property-changes-when-lowercased'.
22090         * modules/unictype/property-changes-when-lowercased: New file.
22091         * lib/unictype/pr_changes_when_lowercased.c: New file.
22092         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22093         generated by gen-uni-tables.
22094         * modules/unictype/property-changes-when-lowercased-tests: New file.
22095         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22096         automatically generated by gen-uni-tables.
22097
22098         New module 'unictype/property-case-ignorable'.
22099         * modules/unictype/property-case-ignorable: New file.
22100         * lib/unictype/pr_case_ignorable.c: New file.
22101         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22102         by gen-uni-tables.
22103         * modules/unictype/property-case-ignorable-tests: New file.
22104         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22105         generated by gen-uni-tables.
22106
22107         New module 'unictype/property-cased'.
22108         * modules/unictype/property-cased: New file.
22109         * lib/unictype/pr_cased.c: New file.
22110         * lib/unictype/pr_cased.h: New file, automatically generated by
22111         gen-uni-tables.
22112         * modules/unictype/property-cased-tests: New file.
22113         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22114         gen-uni-tables.
22115
22116 2011-01-09  Bruno Haible  <bruno@clisp.org>
22117
22118         Update to Unicode 5.2.0.
22119         * lib/gen-uni-tables.c (output_predicate, output_category,
22120         output_combclass, output_bidi_category, output_decimal_digit_test,
22121         output_decimal_digit, output_digit_test, output_digit,
22122         output_numeric_test, output_numeric, output_mirror, output_scripts,
22123         output_scripts_byname, output_blocks, output_ident_category): Fix
22124         comment header.
22125         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22126         get_wbp.
22127         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22128         items.
22129         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22130         Changes_When_Lowercased, Changes_When_Uppercased,
22131         Changes_When_Titlecased, Changes_When_Casefolded,
22132         Changes_When_Casemapped.
22133         (is_property_alphabetic, is_property_default_ignorable_code_point):
22134         Update for Unicode 5.2.0.
22135         (is_property_cased, is_property_case_ignorable,
22136         is_property_changes_when_lowercased,
22137         is_property_changes_when_uppercased,
22138         is_property_changes_when_titlecased,
22139         is_property_changes_when_casefolded,
22140         is_property_changes_when_casemapped): New functions.
22141         (output_properties): Output also the properties cased, case_ignorable,
22142         changes_when_lowercased, changes_when_uppercased,
22143         changes_when_titlecased, changes_when_casefolded,
22144         changes_when_casemapped.
22145         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22146         Unicode TR#11 revision 17 -> 19.
22147         (LBP_CP): New enumeration value.
22148         (LBP_*): Adjust values accordingly.
22149         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22150         TR#14 revision 22 -> 24.
22151         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22152         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22153         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22154         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22155         is_WBP_MIDLETTER.
22156         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22157         the code1 and code2 of each composition rule.
22158         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22159         * lib/unicase/ignorable.h: Likewise.
22160         * lib/unicase/tocasefold.h: Likewise.
22161         * lib/unicase/tolower.h: Likewise.
22162         * lib/unicase/totitle.h: Likewise.
22163         * lib/unicase/toupper.h: Likewise.
22164         * lib/unictype/bidi_of.h: Likewise.
22165         * lib/unictype/blocks.h: Likewise.
22166         * lib/unictype/categ_C.h: Likewise.
22167         * lib/unictype/categ_Cf.h: Likewise.
22168         * lib/unictype/categ_Cn.h: Likewise.
22169         * lib/unictype/categ_L.h: Likewise.
22170         * lib/unictype/categ_Ll.h: Likewise.
22171         * lib/unictype/categ_Lm.h: Likewise.
22172         * lib/unictype/categ_Lo.h: Likewise.
22173         * lib/unictype/categ_Lu.h: Likewise.
22174         * lib/unictype/categ_M.h: Likewise.
22175         * lib/unictype/categ_Mc.h: Likewise.
22176         * lib/unictype/categ_Mn.h: Likewise.
22177         * lib/unictype/categ_N.h: Likewise.
22178         * lib/unictype/categ_Nd.h: Likewise.
22179         * lib/unictype/categ_Nl.h: Likewise.
22180         * lib/unictype/categ_No.h: Likewise.
22181         * lib/unictype/categ_P.h: Likewise.
22182         * lib/unictype/categ_Pd.h: Likewise.
22183         * lib/unictype/categ_Po.h: Likewise.
22184         * lib/unictype/categ_S.h: Likewise.
22185         * lib/unictype/categ_Sc.h: Likewise.
22186         * lib/unictype/categ_So.h: Likewise.
22187         * lib/unictype/categ_of.h: Likewise.
22188         * lib/unictype/combining.h: Likewise.
22189         * lib/unictype/ctype_alnum.h: Likewise.
22190         * lib/unictype/ctype_alpha.h: Likewise.
22191         * lib/unictype/ctype_graph.h: Likewise.
22192         * lib/unictype/ctype_lower.h: Likewise.
22193         * lib/unictype/ctype_print.h: Likewise.
22194         * lib/unictype/ctype_punct.h: Likewise.
22195         * lib/unictype/ctype_upper.h: Likewise.
22196         * lib/unictype/decdigit.h: Likewise.
22197         * lib/unictype/digit.h: Likewise.
22198         * lib/unictype/numeric.h: Likewise.
22199         * lib/unictype/pr_alphabetic.h: Likewise.
22200         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22201         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22202         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22203         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22204         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22205         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22206         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22207         * lib/unictype/pr_combining.h: Likewise.
22208         * lib/unictype/pr_composite.h: Likewise.
22209         * lib/unictype/pr_currency_symbol.h: Likewise.
22210         * lib/unictype/pr_dash.h: Likewise.
22211         * lib/unictype/pr_decimal_digit.h: Likewise.
22212         * lib/unictype/pr_deprecated.h: Likewise.
22213         * lib/unictype/pr_diacritic.h: Likewise.
22214         * lib/unictype/pr_extender.h: Likewise.
22215         * lib/unictype/pr_grapheme_base.h: Likewise.
22216         * lib/unictype/pr_grapheme_extend.h: Likewise.
22217         * lib/unictype/pr_grapheme_link.h: Likewise.
22218         * lib/unictype/pr_id_continue.h: Likewise.
22219         * lib/unictype/pr_id_start.h: Likewise.
22220         * lib/unictype/pr_ideographic.h: Likewise.
22221         * lib/unictype/pr_ignorable_control.h: Likewise.
22222         * lib/unictype/pr_logical_order_exception.h: Likewise.
22223         * lib/unictype/pr_lowercase.h: Likewise.
22224         * lib/unictype/pr_numeric.h: Likewise.
22225         * lib/unictype/pr_other_alphabetic.h: Likewise.
22226         * lib/unictype/pr_punctuation.h: Likewise.
22227         * lib/unictype/pr_sentence_terminal.h: Likewise.
22228         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22229         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22230         * lib/unictype/pr_unified_ideograph.h: Likewise.
22231         * lib/unictype/pr_uppercase.h: Likewise.
22232         * lib/unictype/pr_xid_continue.h: Likewise.
22233         * lib/unictype/pr_xid_start.h: Likewise.
22234         * lib/unictype/pr_zero_width.h: Likewise.
22235         * lib/unictype/scripts.h: Likewise.
22236         * lib/unictype/scripts_byname.gperf: Likewise.
22237         * lib/unictype/sy_java_ident.h: Likewise.
22238         * lib/unigbrk/gbrkprop.h: Likewise.
22239         * lib/unilbrk/lbrkprop1.h: Likewise.
22240         * lib/unilbrk/lbrkprop2.h: Likewise.
22241         * lib/unilbrk/lbrktables.h: Likewise.
22242         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22243         LBP_CP. Implement rule LB30.
22244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22245         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22246         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22247         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22248         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22249         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22250         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22251         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22252         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22253         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22254         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22255         bits instead of 16 bits in the code1 and code2 of each composition
22256         rule.
22257         (uc_composition): Update for Unicode 5.2.0.
22258         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22259         * lib/uninorm/decomposition-table2.h: Likewise.
22260         * lib/uniwbrk/wbrkprop.h: Likewise.
22261         * tests/unicase/test-cased.c: Likewise.
22262         * tests/unicase/test-ignorable.c: Likewise.
22263         * tests/unicase/test-uc_tolower.c: Likewise.
22264         * tests/unicase/test-uc_totitle.c: Likewise.
22265         * tests/unicase/test-uc_toupper.c: Likewise.
22266         * tests/unictype/test-categ_C.c: Likewise.
22267         * tests/unictype/test-categ_Cf.c: Likewise.
22268         * tests/unictype/test-categ_Cn.c: Likewise.
22269         * tests/unictype/test-categ_L.c: Likewise.
22270         * tests/unictype/test-categ_Ll.c: Likewise.
22271         * tests/unictype/test-categ_Lm.c: Likewise.
22272         * tests/unictype/test-categ_Lo.c: Likewise.
22273         * tests/unictype/test-categ_Lu.c: Likewise.
22274         * tests/unictype/test-categ_M.c: Likewise.
22275         * tests/unictype/test-categ_Mc.c: Likewise.
22276         * tests/unictype/test-categ_Mn.c: Likewise.
22277         * tests/unictype/test-categ_N.c: Likewise.
22278         * tests/unictype/test-categ_Nd.c: Likewise.
22279         * tests/unictype/test-categ_Nl.c: Likewise.
22280         * tests/unictype/test-categ_No.c: Likewise.
22281         * tests/unictype/test-categ_P.c: Likewise.
22282         * tests/unictype/test-categ_Pd.c: Likewise.
22283         * tests/unictype/test-categ_Po.c: Likewise.
22284         * tests/unictype/test-categ_S.c: Likewise.
22285         * tests/unictype/test-categ_Sc.c: Likewise.
22286         * tests/unictype/test-categ_So.c: Likewise.
22287         * tests/unictype/test-ctype_alnum.c: Likewise.
22288         * tests/unictype/test-ctype_alpha.c: Likewise.
22289         * tests/unictype/test-ctype_graph.c: Likewise.
22290         * tests/unictype/test-ctype_lower.c: Likewise.
22291         * tests/unictype/test-ctype_print.c: Likewise.
22292         * tests/unictype/test-ctype_punct.c: Likewise.
22293         * tests/unictype/test-ctype_upper.c: Likewise.
22294         * tests/unictype/test-decdigit.h: Likewise.
22295         * tests/unictype/test-digit.h: Likewise.
22296         * tests/unictype/test-numeric.h: Likewise.
22297         * tests/unictype/test-pr_alphabetic.c: Likewise.
22298         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22299         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22300         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22301         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22302         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22303         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22304         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22305         * tests/unictype/test-pr_combining.c: Likewise.
22306         * tests/unictype/test-pr_composite.c: Likewise.
22307         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22308         * tests/unictype/test-pr_dash.c: Likewise.
22309         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22310         * tests/unictype/test-pr_deprecated.c: Likewise.
22311         * tests/unictype/test-pr_diacritic.c: Likewise.
22312         * tests/unictype/test-pr_extender.c: Likewise.
22313         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22314         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22315         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22316         * tests/unictype/test-pr_id_continue.c: Likewise.
22317         * tests/unictype/test-pr_id_start.c: Likewise.
22318         * tests/unictype/test-pr_ideographic.c: Likewise.
22319         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22320         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22321         * tests/unictype/test-pr_lowercase.c: Likewise.
22322         * tests/unictype/test-pr_numeric.c: Likewise.
22323         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22324         * tests/unictype/test-pr_punctuation.c: Likewise.
22325         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22326         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22327         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22328         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22329         * tests/unictype/test-pr_uppercase.c: Likewise.
22330         * tests/unictype/test-pr_xid_continue.c: Likewise.
22331         * tests/unictype/test-pr_xid_start.c: Likewise.
22332         * tests/unictype/test-pr_zero_width.c: Likewise.
22333         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22334         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22335         changed behaviour: line breaking is now disallowed between a letter
22336         or '=' and '('.
22337         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22338         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22339         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22340         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22341         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22342         lib/uniwidth/width.c.
22343         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22344         without comments, but with the original copyright notice.
22345         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22346         changes.
22347         * lib/unictype/categ_Cc.h: Likewise.
22348         * lib/unictype/categ_Co.h: Likewise.
22349         * lib/unictype/categ_Cs.h: Likewise.
22350         * lib/unictype/categ_Lt.h: Likewise.
22351         * lib/unictype/categ_Me.h: Likewise.
22352         * lib/unictype/categ_Pc.h: Likewise.
22353         * lib/unictype/categ_Pe.h: Likewise.
22354         * lib/unictype/categ_Pf.h: Likewise.
22355         * lib/unictype/categ_Pi.h: Likewise.
22356         * lib/unictype/categ_Ps.h: Likewise.
22357         * lib/unictype/categ_Sk.h: Likewise.
22358         * lib/unictype/categ_Sm.h: Likewise.
22359         * lib/unictype/categ_Z.h: Likewise.
22360         * lib/unictype/categ_Zl.h: Likewise.
22361         * lib/unictype/categ_Zp.h: Likewise.
22362         * lib/unictype/categ_Zs.h: Likewise.
22363         * lib/unictype/ctype_blank.h: Likewise.
22364         * lib/unictype/ctype_cntrl.h: Likewise.
22365         * lib/unictype/ctype_digit.h: Likewise.
22366         * lib/unictype/ctype_space.h: Likewise.
22367         * lib/unictype/ctype_xdigit.h: Likewise.
22368         * lib/unictype/mirror.h: Likewise.
22369         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22370         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22371         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22372         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22373         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22374         * lib/unictype/pr_bidi_control.h: Likewise.
22375         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22376         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22377         * lib/unictype/pr_bidi_pdf.h: Likewise.
22378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22380         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22381         * lib/unictype/pr_format_control.h: Likewise.
22382         * lib/unictype/pr_hex_digit.h: Likewise.
22383         * lib/unictype/pr_hyphen.h: Likewise.
22384         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22385         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22386         * lib/unictype/pr_iso_control.h: Likewise.
22387         * lib/unictype/pr_join_control.h: Likewise.
22388         * lib/unictype/pr_left_of_pair.h: Likewise.
22389         * lib/unictype/pr_line_separator.h: Likewise.
22390         * lib/unictype/pr_math.h: Likewise.
22391         * lib/unictype/pr_non_break.h: Likewise.
22392         * lib/unictype/pr_not_a_character.h: Likewise.
22393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22395         * lib/unictype/pr_other_id_continue.h: Likewise.
22396         * lib/unictype/pr_other_id_start.h: Likewise.
22397         * lib/unictype/pr_other_lowercase.h: Likewise.
22398         * lib/unictype/pr_other_math.h: Likewise.
22399         * lib/unictype/pr_other_uppercase.h: Likewise.
22400         * lib/unictype/pr_paired_punctuation.h: Likewise.
22401         * lib/unictype/pr_paragraph_separator.h: Likewise.
22402         * lib/unictype/pr_pattern_syntax.h: Likewise.
22403         * lib/unictype/pr_pattern_white_space.h: Likewise.
22404         * lib/unictype/pr_private_use.h: Likewise.
22405         * lib/unictype/pr_quotation_mark.h: Likewise.
22406         * lib/unictype/pr_radical.h: Likewise.
22407         * lib/unictype/pr_soft_dotted.h: Likewise.
22408         * lib/unictype/pr_space.h: Likewise.
22409         * lib/unictype/pr_titlecase.h: Likewise.
22410         * lib/unictype/pr_variation_selector.h: Likewise.
22411         * lib/unictype/pr_white_space.h: Likewise.
22412         * lib/unictype/sy_c_ident.h: Likewise.
22413         * lib/unictype/sy_c_whitespace.h: Likewise.
22414         * lib/unictype/sy_java_whitespace.h: Likewise.
22415         * modules/uni*/*: Bump version number of expected libunistring version.
22416         Reported by Simon Josefsson.
22417
22418 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22419
22420         useless-if-before-free: fix typo in --help and make the internal,
22421         automatic version date update process work once again.
22422         --help output contained a NUL character instead of the
22423         backslash-zero that was intended.  Also, the "must lie within
22424         the first 8 lines" line is on line 9, and hence not getting
22425         automatically updated.
22426         * build-aux/useless-if-before-free: Fix the former by adding a
22427         backslash, and the latter by condensing the three lines of what-it-does
22428         to a single line, leaving one line of slack for the future.
22429
22430 2011-01-09  Bruno Haible  <bruno@clisp.org>
22431
22432         uniwidth/width: Fix width of U+1D173..U+1D17A.
22433         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22434         symbolic_width, output_width_property_test): New functions.
22435         (main): Invoke output_nonspacing_property, output_width_property_test.
22436         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22437         U+1D173..U+1D17A.
22438         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22439         1.
22440         * modules/uniwidth/*: Bump version number of expected libunistring
22441         version.
22442         * modules/unilbrk/*: Likewise.
22443
22444 2011-01-08  Bruno Haible  <bruno@clisp.org>
22445
22446         uninorm tests: Preserve copyright of Unicode data file.
22447         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22448         Mention modifications.
22449
22450 2011-01-08  Bruno Haible  <bruno@clisp.org>
22451
22452         gen-uni-tables: Prepare for Unicode 5.2.0.
22453         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22454         (debug_output_lbp, output_lbp): Update.
22455
22456 2011-01-08  Bruno Haible  <bruno@clisp.org>
22457
22458         unilbrk: Clarify gen-uni-tables.c code.
22459         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22460         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22461         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22462
22463 2011-01-07  Bruno Haible  <bruno@clisp.org>
22464
22465         strtod: Restore errno when successfully parsing Infinity or NaN.
22466         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22467         restore the original errno.
22468
22469 2011-01-07  Bruno Haible  <bruno@clisp.org>
22470
22471         remove test: Avoid failure on HP-UX 11.
22472         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22473
22474 2011-01-07  Bruno Haible  <bruno@clisp.org>
22475
22476         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22477         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22478         error code.
22479
22480 2011-01-07  Pádraig Brady <P@draigBrady.com>
22481
22482         ignore-value: fixup comments, and add Eric Blake
22483         as an author since he rewrote the macros.
22484         * lib/ignore-value.h (ignore_value):  State that
22485         we now support aggregates.  Also specify exactly
22486         when the GCC warn_unused_result feature was added.
22487
22488 2011-01-06  Eric Blake  <eblake@redhat.com>
22489
22490         ignore-value: support aggregate types
22491         * lib/ignore-value.h (ignore_value): Provide separate gcc
22492         definition.
22493         * modules/ignore-value-tests: New test module.
22494         * tests/test-ignore-value.c: New test.
22495
22496         maint.mk: improve sc_prohibit_strcmp regex
22497         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22498         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22499         definition of STRNEQ.
22500
22501         signal: work around Haiku issue with SIGBUS
22502         * lib/siglist.h: Add comment.
22503         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22504         strsignal's favoring of SIGSEGV.
22505         * tests/test-signal.c (main): Avoid test failure.
22506         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22507         Reported by Scott McCreary.
22508
22509         maint.mk: add pre-release check to ensure submodule commits are public
22510         * top/maint.mk (public-submodule-commit): New rule.
22511         (submodule-checks): New variable.
22512         (alpha beta stable): Depend on the variable.
22513
22514 2011-01-05  Pádraig Brady <P@draigBrady.com>
22515         and Jim Meyering  <meyering@redhat.com>
22516
22517         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22518         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22519         (ATTRIBUTE_DEPRECATED): Define.
22520         (_ignore_case): New function.
22521         (ignore_value): New macro, to replace the old function.
22522         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22523         * modules/ignore-value (Depends-on): Add stdint.
22524
22525 2011-01-04  Eric Blake  <eblake@redhat.com>
22526
22527         doc: regenerate INSTALL
22528         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22529         @firstparagraphindent support, now that autoconf dropped it.
22530         (INSTALL_PRELUDE): Reinstate old macro.
22531         * doc/install.texi: Resync from autoconf.
22532         * doc/INSTALL: Reflect recent autoconf update.
22533         * doc/INSTALL.ISO: Likewise.
22534         * doc/INSTALL.UTF-8: Likewise.
22535         Reported by Karl Berry.
22536
22537 2011-01-04  Bruce Korb  <address@hidden>
22538
22539         git-version-gen: avoid a sub-shell
22540         * build-aux/git-version-gen: Redirect stderr in `...` via
22541         "exec 2>...", rather than via an added sub-shell.
22542
22543 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22544
22545         git-version-gen: use (...) rather than sh -c '...'
22546         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22547         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22548
22549 2011-01-03  Jim Meyering  <meyering@redhat.com>
22550
22551         git-version-gen: convert leading TABs to spaces
22552         * build-aux/git-version-gen: Expand leading TABs.
22553
22554         git-version-gen: handle failed "git rev-list"
22555         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22556         from git and proceeding as if it had succeeded but printed no SHA1
22557         checksums, suppress the diagnostic and handle the failure.
22558         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22559
22560         git-version-gen: include command name in one more diagnostic
22561         * build-aux/git-version-gen: When the required .tarball-version file
22562         was missing or unreadable, you might see the diagnostic from "cat",
22563         but no trace of the name of the invoking script.  Now, you still see
22564         the diagnostic from cat, but also get one from "git-version-gen: ".
22565         Inspired by a patch from Bruce Korb.
22566
22567         update-copyright: adjust test to match changed code
22568         * tests/test-update-copyright.sh: Change test's expected output
22569         to match new actual output.
22570
22571 2011-01-02  Bruno Haible  <bruno@clisp.org>
22572
22573         getlogin_r: Avoid test failure on HP-UX 11.
22574         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22575         ERANGE when the second argument is zero.
22576         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22577         portability problem.
22578
22579 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22580
22581         * build-aux/update-copyright: doc Simon's changes
22582
22583 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22584
22585         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22586         environment variable.
22587
22588 2011-01-02  Bruno Haible  <bruno@clisp.org>
22589
22590         unigbrk: Avoid gcc warnings.
22591         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22592         unused variable.
22593         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22594         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22595         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22596         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22597         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22598         Change type of first argument to 'const char *'.
22599         (main): Remove unused variable.
22600         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22601         type of first argument to 'const char *'.
22602         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22603         Likewise.
22604         (main): Change type of variable 's'.
22605         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22606         to 'int'.
22607
22608 2011-01-02  Bruno Haible  <bruno@clisp.org>
22609
22610         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22611         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22612         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22613         bug.
22614         * lib/pwrite.c: Undo 2010-12-31 patch.
22615         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22616
22617 2011-01-02  Bruno Haible  <bruno@clisp.org>
22618
22619         pread: Fix test whether it works.
22620         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22621
22622 2011-01-02  Bruno Haible  <bruno@clisp.org>
22623
22624         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22625         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22626         ends in "6". Don't require a specific month name. Try also the locale
22627         names found on HP-UX 11 and Solaris 7.
22628
22629 2011-01-02  Bruno Haible  <bruno@clisp.org>
22630
22631         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22632         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22633         C linkage.
22634         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22635
22636 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22637
22638         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22639         for consistency, since the "cluster" term is not used elsewhere.
22640         * lib/unigbrk.in.h: Update name.
22641         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22642         * lib/unigbrk/u16-grapheme-next.c: Update name.
22643         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22644         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22645         * lib/unigbrk/u32-grapheme-next.c: Update name.
22646         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22647         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22648         * lib/unigbrk/u8-grapheme-next.c: Update name.
22649         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22650         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22651         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22652         Suggested by Bruno Haible.
22653
22654 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22655
22656         Remove module 'u8-grapheme-len' as too redundant with
22657         'u8-grapheme-next'.
22658         * modules/unigbrk/u8-grapheme-len: Delete file.
22659         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22660         * lib/unigbrk.in.h: Remove prototype for deleted function.
22661         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22662         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22663
22664         Remove module 'u16-grapheme-len' as too redundant with
22665         'u16-grapheme-next'.
22666         * modules/unigbrk/u16-grapheme-len: Delete file.
22667         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22668         * lib/unigbrk.in.h: Remove prototype for deleted function.
22669         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22670         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22671
22672         Remove module 'u32-grapheme-len' as too redundant with
22673         'u32-grapheme-next'.
22674         * modules/unigbrk/u32-grapheme-len: Delete file.
22675         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22676         * lib/unigbrk.in.h: Remove prototype for deleted function.
22677         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22678         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22679
22680         Suggested by Bruno Haible.
22681
22682 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22683
22684         * unigbrk.in.h: Fix typo: "ben" => "been".
22685         Reported by Bruno Haible.
22686
22687 2011-01-01  Jim Meyering  <meyering@redhat.com>
22688
22689         maint: update almost all copyright ranges to include 2011
22690         Run the new "make update-copyright" rule.
22691
22692 2011-01-01  Jim Meyering  <meyering@redhat.com>
22693
22694         maint: update-copyright: exempt doc/INSTALL*
22695         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22696         since they are generated.  Suggested by Bruno Haible.
22697
22698 2011-01-01  Jim Meyering  <meyering@redhat.com>
22699
22700         maint: refine the update-copyright rule
22701         * Makefile (update-copyright): Also exclude any file that includes
22702         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22703         code that merely generates the comment.
22704
22705 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22706
22707         New module 'u8-grapheme-len'.
22708         * modules/unigbrk/u8-grapheme-len: New file.
22709         * modules/unigbrk/u8-grapheme-len-tests: New file.
22710         * lib/unigbrk.in.h: Add prototype for new function.
22711         * lib/unigbrk/u8-grapheme-len.c: New file.
22712         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22713
22714         New module 'u16-grapheme-len'.
22715         * modules/unigbrk/u16-grapheme-len: New file.
22716         * modules/unigbrk/u16-grapheme-len-tests: New file.
22717         * lib/unigbrk.in.h: Add prototype for new function.
22718         * lib/unigbrk/u16-grapheme-len.c: New file.
22719         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22720
22721         New module 'u32-grapheme-len'.
22722         * modules/unigbrk/u32-grapheme-len: New file.
22723         * modules/unigbrk/u32-grapheme-len-tests: New file.
22724         * lib/unigbrk.in.h: Add prototype for new function.
22725         * lib/unigbrk/u32-grapheme-len.c: New file.
22726         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22727
22728         New module 'u8-grapheme-next'.
22729         * modules/unigbrk/u8-grapheme-next: New file.
22730         * modules/unigbrk/u8-grapheme-next-tests: New file.
22731         * lib/unigbrk.in.h: Add prototype for new function.
22732         * lib/unigbrk/u8-grapheme-next.c: New file.
22733         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22734
22735         New module 'u16-grapheme-next'.
22736         * modules/unigbrk/u16-grapheme-next: New file.
22737         * modules/unigbrk/u16-grapheme-next-tests: New file.
22738         * lib/unigbrk.in.h: Add prototype for new function.
22739         * lib/unigbrk/u16-grapheme-next.c: New file.
22740         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22741
22742         New module 'u32-grapheme-next'.
22743         * modules/unigbrk/u32-grapheme-next: New file.
22744         * modules/unigbrk/u32-grapheme-next-tests: New file.
22745         * lib/unigbrk.in.h: Add prototype for new function.
22746         * lib/unigbrk/u32-grapheme-next.c: New file.
22747         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22748
22749         New module 'u8-grapheme-prev'.
22750         * modules/unigbrk/u8-grapheme-prev: New file.
22751         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22752         * lib/unigbrk.in.h: Add prototype for new function.
22753         * lib/unigbrk/u8-grapheme-prev.c: New file.
22754         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22755
22756         New module 'u16-grapheme-prev'.
22757         * modules/unigbrk/u16-grapheme-prev: New file.
22758         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22759         * lib/unigbrk.in.h: Add prototype for new function.
22760         * lib/unigbrk/u16-grapheme-prev.c: New file.
22761         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22762
22763         New module 'u32-grapheme-prev'.
22764         * modules/unigbrk/u32-grapheme-prev: New file.
22765         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22766         * lib/unigbrk.in.h: Add prototype for new function.
22767         * lib/unigbrk/u32-grapheme-prev.c: New file.
22768         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22769
22770         New module 'u8-grapheme-breaks'.
22771         * modules/unigbrk/u8-grapheme-breaks: New file.
22772         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22773         * lib/unigbrk.in.h: Add prototype for new function.
22774         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22775         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22776
22777         New module 'u16-grapheme-breaks'.
22778         * modules/unigbrk/u16-grapheme-breaks: New file.
22779         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22780         * lib/unigbrk.in.h: Add prototype for new function.
22781         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22782         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22783
22784         New module 'u32-grapheme-breaks'.
22785         * modules/unigbrk/u32-grapheme-breaks: New file.
22786         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22787         * lib/unigbrk.in.h: Add prototype for new function.
22788         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22789         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22790
22791         New module 'ulc-grapheme-breaks'.
22792         * modules/unigbrk/ulc-grapheme-breaks: New file.
22793         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22794         * m4/locale-ar.m4: New file.
22795         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22796         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22797         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22798
22799 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22800
22801         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22802         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22803         modified how this file was generated before I initially submitted
22804         the module, but failed to regenerate it.  This meant that several
22805         of the level2 entries were wrong.
22806         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22807         Remove the division-by-2 that is folded into the table now that
22808         gbrkprop.h has been regenerated properly.  Now -1 entries are
22809         handled correctly.
22810
22811         New module 'unigbrk/uc-gbrk-prop-tests'.
22812         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22813         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22814         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22815         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22816
22817 2011-01-01  Bruno Haible  <bruno@clisp.org>
22818
22819         Avoid use of hexadecimal escapes.
22820         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22821         instead of hexadecimal escapes.
22822
22823 2011-01-01  Jim Meyering  <meyering@redhat.com>
22824
22825         maint: new rule to update copyright year ranges
22826         * Makefile (update-copyright): New rule.
22827
22828         maint: indent with TABs in Makefile
22829         * Makefile: Expand leading sequences of spaces to TABs
22830
22831         version-etc: update the copyright year it reports
22832         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22833
22834 2010-12-31  Bruno Haible  <bruno@clisp.org>
22835
22836         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22837         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22838         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22839         zero.
22840
22841 2010-12-31  Bruno Haible  <bruno@clisp.org>
22842
22843         pwrite: Work around HP-UX 11.11 bug.
22844         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22845         works and set REPLACE_PWRITE if not.
22846         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22847         function.
22848         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22849
22850 2010-12-31  Bruno Haible  <bruno@clisp.org>
22851
22852         pread: Work around HP-UX 11 bugs.
22853         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22854         and set REPLACE_PREAD if not.
22855         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22856
22857 2010-12-31  Eric Blake  <eblake@redhat.com>
22858
22859         nl_langinfo: fix YESEXPR on Irix 6.5
22860         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22861         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22862         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22863         it.
22864
22865 2010-12-31  Bruno Haible  <bruno@clisp.org>
22866
22867         iconv: Document HP-UX 11 bug.
22868         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22869
22870 2010-12-31  Bruno Haible  <bruno@clisp.org>
22871
22872         ldexpl: Fix link error on HP-UX 11.
22873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22874         LDEXPL_LIBM, using $ISNANL_LIBM.
22875
22876 2010-12-31  Eric Blake  <eblake@redhat.com>
22877
22878         ftello: avoid compilation failure with SunStudio c89
22879         * lib/ftello.c (ftello): Use lseek, not llseek.
22880
22881         tests: avoid failing coreutils tests on cygwin
22882         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22883         (create_exe_shims_): Return 0 when skipping.
22884
22885 2010-12-31  Bruno Haible  <bruno@clisp.org>
22886
22887         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22888         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22889
22890 2010-12-31  Bruno Haible  <bruno@clisp.org>
22891
22892         waitpid: Fix link error in C++ mode.
22893         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22894
22895 2010-12-31  Bruno Haible  <bruno@clisp.org>
22896
22897         isnan: Use GCC built-ins when possible.
22898         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22899         __builtin_isnan.
22900         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22901         (isnan): Define using GCC built-ins for GCC >= 4.0.
22902
22903 2010-12-31  Bruno Haible  <bruno@clisp.org>
22904
22905         isnand: Fix mistake.
22906         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22907         __builtin_isnand.
22908
22909 2010-12-31  Bruno Haible  <bruno@clisp.org>
22910
22911         open: Avoid C++ error on HP-UX 11.
22912         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22913
22914 2010-12-31  Bruno Haible  <bruno@clisp.org>
22915
22916         time_r: Add missing declarations on HP-UX 11.
22917         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22918         instead of HAVE_LOCALTIME_R.
22919         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22920         HAVE_LOCALTIME_R always.
22921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22922         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22923         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22924         HAVE_LOCALTIME_R.
22925         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22926         * doc/posix-functions/localtime_r.texi: Likewise.
22927
22928 2010-12-29  Eric Blake  <eblake@redhat.com>
22929
22930         mountlist: tweak previous commit
22931         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22932         Reported by Paul Eggert.
22933
22934         mountlist: fix local drive detection on cygwin
22935         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22936         that works for cygwin.
22937
22938 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22939
22940         ftoastr, snprintf: ftoastr + snprintf module
22941         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22942         since the snprintf module now should be good enough here.
22943         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22944         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22945         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22946         GNULIB_SNPRINTF only for the test directory, and the latter
22947         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22948         seems to suffice by itself.
22949
22950 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22951
22952         alloca: one step towards thread-safety
22953         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22954         need for a static variable.  All callers changed.  This does not
22955         make the alloca replacement thread-safe, but it's one step.
22956
22957         tests: minor indenting change
22958         * tests/init.sh: Sync from coreutils housekeeping patch
22959         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22960         to keep lines within 80 columns.
22961
22962 2010-12-28  Jim Meyering  <meyering@redhat.com>
22963
22964         regex: don't infloop on persistent failing calloc
22965         * lib/regexec.c (build_trtable): Return failure indication upon
22966         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22967         In glibc, this was fixed for version 2.13:
22968         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22969
22970 2010-12-28  Bruno Haible  <bruno@clisp.org>
22971             Paul Eggert <eggert@cs.ucla.edu>
22972
22973         linkat: Make implementation robust against system behaviour variations.
22974         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22975         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22976         way, and to -2 if it needs a generic runtime test.
22977         * lib/linkat.c (solaris_optimized_link_immediate,
22978         solaris_optimized_link_follow): New functions.
22979         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22980         (check_same_link): Use it.
22981
22982 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22983
22984         New module 'unigbrk/base'.
22985         * modules/unigbrk/base: New file.
22986         * lib/unigbrk.in.h: New file.
22987
22988         New module 'unigbrk/uc-gbrk-prop'.
22989         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22990         * modules/unigbrk/uc-gbrk-prop: New file.
22991         * lib/unigbrk/gbrkprop.h: New file.
22992         * lib/unigbrk/uc-gbrk-prop.c: New file.
22993
22994         New module 'unigbrk/uc-is-grapheme-break'.
22995         * modules/unigbrk/uc-is-grapheme-break: New file.
22996         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22997         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22998         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22999         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23000         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23001
23002         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23003
23004 2010-12-27  Bruno Haible  <bruno@clisp.org>
23005
23006         linkat test: Avoid failure on Solaris 11 2010-11.
23007         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23008
23009 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23010
23011         utimens: work around glibc rounding bug on more platforms
23012         * lib/utimens.c (fdutimens): Work around rounding bug even if
23013         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23015
23016 2010-12-27  Bruno Haible  <bruno@clisp.org>
23017
23018         select tests: Improve comments.
23019         * tests/test-select.c (do_select): Add comments.
23020
23021 2010-12-27  Bruno Haible  <bruno@clisp.org>
23022
23023         select tests: Safer way of handling timeout.
23024         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23025         at every invocation.
23026
23027 2010-12-27  Bruno Haible  <bruno@clisp.org>
23028
23029         select tests: Use 'bool' where appropriate.
23030         * tests/test-select.c (connect_to_socket): Change argument type to
23031         'bool'.
23032
23033 2010-12-27  Bruno Haible  <bruno@clisp.org>
23034
23035         select tests: Use existing modules.
23036         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23037         (configure.ac): Don't test for unistd.h.
23038         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23039         declared in <unistd.h>.
23040
23041 2010-12-27  Bruno Haible  <bruno@clisp.org>
23042
23043         mbrtowc: Work around a Solaris 7 bug.
23044         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23045         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23046         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23047         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23048         MBRTOWC_NULL_ARG1_BUG.
23049         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23050         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23051         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23052         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23053
23054 2010-12-27  Jim Meyering  <meyering@redhat.com>
23055
23056         read-file.c: tweak syntax
23057         * lib/read-file.c (fread_file): Remove space after "*" in function
23058         definitions.
23059
23060 2010-12-27  Bruno Haible  <bruno@clisp.org>
23061
23062         times test: Avoid gcc warnings on OSF/1.
23063         * tests/test-times.c (main): Cast printf arguments from clock_t to
23064         'long int'.
23065
23066 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23067
23068         utimens: work around glibc rounding bug on older Linux kernels
23069         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23070         on Linux with a glibc whose utimes might not work, then work
23071         around a longstanding glibc bug involving rounding rather than
23072         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23073         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23074
23075 2010-12-26  Bruno Haible  <bruno@clisp.org>
23076
23077         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23078         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23079         _GL_CXXALIAS_SYS.
23080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23081
23082 2010-12-26  Bruno Haible  <bruno@clisp.org>
23083
23084         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23085         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23087         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23088         looking for the declaration.
23089         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23090         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23091         problem.
23092         * doc/posix-functions/inet_pton.texi: Likewise.
23093
23094 2010-12-26  Bruno Haible  <bruno@clisp.org>
23095
23096         arpa_inet: Use the common idioms with C++ support.
23097         * lib/arpa_inet.in.h: Include c++defs.h.
23098         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23099         support.
23100         * modules/arpa_inet (Depends-on): Add c++defs.
23101         (Makefile.am): Substitute the contents of c++defs.h.
23102         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23103         * modules/arpa_inet-c++-tests: New file.
23104         * tests/test-arpa_inet-c++.cc: New file.
23105
23106 2010-12-25  Bruno Haible  <bruno@clisp.org>
23107
23108         Fix more C++ link errors on Solaris 8.
23109         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23110         $(LIB_EACCESS).
23111         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23112         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23113         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23114         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23115         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23116
23117 2010-12-25  Bruno Haible  <bruno@clisp.org>
23118
23119         printf-posix: Fix link error when a non-GCC compiler is used.
23120         * lib/stdio.in.h (printf): When not using GCC, override printf
23121         correctly.
23122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23123
23124 2010-12-25  Bruno Haible  <bruno@clisp.org>
23125
23126         strerror_r-posix: Update doc.
23127         * doc/posix-functions/strerror_r.texi: Update doc about the return
23128         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23129
23130 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         utimens: simplify the logic of the previous change
23133         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23134         This should not affect whether the test succeeds or fails.
23135
23136         utimens: configure better on hosts with NFS clock skew
23137         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23138         uses the clock of the local host.  It might use the clock of the
23139         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23141
23142 2010-12-25  Bruno Haible  <bruno@clisp.org>
23143
23144         ptsname test: Avoid failure on Solaris.
23145         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23146         open a pseudo-terminal; don't use BSD-style ptys.
23147         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23148
23149 2010-12-25  Bruno Haible  <bruno@clisp.org>
23150
23151         ptsname: Avoid ERANGE failure on some systems.
23152         * lib/ptsname.c (buffer): Increase size.
23153
23154 2010-12-25  Bruno Haible  <bruno@clisp.org>
23155
23156         rename, renameat: Avoid test failures at NFS mounted locations.
23157         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23158         so that subsequent mkdir calls succeed.
23159
23160 2010-12-25  Bruno Haible  <bruno@clisp.org>
23161
23162         iswblank: Fix C++ link error on Solaris 8.
23163         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23164         _GL_FUNCDECL_SYS.
23165
23166 2010-12-25  Bruno Haible  <bruno@clisp.org>
23167
23168         unistd: Fix C++ link error on Solaris 8.
23169         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23170
23171 2010-12-25  Bruno Haible  <bruno@clisp.org>
23172
23173         readlink doc: Mention an old glibc bug.
23174         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23175
23176 2010-12-25  Bruno Haible  <bruno@clisp.org>
23177
23178         fcntl-h: Fix for use of C++ on glibc systems.
23179         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23180         also on glibc systems in C++ mode.
23181         Reported by Gary V. Vaughan <gary@gnu.org>.
23182
23183 2010-12-25  Bruno Haible  <bruno@clisp.org>
23184
23185         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23186         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23187
23188 2010-12-25  Bruno Haible  <bruno@clisp.org>
23189
23190         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23191         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23192         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23193         test whether truncl works according to ISO C 99 with IEC 60559.
23194         * m4/truncl-ieee.m4: New file.
23195         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23196         m4/signbit.m4.
23197         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23198
23199 2010-12-25  Bruno Haible  <bruno@clisp.org>
23200
23201         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23202         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23203         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23204         test whether ceill works according to ISO C 99 with IEC 60559.
23205         * m4/ceill-ieee.m4: New file.
23206         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23207         m4/signbit.m4.
23208         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23209
23210 2010-12-25  Bruno Haible  <bruno@clisp.org>
23211
23212         Ensure all prerequisites of <wchar.h> are included.
23213         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23214         before <wchar.h>.
23215         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23216         gl_MBRLEN_NUL_RETVAL): Likewise.
23217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23218         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23219         AC_FUNC_MBRTOWC): Likewise.
23220         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23221         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23222         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23223         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23224         Likewise.
23225         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23226         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23227         (gl_WCHAR_H): Improve comments.
23228         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23229
23230 2010-12-25  Bruno Haible  <bruno@clisp.org>
23231
23232         strtok_r: Fix C syntax error in autoconf macro.
23233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23234         characters in test program.
23235
23236 2010-12-24  Bruno Haible  <bruno@clisp.org>
23237
23238         ceil, trunc, round: Fix gcc warnings.
23239         * lib/ceil.c (MIN): Undefine before redefining.
23240         * lib/trunc.c (MIN): Likewise.
23241         * lib/round.c (MIN): Likewise.
23242         Include <math.h> first.
23243
23244 2010-12-24  Bruno Haible  <bruno@clisp.org>
23245
23246         select tests: Avoid failures on OSF/1 5.1.
23247         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23248         failure of closing the last socket; it may fail with ECONNRESET.
23249
23250 2010-12-24  Eric Blake  <eblake@redhat.com>
23251
23252         stdint: avoid HP-UX 10.20 preprocessor bug
23253         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23254         than #if.
23255         * tests/test-floor2.c (main): Likewise.
23256         Reported by Peter O'Gorman.
23257
23258         pipe: make obsoletion transition easier
23259         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23260         * modules/pipe (Files): Include revived file.
23261         (Include): Drop reference, to mirror getdate's behavior.
23262
23263 2010-12-24  Bruno Haible  <bruno@clisp.org>
23264
23265         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23266         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23267         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23268         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23269
23270 2010-12-24  Bruno Haible  <bruno@clisp.org>
23271
23272         gethostname: Ensure declaration on NonStop Kernel.
23273         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23275
23276 2010-12-24  Bruno Haible  <bruno@clisp.org>
23277
23278         sys_select: Ensure all necessary types on NonStop Kernel.
23279         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23280         include <sys/time.h>.
23281         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23282         NonStop Kernel.
23283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23284
23285 2010-12-24  Bruno Haible  <bruno@clisp.org>
23286
23287         sys_select: Remove unneeded include.
23288         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23289         have <sys/select.h>.
23290
23291 2010-12-24  Bruno Haible  <bruno@clisp.org>
23292
23293         gethostname: Provide a fallback for HOST_NAME_MAX.
23294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23295         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23296         instead.
23297         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23298
23299 2010-12-24  Bruno Haible  <bruno@clisp.org>
23300
23301         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23302         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23303         (SA_RESTART): Likewise.
23304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23305
23306 2010-12-24  Bruno Haible  <bruno@clisp.org>
23307
23308         signal: Define NSIG.
23309         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23310         * tests/test-signal.c (nsig): New variable.
23311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23312
23313 2010-12-24  Bruno Haible  <bruno@clisp.org>
23314
23315         rename, renameat: Avoid test failures on OSF/1 5.1.
23316         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23317         alternative error codes.
23318         * tests/test-renameat.c (main): Likewise.
23319
23320 2010-12-24  Bruno Haible  <bruno@clisp.org>
23321
23322         *printf: Detect large precisions bug on Solaris 10/SPARC.
23323         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23324         by Paul Eggert.
23325         * tests/test-snprintf-posix.h (test_function): Add this test code here
23326         too.
23327         * tests/test-sprintf-posix.h (test_function): Likewise.
23328         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23329         * tests/test-vasprintf-posix.c (test_function): Likewise.
23330         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23331         around by gnulib.
23332         * doc/posix-functions/printf.texi: Likewise.
23333         * doc/posix-functions/snprintf.texi: Likewise.
23334         * doc/posix-functions/sprintf.texi: Likewise.
23335         * doc/posix-functions/vfprintf.texi: Likewise.
23336         * doc/posix-functions/vprintf.texi: Likewise.
23337         * doc/posix-functions/vsnprintf.texi: Likewise.
23338         * doc/posix-functions/vsprintf.texi: Likewise.
23339         * doc/posix-functions/dprintf.texi: Undo last commit.
23340         * doc/posix-functions/vdprintf.texi: Likewise.
23341
23342 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         tests: port test-fdutimensat.c to Solaris 8
23345         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23346         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23347         On Solaris 8, it fails with errno == ENOSYS, because there is no
23348         futimens (so it can't use the fd), and there is no lutimens (so it
23349         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23350
23351         vsnprintf: make more consistent with snprintf; doc fixes
23352
23353         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23354         the byte count return problem was promoted from the snprintf-posix
23355         to the snprintf module.
23356         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23358         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23359         * tests/test-snprintf.c (main): Check the byte count returned.
23360         * tests/test-vsnprintf.c (main): Likewise.
23361
23362 2010-12-23  Eric Blake  <eblake@redhat.com>
23363
23364         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23365         * modules/sigpipe (License): Relax license.
23366
23367 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23368
23369         doc: document Solaris printf bug with large float precisions
23370         * doc/posix-functions/dprintf.texi (dprintf):
23371         * doc/posix-functions/fprintf.texi (fprintf):
23372         * doc/posix-functions/printf.texi (printf):
23373         * doc/posix-functions/snprintf.texi (snprintf):
23374         * doc/posix-functions/sprintf.texi (sprintf):
23375         * doc/posix-functions/vdprintf.texi (vdprintf):
23376         * doc/posix-functions/vfprintf.texi (vfprintf):
23377         * doc/posix-functions/vprintf.texi (vprintf):
23378         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23379         * doc/posix-functions/vsprintf.texi (vsprintf):
23380         Mention that these functions mishandle large floating point
23381         precisions on Solaris 10.  The same bug is also present in Solaris
23382         8, and I assume earlier.  This causes "cd gnulib-tests; make
23383         check" to fail on Solaris 8 (and I assume, later) when building
23384         the latest coreutils, in test-vasprintf-posix's call to
23385         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23386         the wide flavors (e.g., wprintf) so this patch just updates the
23387         documentation for the narrow ones.
23388
23389         test-posixtm.c: add two tests
23390         * tests/test-posixtm.c: Add two tests, to highlight the
23391         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23392         around this bug; this is merely to document it.
23393
23394 2010-12-22  Bruno Haible  <bruno@clisp.org>
23395
23396         getlogin_r: Work around portability problem on OSF/1.
23397         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23398         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23399         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23400         test for a truncated result.
23401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23402         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23403         * modules/getlogin_r (Depends-on): Add memchr.
23404         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23405
23406 2010-12-22  Bruno Haible  <bruno@clisp.org>
23407
23408         ptsname: Avoid test failure on OSF/1 5.1.
23409         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23410         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23411         (same_slave): New function.
23412         (main): Use it to compare ptsname's result with the expected file name.
23413
23414 2010-12-22  Bruno Haible  <bruno@clisp.org>
23415
23416         Port extended stdio modules to HP NonStop Kernel.
23417         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23418         macros.
23419         * lib/fbufmode.c: Update comments.
23420         * lib/fflush.c: Likewise.
23421         * lib/fpurge.c: Likewise.
23422         * lib/freadable.c: Likewise.
23423         * lib/freadahead.c: Likewise.
23424         * lib/freading.c: Likewise.
23425         * lib/freadptr.c: Likewise.
23426         * lib/freadseek.c: Likewise.
23427         * lib/fseeko.c: Likewise.
23428         * lib/fseterr.c: Likewise.
23429         * lib/fwritable.c: Likewise.
23430         * lib/fwriting.c: Likewise.
23431         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23432
23433 2010-12-22  Bruno Haible  <bruno@clisp.org>
23434
23435         ttyname_r: Work around bug on OSF/1 5.1.
23436         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23437         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23438         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23439         present.
23440         * lib/ttyname_r.c (ttyname_r): Update comments.
23441
23442 2010-12-22  Bruno Haible  <bruno@clisp.org>
23443
23444         round: Implement result sign according to IEEE 754.
23445         * lib/round.c (MIN, MINUS_ZERO): New macros.
23446         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23447         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23448         * tests/test-round-ieee.c (main): Likewise.
23449         * tests/test-roundl-ieee.c (main): Likewise.
23450
23451         trunc: Implement result sign according to IEEE 754.
23452         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23453         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23454         * tests/test-trunc2.c: Include minus-zero.h.
23455         (MINUS_ZERO): New macro.
23456         (trunc_reference): Keep in sync with lib/trunc.c.
23457         * tests/test-truncf2.c: Include minus-zero.h.
23458         (MINUS_ZERO): New macro.
23459         (truncf_reference): Keep in sync with lib/trunc.c.
23460         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23461         * tests/test-trunc-ieee.c (main): Likewise.
23462         * tests/test-truncl-ieee.c (main): Likewise.
23463
23464         ceil: Implement result sign according to IEEE 754.
23465         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23466         (FUNC): Return -0.0 for -1 < x < 0.
23467         * tests/test-ceil2.c: Include minus-zero.h.
23468         (MINUS_ZERO): New macro.
23469         (ceil_reference): Keep in sync with lib/ceil.c.
23470         * tests/test-ceilf2.c: Include minus-zero.h.
23471         (MINUS_ZERO): New macro.
23472         (ceilf_reference): Keep in sync with lib/ceil.c.
23473         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23474         * tests/test-ceil-ieee.c (main): Likewise.
23475         * tests/test-ceill-ieee.c (main): Likewise.
23476
23477         floor: Implement result sign according to IEEE 754.
23478         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23479         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23480         * tests/test-floorf2.c (floorf_reference): Likewise.
23481         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23482         * tests/test-floor-ieee.c (main): Likewise.
23483         * tests/test-floorl-ieee.c (main): Likewise.
23484
23485 2010-12-22  Bruno Haible  <bruno@clisp.org>
23486
23487         getaddrinfo: Update doc.
23488         * doc/posix-functions/gai_strerror.texi: Return type is also different
23489         on AIX and HP-UX.
23490
23491 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23492
23493         getaddrinfo, inet_ntop: Update doc for Solaris.
23494         * doc/posix-functions/gai_strerror.texi: Return type is also an
23495         issue on Solaris 9 and earlier.
23496         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23497         on Solaris 10 and earlier.
23498
23499 2010-12-21  Bruno Haible  <bruno@clisp.org>
23500
23501         New module 'roundl-ieee'.
23502         * modules/roundl-ieee: New file.
23503         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23504         test whether roundl works according to ISO C 99 with IEC 60559.
23505         * m4/roundl-ieee.m4: New file.
23506         * modules/roundl-ieee-tests: New file.
23507         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23508         * tests/test-roundl.c (main): Remove signbit tests.
23509         * modules/roundl-tests (Depends-on): Remove signbit.
23510         * doc/posix-functions/roundl.texi: Mention the new module.
23511
23512 2010-12-21  Bruno Haible  <bruno@clisp.org>
23513
23514         New module 'truncl-ieee'.
23515         * modules/truncl-ieee: New file.
23516         * modules/truncl-ieee-tests: New file.
23517         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23518         * tests/test-truncl.c (main): Remove signbit tests.
23519         * modules/truncl-tests (Depends-on): Remove signbit.
23520         * doc/posix-functions/truncl.texi: Mention the new module.
23521
23522 2010-12-21  Bruno Haible  <bruno@clisp.org>
23523
23524         New module 'ceill-ieee'.
23525         * modules/ceill-ieee: New file.
23526         * modules/ceill-ieee-tests: New file.
23527         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23528         * tests/test-ceill.c (main): Remove signbit tests.
23529         * modules/ceill-tests (Depends-on): Remove signbit.
23530         * doc/posix-functions/ceill.texi: Mention the new module.
23531
23532 2010-12-21  Bruno Haible  <bruno@clisp.org>
23533
23534         New module 'floorl-ieee'.
23535         * modules/floorl-ieee: New file.
23536         * modules/floorl-ieee-tests: New file.
23537         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23538         * tests/test-floorl.c (main): Remove signbit tests.
23539         * modules/floorl-tests (Depends-on): Remove signbit.
23540         * doc/posix-functions/floorl.texi: Mention the new module.
23541
23542 2010-12-21  Bruno Haible  <bruno@clisp.org>
23543
23544         New module 'round-ieee'.
23545         * modules/round-ieee: New file.
23546         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23547         whether round works according to ISO C 99 with IEC 60559.
23548         * m4/round-ieee.m4: New file.
23549         * modules/round-ieee-tests: New file.
23550         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23551         * tests/test-round1.c (main): Remove signbit tests.
23552         * modules/round-tests (Depends-on): Remove 'signbit'.
23553         * doc/posix-functions/round.texi: Mention the new module.
23554
23555 2010-12-21  Bruno Haible  <bruno@clisp.org>
23556
23557         New module 'trunc-ieee'.
23558         * modules/trunc-ieee: New file.
23559         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23560         whether trunc works according to ISO C 99 with IEC 60559.
23561         * m4/trunc-ieee.m4: New file.
23562         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23564         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23565         * modules/trunc-ieee-tests: New file.
23566         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23567         * tests/test-trunc1.c (main): Remove signbit tests.
23568         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23569         * doc/posix-functions/trunc.texi: Mention the new module.
23570
23571 2010-12-21  Bruno Haible  <bruno@clisp.org>
23572
23573         New module 'ceil-ieee'.
23574         * modules/ceil-ieee: New file.
23575         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23576         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23577         ISO C 99 with IEC 60559.
23578         * m4/ceil-ieee.m4: New file.
23579         * modules/ceil (Files): Add lib/ceil.c.
23580         (Depends-on): Add 'float'.
23581         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23582         * lib/math.in.h (ceil): New declaration.
23583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23584         REPLACE_CEIL.
23585         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23586         * modules/ceil-ieee-tests: New file.
23587         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23588         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23589         * doc/posix-functions/ceil.texi: Mention the new module.
23590
23591 2010-12-21  Bruno Haible  <bruno@clisp.org>
23592
23593         New module 'floor-ieee'.
23594         * modules/floor-ieee: New file.
23595         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23596         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23597         ISO C 99 with IEC 60559.
23598         * m4/floor-ieee.m4: New file.
23599         * modules/floor (Files): Add lib/floor.c.
23600         (Depends-on): Add 'float'.
23601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23602         * lib/math.in.h (floor): New declaration.
23603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23604         REPLACE_FLOOR.
23605         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23606         * modules/floor-ieee-tests: New file.
23607         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23608         * tests/test-math-c++.cc: Check the signature of 'floor'.
23609         * doc/posix-functions/floor.texi: Mention the new module.
23610
23611 2010-12-21  Bruno Haible  <bruno@clisp.org>
23612
23613         New module 'roundf-ieee'.
23614         * modules/roundf-ieee: New file.
23615         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23616         test whether roundf works according to ISO C 99 with IEC 60559.
23617         * m4/roundf-ieee.m4: New file.
23618         * modules/roundf-ieee-tests: New file.
23619         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23620         * tests/test-roundf1.c (main): Remove signbit tests.
23621         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23622         * doc/posix-functions/roundf.texi: Mention the new module.
23623
23624 2010-12-21  Bruno Haible  <bruno@clisp.org>
23625
23626         New module 'truncf-ieee'.
23627         * modules/truncf-ieee: New file.
23628         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23629         test whether truncf works according to ISO C 99 with IEC 60559.
23630         * m4/truncf-ieee.m4: New file.
23631         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23633         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23634         * modules/truncf-ieee-tests: New file.
23635         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23636         * tests/test-truncf1.c (main): Remove signbit tests.
23637         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23638         * doc/posix-functions/truncf.texi: Mention the new module.
23639
23640 2010-12-21  Bruno Haible  <bruno@clisp.org>
23641
23642         New module 'ceilf-ieee'.
23643         * modules/ceilf-ieee: New file.
23644         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23645         test whether ceilf works according to ISO C 99 with IEC 60559.
23646         * m4/ceilf-ieee.m4: New file.
23647         * modules/ceilf-ieee-tests: New file.
23648         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23649         * tests/test-ceilf1.c (main): Remove signbit tests.
23650         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23651         * doc/posix-functions/ceilf.texi: Mention the new module.
23652
23653 2010-12-21  Bruno Haible  <bruno@clisp.org>
23654
23655         New module 'floorf-ieee'.
23656         * modules/floorf-ieee: New file.
23657         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23658         test whether floorf works according to ISO C 99 with IEC 60559.
23659         * m4/floorf-ieee.m4: New file.
23660         * modules/floorf-ieee-tests: New file.
23661         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23662         * tests/test-floorf1.c (main): Remove signbit tests.
23663         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23664         * doc/posix-functions/floorf.texi: Mention the new module.
23665
23666 2010-12-21  Bruno Haible  <bruno@clisp.org>
23667
23668         Support for minus zero in autoconf macros.
23669         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23670         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23671         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23672         * tests/minus-zero.h: Update comments.
23673
23674 2010-12-21  Bruno Haible  <bruno@clisp.org>
23675
23676         Tests for module 'ceil'.
23677         * modules/ceil-tests: New file.
23678         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23679         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23680
23681 2010-12-21  Bruno Haible  <bruno@clisp.org>
23682
23683         Tests for module 'floor'.
23684         * modules/floor-tests: New file.
23685         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23686         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23687
23688 2010-12-21  Bruno Haible  <bruno@clisp.org>
23689
23690         math: Fix indentation.
23691         * lib/math.in.h (floorf): Fix indentation.
23692
23693 2010-12-21  Bruno Haible  <bruno@clisp.org>
23694
23695         Fix cross-compilation guesses on Solaris.
23696         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23697         not match "solaris2.10".
23698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23699         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23700         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23701
23702 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23703
23704         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23705         This fixes a problem observed with the latest coreutils snapshot
23706         that caused a test to fail on Solaris 8.  src/csplit.c's call
23707         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23708         earlier, instead of returning the number of bytes that would have
23709         been generated; this causes csplit to incorrectly report memory
23710         exhaustion.
23711         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23712         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23713         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23714         comments to match.
23715         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23716         Fix typo in matching older versions of Solaris: "solaris2.10"
23717         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23718         only for guessing while cross-compiling.
23719         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23720
23721 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23722
23723         ftoastr: fix comment again
23724         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23726         Also, simplify example a bit by using flags = 0.
23727
23728 2010-12-20  Bruno Haible  <bruno@clisp.org>
23729
23730         round*, trunc*: Update documentation regarding glibc.
23731         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23732         * doc/posix-functions/round.texi: Likewise.
23733         * doc/posix-functions/roundl.texi: Likewise.
23734         * doc/posix-functions/truncf.texi: Likewise.
23735         * doc/posix-functions/trunc.texi: Likewise.
23736         * doc/posix-functions/truncl.texi: Likewise.
23737
23738 2010-12-20  Bruno Haible  <bruno@clisp.org>
23739
23740         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23741         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23742         * doc/posix-functions/round.texi: Likewise.
23743         * doc/posix-functions/roundl.texi: Likewise.
23744
23745 2010-12-20  Bruno Haible  <bruno@clisp.org>
23746
23747         ttyname_r: Add missing declaration on HP-UX 11.
23748         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23749         HAVE_TTYNAME_R.
23750         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23751         declared. Set HAVE_TTYNAME_R always.
23752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23753         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23755         HAVE_TTYNAME_R.
23756         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23757
23758 2010-12-20  Bruno Haible  <bruno@clisp.org>
23759
23760         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23761         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23762         * doc/posix-functions/getlogin_r.texi: Likewise.
23763         * tests/test-getlogin.c: Include <errno.h>.
23764         (main): Avoid test failure on HP-UX 11.11.
23765         * tests/test-getlogin_r.c (main): Likewise.
23766
23767 2010-12-20  Bruno Haible  <bruno@clisp.org>
23768
23769         getlogin_r: Add missing declaration on HP-UX 11.
23770         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23771         declared also when it exists as a function.
23772         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23773
23774 2010-12-20  Bruno Haible  <bruno@clisp.org>
23775
23776         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23777         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23778         through wcrtomb.
23779
23780 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23781
23782         ftoastr: fix comment
23783         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23785
23786 2010-12-19  Bruno Haible  <bruno@clisp.org>
23787
23788         isnan: Ensure it is a macro.
23789         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23790         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23791         Solaris.
23792
23793 2010-12-19  Bruno Haible  <bruno@clisp.org>
23794
23795         ldexpl test: Fix link error on OSF/1 5.1.
23796         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23797
23798 2010-12-19  Bruno Haible  <bruno@clisp.org>
23799
23800         wctype: Make it work in C++ mode on OSF/1 5.1.
23801         * lib/wctype.in.h (iswblank): Declare but not define here.
23802         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23803         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23804         * modules/wctype (Files): Add lib/iswblank.c.
23805
23806 2010-12-19  Bruno Haible  <bruno@clisp.org>
23807
23808         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23809         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23810         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23811
23812 2010-12-19  Bruno Haible  <bruno@clisp.org>
23813
23814         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23816         _POSIX_PII_SOCKET.
23817         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23818         * doc/posix-functions/recvfrom.texi: Likewise.
23819         * doc/posix-functions/send.texi: Likewise.
23820         * doc/posix-functions/sendto.texi: Likewise.
23821
23822 2010-12-19  Bruno Haible  <bruno@clisp.org>
23823
23824         tcgetsid: Add missing declaration on OSF/1 5.1.
23825         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23826         HAVE_TCGETSID.
23827         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23828         Don't set HAVE_TCGETSID.
23829         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23830         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23831         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23832         HAVE_TCGETSID.
23833         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23834
23835 2010-12-19  Bruno Haible  <bruno@clisp.org>
23836
23837         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23838         * lib/stdio.in.h: During the include_next statement, let recursive
23839         includes of this file include only the system header file.
23840
23841 2010-12-19  Bruno Haible  <bruno@clisp.org>
23842
23843         iconv_open: Fix regression from 2010-12-04.
23844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23845         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23846
23847 2010-12-19  Bruno Haible  <bruno@clisp.org>
23848
23849         stdbool test: Avoid a gcc warning.
23850         * tests/test-stdbool.c (main): Fail if e1 is false.
23851         Reported by Jim Meyering.
23852
23853 2010-12-19  Jim Meyering  <meyering@redhat.com>
23854
23855         setenv: restore to working order
23856         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23857         mistakenly removed.
23858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23859         HAVE_SETENV.
23860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23861         HAVE_SETENV.
23862
23863 2010-12-19  Bruno Haible  <bruno@clisp.org>
23864
23865         Document some different function declarations on OSF/1 5.1.
23866         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23867         * doc/posix-functions/inet_ntop.texi: Likewise.
23868         * doc/posix-functions/gethostname.texi: Likewise.
23869         * lib/unistd.in.h (gethostname): Update comment.
23870
23871 2010-12-19  Bruno Haible  <bruno@clisp.org>
23872
23873         doc: Mention vasprintf-posix module.
23874         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23875         the 'vasprintf-posix' module.
23876         * doc/glibc-functions/vasprintf.texi: Likewise.
23877
23878 2010-12-19  Bruno Haible  <bruno@clisp.org>
23879
23880         unsetenv: Add missing declaration on OSF/1 5.1.
23881         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23883         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23885         not HAVE_UNSETENV.
23886         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23887         HAVE_UNSETENV.
23888         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23889
23890 2010-12-19  Bruno Haible  <bruno@clisp.org>
23891
23892         setenv: Add missing declaration on OSF/1 5.1.
23893         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23895         declared. Don't set HAVE_SETENV.
23896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23897         not HAVE_SETENV.
23898         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23899         HAVE_SETENV.
23900         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23901
23902 2010-12-19  Bruno Haible  <bruno@clisp.org>
23903
23904         nl_langinfo tests: Avoid gcc warning.
23905         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23906
23907 2010-12-19  Bruno Haible  <bruno@clisp.org>
23908
23909         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23910         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23911         _GL_CXXALIAS_SYS.
23912
23913 2010-12-19  Bruno Haible  <bruno@clisp.org>
23914
23915         stdbool: Relax test.
23916         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23917         address to 'bool' work in static initializer, for compilers other than
23918         GCC.
23919
23920 2010-12-19  Bruno Haible  <bruno@clisp.org>
23921
23922         ftello: Add missing declaration on OSF/1 5.1.
23923         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23924         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23926         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23927         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23928
23929 2010-12-19  Bruno Haible  <bruno@clisp.org>
23930
23931         fseeko: Add missing declaration on OSF/1 5.1.
23932         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23935         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23936         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23937
23938 2010-12-19  Bruno Haible  <bruno@clisp.org>
23939
23940         fchdir: Add missing declaration on OSF/1 5.1.
23941         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23944         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23945         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23946
23947 2010-12-19  Bruno Haible  <bruno@clisp.org>
23948
23949         relocatable-prog-wrapper: Separate from relocatable-prog.
23950         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23951         uninstall-relocwrapper rule here.
23952         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23953         Reported by Ian Beckwith <ianb@erislabs.net>.
23954
23955 2010-12-19  Bruno Haible  <bruno@clisp.org>
23956
23957         unistr/u8-mbsnlen: Add missing dependency.
23958         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23959         Reported by Ian Beckwith <ianb@erislabs.net>.
23960
23961 2010-12-19  Bruno Haible  <bruno@clisp.org>
23962
23963         iconv: Make it possible again to use this module without 'iconv-h'.
23964         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23965         if it is not defined.
23966         Reported by Ian Beckwith <ianb@erislabs.net>.
23967
23968 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23969
23970         acl: port to Solaris 8 when copying from tmpfs to ufs
23971         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23972         error number.  Problem observed on Solaris 8 with latest
23973         coreutils, with "mv A B", where A is on a tmpfs file system and B
23974         is on a ufs file system.  This caused coreutils' mv/part-symlink
23975         test to fail.
23976
23977         tests: set fail=0 at start
23978         * tests/init.sh (setup_): Move fail=0 initialization here ...
23979         (mktempd_): ... from here, so that tests can rely on fail being
23980         set to 0 initially.  This fixes a problem in coreutils; see:
23981         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23982
23983 2010-12-18  Bruno Haible  <bruno@clisp.org>
23984
23985         memmem-simple: Stylistic changes.
23986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23987         Fix preprocessor directive indentation.
23988
23989 2010-12-15  Pádraig Brady <P@draigBrady.com>
23990
23991         memmem, memmem-simple: reorganize and expand empty needle check
23992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23993         functional checks to memmem-simple so that one has a fully functional
23994         memmem by using just this module.
23995         Restrict the performance only check to the memmem module.
23996         Also expand the empty needle check to ensure the correct
23997         pointer is returned, not just a non NULL pointer.
23998         * doc/glibc-functions/memmem.texi: Rearrange the portability
23999         documentation to correlate with the rearranged checks.
24000         Clarify exactly how the memmem and memmem-simple modules
24001         relate to each other.
24002
24003 2010-12-15  Pádraig Brady <P@draigBrady.com>
24004             Bruno Haible  <bruno@clisp.org>
24005
24006         Improve cross-compilation guesses for uClibc.
24007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24008         that uClibc does not have the glibc bug.
24009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24011
24012 2010-12-14  Eric Blake  <eblake@redhat.com>
24013
24014         configmake: provide fallbacks for oldest supported autotools
24015         * m4/configmake.m4: New file.
24016         * modules/configmake (Files): Ship it.
24017         (configure.ac): Use it to guarantee fallbacks.
24018
24019 2010-12-13  Pádraig Brady <P@draigBrady.com>
24020
24021         read-file: Improve handling of large files
24022         * lib/read-file.c (fread_file): Minimize realloc()s
24023         for regular files, and better manage sizes around SIZE_MAX.
24024
24025 2010-12-13  Eric Blake  <eblake@redhat.com>
24026
24027         cloexec, fcntl: relax license
24028         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24029         consent from all contributors.
24030         * modules/fcntl (License): Likewise.
24031
24032 2010-12-10  Bruno Haible  <bruno@clisp.org>
24033
24034         Tests for module 'pipe-posix'.
24035         * modules/pipe-posix-tests: New file.
24036         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24037
24038 2010-12-10  Bruno Haible  <bruno@clisp.org>
24039
24040         pipe-posix: Make it work in C++ mode.
24041         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24042         (pipe): Use common idiom, not a macro definition.
24043         * lib/pipe.c: New file.
24044         * m4/pipe.m4: New file.
24045         * modules/pipe-posix (Description): Enhance.
24046         (Files): Add lib/pipe.c, m4/pipe.m4.
24047         (configure.ac): Invoke gl_FUNC_PIPE.
24048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24049         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24050         * tests/test-unistd-c++.cc: Check the signature of pipe.
24051
24052 2010-12-10  Bruno Haible  <bruno@clisp.org>
24053
24054         Rename module 'pipe' to 'spawn-pipe'.
24055         * modules/spawn-pipe: New file, renamed from modules/pipe.
24056         (Files, configure.ac, Makefile.am): Update.
24057         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24058         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24059         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24060         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24061         "spawn-pipe.h" instead of "pipe.h".
24062         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24063         to gl_SPAWN_PIPE.
24064         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24065         (Files, Makefile.am): Update.
24066         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24067         Update.
24068         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24069         Include "spawn-pipe.h" instead of "pipe.h".
24070         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24071         * lib/javacomp.c: Likewise.
24072         * lib/javaversion.c: Likewise.
24073         * lib/pipe-filter-gi.c: Likewise.
24074         * lib/pipe-filter-ii.c: Likewise.
24075         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24076         * modules/javacomp (Depends-on): Likewise.
24077         * modules/javaversion (Depends-on): Likewise.
24078         * modules/pipe-filter-gi (Depends-on): Likewise.
24079         * modules/pipe-filter-ii (Depends-on): Likewise.
24080         * MODULES.html.sh (Executing programs): Update.
24081         * NEWS: Mention the change.
24082
24083 2010-12-10  Eric Blake  <eblake@redhat.com>
24084
24085         pipe-posix: new module
24086         * modules/pipe-posix: New file.
24087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24088         (gl_UNISTD_H): Check for declaration.
24089         * modules/unistd (Makefile.am): Substitute it.
24090         * lib/unistd.in.h (pipe): Provide it for mingw.
24091         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24092         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24093
24094 2010-12-07  Bruno Haible  <bruno@clisp.org>
24095
24096         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24097         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24098         u8_strcmp_gnu.
24099         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24100
24101 2010-12-06  Bruno Haible  <bruno@clisp.org>
24102
24103         Update internal documentation.
24104         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24105
24106 2010-12-04  Bruno Haible  <bruno@clisp.org>
24107
24108         Put more information about failed tests into the test return codes.
24109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24110         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24111         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24115         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24116         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24117         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24120         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24121         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24122         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24124         returns a bit mask.
24125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24126         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24127         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24128         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24131         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24133         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24135         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24136         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24137         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24138         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24139         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24140         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24141         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24142         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24144         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24146         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24148         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24149         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24150         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24151         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24152         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24153         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24154         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24155         gl_PRINTF_PRECISION): Likewise.
24156         * m4/regex.m4 (gl_REGEX): Likewise.
24157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24159         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24160         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24164         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24166         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24167         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24168         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24171         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24173         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24177         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24178         enumerated value.
24179         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24180
24181 2010-12-04  Bruno Haible  <bruno@clisp.org>
24182
24183         Update for Solaris 11 2010-11.
24184         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24185         Express, released in November 2010.
24186
24187 2010-12-04  Bruno Haible  <bruno@clisp.org>
24188
24189         nproc: Relax license.
24190         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24191         and Paul Eggert.
24192         Requested by Ludovic Courtès <ludo@gnu.org>.
24193
24194 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         utimecmp: fine-grained src to nearby coarse-grained dest
24197
24198         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24199         and the source is on a file system with higher-resolution time
24200         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24201         not work, and the time stamps are close together, the algorithm to
24202         determine the exact resolution from the read-back mtime was buggy:
24203         it had a "!=" where it should have had an "==".  This bug has been
24204         in the code ever since it was introduced to gnulib.
24205         Problem reported by Dan Jacobson in
24206         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24207
24208 2010-11-30  Bruno Haible  <bruno@clisp.org>
24209
24210         strerror_r-posix: Fix autoconf test.
24211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24212
24213 2010-11-28  Bruno Haible  <bruno@clisp.org>
24214             Paul Eggert  <eggert@cs.ucla.edu>
24215
24216         Tests for module 'getdomainname'.
24217         * modules/getdomainname-tests: New file.
24218         * tests/test-getdomainname.c: New file, based on
24219         tests/test-gethostname.c.
24220
24221 2010-11-28  Bruno Haible  <bruno@clisp.org>
24222             Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         getdomainname: Use the system function when possible.
24225         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24226         (getdomainname): Replace if needed. Provide the declaration if it is
24227         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24228         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24229         (getdomainname): When the system has getdomainname, call the system
24230         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24232         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24233         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24234         the function if its second argument is of type 'int' or if it is found
24235         in libnsl.
24236         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24237         <sys/systeminfo.h> and sysinfo().
24238         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24240         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24241         HAVE_GETDOMAINNAME.
24242         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24243         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24244         * doc/glibc-functions/getdomainname.texi: Document the problems with
24245         the getdomainname declaration.
24246
24247 2010-11-28  Bruno Haible  <bruno@clisp.org>
24248
24249         sys_socket: Ensure ss_family field on AIX.
24250         * lib/sys_socket.in.h (ss_family): New macro definition.
24251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24252         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24253         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24254         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24255         * modules/sys_socket (Makefile.am): Substitute
24256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24257         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24258
24259 2010-11-27  Bruno Haible  <bruno@clisp.org>
24260
24261         readline: Improve configure output.
24262         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24263         "checking for readline..." result understandable.
24264
24265 2010-11-27  Bruno Haible  <bruno@clisp.org>
24266
24267         *printf-posix: Detect a bug on Solaris 10/x86.
24268         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24269         for floating-point output.
24270         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24271         directive.
24272         * tests/test-snprintf-posix.h (test_function): Likewise.
24273         * tests/test-sprintf-posix.h (test_function): Likewise.
24274         * tests/test-vasprintf-posix.c (test_function): Likewise.
24275         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24276         * doc/posix-functions/printf.texi: Likewise.
24277         * doc/posix-functions/snprintf.texi: Likewise.
24278         * doc/posix-functions/sprintf.texi: Likewise.
24279         * doc/posix-functions/vfprintf.texi: Likewise.
24280         * doc/posix-functions/vprintf.texi: Likewise.
24281         * doc/posix-functions/vsnprintf.texi: Likewise.
24282         * doc/posix-functions/vsprintf.texi: Likewise.
24283         * doc/glibc-functions/obstack_printf.texi: Likewise.
24284         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24285
24286 2010-11-27  Bruno Haible  <bruno@clisp.org>
24287
24288         Fix link error when module libunistring-optional is in use.
24289         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24290         * modules/striconveha-tests (Makefile.am): Likewise.
24291
24292 2010-11-27  Bruno Haible  <bruno@clisp.org>
24293
24294         regex: Mention link dependencies.
24295         * modules/regex (Link): New section.
24296         * modules/rpmatch (Link): Likewise.
24297         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24298
24299 2010-11-27  Bruno Haible  <bruno@clisp.org>
24300
24301         ftoastr: Fix compilation error on Solaris.
24302         * lib/ftoastr.c: Include <config.h>.
24303
24304 2010-11-27  Bruno Haible  <bruno@clisp.org>
24305
24306         getloadavg: Update documentation.
24307         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24308
24309 2010-11-27  Bruno Haible  <bruno@clisp.org>
24310
24311         sys_socket: Fix test whether the functions are declared.
24312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24313         not <sys/select.h>.
24314
24315 2010-11-27  Bruno Haible  <bruno@clisp.org>
24316
24317         getpass: Make sure to get system declaration on some platforms.
24318         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24319         gl_USE_SYSTEM_EXTENSIONS.
24320         * modules/getpass (Depends-on): Add extensions.
24321
24322 2010-11-26  Bruno Haible  <bruno@clisp.org>
24323
24324         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24325         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24326         'iconv' module is present.
24327         (ICONV_CONST): New macro.
24328         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24329         ICONV_CONST.
24330         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24331         set ICONV_CONST.
24332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24333         here.
24334         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24335         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24336         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24337         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24338         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24339         present.
24340
24341 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         ftoastr: comment fix
24344         * lib/ftoastr.c: "little" -> "little or no" in comment
24345
24346 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24347
24348         stdint: port to GCC 4.3 + OSX + Octave
24349         On this platform, stdint.h is buggy and defines int64_t to long
24350         long int.  The replacement defined it to long int, causing
24351         problems with C++ style name mangling.  Instead, trust the system
24352         definition if INT64_MAX is defined, and likewise for the unsigned
24353         variant.   Problem reported by Jarno Rajahalme in
24354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24355         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24356         and don't mess with int64_t and INT64_MAX in this case.
24357         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24358
24359 2010-11-24  Bruno Haible  <bruno@clisp.org>
24360
24361         doc: Corrections regarding MacOS X 10.4 and 10.5.
24362         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24363         MacOS X.
24364         Reported by Simon Josefsson.
24365
24366 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24367
24368         Uninstall ".bin" files installed by relocwrapper.
24369         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24370         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24371         unless it is already there.
24372
24373 2010-11-21  Bruno Haible  <bruno@clisp.org>
24374
24375         Update for NetBSD 5.0.
24376         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24377         NetBSD; the test fails on NetBSD 5.0.
24378         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24379         about NetBSD.
24380
24381 2010-11-21  Bruno Haible  <bruno@clisp.org>
24382
24383         Update for HP-UX 11.23 and HP-UX 11.31.
24384         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24385         HP-UX.
24386
24387 2010-11-21  Bruno Haible  <bruno@clisp.org>
24388
24389         Update for MacOS X 10.5.
24390         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24391         MacOS X; the test fails on MacOS X 10.5.8.
24392         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24393         about MacOS X.
24394
24395 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24396
24397         bootstrap: add bootstrap_sync option.
24398         See discussion at
24399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24401         * build-aux/bootstrap: Accept --bootstrap-sync to update
24402         bootstrap if it is not identical to the local gnulib's
24403         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24404         enable this by default.  Accept --no-bootstrap-sync to disable
24405         it.
24406
24407 2010-11-20  Bruno Haible  <bruno@clisp.org>
24408
24409         Ensure that <features.h> is included before __GLIBC__ is tested.
24410         * lib/printf-parse.h: Include <features.h>.
24411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24412         Reported by Mike Frysinger <vapier@gentoo.org>.
24413
24414         Ensure that <features.h> is included before __GLIBC__ is tested.
24415         * lib/wchar.in.h: Include <features.h>.
24416         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24417         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24418         Reported by Mike Frysinger <vapier@gentoo.org>.
24419
24420         Ensure that <features.h> is included before __GLIBC__ is tested.
24421         * lib/arpa_inet.in.h: Include <features.h>.
24422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24423         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24424         Reported by Mike Frysinger <vapier@gentoo.org>.
24425
24426         Ensure that <features.h> is included before __GLIBC__ is tested.
24427         * build-aux/link-warning.h: Include <features.h>.
24428         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24429         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24430         Reported by Mike Frysinger <vapier@gentoo.org>.
24431
24432         Ensure that <features.h> is included before __GLIBC__ is tested.
24433         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24434         Reported by Mike Frysinger <vapier@gentoo.org>.
24435
24436 2010-11-20  Bruno Haible  <bruno@clisp.org>
24437
24438         memmem: Fix autoconf test.
24439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24440
24441 2010-11-20  Bruno Haible  <bruno@clisp.org>
24442
24443         Port to uClibc.
24444         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24445         * lib/fcntl.in.h: Likewise.
24446         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24447         * lib/mbrtowc.c (mbrtowc): Likewise.
24448         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24449         * lib/strerror_r.c: Likewise.
24450         * lib/unistr/u8-strnlen.c: Likewise.
24451         * lib/vasnprintf.c (decimal_point_char): Likewise.
24452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24455         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24456         * tests/test-sigaction.c (handler, main): Likewise.
24457         * lib/freading.h: Treat uClibc like a non-glibc platform.
24458         * lib/freading.c: Likewise.
24459         * lib/gettext.h: Likewise.
24460         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24461         Likewise.
24462         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24463         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24464         * lib/propername.c (proper_name_utf8): Likewise.
24465         * lib/spawn.in.h: Likewise.
24466         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24467         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24468         mem_cd_iconveh_internal): Likewise.
24469         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24470         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24471         strstr, strcasestr): Likewise.
24472         * lib/unicodeio.c (unicode_to_mb): Likewise.
24473         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24474         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24475         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24476         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24477         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24478         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24479         * lib/unistr/u8-stpncpy.c: Likewise.
24480         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24481         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24482         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24483         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24484         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24485         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24486         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24489         Likewise.
24490         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24491         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24496         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24497         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24498         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24499         * tests/test-striconveha.c (main): Likewise.
24500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24501         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24502         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24503         * doc/posix-functions/getline.texi: Likewise.
24504         Reported by Mike Frysinger <vapier@gentoo.org>.
24505
24506 2010-11-20  Bruno Haible  <bruno@clisp.org>
24507
24508         nproc: Fix condition.
24509         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24510         HAVE_PTHREAD_AFFINITY_NP.
24511
24512 2010-11-20  Bruno Haible  <bruno@clisp.org>
24513
24514         Fix a comment.
24515         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24516
24517 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24518
24519         ftoastr: don't assume snprintf
24520         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24521         Implement a subset of snprintf here, by using sprintf safely.
24522         * modules/ftoastr (Depends-on): Remove snprintf.
24523
24524 2010-11-19  Jim Meyering  <meyering@redhat.com>
24525
24526         test-rename.h: fix compilation failure
24527         * tests/test-rename.h (test_rename): Add omitted "}".
24528
24529 2010-11-17  Jim Meyering  <meyering@redhat.com>
24530
24531         maint.mk: add a URL discussing the no-@acronym policy
24532         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24533
24534 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24535
24536         ftoastr: depend on snprintf, improve comments
24537         * lib/ftoastr.c: Also mention Loitsch's draft.
24538         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24539         needed in the current implementation, but it might simplify
24540         speeding up the code later.
24541         * modules/ftoastr: Depend on snprintf; this improves portability.
24542         Suggested by Bruno Haible in the same email.
24543
24544         ftoastr: port to hosts lacking strtof and strtold
24545         Problem reported by Bruno Haible in
24546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24547         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24548         environment and strtold (and presumably strtof) are not available.
24549         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24550         (configure.ac): Require gl_C99_STRTOLD.
24551
24552 2010-11-18  Bruno Haible  <bruno@clisp.org>
24553
24554         c-strtold: Avoid link error on AIX 7.
24555         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24556         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24557         (gl_C_STRTOLD): Test whether strtold_l exists.
24558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24559
24560 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24561
24562         intprops: new macro INT_BITS_STRLEN_BOUND
24563         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24564         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24565         not exposed.  Also, it uses a slightly tighter bound than before;
24566         though this makes no practical difference, we might as well be as
24567         tight as we easily can.
24568
24569         ftoastr: new module, for lossless conversion of floats to short strings
24570         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24571         * modules/ftoastr: New files.
24572
24573 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24574
24575         bootstrap: port to Solaris sed
24576         * build-aux/bootstrap (get_version): Port to Solaris sed.
24577         See Ralf Wildenhues's note in
24578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24579
24580 2010-11-14  Jim Meyering  <meyering@redhat.com>
24581
24582         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24583         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24584         and move definition closer to sole use.
24585
24586 2010-11-13  Jim Meyering  <meyering@redhat.com>
24587
24588         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24589         Now we require at least autoconf-2.59, which means the work-around
24590         is no longer needed.
24591         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24592         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24595         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24596
24597 2010-11-13  Bruno Haible  <bruno@clisp.org>
24598
24599         rename, renameat: Avoid test failures at NFS mounted locations.
24600         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24601         functions.
24602         (test_rename): Use assert_nonexistent.
24603         * tests/test-rename.c: Include <dirent.h>.
24604         * tests/test-renameat.c: Likewise.
24605         Reported by Gary V. Vaughan <gary@gnu.org>.
24606
24607         rename, renameat: Document Linux bug with NFS
24608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24609         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24610         * doc/posix-functions/renameat.texi: Likewise.
24611         Suggested by Eric Blake.
24612
24613 2010-11-13  Bruno Haible  <bruno@clisp.org>
24614
24615         rename test: Add comments.
24616         * tests/test-rename.h (test_rename): Add structure and comments.
24617
24618 2010-11-13  Eric Blake  <eblake@redhat.com>
24619
24620         maintainer-makefile: cover a few more files
24621         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24622         scripts generated within C files, for libvirt.
24623
24624 2010-11-13  Bruno Haible  <bruno@clisp.org>
24625
24626         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24627         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24628         character, return the number of bytes that belong together, not always
24629         1.
24630         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24631         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24632         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24633         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24634         number of bytes of an invalid character.
24635         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24636         (main): Invoke it.
24637         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24638         results.
24639         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24640         malformed byte sequences.
24641         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24642         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24643         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24644         Reported by Ben Pfaff and Paolo Bonzini.
24645
24646 2010-11-13  Bruno Haible  <bruno@clisp.org>
24647
24648         openat: Work around glibc bug with fchownat() and empty file names.
24649         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24650         (gl_FUNC_FCHOWNAT): Invoke it.
24651         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24652         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24653         Reported by Gary V. Vaughan <gary@gnu.org>.
24654
24655 2010-11-13  Bruno Haible  <bruno@clisp.org>
24656
24657         openat: Ensure autoconf macro ordering.
24658         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24659         gl_USE_SYSTEM_EXTENSIONS.
24660         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24661
24662 2010-11-13  Bruno Haible  <bruno@clisp.org>
24663
24664         Update comments.
24665         * lib/unistr/u8-check.c: Update file name in comments.
24666         * lib/unistr/u8-mblen.c: Likewise.
24667         * lib/unistr/u8-prev.c: Likewise.
24668         * lib/unistr/u8-strmblen.c: Likewise.
24669         * lib/unistr/u8-strmbtouc.c: Likewise.
24670
24671 2010-11-13  Jim Meyering  <meyering@redhat.com>
24672
24673         tests: avoid test failure on Solaris 10 due to lack of PATH export
24674         * tests/test-update-copyright.sh: Don't forget to export PATH.
24675
24676         init.sh: ensure that IFS is defined, just in case...
24677         * tests/init.sh (setup_): Ensure that IFS is defined,
24678         so that saving and restoring it works as expected.  This
24679         appears to be useful at least for an old version of dash
24680         from a long time ago (RH 6).  See here for details:
24681         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24682
24683         maint.mk: tighten "test a == b" check
24684         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24685         test to files that contain something like #!/bin/sh.
24686         Without this, coreutils would get two false positives in
24687         the comments of C source files.
24688
24689 2010-11-12  Eric Blake  <eblake@redhat.com>
24690
24691         bootstrap: fix typo in previous attempt
24692         * build-aux/bootstrap (buildreq): Correct the grouping.
24693         Reported by Paul Eggert.
24694
24695         maintainer-makefile: prohibit test x == x
24696         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24697         Based on a report by Matthias Bolte.
24698
24699         bootstrap: allow FreeBSD gzip
24700         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24701         which has no '.' and goes to stderr.
24702         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24703         Reported by Matthias Bolte.
24704
24705         maintainer-makefile: check for i18n setup
24706         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24707         will likely work.
24708
24709 2010-11-12  Bruno Haible  <bruno@clisp.org>
24710
24711         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24712         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24713         * lib/nanosleep.c (nanosleep): Likewise.
24714
24715 2010-11-11  Bruno Haible  <bruno@clisp.org>
24716
24717         fcntl-h: Fix for use of C++ on glibc systems.
24718         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24719         also on glibc systems in C++ mode.
24720         Reported by Gary V. Vaughan <gary@gnu.org>.
24721
24722 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24723
24724         mknod: avoid false failure with dash
24725         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24726
24727 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24728
24729         unlink: Fix "is it should" typo in diagnostic.
24730         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24732
24733 2010-11-11  Bruno Haible  <bruno@clisp.org>
24734
24735         Tests for module 'strerror_r-posix'.
24736         * modules/strerror_r-posix-tests: New file.
24737         * tests/test-strerror_r.c: New file.
24738         * tests/test-string-c++.cc: Check the signature of strerror_r.
24739
24740         New module 'strerror_r-posix'.
24741         * lib/string.in.h (strerror_r): New declaration.
24742         * lib/strerror_r.c: New file.
24743         * m4/strerror_r.m4: New file.
24744         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24745         of strerror_r.
24746         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24747         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24748         * modules/strerror_r-posix: New file.
24749         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24750         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24751         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24752         portability problems.
24753
24754 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24755
24756         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24757         line is also considered for output. Quoted function name in shell
24758         command, so temporary files for functions like MyClass::operator()
24759         are removed correctly without errors.
24760
24761 2010-11-09  Bruno Haible  <bruno@clisp.org>
24762
24763         * doc/posix-functions/strerror.texi: List more failing platforms.
24764
24765         * doc/posix-functions/strerror.texi: Add a comment.
24766
24767 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24768
24769         fdopendir: fix bug on MacOS X when low on file descriptors
24770
24771         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24772         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24773         All callers changed.
24774         (fdopendir): Invoke save_cwd at the top level, not after using
24775         multiple dup() calls to use up file descriptors.  Then retry
24776         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24777         less than the maximum number of open file descriptors, because
24778         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24779         on Mac OS X 10.6.4 for tar 1.24
24780         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24781         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24782         and for tar 1.25
24783         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24784
24785 2010-11-07  Bruno Haible  <bruno@clisp.org>
24786
24787         vasnprintf: Support I flag on glibc systems.
24788         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24789         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24790         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24791         snprintf function.
24792         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24793         glibc systems.
24794         * tests/test-vasnprintf-posix3.c: New file.
24795         * modules/vasnprintf-posix-tests (Files): Add it.
24796         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24797
24798 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24799
24800         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24801         * MODULES.html.sh: For compiler warnings, use name
24802         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24803
24804 2010-11-05  Eric Blake  <eblake@redhat.com>
24805
24806         ceil, floor: avoid spurious failure with icc
24807         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24808         [denormals-as-zero] when optimizing without -mieee-fp option.
24809         * tests/test-floorf2.c (floorf_reference): Likewise.
24810         * tests/test-ceilf1.c (dummy): New function.
24811         (main): Use it to outsmart icc's optimization.
24812         * tests/test-floorf1.c (dummy, main): Likewise.
24813
24814         tests: require working signbit
24815         * modules/ceilf-tests (Depends-on): Add signbit.
24816         * modules/ceill-tests (Depends-on): Likewise.
24817         * modules/floorf-tests (Depends-on): Likewise.
24818         * modules/floorl-tests (Depends-on): Likewise.
24819         * modules/round-tests (Depends-on): Likewise.
24820         * modules/roundf-tests (Depends-on): Likewise.
24821         * modules/roundl-tests (Depends-on): Likewise.
24822         * modules/trunc-tests (Depends-on): Likewise.
24823         * modules/truncf-tests (Depends-on): Likewise.
24824         * modules/truncl-tests (Depends-on): Likewise.
24825
24826         strtod: work around icc bug
24827         * lib/strtod.c (minus_zero): Define to working value.
24828         (strtod): Use it to avoid icc bug.
24829
24830         copysign: enhance tests
24831         * modules/copysign-tests (Files): Add minus-zero.h.
24832         * tests/test-copysign.c (main): Also test zeros.
24833
24834 2010-11-04  Eric Blake  <eblake@redhat.com>
24835
24836         ceil, floor, round, trunc: enhance tests of -0
24837         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24838         * tests/test-ceill.c (main): Likewise.
24839         * tests/test-floorf1.c (main): Likewise.
24840         * tests/test-floorl.c (main): Likewise.
24841         * tests/test-round1.c (main): Likewise.
24842         * tests/test-roundf1.c (main): Likewise.
24843         * tests/test-roundl.c (main): Likewise.
24844         * tests/test-trunc1.c (main): Likewise.
24845         * tests/test-truncf1.c (main): Likewise.
24846         * tests/test-truncl.c (main): Likewise.
24847
24848 2010-11-04  Eric Blake  <eblake@redhat.com>
24849
24850         frexp, tests: work around ICC bug with -zero
24851         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24852         works with more compilers.
24853         * tests/minus-zero.h: New file.
24854         * modules/ceilf-tests (Files): Include it.
24855         * modules/ceill-tests (Files): Likewise.
24856         * modules/floorf-tests (Files): Likewise.
24857         * modules/floorl-tests (Files): Likewise.
24858         * modules/frexp-nolibm-tests (Files): Likewise.
24859         * modules/frexp-tests (Files): Likewise.
24860         * modules/frexpl-nolibm-tests (Files): Likewise.
24861         * modules/frexpl-tests (Files): Likewise.
24862         * modules/isnan-tests (Files): Likewise.
24863         * modules/isnand-nolibm-tests (Files): Likewise.
24864         * modules/isnand-tests (Files): Likewise.
24865         * modules/isnanf-nolibm-tests (Files): Likewise.
24866         * modules/isnanf-tests (Files): Likewise.
24867         * modules/isnanl-nolibm-tests (Files): Likewise.
24868         * modules/isnanl-tests (Files): Likewise.
24869         * modules/round-tests (Files): Likewise.
24870         * modules/roundf-tests (Files): Likewise.
24871         * modules/roundl-tests (Files): Likewise.
24872         * modules/ldexpl-tests (Files): Likewise.
24873         * modules/signbit-tests (Files): Likewise.
24874         * modules/snprintf-posix-tests (Files): Likewise.
24875         * modules/sprintf-posix-tests (Files): Likewise.
24876         * modules/strtod-tests (Files): Likewise.
24877         * modules/trunc-tests (Files): Likewise.
24878         * modules/truncf-tests (Files): Likewise.
24879         * modules/truncl-tests (Files): Likewise.
24880         * modules/vsnprintf-posix-tests (Files): Likewise.
24881         * modules/vsprintf-posix-tests (Files): Likewise.
24882         * modules/vasnprintf-posix-tests (Files): Likewise.
24883         * modules/vasprintf-posix-tests (Files): Likewise.
24884         * tests/test-ceilf1.c (main): Use it.
24885         * tests/test-ceill.c (main): Likewise.
24886         * tests/test-floorf1.c (main): Likewise.
24887         * tests/test-floorl.c (main): Likewise.
24888         * tests/test-frexp.c (main): Likewise.
24889         * tests/test-frexpl.c (main): Likewise.
24890         * tests/test-isnan.c (main): Likewise.
24891         * tests/test-isnand.h (main): Likewise.
24892         * tests/test-isnanf.h (main): Likewise.
24893         * tests/test-isnanl.h (main): Likewise.
24894         * tests/test-ldexpl.c (main): Likewise.
24895         * tests/test-round.c (main): Likewise.
24896         * tests/test-roundf.c (main): Likewise.
24897         * tests/test-roundl.c (main): Likewise.
24898         * tests/test-signbit.c (test_signbitf, test_signbitd)
24899         (test_signbitl): Likewise.
24900         * tests/test-snprintf-posix.h (test_function): Likewise.
24901         * tests/test-sprintf-posix.h (test_function): Likewise.
24902         * tests/test-strtod.c (main): Likewise.
24903         * tests/test-trunc1.c (main): Likewise.
24904         * tests/test-truncf1.c (main): Likewise.
24905         * tests/test-truncl.c (main): Likewise.
24906
24907         isnanl: work around icc bug
24908         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24909
24910 2010-11-03  Eric Blake  <eblake@redhat.com>
24911
24912         tests: fix compiler warnings
24913         * tests/test-getopt.h (test_getopt): Fix condition.
24914         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24915         * tests/test-pipe2.c (main): Likewise.
24916         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24917
24918         utimens: fix broken m4 test
24919         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24920
24921 2010-10-28  Bruno Haible  <bruno@clisp.org>
24922
24923         posix_spawn*, getdtablesize: Relax license.
24924         * modules/posix_spawn (License): Change to LGPLv2+.
24925         * modules/posix_spawnp (License): Likewise.
24926         * modules/posix_spawn-internal (License): Likewise.
24927         * modules/posix_spawnattr_init (License): Likewise.
24928         * modules/posix_spawnattr_getflags (License): Likewise.
24929         * modules/posix_spawnattr_setflags (License): Likewise.
24930         * modules/posix_spawnattr_getpgroup (License): Likewise.
24931         * modules/posix_spawnattr_setpgroup (License): Likewise.
24932         * modules/posix_spawnattr_getschedparam (License): Likewise.
24933         * modules/posix_spawnattr_setschedparam (License): Likewise.
24934         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24935         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24936         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24937         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24938         * modules/posix_spawnattr_getsigmask (License): Likewise.
24939         * modules/posix_spawnattr_setsigmask (License): Likewise.
24940         * modules/posix_spawnattr_destroy (License): Likewise.
24941         * modules/posix_spawn_file_actions_init (License): Likewise.
24942         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24943         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24944         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24945         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24946         * modules/getdtablesize (License): Likewise.
24947         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24948
24949 2010-10-26  Bruno Haible  <bruno@clisp.org>
24950
24951         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24952         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24953         Cygwin and mingw.
24954         Suggested by Eric Blake.
24955
24956 2010-10-26  Bruno Haible  <bruno@clisp.org>
24957
24958         stdio: Work around compilation error due to renameat() on Solaris 10.
24959         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24960         * lib/renameat.c: Don't include <unistd.h> here.
24961         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24962         Reported by Paul Eggert and Eric Blake.
24963
24964 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         renameat: port to Solaris 10, which declares renameat in unistd.h
24967
24968         * lib/renameat.c: Include unistd.h before stdio.h, because
24969         Solaris 10 declares renameat in unistd.h.  Problem encountered
24970         when building GNU tar 1.24 on Solaris 10.
24971
24972 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24973
24974         fdopendir: fix C89 compilation
24975         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24976         compilers.
24977
24978 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24979
24980         inttostr: simplify by removing unnecessary redundancy
24981         * lib/anytostr.c: Don't include verify.h.
24982         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24983         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24984         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24985         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24986         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24987         Likewise.
24988         * modules/inttostr (Depends-on): Remove 'verify'.
24989
24990 2010-10-23  Bruno Haible  <bruno@clisp.org>
24991
24992         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24993         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24994         Reported by Eric Blake.
24995
24996 2010-10-23  Bruno Haible  <bruno@clisp.org>
24997
24998         Tests: Fix LOCALE_JA on MirBSD 10.
24999         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25000         to an UTF-8 locale.
25001         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25003         Reported by Eric Blake.
25004
25005 2010-10-21  Bruno Haible  <bruno@clisp.org>
25006
25007         nl_langinfo test: Avoid test failure on NetBSD 5.
25008         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25009         Reported by Eric Blake.
25010
25011 2010-10-21  Eric Blake  <eblake@redhat.com>
25012
25013         c-stack: work around libsigsegv 2.8 bug
25014         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25015         overflow on at least PowerPC64.
25016
25017 2010-10-17  Bruno Haible  <bruno@clisp.org>
25018
25019         userspec: Drop redundant file.
25020         * modules/userspec (Files): Remove lib/inttostr.h.
25021
25022 2010-10-17  Bruno Haible  <bruno@clisp.org>
25023
25024         nl_langinfo tests: Silence some warnings.
25025         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25026         Reported by Jim Meyering.
25027
25028 2010-10-17  Bruno Haible  <bruno@clisp.org>
25029
25030         Make use of GCC's attribute __alloc_size__.
25031         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25032         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25033         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25034         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25035         __alloc_size__.
25036         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25037         Suggested by Jim Meyering.
25038
25039 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25040
25041         bootstrap: anchor .gitignore entries.
25042         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25043         with...
25044         (insert_vc_ignore): ... this new function, which prepends `/' to
25045         all .gitignore entries before passing them to
25046         insert_sorted_if_absent.
25047
25048 2010-10-16  Bruno Haible  <bruno@clisp.org>
25049
25050         nextafter: Fix configure check.
25051         * modules/nextafter (configure.ac): Correct expected prototype.
25052
25053 2010-10-16  Bruno Haible  <bruno@clisp.org>
25054
25055         termios: Update documentation.
25056         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25057
25058 2010-10-16  Bruno Haible  <bruno@clisp.org>
25059
25060         tests: Make them compile with TinyCC.
25061         * tests/test-strstr.c (main): Remove parentheses around array
25062         initializer.
25063
25064 2010-10-15  Eric Blake  <eblake@redhat.com>
25065
25066         ignore-value: make header idempotent
25067         * lib/ignore-value.h: Add double-inclusion guards.
25068         Reported by Stefan Berger.
25069
25070 2010-10-15  Jim Meyering  <meyering@redhat.com>
25071
25072         GNUmakefile: handle "stable" target, not "major"
25073         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25074         lists in maint.mk and announce-gen.  Without this, "make stable"
25075         would fail to ensure that $(VERSION) is up to date.
25076
25077 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25078
25079         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25080         & co.
25081
25082 2010-10-14  Bruno Haible  <bruno@clisp.org>
25083
25084         vasnprintf: Don't set errno to 0.
25085         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25086         block that sets it to 0.
25087         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25088
25089 2010-10-14  Bruno Haible  <bruno@clisp.org>
25090
25091         socketlib: Fix.
25092         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25093         gl_PREREQ_SYS_H_WINSOCK2.
25094         Reported by Ian Beckwith <ianb@erislabs.net>.
25095
25096 2010-10-13  Jim Meyering  <meyering@redhat.com>
25097
25098         test-select-stdin.c: avoid warn_unused_result warnings
25099         * tests/test-select-stdin.c: Include "macros.h".
25100         ASSERT that read and fflush succeed.
25101
25102 2010-10-13  Jim Meyering  <meyering@redhat.com>
25103
25104         git-version-gen: do require git-VC'd files in cwd
25105         * build-aux/git-version-gen: Reject a git version string
25106         if there are no commits associated with the current directory.
25107         This avoids an unlikely false-positive (unrelated dir whose parent
25108         repository also contains a tag matching v*), as pointed out
25109         by Giuseppe Scrivano in
25110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25111
25112 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25113
25114         argv-iter: omit nonconforming declaration
25115         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25116         enum arg_iter_err declaration, which doesn't conform to C99.
25117         Solaris 10 cc warns about this.
25118
25119 2010-10-13  Eric Blake  <eblake@redhat.com>
25120
25121         termios: fix compilation on mingw
25122         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25123         (gl_TERMIOS_H): Adjust it on mingw.
25124         * modules/termios (Makefile.am): Substitute new key.
25125         * lib/termios.in.h (includes): Make include_next conditional.
25126         * doc/posix-headers/termios.texi (termios.h): Update
25127         documentation.
25128         Reported by Daniel P. Berrange.
25129
25130 2010-10-13  Jim Meyering  <meyering@redhat.com>
25131
25132         git-version-gen: don't require that .git/ be in the current dir
25133         * build-aux/git-version-gen: Adjust this script so that it works
25134         when run from any working directory beneath the top-level .git/-
25135         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25137
25138         test-select: avoid warn_unused_result warnings
25139         * tests/test-select.c: Include "macros.h".
25140         ASSERT that each call to read, write, and pipe succeeds.
25141         While not technically required, also check each "close".
25142         * modules/select-tests (Files): Add tests/macros.h.
25143
25144         test-symlinkat: remove declaration of unused local
25145         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25146
25147         test-inttostr: avoid shadowing warnings
25148         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25149         and use malloc rather than the stack for the same reason as
25150         mentioned in the comment justifying the other allocation.
25151
25152 2010-10-11  Bruno Haible  <bruno@clisp.org>
25153
25154         stdlib: Allow multiple gnulib generated replacements to coexist.
25155         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25156         Reported by Sam Steingold <sds@gnu.org>.
25157
25158 2010-10-11  Jim Meyering  <meyering@redhat.com>
25159
25160         fix a documentation typo
25161         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25162
25163 2010-10-11  Eric Blake  <eblake@redhat.com>
25164
25165         futimens: work around Solaris 11 bug
25166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25167         * tests/test-futimens.h (test_futimens): Enhance, rather than
25168         weaken test.
25169         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25170
25171 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         Indentation.
25174         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25175         higher-level operators more to the left.
25176
25177 2010-10-11  Jim Meyering  <meyering@redhat.com>
25178
25179         test-futimens: avoid unwarranted test failure on Solaris 5.11
25180         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25181         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25182         because it tries to dereference the NULL name argument.
25183
25184 2010-10-11  Bruno Haible  <bruno@clisp.org>
25185
25186         Indentation.
25187         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25188         indentation.
25189
25190 2010-10-11  Jim Meyering  <meyering@redhat.com>
25191
25192         spawn.in.h: make indentation consistent with parentheses
25193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25194         Make indentation consistent with parentheses.
25195
25196 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25197
25198         Fix mismatched parens in previous commit
25199         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25200         parens.
25201
25202 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25203
25204         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25205
25206         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25207         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25208         * lib/malloca.c: Include "verify.h".
25209         (verify1): Remove, replacing with a verify call.
25210         * lib/relocwrapper.c (verify1): Likewise.
25211         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25212         Likewise.
25213         * modules/malloca (Depends-on): Add 'verify'.
25214         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25215         * modules/vasnprintf (Depends-on): Add 'verify'.
25216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25223
25224         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25225
25226         Formerly the style was sometimes 2*X - 1, because the C standard
25227         was wrongly thought to disallow ?: in integral constant expressions.
25228         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25229         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25231         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25232         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25233         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25234         verify that time_t cannot be floating.
25235
25236 2010-10-08  Eric Blake  <eblake@redhat.com>
25237
25238         time: enforce recent POSIX ruling that time_t is integral
25239         * lib/time.in.h (__time_t_must_be_integral): Detect any
25240         problematic systems, allowing the rest of gnulib to assume POSIX.
25241
25242 2010-10-08  Jim Meyering  <meyering@redhat.com>
25243
25244         fdopendir: fix a bug on systems lacking openat and /proc support
25245         OpenBSD 4.7 is one such system.  The most noticeable effect was
25246         failure of any application making nontrivial use of fts: rm, du,
25247         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25248           ./rm: traversal failed: `a': Bad file descriptor
25249         Debugging that, you see that even though FD 6 was closed just
25250         prior to the opendir call in fd_clone_opendir, its resulting
25251         dir->dd_fd was 8, rather than the expected value of 6:
25252
25253         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25254         93                close (fd);
25255         (gdb) n
25256         94                dir = fd_clone_opendir (dupfd);
25257         (gdb) n
25258         95                saved_errno = errno;
25259         (gdb) p dir->dd_fd
25260         $11 = 8
25261
25262         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25263         The problem is that on OpenBSD, fd_clone_opendir has to resort
25264         to using the old-style save/restore CWD mechanism, due to its
25265         lack of openat/proc support, and *that* would steal the FD (6)
25266         that opendir was supposed to use.
25267
25268         The fix is to squirrel away the desired FD so that save_cwd uses a
25269         different one, and then free the dest FD right before calling opendir.
25270         That guarantees opendir will use the required file descriptor.
25271
25272         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25273
25274 2010-10-08  Bruno Haible  <bruno@clisp.org>
25275
25276         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25277         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25278
25279 2010-10-08  Bruno Haible  <bruno@clisp.org>
25280
25281         nanosleep: Make replacement POSIX compliant.
25282         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25283         is out of range.
25284         Reported by Jim Meyering.
25285
25286 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         bootstrap: add hook for altering gnulib.mk, for Bison
25289         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25290         the Bison bootstrapping process can rewrite file names and variables
25291         in this file before later parts of 'bootstrap' use the file.
25292         Bison wants to include lib/gnulib.mk from the top-level makefile,
25293         so it needs the file names in this file to be relative to the top
25294         level, not relative to lib; plus it needs variable names to be
25295         rewritten.
25296         (slurp): Use the new function.
25297
25298         bootstrap: reformat for readability
25299         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25300
25301 2010-10-08  Eric Blake  <eblake@redhat.com>
25302
25303         docs: update cygwin progress
25304         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25305         1.7.7.
25306         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25307         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25308         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25309         * doc/posix-functions/carg.texi (carg): Likewise.
25310         * doc/posix-functions/cargf.texi (cargf): Likewise.
25311         * doc/posix-functions/casin.texi (casin): Likewise.
25312         * doc/posix-functions/casinf.texi (casinf): Likewise.
25313         * doc/posix-functions/casinh.texi (casinh): Likewise.
25314         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25315         * doc/posix-functions/catan.texi (catan): Likewise.
25316         * doc/posix-functions/catanf.texi (catanf): Likewise.
25317         * doc/posix-functions/catanh.texi (catanh): Likewise.
25318         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25319         * doc/posix-functions/ccos.texi (ccos): Likewise.
25320         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25321         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25322         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25323         * doc/posix-functions/cexp.texi (cexp): Likewise.
25324         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25325         * doc/posix-functions/cimag.texi (cimag): Likewise.
25326         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25327         * doc/posix-functions/clog.texi (clog): Likewise.
25328         * doc/posix-functions/clogf.texi (clogf): Likewise.
25329         * doc/posix-functions/conj.texi (conj): Likewise.
25330         * doc/posix-functions/conjf.texi (conjf): Likewise.
25331         * doc/posix-functions/cpow.texi (cpow): Likewise.
25332         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25333         * doc/posix-functions/cproj.texi (cproj): Likewise.
25334         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25335         * doc/posix-functions/creal.texi (creal): Likewise.
25336         * doc/posix-functions/crealf.texi (crealf): Likewise.
25337         * doc/posix-functions/csin.texi (csin): Likewise.
25338         * doc/posix-functions/csinf.texi (csinf): Likewise.
25339         * doc/posix-functions/csinh.texi (csinh): Likewise.
25340         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25341         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25342         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25343         * doc/posix-functions/ctan.texi (ctan): Likewise.
25344         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25345         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25346         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25347         * doc/posix-headers/complex.texi (complex.h): Likewise.
25348
25349 2010-10-07  Jim Meyering  <meyering@redhat.com>
25350
25351         parse-datetime: avoid compilation failure on OpenBSD 4.7
25352         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25353         This works around a compilation failure on OpenBSD 4.7:
25354         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25355
25356 2010-10-07  Eric Blake  <eblake@redhat.com>
25357
25358         docs: update cygwin progress
25359         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25360         1.7.6.
25361         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25362         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25363         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25364         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25365         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25366         Likewise.
25367         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25368         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25369         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25370         Likewise.
25371         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25372         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25373         Likewise.
25374         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25375         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25376         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25377         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25378         Likewise.
25379         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25380         Likewise.
25381         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25382
25383         docs: update parse-datetime history
25384         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25385         documentation of this function's history and alternatives.
25386
25387         cygwin: use more robust version check
25388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25389         exclude an eventual cygwin 1.9.1.
25390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25392         (gl_FUNC_STRCASESTR): Likewise.
25393         Reported by Bruno Haible.
25394
25395 2010-10-06  Bruno Haible  <bruno@clisp.org>
25396
25397         string, sys_select: Avoid #including large headers unless necessary.
25398         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25399         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25400         OSF/1, BeOS, Haiku.
25401         Reported by Jim Meyering.
25402
25403 2010-10-05  Eric Blake  <eblake@redhat.com>
25404
25405         memmem, strstr, strcasestr: fix bug with long periodic needle
25406         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25407         periodic needle having false positive.
25408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25409         and cygwin 1.7.7.
25410         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25412         (gl_FUNC_STRCASESTR): Likewise.
25413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25414         * tests/test-memmem.c (main): Expose the bug.
25415         * tests/test-strcasestr.c (main): Likewise.
25416         * tests/test-strstr.c (main): Likewise.
25417         * tests/test-c-strcasestr.c (main): Likewise.
25418         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25419         * doc/posix-functions/strstr.texi (strstr): Likewise.
25420         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25421         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25422
25423 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25424
25425         parse-datetime: do some more renaming
25426         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25427         parse_datetime, not get_date.  Mention the renaming.
25428         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25429         in comments.
25430         * m4/bison.m4: Likewise.
25431
25432 2010-10-05  Eric Blake  <eblake@redhat.com>
25433
25434         parse-datetime: better name than get_date
25435         * NEWS: Reword the deprecation notice.
25436         * modules/get_date: Rename to modules/parse-datetime.
25437         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25438         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25439         * lib/get_date.y: Rename to lib/parse-datetime.y.
25440         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25441         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25442         * doc/getdate.texi: Provide fallback wrapper.
25443         * lib/getdate.h: Move guts, and wrap...
25444         * lib/parse-datetime.h: ...new file.
25445         * lib/parse-datetime.y (get_date): Rename...
25446         (parse_datetime): ...to this.
25447         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25448         (gl_PARSE_DATETIME): ...to this.
25449         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25450         documentation.
25451         * modules/getdate (Files): Provide fallback docs and header.
25452         (Notice, Depends-on): Update references.
25453         * tests/test-parse-datetime.c: Likewise.
25454         * DEPENDENCIES: Likewise.
25455         * MODULES.html.sh (Date and time <time.h>): Likewise.
25456         * doc/parse-datetime.texi (Date input formats)
25457         (Authors of parse_datetime): Likewise.
25458         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25459         (Include): Likewise.
25460         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25461         * gnulib-tool: Likewise.
25462         * m4/bison.m4 (gl_BISON): Likewise.
25463         Suggested by Bruno Haible.
25464
25465 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25466
25467         more ports to Solaris tr, which needs [] around ranges
25468         * gnulib-tool: Solaris tr needs [] around ranges.
25469         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25470         * tests/test-pipe-filter-gi1.c (main): Likewise.
25471         * tests/test-pipe-filter-ii1.c (main): Likewise.
25472
25473 2010-10-05  Eric Blake  <eblake@redhat.com>
25474
25475         bootstrap: fix Solaris regression
25476         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25477         around ranges.
25478         Reported by Pádraig Brady.
25479
25480         bootstrap: work with pkg-config
25481         * build-aux/bootstrap (check_versions): Also transliterate - in
25482         prerequisite name.
25483         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25484         prerequisites that were already found, to avoid confusion.
25485         Reported by Justin Clift.
25486
25487         faccessat: remove unused wrappers
25488         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25489         presence of these wrappers dragged in -lgen on Solaris.
25490         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25491
25492 2010-10-05  Jim Meyering  <meyering@redhat.com>
25493
25494         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25495         * Makefile (sc_pragma_columns): New syntax-check rule.
25496
25497 2010-10-04  Bruno Haible  <bruno@clisp.org>
25498
25499         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25500         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25501         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25502         Reported by Bruce Korb and Eric Blake.
25503
25504 2010-10-04  Bruno Haible  <bruno@clisp.org>
25505
25506         threadlib: Make option --with-libpth-prefix work.
25507         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25508         use $LIBPTH, not just -lpth.
25509
25510 2010-10-04  Bruno Haible  <bruno@clisp.org>
25511
25512         Avoid line length limitation from HP NonStop system header files.
25513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25514         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25515         * lib/ctype.in.h: Likewise.
25516         * lib/dirent.in.h: Likewise.
25517         * lib/errno.in.h: Likewise.
25518         * lib/fcntl.in.h: Likewise.
25519         * lib/float.in.h: Likewise.
25520         * lib/getopt.in.h: Likewise.
25521         * lib/iconv.in.h: Likewise.
25522         * lib/inttypes.in.h: Likewise.
25523         * lib/langinfo.in.h: Likewise.
25524         * lib/locale.in.h: Likewise.
25525         * lib/math.in.h: Likewise.
25526         * lib/netdb.in.h: Likewise.
25527         * lib/netinet_in.in.h: Likewise.
25528         * lib/poll.in.h: Likewise.
25529         * lib/pthread.in.h: Likewise.
25530         * lib/pty.in.h: Likewise.
25531         * lib/sched.in.h: Likewise.
25532         * lib/se-selinux.in.h: Likewise.
25533         * lib/search.in.h: Likewise.
25534         * lib/signal.in.h: Likewise.
25535         * lib/spawn.in.h: Likewise.
25536         * lib/stdarg.in.h: Likewise.
25537         * lib/stddef.in.h: Likewise.
25538         * lib/stdint.in.h: Likewise.
25539         * lib/stdio.in.h: Likewise.
25540         * lib/stdlib.in.h: Likewise.
25541         * lib/string.in.h: Likewise.
25542         * lib/strings.in.h: Likewise.
25543         * lib/sys_file.in.h: Likewise.
25544         * lib/sys_ioctl.in.h: Likewise.
25545         * lib/sys_select.in.h: Likewise.
25546         * lib/sys_socket.in.h: Likewise.
25547         * lib/sys_stat.in.h: Likewise.
25548         * lib/sys_time.in.h: Likewise.
25549         * lib/sys_times.in.h: Likewise.
25550         * lib/sys_utsname.in.h: Likewise.
25551         * lib/sys_wait.in.h: Likewise.
25552         * lib/sysexits.in.h: Likewise.
25553         * lib/termios.in.h: Likewise.
25554         * lib/time.in.h: Likewise.
25555         * lib/unistd.in.h: Likewise.
25556         * lib/wchar.in.h: Likewise.
25557         * lib/wctype.in.h: Likewise.
25558         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25559         * modules/ctype (Makefile.am): Likewise.
25560         * modules/dirent (Makefile.am): Likewise.
25561         * modules/errno (Makefile.am): Likewise.
25562         * modules/fcntl-h (Makefile.am): Likewise.
25563         * modules/float (Makefile.am): Likewise.
25564         * modules/getopt-posix (Makefile.am): Likewise.
25565         * modules/iconv-h (Makefile.am): Likewise.
25566         * modules/inttypes (Makefile.am): Likewise.
25567         * modules/langinfo (Makefile.am): Likewise.
25568         * modules/locale (Makefile.am): Likewise.
25569         * modules/math (Makefile.am): Likewise.
25570         * modules/netdb (Makefile.am): Likewise.
25571         * modules/netinet_in (Makefile.am): Likewise.
25572         * modules/poll-h (Makefile.am): Likewise.
25573         * modules/pthread (Makefile.am): Likewise.
25574         * modules/pty (Makefile.am): Likewise.
25575         * modules/sched (Makefile.am): Likewise.
25576         * modules/search (Makefile.am): Likewise.
25577         * modules/selinux-h (Makefile.am): Likewise.
25578         * modules/signal (Makefile.am): Likewise.
25579         * modules/spawn (Makefile.am): Likewise.
25580         * modules/stdarg (Makefile.am): Likewise.
25581         * modules/stddef (Makefile.am): Likewise.
25582         * modules/stdint (Makefile.am): Likewise.
25583         * modules/stdio (Makefile.am): Likewise.
25584         * modules/stdlib (Makefile.am): Likewise.
25585         * modules/string (Makefile.am): Likewise.
25586         * modules/strings (Makefile.am): Likewise.
25587         * modules/sys_file (Makefile.am): Likewise.
25588         * modules/sys_ioctl (Makefile.am): Likewise.
25589         * modules/sys_select (Makefile.am): Likewise.
25590         * modules/sys_socket (Makefile.am): Likewise.
25591         * modules/sys_stat (Makefile.am): Likewise.
25592         * modules/sys_time (Makefile.am): Likewise.
25593         * modules/sys_times (Makefile.am): Likewise.
25594         * modules/sys_utsname (Makefile.am): Likewise.
25595         * modules/sys_wait (Makefile.am): Likewise.
25596         * modules/sysexits (Makefile.am): Likewise.
25597         * modules/termios (Makefile.am): Likewise.
25598         * modules/time (Makefile.am): Likewise.
25599         * modules/unistd (Makefile.am): Likewise.
25600         * modules/wchar (Makefile.am): Likewise.
25601         * modules/wctype (Makefile.am): Likewise.
25602
25603 2010-10-04  Bruno Haible  <bruno@clisp.org>
25604
25605         read-file tests: Avoid a test failure on NonStop Kernel.
25606         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25607         a regular file.
25608         Reported by Joachim Schmitz <schmitz@hp.com>.
25609
25610 2010-10-03  Bruno Haible  <bruno@clisp.org>
25611
25612         gnulib-tool: Fixes for --create-testdir with --libtool.
25613         * gnulib-tool (func_get_automake_snippet): Don't augment
25614         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25615         an executable.
25616         (func_create_testdir): Handle module 'alloca' like func_import.
25617         Reported by Bruce Korb <bruce.korb@gmail.com>.
25618
25619 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25620
25621         Avoid some lines longer than 80 characters.
25622         * lib/stdint.in.h: Break long comment lines.
25623         * lib/math.in.h: Likewise.
25624         (_GL_NUM_UINT_WORDS): New macro, for readability.
25625         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25626         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25627         * lib/stdlib.in.h: Likewise.
25628         * lib/spawn.in.h: Likewise.
25629         * lib/sys_socket.in.h: Update an URL.
25630         * lib/sys_stat.in.h: Break long line.
25631
25632 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25633
25634         Improve pmccabe2html.
25635         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25636         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25637         when the sources change. Remove the line in the HTML about "Used
25638         ranges" (which implied that there might be other unused ranges),
25639         rename "Resume" to "Summary" (easier to understand for more users).
25640         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25641         styles, and some unnecessary blank lines.
25642
25643 2010-10-03  Bruno Haible  <bruno@clisp.org>
25644             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25645
25646         acl: Add support for ACLs on NonStop Kernel.
25647         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25648         Check whether the function aclsort() exists.
25649         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25650         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25651         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25652         (acl_nontrivial [HAVE_ACLSORT]: New function.
25653         (file_has_acl): Implement for NonStop Kernel.
25654         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25655         (qset_acl): Implement for NonStop Kernel.
25656         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25657         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25658         (main): Implement for NonStop Kernel.
25659         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25660         Kernel. Handle this flavor.
25661         * tests/test-set-mode-acl.sh: Likewise.
25662         * tests/test-copy-acl.sh: Likewise.
25663         * tests/test-copy-file.sh: Likewise.
25664
25665 2010-10-03  Bruno Haible  <bruno@clisp.org>
25666
25667         Info about ACLs on NonStop Kernel.
25668         * doc/acl-resources.txt: Add info about NonStop Kernel.
25669         References by Joachim Schmitz <schmitz@hp.com>.
25670
25671 2010-10-02  Bruno Haible  <bruno@clisp.org>
25672
25673         Define missing EDQUOT on NonStop Kernel.
25674         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25675         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25677         missing.
25678         * doc/posix-headers/errno.texi: Mention the NSK bug.
25679         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25680         Reported by Joachim Schmitz <schmitz@hp.com>.
25681
25682 2010-10-02  Bruno Haible  <bruno@clisp.org>
25683
25684         Update doc for POSIX:2008.
25685         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25686         Update URL of POSIX specification.
25687
25688 2010-10-02  Bruno Haible  <bruno@clisp.org>
25689
25690         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25691         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25692         from gnulib, not from Automake.
25693
25694 2010-10-02  Bruno Haible  <bruno@clisp.org>
25695
25696         New module 'system-posix'.
25697         * modules/system-posix: New file.
25698         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25699         module is present.
25700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25701         GNULIB_SYSTEM_POSIX.
25702         * modules/stdlib (Depends-on): Remove sys_wait.
25703         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25704         * doc/posix-functions/system.texi: Mention the new module.
25705         * doc/posix-headers/stdlib.texi: Likewise.
25706         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25707         define test_sys_wait_macros to a no-op.
25708         Reported by Sam Steingold <sds@gnu.org>.
25709
25710 2010-09-30  Bruno Haible  <bruno@clisp.org>
25711
25712         More renaming from 'getdate' to 'get_date'.
25713         * doc/get_date.texi: Renamed from doc/getdate.texi.
25714         * modules/get_date (Files): Update.
25715         * MODULES.html.sh (Date and time <time.h>): Update.
25716         * DEPENDENCIES: Update.
25717         * gnulib-tool: Update comment.
25718         * m4/bison.m4 (gl_BISON): Likewise.
25719         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25720
25721 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25722
25723         bootstrap: support ACLOCAL_FLAGS during aclocal
25724         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25725         can add additional -I dir for third-party .m4 files.
25726
25727 2010-09-30  Eric Blake  <eblake@redhat.com>
25728
25729         bootstrap: use glibtoolize on MacOS
25730         * build-aux/bootstrap (check_versions): Convert libtool into
25731         libtoolize.
25732         (tool search): Move libtool check earlier, and look for
25733         glibtoolize for MacOS.
25734         (gnulib_tool_options): Auto-add --libtool when appropriate.
25735         Reported by Justin Clift.
25736
25737         poll: fix typo that broke test on MacOS
25738         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25739         Reported by Justin Clift.
25740
25741         getdate: rename to get_date
25742         Note: getdate.h is not renamed, to minimize client impact.
25743         * modules/getdate: Mark obsolete.  Move old contents...
25744         * modules/get_date: ...to new module name.
25745         * modules/getdate-tests: Move...
25746         * modules/get_date-tests: ...here.
25747         * m4/getdate.m4: Move...
25748         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25749         * lib/getdate.y: Move...
25750         * lib/get_date.y: ...here.
25751         * tests/test-getdate.c: Move...
25752         * tests/test-get_date.c: ...here.
25753         * doc/posix-functions/getdate.texi (getdate): Update name.
25754         * NEWS: Mention the change.
25755
25756 2010-09-29  Bruno Haible  <bruno@clisp.org>
25757
25758         Separate the module 'waitpid' from the module 'sys_wait'.
25759         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25760         present.
25761         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25762         gl_MODULE_INDICATOR_FOR_TESTS.
25763         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25764         * modules/sys_wait (Depends-on): Remove waitpid.
25765         (Makefile.am): Substitute GNULIB_WAITPID.
25766         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25767         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25768         signature only if the 'waitpid' module is present.
25769         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25770         * NEWS: Mention the change.
25771         * modules/grantpt (Depends-on): Add waitpid.
25772         * modules/wait-process (Depends-on): Likewise.
25773
25774 2010-09-29  Bruno Haible  <bruno@clisp.org>
25775
25776         More tests for module 'sys_wait'.
25777         * modules/sys_wait-c++-tests: New file.
25778         * tests/test-sys_wait-c++.cc: New file.
25779         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25780         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25781
25782 2010-09-29  Bruno Haible  <bruno@clisp.org>
25783
25784         New module 'waitpid'.
25785         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25786         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25787         Don't include <process.h>.
25788         (waitpid): Declare only, using modern idiom.
25789         * m4/waitpid.m4: New file.
25790         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25791         * modules/waitpid: New file.
25792         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25793         (Makefile.am): Update.
25794         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25795
25796 2010-09-28  Bruno Haible  <bruno@clisp.org>
25797
25798         poll: Assume ANSI C.
25799         * lib/poll.c (poll): Use an ANSI C declaration.
25800
25801 2010-09-28  Bruno Haible  <bruno@clisp.org>
25802
25803         poll-h: Create poll.h on all platforms.
25804         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25805         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25806         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25807         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25808         (gl_REPLACE_POLL_H): Don't set POLL_H.
25809         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25810         * modules/poll-h (Depends-on): Add include_next.
25811         (Makefile.am): Create poll.h unconditionally. Substitute also
25812         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25813
25814 2010-09-28  Bruno Haible  <bruno@clisp.org>
25815
25816         Tests for module 'poll-h'.
25817         * modules/poll-h-c++-tests: New file.
25818         * tests/test-poll-h-c++.cc: New file.
25819
25820         Tests for module 'poll-h'.
25821         * modules/poll-h-tests: New file.
25822         * tests/test-poll-h.c: New file.
25823
25824 2010-09-28  Bruno Haible  <bruno@clisp.org>
25825
25826         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25827         * modules/poll-h (Depends-on): Add 'extensions'.
25828
25829 2010-09-28  Bruno Haible  <bruno@clisp.org>
25830
25831         New module 'poll-h'.
25832         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25833         (poll): Use modern idiom.
25834         * modules/poll-h: New file.
25835         * modules/poll (Files): Remove lib/poll.in.h.
25836         (Depends-on): Add poll-h.
25837         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25838         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25839         * m4/poll_h.m4: New file.
25840         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25841         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25842         and invoke gl_REPLACE_POLL_H.
25843         * lib/poll.c: Use common idiom.
25844         * tests/test-poll.c: Likewise.
25845         * doc/posix-headers/poll.texi: Mention the poll-h module.
25846         Suggested by Eric Blake.
25847
25848 2010-09-26  Bruno Haible  <bruno@clisp.org>
25849
25850         sys_wait: Implement WSTOPSIG.
25851         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25852         Reported by Simon Josefsson.
25853
25854 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25855
25856         stdlib, sys_wait: Avoid compilation error on mingw.
25857         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25858
25859 2010-09-26  Bruno Haible  <bruno@clisp.org>
25860
25861         stdlib tests: Avoid code duplication.
25862         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25863         * modules/sys_wait-tests (Files): Likewise.
25864         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25865         * tests/test-stdlib.c: Include test-sys_wait.h.
25866         (main): Invoke test_sys_wait_macros.
25867         * tests/test-sys_wait.c: Include test-sys_wait.h.
25868         (main): Invoke test_sys_wait_macros.
25869
25870 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25871
25872         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25873         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25874         sure Windows sockets are working before calling getaddrinfo.
25875         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25876         * doc/gnulib.texi (Windows sockets): Fix typo.
25877
25878 2010-09-25  Bruno Haible  <bruno@clisp.org>
25879
25880         Tests for module 'regex-quote'.
25881         * modules/regex-quote-tests: New file.
25882         * tests/test-regex-quote.c: New file.
25883
25884         New module 'regex-quote'.
25885         * lib/regex-quote.h: New file.
25886         * lib/regex-quote.c: New file.
25887         * modules/regex-quote: New file.
25888         Suggested by Reuben Thomas <rrt@sc3d.org>.
25889
25890 2010-09-24  Bruno Haible  <bruno@clisp.org>
25891
25892         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25893         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25894
25895 2010-09-23  Bruno Haible  <bruno@clisp.org>
25896
25897         setenv: Relax license.
25898         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25899         Blake.
25900         Requested by Eric Blake.
25901
25902 2010-09-22  Bruno Haible  <bruno@clisp.org>
25903
25904         termios: Relax license.
25905         * modules/termios (License): Change to LGPLv2+.
25906         Requested by Eric Blake.
25907
25908 2010-09-22  Bruno Haible  <bruno@clisp.org>
25909
25910         threadlib: Allow the package to change the default to 'no'.
25911         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25912         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25913         Reported by Paul Eggert.
25914
25915 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25916             Bruno Haible  <bruno@clisp.org>
25917
25918         Fix endless loop in mbmemcasecoll.
25919         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25920         byte.
25921         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25922
25923 2010-09-22  Bruno Haible  <bruno@clisp.org>
25924
25925         Tests for module 'memcoll'.
25926         * modules/memcoll-tests: New file.
25927         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25928
25929         memcoll, xmemcoll: Clarify size vs. length.
25930         * modules/memcoll.c (memcoll0): Clarify specification.
25931         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25932         passed to collate_error.
25933
25934 2010-09-22  Bruno Haible  <bruno@clisp.org>
25935
25936         Tests for module 'memcasecmp'.
25937         * modules/memcasecmp-tests: New file.
25938         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25939
25940 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25941
25942         * lib/pthread.in.h: Add split double-inclusion guard, and include
25943         system <pthread.h> if there is one.  Use @@-style as in other
25944         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25945         pthread.h doesn't.
25946         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25947         (pthread_mutexattr_settype, pthread_mutex_trylock):
25948         New static inline functions, if there's no system <pthread.h>.
25949         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25950         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25951         Approximate with mutexes if the system lacks spinlocks, as in
25952         MacOS.
25953         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25954         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25955         @@-style.  Check for spinlocks separately.
25956         (gl_PTHREAD_DEFAULTS): New macro.
25957         * modules/pthread: Redo to use a more typical style for in.h files.
25958
25959 2010-09-21  Eric Blake  <eblake@redhat.com>
25960
25961         net_if: enhance tests
25962         * tests/test-net_if.c (main): Move signature checks earlier.
25963         Print failures to stderr.
25964         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25965         Document the bug that we do not yet fix.
25966
25967 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25968
25969         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25970         about gnulib, not GSS.
25971
25972 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25973
25974         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25975         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25976         for Emacs.
25977         * build-aux/pmccabe2html: Make Makefile.am example code more
25978         cut-and-paste friendly.
25979
25980 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25981
25982         * tests/test-net_if.c: New file.
25983         * modules/net_if-tests: New file.
25984
25985 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25986
25987         pthread: add pthread_spin_destroy
25988         * lib/pthread.in.h (pthread_spin_destroy): New function.
25989
25990 2010-09-19  Bruno Haible  <bruno@clisp.org>
25991
25992         gnulib-tool: Fix --help output.
25993         * gnulib-tool (func_usage): Fix help message.
25994         Reported by Reuben Thomas <rrt@sc3d.org>.
25995
25996 2010-09-18  Jim Meyering  <meyering@redhat.com>
25997
25998         maint.mk: avoid unexpanded \n in two diagnostics
25999         * top/maint.mk (sc_prohibit_always_true_header_tests):
26000         Don't use a literal \n in a halt=... assignment.  It would not be
26001         expanded, and the two \n bytes would appear in the diagnostic output
26002         rather than the desired newline.  Use halt=$$(printf ... instead.
26003         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26004
26005 2010-09-18  Bruno Haible  <bruno@clisp.org>
26006
26007         netinet_in: Doc tweak.
26008         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26009         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26010
26011 2010-09-18  Jim Meyering  <meyering@redhat.com>
26012
26013         init.sh: correct an outdated comment
26014         * tests/init.sh (create_exe_shims_):  s/function/alias/
26015
26016         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26017         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26018         a file named "*.exe" is removed between the glob expansion and the
26019         processing of that oddly named file.
26020
26021 2010-09-17  Eric Blake  <eblake@redhat.com>
26022
26023         mirbsd: add some more support
26024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26025         in BSD family.
26026         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26027         devices as OpenBSD.
26028         * m4/host-os.m4 (mirbsd): Add MirBSD.
26029
26030         tests: fix unportable assumption on sys/wait.h
26031         * tests/test-sys_wait.c (main): Relax test.
26032         * tests/test-stdlib.c (main): Likewise.
26033
26034         init.sh: accomodate directory with no .exes
26035         * tests/init.sh: Accomodate directory containing only scripts.
26036
26037         tests: avoid compiler warning
26038         * tests/test-stdlib.c (main): Use the variable.
26039
26040         fdutimens, fdutimensat: update signature, again
26041         * lib/utimens.h (gl_futimens): Delete, and move signature...
26042         (fdutimens): ...here.
26043         (fdutimensat): Rearrange signature.
26044         (lutimensat): Rename variable for clarity.
26045         * lib/fdutimensat.c (fdutimensat): Update signature.
26046         * lib/utimens.c (fdutimens): Likewise.
26047         (gl_futimens): Delete.
26048         (utimens, lutimens): Update callers.
26049         * lib/futimens.c (futimens): Likewise.
26050         * tests/test-fdutimensat.c: Likewise.
26051         * tests/test-utimens.c: Likewise.
26052         * tests/test-futimens.h: Update comment.
26053         * NEWS: Mention this.
26054         Suggested by Paul Eggert.
26055
26056 2010-09-17  Bruno Haible  <bruno@clisp.org>
26057
26058         Take over the maintenance of some older macros from Autoconf.
26059         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26060         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26061         GNU Autoconf.
26062         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26063         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26064
26065 2010-09-17  Eric Blake  <eblake@redhat.com>
26066
26067         fdutimensat: drop atflag validation
26068         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26069         with valid fd, to close a race scenario where futimens is
26070         unsupported and FILE was replaced by a symlink.
26071         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26072         accordingly.
26073         Suggested by Paul Eggert.
26074
26075 2010-09-16  Bruno Haible  <bruno@clisp.org>
26076
26077         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26078         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26079
26080 2010-09-16  Bruno Haible  <bruno@clisp.org>
26081
26082         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26083         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26084         login_tty exists.
26085         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26086
26087 2010-09-16  Bruno Haible  <bruno@clisp.org>
26088
26089         login_tty: Make the replacement code work on BSD systems.
26090         * lib/login_tty.c: Include <sys/ioctl.h>.
26091         (login_tty): Use ioctl TIOCSCTTY when available.
26092         * modules/login_tty (Depends-on): Add sys_ioctl.
26093         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26094
26095 2010-09-16  Bruno Haible  <bruno@clisp.org>
26096
26097         login_tty: Stricter unit test.
26098         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26099         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26100         and tcgetsid() after login_tty.
26101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26102
26103 2010-09-16  Bruno Haible  <bruno@clisp.org>
26104
26105         New module 'tcgetsid'.
26106         * lib/tcgetsid.c: New file.
26107         * m4/tcgetsid.m4: New file.
26108         * modules/tcgetsid: New file.
26109         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26110         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26111         GNULIB_TCGETSID, HAVE_TCGETSID.
26112         * lib/termios.in.h: Include <sys/types.h>.
26113         (tcgetsid): New declaration.
26114         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26115         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26116         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26117         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26118
26119 2010-09-16  Bruno Haible  <bruno@clisp.org>
26120
26121         Tests for module 'termios'.
26122         * modules/termios-c++-tests: New file.
26123         * modules/termios-tests: New file.
26124         * tests/test-termios-c++.cc: New file.
26125         * tests/test-termios.c: New file.
26126
26127         New module 'termios'.
26128         * modules/termios: New file.
26129         * lib/termios.in.h: New file.
26130         * m4/termios_h.m4: New file.
26131         * doc/posix-headers/termios.texi: Mention the new module.
26132
26133 2010-09-16  Eric Blake  <eblake@redhat.com>
26134
26135         fdutimensat: add an atflag parameter
26136         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26137         * lib/utimens.h (fdutimensat): Update prototype.
26138         * tests/test-fdutimensat.c: Adjust test to match.
26139         * NEWS: Document the change.
26140         Suggested by Paul Eggert.
26141
26142 2010-09-16  Bruno Haible  <bruno@clisp.org>
26143
26144         Fix typos in comments.
26145         * lib/striconveh.h: Fix typo in comment.
26146         * lib/login_tty.c (login_tty): Likewise.
26147
26148 2010-09-15  Bruno Haible  <bruno@clisp.org>
26149
26150         stdlib: clarify MirBSD WEXITSTATUS bug
26151         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26152         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26153
26154 2010-09-15  Eric Blake  <eblake@redhat.com>
26155
26156         stdlib: work around MirBSD WEXITSTATUS bug
26157         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26158         * modules/stdlib (Depends-on): Add sys_wait.
26159         * tests/test-sys_wait.c (main): Enhance test.
26160         * tests/test-stdlib.c (main): Likewise.
26161         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26162
26163         docs: mention MacOS issue with WEXITSTATUS(constant)
26164         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26165         issue.
26166         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26167
26168         strnlen: add tests
26169         * modules/strnlen-tests: New file.
26170         * tests/test-strnlen.c: Likewise.
26171
26172 2010-09-14  Bruno Haible  <bruno@clisp.org>
26173
26174         unistr/base: Avoid link errors when module 'libunistring' is also used.
26175         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26176         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26177         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26178         Declare also when HAVE_LIBUNISTRING is set.
26179         Reported by Pádraig Brady <P@draigbrady.com>.
26180
26181 2010-09-14  Eric Blake  <eblake@redhat.com>
26182
26183         test-rawmemchr: make more robust
26184         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26185         (Depends-on, configure.ac): Add needed prerequisites to use it.
26186         * modules/memchr-tests (Files, Depends-on, configure.ac):
26187         Likewise, to avoid implicit reliance on memchr module prereqs.
26188         * tests/test-memchr.c (main): Ensure proper masking.
26189         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26190         reads.
26191
26192         memchr: detect glibc Alpha bug
26193         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26194         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26195         Alpha.
26196         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26197         * tests/test-memchr.c (main): Enhance test.
26198         Reported by Nelson H. F. Beebe.
26199
26200 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26201
26202         fts, getcwd, glob: audit for dirfd returning -1
26203         * lib/fts.c (opendir): Remove #define; no longer used.
26204         (opendirat): New arg PDIR_FD.  All callers changed.
26205         (fts_build, _opendir2): Use new opendirat to avoid the need for
26206         dirfd, or for checking whether dirfd returns a negative value.
26207         Don't use opendir; always use openat followed by fdopendir.
26208         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26209         it.
26210         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26211         returns -1 here.
26212         * modules/fts (Depends-on): Remove dirfd.
26213         * modules/getcwd (Depends-on): Likewise.
26214
26215 2010-09-13  Eric Blake  <eblake@redhat.com>
26216
26217         float: fix broken MirBSD header
26218         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26219         * doc/posix-headers/float.texi (float.h): Document it.
26220
26221 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26222
26223         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26224         * lib/fts.c (opendirat): New arg extra_flags.
26225         (__opendir2): Use it to avoid following symlinks when opening
26226         a directory, if symlinks are not supposed to be followed.  See
26227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26228
26229         fdopendir: preserve argument fd before returning
26230         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26231         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26232         (fdopendir): Use them, arranging for FD to be open to the same
26233         directory that it was when it started.  (It might be temporarily
26234         closed while fdopendir is running, so this not thread- or
26235         signal-safe.)  Be careful to do the right thing even when file
26236         descriptors are scarce and dup fails with errno == EMFILE.  See
26237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26238
26239 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26240
26241         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26242         * NEWS: Document change.
26243         * m4/regex.m4: Disable test for regoff_t size.
26244
26245 2010-09-13  Jim Meyering  <meyering@redhat.com>
26246
26247         fts: don't operate on an invalid file descriptor after failed dup
26248         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26249         negative file descriptor.
26250
26251 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26252
26253         savedir: add streamsavedir, deprecate fdsavedir
26254         * NEWS: Mention deprecation of fdsavedir.
26255         * lib/savedir.c (streamsavedir): New extern function, whose name
26256         ends in "savedir" to be consistent with the others.  This differs
26257         from savedirstream in that it doesn't close its argument.  The
26258         next version of GNU tar will use this instead of fdsavedir, to
26259         avoid some race conditions and conserve file descriptors.
26260         (savedirstream): Reimplement as a wrapper around streamsavedir.
26261         (fdsavedir): Add a comment deprecating this function.  As far as
26262         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26263         * lib/savedir.h (streamsavedir): New decl.
26264         (fdsavedir): Add a comment deprecating this.
26265
26266 2010-09-10  Bruno Haible  <bruno@clisp.org>
26267
26268         langinfo: Fix last commit.
26269         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26270         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26272
26273 2010-09-10  Bruno Haible  <bruno@clisp.org>
26274
26275         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26276         * lib/progreloc.c (O_EXEC): Define fallback.
26277
26278 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26281         * NEWS: Document recent changes to fcntl-h.
26282         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26283         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26284         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26285         Similarly for O_SEARCH; this last was already true, but not documented.
26286         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26287         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26288         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26289         Likewise.
26290         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26291         is zero, not whether it is defined.
26292         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26293         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26294         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26295
26296 2010-09-10  Bruno Haible  <bruno@clisp.org>
26297
26298         langinfo, nl_langinfo: Fix for IRIX 5.3.
26299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26300         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26301         HAVE_LANGINFO_YESEXPR.
26302         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26303         HAVE_LANGINFO_YESEXPR.
26304         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26305         HAVE_LANGINFO_T_FMT_AMPM is 0.
26306         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26307         HAVE_LANGINFO_YESEXPR is 0.
26308         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26309         NOEXPR.
26310         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26311         * doc/posix-functions/nl_langinfo.texi: Likewise.
26312         Reported by Eric Blake.
26313
26314 2010-09-10  Bruno Haible  <bruno@clisp.org>
26315
26316         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26317         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26318         on FreeBSD 8.0 and OpenBSD 4.6.
26319         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26320         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26321         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26322         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26323         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26324         ac_includes_default.
26325         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26326
26327 2010-09-09  Eric Blake  <eblake@redhat.com>
26328
26329         strsignal: work around NetBSD bug
26330         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26331         * lib/string.in.h (includes): Likewise.
26332         * doc/posix-functions/strsignal.texi (strsignal): Document the
26333         bug.
26334         Reported by Nelson H. F. Beebe.
26335
26336         gnulib-tool: work with NetBSD /bin/sh
26337         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26338         (func_get_description, func_get_comment, func_get_status)
26339         (func_get_notice, func_get_applicability, func_get_filelist)
26340         (func_get_dependencies, func_get_autoconf_early_snippet)
26341         (func_get_autoconf_snippet, func_get_automake_snippet)
26342         (func_get_include_directive, func_get_link_directive)
26343         (func_get_license, func_get_maintainer, func_import): Avoid
26344         shell syntax errors from parsing syntax extensions.
26345
26346 2010-09-09  Bruno Haible  <bruno@clisp.org>
26347
26348         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26349         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26350         a reliable way to determine whether the 'alias' command works.
26351
26352 2010-09-08  Jim Meyering  <meyering@redhat.com>
26353
26354         init.sh: penalize a set-x-impaired shell; don't disqualify it
26355         * tests/init.sh: Too many shells corrupt application stderr when
26356         you set -x, so we can't afford to disqualify them, since at least
26357         on Irix-6.5, that would disqualify all bourne shells.
26358         Instead, use a two-pass approach.
26359         On the first pass, try to find a shell that meets the stricter
26360         condition that set -x does not corrupt stderr.
26361         If no shell meets the stricter condition, retest each candidate
26362         shell, but without that extra condition.  Finally, when
26363         VERBOSE=yes is requested and set -x might cause trouble, simply
26364         issue a warning and refrain from enabling debug output.
26365
26366 2010-09-08  Eric Blake  <eblake@redhat.com>
26367
26368         unsetenv: fix OpenBSD bug
26369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26370         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26371         documentation.
26372         Reported by Jim Meyering.
26373
26374         strtod: work around IRIX 6.5 bug
26375         * lib/strtod.c (strtod): Reparse number on shorter string if
26376         exponent parse was invalid.
26377         * tests/test-strtod.c (main): Add check for "0x1p 2".
26378         Reported by Tom G. Christensen.
26379
26380         getopt: optimize previous patch
26381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26382         empty variable.  Speed up awk script.
26383         Reported by Paolo Bonzini.
26384
26385 2010-09-08  Jim Meyering  <meyering@redhat.com>
26386
26387         test.sh: disqualify shells for which set -x corrupts stderr
26388         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26389         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26390         appear in stderr output.  For example, this command:
26391             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26392         prints "P=1" on those two systems:
26393
26394 2010-09-08  Bruno Haible  <bruno@clisp.org>
26395
26396         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26397         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26398         commands, because some shells ignore redirections when there is an
26399         error in the command lookup.
26400         Reported by Eric Blake.
26401
26402 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26403
26404         * lib/regex.h: Fix a mention of `regex_compile' (should be
26405         `re_compile_pattern').
26406         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26407         (re_set_registers): Correct name of parameter in comment.
26408
26409         * doc/regex.texi: Add documentation for missing syntax flags.
26410         Remove commented-out documentation of defunct syntax option
26411         RE_NO_EMPTY_ALTS.
26412         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26413         Add documentation of re_set_registers.
26414         Document trick to re-use a pattern buffer by setting fastmap manually.
26415         Update documentation of struct re_pattern_buffer per public members.
26416         Uncomment documentation of equivalence class operators and
26417         collating symbol operators, since they are now implemented,
26418         Explain leftmost-longest matching in relation to alternatives.
26419         Tidy documentation of substring matching.
26420         Remove POSIX documentation, which is done better in
26421         glibc, and refer the reader there. Keep BSD API documentation, as
26422         that is not readily available elsewhere.
26423
26424 2010-09-07  Eric Blake  <eblake@redhat.com>
26425
26426         getopt: handle POSIXLY_CORRECT set but not exported
26427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26428         export state of POSIXLY_CORRECT, due to bash set -o posix.
26429         Reported by Dustin J. Mitchell.
26430
26431 2010-09-05  Bruno Haible  <bruno@clisp.org>
26432
26433         gnulib-tool: Highlight the changed options.
26434         * gnulib-tool (func_usage): Display the --import, --add-import,
26435         --remove-import explanations in bold font.
26436
26437 2010-09-06  Karl Berry  <karl@gnu.org>
26438
26439         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26440
26441 2010-09-05  Bruno Haible  <bruno@clisp.org>
26442
26443         uniwidth/width: Update comment.
26444         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26445         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26446
26447 2010-09-05  Bruno Haible  <bruno@clisp.org>
26448
26449         isinf, isnan: Relax license.
26450         * modules/isinf (License): Change from GPL to LGPL, with consent from
26451         Ben Pfaff.
26452         * modules/isnan (License): Likewise.
26453         Requested by Ludovic Courtès.
26454
26455 2010-09-04  Bruno Haible  <bruno@clisp.org>
26456
26457         gnulib-tool: Help migration from --import to --add-import or --update.
26458         * gnulib-tool: Emit a verbose error message when --import is used
26459         without any module name.
26460
26461 2010-09-04  Bruno Haible  <bruno@clisp.org>
26462
26463         Update doc about gnulib-tool.
26464         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26465         'gnulib-tool --update' in more detail.
26466         Reported by Eric Blake.
26467
26468 2010-09-04  Bruno Haible  <bruno@clisp.org>
26469
26470         gnulib-tool: Change --import. New options --add/remove-import.
26471         * gnulib-tool: New options --add-import, --remove-import.
26472         (func_usage): Document them.
26473         (have_associative): Define always.
26474         (func_import): In import mode, don't merge the specified settings with
26475         the cached settings. Implement remove-import mode.
26476         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26477         Explain when to use them versus --import.
26478         (Simple update): Use --add-import instead of --import.
26479         * NEWS: Mention the change.
26480
26481 2010-09-04  Bruno Haible  <bruno@clisp.org>
26482
26483         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26484         separate gnulib.mk.
26485
26486 2010-09-04  Bruno Haible  <bruno@clisp.org>
26487
26488         gnulib-tool: Don't talk about CVS any more.
26489         * gnulib-tool (func_usage, func_import): Write "version control"
26490         instead of CVS.
26491
26492 2010-09-04  Jim Meyering  <meyering@redhat.com>
26493
26494         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26495         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26496         false positives (whose names may be ill-chosen) when searching
26497         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26498         would cause a false-positive.
26499
26500         avoid coreutils "make distcheck" failure
26501         Coreutils tests with an absolute build directory name that contains
26502         a space.  Not quoting this directory name caused a failure.
26503         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26504         * tests/test-vc-list-files-cvs.sh: Likewise.
26505
26506 2010-09-04  Bruno Haible  <bruno@clisp.org>
26507
26508         gnulib-tool: Avoid error when run in a package without Makefile.am.
26509         * gnulib-tool: When collecting the m4dirs in a package that does not
26510         have a Makefile.am, eliminate those directories that contain no
26511         gnulib-cache.m4. Fix expression that counts these directories.
26512
26513 2010-09-04  Bruno Haible  <bruno@clisp.org>
26514
26515         update-copyright test: Improve output when perl is missing or too old.
26516         * tests/test-update-copyright.sh: Move test of Perl version down after
26517         the test whether Perl exists. Provide an explanation relating Perl's
26518         error message to Automake's SKIP: message.
26519
26520 2010-09-04  Bruno Haible  <bruno@clisp.org>
26521
26522         Don't augment PATH in TESTS_ENVIRONMENT.
26523         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26524         set abs_aux_dir instead of augmenting PATH.
26525         * modules/vc-list-files-tests (Makefile.am): Likewise.
26526         * tests/test-update-copyright.sh: Augment PATH here.
26527         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26528         path_prepend_.
26529         * tests/test-vc-list-files-git.sh: Likewise.
26530
26531 2010-09-04  Jim Meyering  <meyering@redhat.com>
26532
26533         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26534         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26535
26536 2010-09-04  Bruno Haible  <bruno@clisp.org>
26537
26538         strdup: Fix compilation error in C++ mode.
26539         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26540         the macro.
26541
26542 2010-09-04  Bruno Haible  <bruno@clisp.org>
26543
26544         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26545         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26546         macro into a function.
26547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26548
26549 2010-09-04  Bruno Haible  <bruno@clisp.org>
26550
26551         Set PATH_SEPARATOR the same way autoconf does.
26552         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26553         the value of PATH_SEPARATOR the same way autoconf-generated configure
26554         scripts do.
26555         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26556         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26557
26558 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26559
26560         Set PATH_SEPARATOR the same way autoconf does.
26561         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26562         the same way autoconf-generated configure scripts do.
26563         * posix-modules: Likewise.
26564
26565 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26566
26567         hash: fix safe_hasher const typo
26568         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26569         const; otherwise, there is a type error later.
26570
26571 2010-09-02  Jim Meyering  <meyering@redhat.com>
26572
26573         test-update-copyright.sh: require perl 5.8.0
26574         * tests/test-update-copyright.sh: Require 5.8.0,
26575         which Tom G. Christensen has confirmed is adequate,
26576         while 5.6.1 is not.
26577
26578 2010-09-02  Eric Blake  <eblake@redhat.com>
26579
26580         tests: init.sh improvements for re-exec'ing with zsh
26581         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26582         -vx through shell re-exec.
26583         Reported by Tom G. Christensen.
26584
26585         wctype: fix typo in previous commit
26586         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26587         Reported by Ludovic Courtès.
26588
26589 2010-09-02  Jim Meyering  <meyering@redhat.com>
26590
26591         test-update-copyright.sh: skip test if Perl is too old
26592         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26593         Reported by Tom G. Christensen.
26594
26595 2010-09-02  Bruno Haible  <bruno@clisp.org>
26596
26597         wctype: Avoid compilation error on IRIX 6.5.30.
26598         * lib/wctype.in.h (iswblank): Declare with a replacement if
26599         REPLACE_ISWBLANK is set.
26600         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26601         declared. Set REPLACE_ISWBLANK.
26602         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26603         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26604         * doc/posix-headers/wctype.texi: Likewise.
26605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26606
26607 2010-09-01  Bruno Haible  <bruno@clisp.org>
26608
26609         New module 'socketlib'.
26610         * modules/socketlib: New file.
26611         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26612         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26613         * modules/sockets (Depends-on): Add socketlib.
26614         Suggested by Sam Steingold <sds@gnu.org>.
26615
26616 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26619
26620         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26621         when one needs search access to a directory but not read access.
26622         On systems where it is available, it works in some cases where
26623         O_RDONLY does not, namely on directories that are searchable but
26624         not readable, and which need only to be searchable.  If O_SEARCH
26625         is not available, fall back to the traditional method of using
26626         O_RDONLY.
26627
26628         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26629         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26630         when opening a directory that needs only to be searchable.
26631         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26632         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26633         * lib/openat-proc.c (openat_proc_name): Likewise.
26634         * lib/openat.c (openat_needs_fchdir): Likewise.
26635         * lib/save-cwd.c (save_cwd): Likewise.
26636         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26637
26638 2010-08-28  Bruno Haible  <bruno@clisp.org>
26639
26640         New module 'host-cpu-c-abi'.
26641         * modules/host-cpu-c-abi: New file.
26642         * m4/host-cpu-c-abi.m4: New file, based on part of
26643         clisp/src/m4/general.m4.
26644         Requested by Sam Steingold <sds@gnu.org>.
26645
26646 2010-08-31  Eric Blake  <eblake@redhat.com>
26647         and Jim Meyering  <meyering@redhat.com>
26648
26649         hash: factor, and guard against misbehaving hasher function
26650         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26651         of table->hasher's return value.  Also protect against a hash value
26652         so large that adding it to table->bucket results in a NULL pointer.
26653         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26654         Use it in place of open-coded check-and-abort.
26655
26656 2010-08-30  Bruno Haible  <bruno@clisp.org>
26657
26658         hash: silence spurious clang warning
26659         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26660         Reported by Eric Blake.
26661
26662 2010-08-30  Eric Blake  <eblake@redhat.com>
26663
26664         strstr, memmem, strcasestr: avoid leaked shell message
26665         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26666         FreeBSD.
26667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26669
26670         tests: silence clang warning
26671         * tests/test-malloca.c (do_allocation): Avoid dead store.
26672
26673 2010-08-29  Bruno Haible  <bruno@clisp.org>
26674
26675         gettext: Fix recent mistake.
26676         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26677
26678 2010-08-29  Bruno Haible  <bruno@clisp.org>
26679
26680         selinux-h: Offer a --without-selinux option.
26681         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26682         --without-selinux was specified, skip all tests and define
26683         HAVE_SELINUX_SELINUX_H to 0.
26684         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26685         set LIB_SELINUX to empty.
26686         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26687         gl_LIBSELINUX. If --without-selinux was specified, replace
26688         selinux/context.h.
26689         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26690
26691 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26692             Bruno Haible  <bruno@clisp.org>
26693
26694         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26695         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26696         of HAVE_REALLOC.
26697         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26698         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26699         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26700         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26701
26702 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26703             Bruno Haible  <bruno@clisp.org>
26704
26705         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26706         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26707         HAVE_CALLOC.
26708         * lib/xmalloc.c: Update accordingly.
26709         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26710         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26711         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26712
26713 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26714             Bruno Haible  <bruno@clisp.org>
26715
26716         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26717         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26718         HAVE_MALLOC.
26719         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26720         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26721         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26722
26723 2010-08-29  Bruno Haible  <bruno@clisp.org>
26724
26725         Update modules list.
26726         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26727         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26728         (String handling <string.h>): Add astrxfrm.
26729         (File system functions): Add readlinkat.
26730
26731 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26732
26733         Tests for module 'realloc-gnu'.
26734         * modules/realloc-gnu-tests: New file.
26735         * tests/test-realloc-gnu.c: New file.
26736
26737         Tests for module 'calloc-gnu'.
26738         * modules/calloc-gnu-tests: New file.
26739         * tests/test-calloc-gnu.c: New file.
26740
26741         Tests for module 'malloc-gnu'.
26742         * modules/malloc-gnu-tests: New file.
26743         * tests/test-malloc-gnu.c: New file.
26744
26745 2010-08-28  Bruno Haible  <bruno@clisp.org>
26746
26747         Rename module 'realloc' -> 'realloc-gnu'.
26748         * modules/realloc-gnu: New file, copied from modules/realloc.
26749         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26750         obsolete.
26751         * modules/mgetgroups (Depends-on): Update.
26752         * doc/posix-functions/realloc.texi: Update.
26753         * NEWS: Mention the change.
26754
26755         Rename module 'calloc' -> 'calloc-gnu'.
26756         * modules/calloc-gnu: New file, copied from modules/calloc.
26757         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26758         obsolete.
26759         * doc/posix-functions/calloc.texi: Update.
26760         * NEWS: Mention the change.
26761
26762         Rename module 'malloc' -> 'malloc-gnu'.
26763         * modules/malloc-gnu: New file, copied from modules/malloc.
26764         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26765         obsolete.
26766         * modules/argp (Depends-on): Update.
26767         * modules/regex (Depends-on): Update.
26768         * doc/posix-functions/malloc.texi: Update.
26769         * NEWS: Mention the change.
26770
26771 2010-08-28  Eric Blake  <eblake@redhat.com>
26772
26773         pread, pwrite: add missing dependency
26774         * modules/pread (Depends-on): Add extensions.
26775         * modules/pwrite (Depends-on): Likewise.
26776
26777 2010-08-28  Bruno Haible  <bruno@clisp.org>
26778
26779         unistr/u*-strchr: Fix tests dependencies.
26780         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26781         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26782         Reported by Ian Beckwith <ianb@erislabs.net>.
26783
26784 2010-08-28  Bruno Haible  <bruno@clisp.org>
26785
26786         read-file: Don't occupy too much unused memory.
26787         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26788
26789 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26790             Eric Blake  <eblake@redhat.com>
26791             Bruno Haible  <bruno@clisp.org>
26792
26793         read-file: Avoid memory reallocations with regular files.
26794         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26795         (fread_file): With regular files, use the remaining length as the
26796         initial buffer size.  Check against overflow.
26797         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26798         sys_stat.
26799
26800 2010-08-28  Bruno Haible  <bruno@clisp.org>
26801
26802         ftello: Relax license.
26803         * modules/ftello (License): Relax to LGPLv2+.
26804         Reported by Eric Blake.
26805
26806 2010-08-28  Bruno Haible  <bruno@clisp.org>
26807
26808         Avoid relocwrapper link errors due to gnulib replacement functions.
26809         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26810         function.
26811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26812
26813 2010-08-28  Bruno Haible  <bruno@clisp.org>
26814
26815         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26816         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26817         defined.
26818         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26819         Suggested by Eric Blake.
26820
26821 2010-08-28  Bruno Haible  <bruno@clisp.org>
26822
26823         sys_socket, netdb: Ensure socklen_t gets defined.
26824         * modules/sys_socket (Depends-on): Add socklen.
26825         * modules/netdb (Depends-on): Likewise.
26826         * modules/getaddrinfo (Depends-on): Remove socklen.
26827         * modules/getsockopt (Depends-on): Likewise.
26828         * modules/setsockopt (Depends-on): Likewise.
26829         * tests/test-sys_socket.c: Check that socklen_t is defined.
26830         * tests/test-netdb.c: Likewise.
26831         * m4/socklen.m4: Update comments.
26832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26833
26834 2010-08-27  Eric Blake  <eblake@redhat.com>
26835
26836         login_tty: add missing dependency
26837         * modules/login_tty (Depends-on): Add pty.
26838
26839 2010-08-26  Eric Blake  <eblake@redhat.com>
26840
26841         lib-symbol-versions: fix m4 quoting
26842         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26843         format for AC_LINK_IFELSE.
26844
26845         glob: fix compile test
26846         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26847
26848         btowc: fix missing file
26849         * modules/btowc (Files): Also ship locale-fr.m4.
26850
26851         lseek: fix link test
26852         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26853         AC_LINK_IFELSE.
26854
26855         include_next: silence autoconf 2.68 warning
26856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26857         AC_COMPILE_IFELSE as special.
26858         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26859         autoconf < 2.68.
26860
26861         acl: fix compilation test
26862         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26863         AC_COMPILE_IFELSE.
26864
26865 2010-08-26  Bruno Haible  <bruno@clisp.org>
26866
26867         Modernize AC_TRY_RUN invocations.
26868         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26870         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26871         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26873         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26876         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26877         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26879         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26880         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26881         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26883         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26884         gl_MBRLEN_NUL_RETVAL): Likewise.
26885         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26886         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26887         Likewise.
26888         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26889         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26890         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26891         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26892         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26893         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26894         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26895         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26896         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26897         Likewise.
26898         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26899         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26902         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26905         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26906         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26908
26909 2010-08-26  Bruno Haible  <bruno@clisp.org>
26910
26911         Modernize AC_TRY_LINK invocations.
26912         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26913         AC_TRY_LINK.
26914         * m4/argp.m4 (gl_ARGP): Likewise.
26915         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26917         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26918         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26919         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26920         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26921         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26922         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26923         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26925         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26926         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26928         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26929         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26930         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26931         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26932         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26933         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26934         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26935         Likewise.
26936         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26937         Likewise.
26938         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26939         Likewise.
26940         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26941         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26943         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26944         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26945         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26946         * m4/servent.m4 (gl_SERVENT): Likewise.
26947         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26948         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26949         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26950         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26951         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26955         * modules/tsearch-tests (configure.ac): Likewise.
26956
26957 2010-08-26  Bruno Haible  <bruno@clisp.org>
26958
26959         Modernize AC_TRY_COMPILE invocations.
26960         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26961         AC_TRY_COMPILE.
26962         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26963         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26964         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26965         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26966         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26967         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26968         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26969         * m4/lock.m4 (gl_LOCK): Likewise.
26970         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26972         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26974         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26975         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26976         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26978         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26979         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26980         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26981         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26982         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26983         extraneous semicolon.
26984
26985 2010-08-26  Jim Meyering  <meyering@redhat.com>
26986
26987         stat-time: relax license LGPL
26988         * modules/stat-time (License): Change from GPL to LGPL,
26989         with consent from all contributors, for use in libguile.
26990         Requested by Ludovic Courtès.
26991
26992 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26993
26994         poll: return immediately on POLLHUP.
26995         * lib/poll.c (poll): Always set timeout before wait_timeout is
26996         computed.
26997
26998 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26999
27000         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27001         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27002         rmdir ("dir/.//"), unlinkat.
27003
27004 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27005
27006         stdbool: avoid spurious failure with modern xlc
27007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27008
27009 2010-08-24  Bruno Haible  <bruno@clisp.org>
27010
27011         getloadavg: simplify code
27012         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27013         gl_have_func. Update comments.
27014
27015 2010-08-24  Eric Blake  <eblake@redhat.com>
27016
27017         getloadavg: don't define SVR4 on cygwin
27018         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27019         only define SVR4 when -lkvm is required.
27020         Reported by Yaakov Selkowitz.
27021
27022 2010-08-24  Bruno Haible  <bruno@clisp.org>
27023
27024         priv-set: fix comment
27025         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27026
27027 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27028
27029         priv-set: fix comments
27030         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27031         to match code, as suggested by David Bartley in:
27032         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27033
27034 2010-08-23  Eric Blake  <eblake@redhat.com>
27035
27036         stdbool: avoid rejecting clang
27037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27038         * tests/test-stdbool.c: Enable more tests if using the system
27039         <stdbool.h> instead of the gnulib replacement.
27040         (main): Move xlc bug test to a runtime test for all compilers.
27041         Reported by Anders Kaseorg.
27042
27043         argz: fix shell quoting issue
27044         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27045         Reported by Charles Wilson.
27046
27047 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27048             Erik Faye-Lund <kusmabite@gmail.com>
27049
27050         poll, select: handle ERROR_BROKEN_PIPE.
27051         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27052         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27053         * lib/select.c (win32_compute_revents): Do not mark a pipe
27054         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27055
27056 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27057
27058         fts: allow compilation with C++
27059         * lib/fts_.h: Specify extern "C" linkage with C++.
27060
27061 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27062
27063         Fix gnulib-tool sed script de-commentation for AIX sed.
27064         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27065         sed.
27066
27067 2010-08-17  Eric Blake  <eblake@redhat.com>
27068
27069         test-stddef: test for (some) offsetof bugs
27070         * tests/test-stddef.c: Enhance test to ensure correct type of
27071         offsetof.
27072         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27073         that we are not fixing at this time.
27074
27075 2010-08-15  Bruno Haible  <bruno@clisp.org>
27076
27077         stpncpy: Allow stpncpy to be defined as a macro.
27078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27079         if it's already correctly declared.
27080         * lib/string.in.h (stpncpy): Undefine before redefining.
27081         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27082
27083 2010-08-14  Bruno Haible  <bruno@clisp.org>
27084
27085         Rename module 'memxfrm' to 'amemxfrm'.
27086         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27087         (amemxfrm): Renamed from memxfrm.
27088         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27089         (amemxfrm): Renamed from memxfrm.
27090         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27091         * NEWS: Mention the change.
27092         * MODULES.html.sh (String handling <string.h>): Update.
27093         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27094         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27095         * lib/unicase/u16-casexfrm.c: Likewise.
27096         * lib/unicase/u32-casexfrm.c: Likewise.
27097         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27098         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27099         * lib/uninorm/u16-normxfrm.c: Likewise.
27100         * lib/uninorm/u32-normxfrm.c: Likewise.
27101         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27102         memxfrm.
27103         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27104         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27105         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27106         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27107         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27108         Suggested by Paul Eggert.
27109
27110 2010-08-14  Bruno Haible  <bruno@clisp.org>
27111
27112         Tests for module 'astrxfrm'.
27113         * modules/astrxfrm-tests: New file.
27114         * tests/test-astrxfrm.c: New file.
27115
27116         New module 'astrxfrm'.
27117         * lib/astrxfrm.h: New file.
27118         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27119         * modules/astrxfrm: New file.
27120
27121 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27122
27123         regex: Tweak doc.
27124         * doc/regex.texi (Overview): Don't mention regex.c.
27125         (GNU Regular Expression Compiling): Likewise.
27126         (Match-end-of-line Operator): Mention 'not_eol'.
27127
27128 2010-08-14  Brian Gough  <bjg@gnu.org>
27129             Bruno Haible  <bruno@clisp.org>
27130
27131         git-merge-changelog: add doc relating to use with bzr and hg.
27132         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27133
27134 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27135
27136         pthread: fix pthread.h creation for srcdir != builddir
27137         * modules/pthread (Makefile.am): Fix the rule to work also in a
27138         non-srcdir build.
27139
27140 2010-08-13  Karl Berry  <karl@gnu.org>
27141
27142         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27143         * doc/posix-*/*: force line break before @url of POSIX
27144         specifications.
27145         Suggested by Werner Lemberg.
27146
27147 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         strtod: fix const diagnostic
27150         * lib/strtod.c (strtod): Don't assign const char * to char *,
27151         as this elicits a warning from GCC when warnings are enabled.
27152
27153 2010-08-10  Pádraig Brady <P@draigbrady.com>
27154         and Eric Blake  <eblake@redhat.com>
27155
27156         copy-acl: ignore ENOTSUP on HP-UX
27157         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27158         so that it is available for HP-UX.
27159         * lib/copy-acl.c (qcopy_acl): Use it.
27160         Reported by Patrick M. Callahan.
27161
27162 2010-08-10  Eric Blake  <eblake@redhat.com>
27163
27164         open, chown: relax license
27165         * modules/open (License): Change to LGPLv2+, with consent by all
27166         authors, for use in augeas.
27167         * modules/chown (License): Likewise.
27168         * modules/lchown (Likewise): Likewise.
27169         Requested by Adam Stokes.
27170
27171 2010-08-09  Karl Berry  <karl@gnu.org>
27172
27173         * build-aux/ar-lib: new file, import from Automake.
27174         * config/srclist.txt: autocheck for updates.
27175
27176 2010-08-09  Eric Blake  <eblake@redhat.com>
27177
27178         readlinkat: adjust client modules
27179         * modules/areadlinkat (Depends-on): Use readlinkat, not
27180         symlinkat.
27181         * modules/areadlinkat-with-size (Depends-on): Likewise.
27182
27183         mknod: be more vocal about danger of running tests as root
27184         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27185         root, since that is just asking for problems.
27186         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27187
27188         readlinkat: split into its own module
27189         * modules/symlinkat: Split readlinkat...
27190         * modules/readlinkat: ...into separate module.
27191         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27192         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27193         * lib/symlinkat.c (readlinkat): Move...
27194         * lib/readlinkat.c: ...into new file.
27195         * modules/symlinkat-tests: Split readlinkat test...
27196         * modules/readlinkat-tests: ...into separate module.
27197         * tests/test-symlinkat.c: Split...
27198         * tests/test-readlinkat.c: ...into new file.
27199         * NEWS: Document the split.
27200         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27201         * lib/unistd.in.h (readlinkat): Likewise.
27202         Suggested by Bruno Haible.
27203
27204 2010-08-08  Bruno Haible  <bruno@clisp.org>
27205
27206         memxfrm: Speed up.
27207         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27208         that usually only one call to strxfrm is necessary for each string
27209         part.
27210         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27211
27212 2010-08-07  Karl Berry  <karl@gnu.org>
27213
27214         * doc/posix-headers/limits.texi,
27215         * doc/posix-functions/malloc.texi,
27216         * doc/posix-functions/strsignal.texi: missing @item.
27217         * doc/ld-version-script.texi: spurious leading i.
27218         * doc/regex.texi (Interval Operators): no commas inside @var.
27219
27220 2010-08-01  Bruno Haible  <bruno@clisp.org>
27221
27222         Integrate the regex documentation.
27223         * doc/gnulib.texi: Define 'cn' index.
27224         (Regular expressions): New a chapter that includes regex.texi and
27225         regexprops-generic.texi.
27226         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27227         syntax.
27228
27229         Whitespace cleanup.
27230         * doc/regex.texi: Remove trailing spaces.
27231
27232         Add regex documentation.
27233         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27234         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27235         Written by Kathy A. Hargreaves and Karl Berry.
27236
27237 2010-08-01  Bruno Haible  <bruno@clisp.org>
27238
27239         link: Update documentation.
27240         * doc/posix-functions/link.texi: Update regarding Solaris.
27241
27242 2010-07-31  Bruno Haible  <bruno@clisp.org>
27243
27244         Update modules list.
27245         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27246         (String handling <string.h>): Add memcmp2, memxfrm.
27247         (Container data structures): Add xlist, xsublist, xoset.
27248         (Core language properties): Add alignof, unused-parameter.
27249         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27250         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27251         (Unibyte characters <ctype.h>): New section.
27252         (String handling <string.h>): New section.
27253         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27254         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27255         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27256         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27257         tan, tanh, tanl, y0, y1, yn.
27258         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27259         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27260         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27261         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27262         unlockpt, vdprintf, vdprintf-posix.
27263         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27264         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27265         xconcat-filename.
27266         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27267         getdtablesize, pipe2, pipe2-safer.
27268         (Security): New section.
27269         (Networking functions): Add accept4.
27270         (Signal handling): Add sigpipe.
27271         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27272         mbmemcasecoll.
27273         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27274         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27275         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27276         pipe-filter-ii.
27277         (Misc): Add argp-version-etc, login_tty, parse-duration.
27278
27279 2010-07-31  Bruno Haible  <bruno@clisp.org>
27280
27281         Improve doc in MODULES.html.
27282         * modules/linkat (Description): Add the word "function".
27283         * modules/mkfifo (Description): Likewise.
27284         * modules/mknod (Description): Likewise.
27285         * modules/remove (Description): Likewise.
27286         * modules/renameat (Description): Likewise.
27287         * modules/stat (Description): Likewise.
27288         * modules/symlink (Description): Likewise.
27289         * modules/unlink (Description): Likewise.
27290
27291 2010-07-31  Bruno Haible  <bruno@clisp.org>
27292
27293         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27294         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27295         option --enable/disable-c++ instead of --enable/disable-cxx.
27296         * NEWS: Mention the change.
27297
27298 2010-07-31  Bruno Haible  <bruno@clisp.org>
27299
27300         readlink, areadlink: Relax test a bit.
27301         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27302         alternative to ENOTDIR.
27303         * tests/test-areadlink.h (test_areadlink): Likewise.
27304         Reported by Rainer Tammer.
27305
27306 2010-07-31  Bruno Haible  <bruno@clisp.org>
27307
27308         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27309         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27310         character, perform the search using U_STRCHR.
27311         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27312         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27313         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27314         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27315         Suggested by Paolo Bonzini.
27316
27317 2010-07-31  Bruno Haible  <bruno@clisp.org>
27318
27319         unistr/u*-strstr: Fix dependencies.
27320         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27321         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27322         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27323
27324 2010-07-31  Bruno Haible  <bruno@clisp.org>
27325
27326         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27327         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27328         the beginning of the loop.
27329         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27330         cases in 'switch' statement.
27331
27332         unistr/u8-strchr: Fix several bugs.
27333         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27334         the string. When not found, return NULL, not a pointer near the end.
27335
27336         More tests for unistr/u8-strchr.
27337         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27338         that the function does not read past the first occurrence of the byte
27339         being searched.
27340         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27341         * tests/unistr/test-u16-strchr.c (main): New function.
27342         * tests/unistr/test-u32-strchr.c (main): New function.
27343
27344 2010-07-31  Bruno Haible  <bruno@clisp.org>
27345
27346         posix-modules: Ignore backup files of documentation files.
27347         * posix-modules: grep only through files named *.texi.
27348
27349 2010-07-31  Bruno Haible  <bruno@clisp.org>
27350
27351         symlinkat: Fix documentation.
27352         * doc/posix-functions/readlinkat.texi: Fix module name.
27353
27354 2010-07-31  Bruno Haible  <bruno@clisp.org>
27355
27356         fchownat: Replace also when chown has the trailing slash bug.
27357         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27358         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27359         introduced on 2010-04-10.
27360         Reported by Rainer Tammer.
27361
27362 2010-07-31  Bruno Haible  <bruno@clisp.org>
27363
27364         linkat: Work around AIX 7.1 bug.
27365         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27366         whether linkat handles trailing slash correctly. If not, replace linkat
27367         and define LINKAT_TRAILING_SLASH_BUG.
27368         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27369         check whether (fd1,file1) points to a directory if file1 or file2 ends
27370         in a slash. Code taken from lib/link.c.
27371         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27372         Reported by Rainer Tammer.
27373
27374 2010-07-31  Bruno Haible  <bruno@clisp.org>
27375
27376         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27377         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27378         This disables an xlc optimization that was causing wrong test results.
27379         Reported by Rainer Tammer.
27380
27381 2010-07-31  Bruno Haible  <bruno@clisp.org>
27382
27383         iconv: Work around AIX 6.1..7.1 bug.
27384         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27385         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27386         cross-compiling, guess no on all versions of AIX.
27387         Reported by Rainer Tammer.
27388
27389 2010-07-31  Bruno Haible  <bruno@clisp.org>
27390
27391         readlink: Relax test a bit.
27392         * tests/test-readlink.h (test_readlink): Allow different errno value
27393         when readlink is called with a file name that ends in / and refers to
27394         a file.
27395         Suggested by Eric Blake.
27396         Reported by Rainer Tammer.
27397
27398 2010-07-31  Bruno Haible  <bruno@clisp.org>
27399
27400         copysign: Does not require -lm on glibc systems.
27401         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27402         gl_COMMON_DOUBLE_MATHFUNC.
27403         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27404
27405 2010-07-31  Bruno Haible  <bruno@clisp.org>
27406
27407         duplocale: Work around AIX 7.1 bug.
27408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27409         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27410         * lib/duplocale.c (rpl_duplocale): Update comment.
27411         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27412         Reported by Rainer Tammer.
27413
27414 2010-07-30  Bruno Haible  <bruno@clisp.org>
27415
27416         dirfd: Avoid link error on AIX 7.1.
27417         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27418         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27419         exist, set REPLACE_DIRFD.
27420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27421         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27422         * doc/posix-functions/dirfd.texi: Update.
27423         Reported by Rainer Tammer.
27424
27425 2010-07-30  Eric Blake  <eblake@redhat.com>
27426
27427         strtod: next round of AIX fixes
27428         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27429         exponent.
27430         * tests/test-strtod.c (main): Enhance tests.
27431         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27432         Reported by Rainer Tammer.
27433
27434         futimens: fix configure check
27435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27436         Reported by Bruno Haible.
27437
27438 2010-07-30  Bruno Haible  <bruno@clisp.org>
27439
27440         getline: Update regarding AIX.
27441         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27442         Reported by Rainer Tammer.
27443
27444 2010-07-30  Bruno Haible  <bruno@clisp.org>
27445
27446         wcwidth: Drop replacement on AIX 7.
27447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27448         AIX 7.
27449         Reported by Rainer Tammer.
27450
27451 2010-07-30  Bruno Haible  <bruno@clisp.org>
27452
27453         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27455         a 'char *'.
27456         Reported by Rainer Tammer.
27457
27458 2010-07-30  Bruno Haible  <bruno@clisp.org>
27459
27460         unlink: Update regarding AIX.
27461         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27462         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27463         Reported by Rainer Tammer.
27464
27465 2010-07-30  Bruno Haible  <bruno@clisp.org>
27466
27467         symlink: Update regarding AIX.
27468         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27469         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27470         Reported by Rainer Tammer.
27471
27472 2010-07-30  Bruno Haible  <bruno@clisp.org>
27473
27474         strndup: Update regarding AIX.
27475         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27476         AIX 7.
27477         Reported by Rainer Tammer.
27478
27479 2010-07-30  Bruno Haible  <bruno@clisp.org>
27480
27481         stat: Update regarding AIX.
27482         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27483         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27484         Reported by Rainer Tammer.
27485
27486 2010-07-30  Bruno Haible  <bruno@clisp.org>
27487
27488         truncl: Fix autoconf test.
27489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27490         whether truncl works.
27491         Reported by Rainer Tammer.
27492
27493 2010-07-30  Bruno Haible  <bruno@clisp.org>
27494
27495         round: Update regarding AIX.
27496         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27497         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27498         Reported by Rainer Tammer.
27499
27500 2010-07-30  Bruno Haible  <bruno@clisp.org>
27501
27502         rename: Update regarding AIX.
27503         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27504         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27505         Reported by Rainer Tammer.
27506
27507 2010-07-30  Bruno Haible  <bruno@clisp.org>
27508
27509         printf.m4: Update regarding AIX.
27510         * m4/printf.m4: Update comments regarding AIX.
27511         Reported by Rainer Tammer.
27512
27513 2010-07-30  Bruno Haible  <bruno@clisp.org>
27514
27515         iconv: Update regarding AIX.
27516         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27517         AIX 7.
27518         Reported by Rainer Tammer.
27519
27520 2010-07-30  Bruno Haible  <bruno@clisp.org>
27521
27522         getopt: Update regarding AIX.
27523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27524         no on AIX.
27525         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27526         Reported by Rainer Tammer.
27527
27528 2010-07-30  Bruno Haible  <bruno@clisp.org>
27529
27530         ldexpl; Update regarding AIX.
27531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27532         on AIX 7.
27533         Reported by Rainer Tammer.
27534
27535 2010-07-30  Bruno Haible  <bruno@clisp.org>
27536
27537         frexpl: Update regarding AIX.
27538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27539         on AIX 7.
27540         Reported by Rainer Tammer.
27541
27542 2010-07-30  Bruno Haible  <bruno@clisp.org>
27543
27544         open, fopen: Update regarding AIX.
27545         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27546         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27547         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27548         * doc/posix-functions/fopen.texi: Likewise.
27549         Reported by Rainer Tammer.
27550
27551 2010-07-30  Bruno Haible  <bruno@clisp.org>
27552
27553         chown: Update doc regarding AIX.
27554         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27555         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27556         Reported by Rainer Tammer.
27557
27558 2010-07-30  Eric Blake  <eblake@redhat.com>
27559
27560         strtod: fix bug in replacement function on AIX
27561         * lib/strtod.c (strtod): Special case broken "0x" parse in
27562         underlying strtod.
27563         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27564         * doc/posix-functions/strtod.texi (strtod): Likewise.
27565         Reported by Rainer Tammer.
27566
27567 2010-07-30  Bruno Haible  <bruno@clisp.org>
27568
27569         mbrlen: Fix cross-compilation guess for AIX.
27570         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27571         guess. Leftover from 2008-12-22.
27572
27573 2010-07-30  Bruno Haible  <bruno@clisp.org>
27574
27575         mbrtowc: Fix cross-compilation guess for AIX.
27576         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27577         guess. Leftover from 2008-12-21.
27578
27579 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27580
27581         init.sh: work around trap limitation of some shells
27582         * tests/init.sh (setup_): Move exit trap outside of shell function.
27583
27584 2010-07-29  Eric Blake  <eblake@redhat.com>
27585
27586         strtod: aid debugging
27587         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27588         understanding why strtod is rejected.
27589
27590 2010-07-28  Bruno Haible  <bruno@clisp.org>
27591
27592         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27593         * lib/unistr/u8-chr.c: Include <string.h>.
27594         * tests/unistr/test-u8-chr.c: Likewise.
27595         * tests/unistr/test-u16-chr.c: Likewise.
27596         * tests/unistr/test-u32-chr.c: Likewise.
27597         * tests/unistr/test-u8-strchr.c: Likewise.
27598         * tests/unistr/test-u16-strchr.c: Likewise.
27599         * tests/unistr/test-u32-strchr.c: Likewise.
27600         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27601         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27602         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27603         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27604
27605 2010-07-28  Bruno Haible  <bruno@clisp.org>
27606
27607         Use spaces for indentation, not tabs.
27608         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27609
27610 2010-07-27  Bruno Haible  <bruno@clisp.org>
27611
27612         mbspcasecmp: Fix function specification.
27613         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27614         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27615         Reported by Eric Blake <eblake@redhat.com>.
27616
27617 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27618
27619         timespec: use cast and not conditional, as truncation isn't possible
27620         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27621         instead of a conditional.  Comment about the situation in more detail.
27622         This undoes most of the 2009-10-29 patch.
27623
27624 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27625
27626         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27627         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27628         * lib/unistr/u8-strchr.c: Likewise.
27629         * modules/unistr/u8-chr: Depend on memchr.
27630
27631         unistr/u*-strchr: add tests
27632         * modules/unistr/u8-strchr-tests: New file.
27633         * modules/unistr/u16-strchr-tests: New file.
27634         * modules/unistr/u32-strchr-tests: New file.
27635         * tests/unistr/test-strchr.h: New file.
27636         * tests/unistr/test-u8-strchr.c: New file.
27637         * tests/unistr/test-u16-strchr.c: New file.
27638         * tests/unistr/test-u32-strchr.c: New file.
27639
27640         unistr/u*-chr: test multibyte sequences more
27641         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27642         test vector.
27643         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27644         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27645         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27646
27647         unistr/u*-chr: test multibyte sequences
27648         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27649
27650         unistr/u*-chr: prepare for multibyte tests
27651         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27652         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27653         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27654         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27655         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27656         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27657
27658 2010-07-18  Bruno Haible  <bruno@clisp.org>
27659
27660         unistr/u8-strchr: Optimize non-ASCII argument case.
27661         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27662         because the first byte often matches anyway.
27663         Reported by Pádraig Brady <P@draigbrady.com>.
27664
27665 2010-07-15  Karl Berry  <karl@gnu.org>
27666
27667         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27668
27669 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27670
27671         getcwd: on Solaris, work better if ancestors are inaccessible
27672         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27673         buffer and size, try again with a large buffer.  This works better
27674         on Solaris, since its getcwd succeeds even if the path to the root
27675         is inaccessible, and this is helpful in common cases such as .zfs
27676         hidden directories.  Problem reported by J Chapman Flack in
27677         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27678         Use system getcwd if it's declared, not merely if it's partly
27679         working; use the partly-working test only to avoid needless effort
27680         if the system getcwd fails.
27681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27682         comment that was already obsolete and is now even more obsolete.
27683         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27684         now might call strdup.
27685
27686 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27687
27688         pthread: Add enough so that coreutils/src/sort.c compiles.
27689         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27690         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27691         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27692         Include <sys/types.h>, in case it defines pthread_t.
27693         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27694         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27695         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27696         (pthread_rwlockattr_t, pthread_spinlock_t):
27697         New typedefs, if HAVE_PTHREAD_T is not defined.
27698         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27699         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27700         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27701         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27702         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27703         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27704         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27705         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27706         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27707         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27708         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27709         New macros.
27710         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27711         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27712         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27713         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27714         (pthread_spin_unlock): New dummy functions.
27715         (pthread_create): Return EAGAIN; don't set errno.
27716         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27717         require AC_C_INLINE.
27718         * modules/pthread (Depends-on): Add sched, time.
27719         (pthread.h): Use AM_V_GEN.
27720
27721 2010-07-13  Bruno Haible  <bruno@clisp.org>
27722
27723         striconveh: Don't malloc memory if the result buffer is sufficient.
27724         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27725         buffer if its size is sufficient.
27726         Reported by Ludovic Courtès <ludo@gnu.org>.
27727
27728 2010-07-13  Bruno Haible  <bruno@clisp.org>
27729
27730         strtod: Add safety check.
27731         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27732
27733 2010-07-12  Bruno Haible  <bruno@clisp.org>
27734
27735         Unify tests that set gl_cv_func_ldexpl_no_libm.
27736         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27737         gl_FUNC_LDEXPL.
27738         (gl_FUNC_LDEXPL): Invoke it.
27739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27740
27741 2010-07-12  Bruno Haible  <bruno@clisp.org>
27742
27743         Unify tests that set gl_cv_func_ldexp_no_libm.
27744         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27745         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27746         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27747         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27748         * modules/strtod (Files): Add m4/ldexp.m4.
27749
27750 2010-07-12  Bruno Haible  <bruno@clisp.org>
27751
27752         Unify tests that set gl_cv_func_frexpl_no_libm.
27753         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27754         gl_FUNC_FREXPL_NO_LIBM.
27755         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27757
27758 2010-07-12  Bruno Haible  <bruno@clisp.org>
27759
27760         Unify tests that set gl_cv_func_frexp_no_libm.
27761         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27762         gl_FUNC_FREXP_NO_LIBM.
27763         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27764         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27765
27766 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27767
27768         memcoll: clarify sizes versus lengths, document better, and tweak perf
27769         * lib/memcoll.c (strcoll_loop, memcoll0):
27770         Improve quality of descriptive comments.  Name variables
27771         consistently as to whether they are lengths (which do not include
27772         terminating null) versus sizes (which do).
27773         * lib/xmemcoll.c (xmemcoll0): Likewise.
27774         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27775         returned when s1size == 0; this is easier to compile and saves
27776         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27777
27778 2010-07-12  Bruno Haible  <bruno@clisp.org>
27779
27780         Tests for module '_Exit'.
27781         * modules/_Exit-tests: New file.
27782         * tests/test-_Exit.sh: New file.
27783         * tests/test-_Exit.c: New file.
27784
27785         New module '_Exit'.
27786         * lib/stdlib.in.h (__attribute__): New macro.
27787         (_Exit): New declaration.
27788         * lib/_Exit.c: New file.
27789         * m4/_Exit.m4: New file.
27790         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27791         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27792         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27793         * modules/_Exit: New file.
27794         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27795         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27796
27797 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27798
27799         strtod: make it more-accurate typically, and don't require libm
27800         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27801         Include limits.h.  Don't include string.h.
27802         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27803         (locale_isspace): New function, so that no casts are needed to
27804         check whether *s is a space.
27805         (ldexp): Provide an unused dummy if not available.
27806         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27807         (strtod): Use them.  This implementation prefers to use the
27808         underlying strtod if available, falling back on our own code
27809         only to fix known bugs.  This is more likely to produce an
27810         accurate result.  Also, it avoids the use of libm functions.
27811         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27812         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27813         was absent, but it caused a test failure with coreutils.
27814         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27815         with libm.
27816         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27817         * modules/strtod-tests (Makefile.am): Likewise.
27818
27819 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27820             Bruno Haible  <bruno@clisp.org>
27821
27822         unistr/u8-strchr: Optimize ASCII argument case.
27823         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27824
27825 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27826
27827         (x)memcoll: minor tweaks
27828         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27829         is after the type that it qualifies.
27830         (memcoll0): Likewise.
27831         * lib/memcoll.h (memcoll0): Likewise.
27832         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27833         * lib/xmemcoll.h (xmemcoll0): Likewise.
27834         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27835         differs from memcoll in that the NUL byte is part of the argument.
27836         Omit the abort-checks, as performance is a real issue here.  Plus,
27837         the checks were wrong anyway (an off-by-one error).  Omit local
27838         variable 'diff', as it's a bit clearer that way.
27839         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27840         no longer needed.
27841
27842 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27843
27844         (x)memcoll: speedup when input is known to be NUL delimited
27845         * lib/memcoll.c: Include stdlib.
27846         (memcoll0): New function.
27847         (strcoll_loop): New function, refactored for use in both memcoll
27848         and memcoll0.
27849         * lib/memcoll.h (memcoll0): Add prototype.
27850         * lib/xmemcoll.c (xmemcoll0): New function.
27851         (collate_error): New function, refactored for use in both xmemcoll
27852         and xmemcoll0.
27853         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27854         * m4/memcoll.m4: add inline invocation.
27855
27856 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27857
27858         * build-aux/bootstrap: Remove any local translations
27859         from the translation project synchronization directory,
27860         so that local only translations are not distributed.
27861
27862 2010-07-04  Bruno Haible  <bruno@clisp.org>
27863
27864         fsusage: Clarify which code applies to which platforms.
27865         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27866         platform.
27867         * lib/fsusage.c (get_fs_usage): Likewise.
27868
27869 2010-07-04  Bruno Haible  <bruno@clisp.org>
27870
27871         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27872         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27873         Reported by Martin Lambers <marlam@marlam.de>.
27874
27875 2010-07-04  Jim Meyering  <meyering@redhat.com>
27876
27877         hash: once again explicitly disallow insertion of NULL
27878         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27879         inserting a NULL pointer cannot work with these functions.
27880         Add a comment with details.
27881         This reverts part of the 2010-07-01 commit, 5bef1a35
27882         "hash: extend module to deal with non-pointer keys".
27883
27884 2010-07-01  Bruno Haible  <bruno@clisp.org>
27885
27886         stdbool: Update doc.
27887         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27888         Info from Christian Weisgerber <naddy@mips.inka.de>.
27889
27890 2010-07-01  Jim Meyering  <meyering@redhat.com>
27891
27892         hash: extend module to deal with non-pointer keys
27893         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27894         but that allows insertion of non-pointer entries.
27895         Do not disallow an ENTRY value of NULL.
27896         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27897         * lib/hash.h (hash_insert0): Declare.
27898
27899 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27900
27901         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27902         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27903         not present (i.e. with autoconf 2.59 and when using gettextize, not
27904         gnulib), require AC_GNU_SOURCE instead.
27905
27906 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27907
27908         idpriv-drop: Fix tests.
27909         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27910         not to the test-idpriv-droptemp program.
27911
27912 2010-06-29  Bruno Haible  <bruno@clisp.org>
27913
27914         string: Fix syntax error with g++ 2.96.
27915         * lib/string.in.h (__pure__): Remove definition.
27916         (_GL_ATTRIBUTE_PURE): New macro.
27917         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27918         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27919         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27920
27921 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27922
27923         unitypes: Fix bug introduced on 2010-05-18.
27924         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27925
27926 2010-06-22  Eric Blake  <eblake@redhat.com>
27927
27928         memmem: slight optimization
27929         * lib/str-two-way.h (critical_factorization): Update comments.
27930         Reduce work during factorization phase.
27931         Reported by Carlos Bueno <carlos@bueno.org>.
27932
27933 2010-06-21  Bruno Haible  <bruno@clisp.org>
27934
27935         Fix HAVE_CALLOC_POSIX misnomer.
27936         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27937         !HAVE_CALLOC_POSIX.
27938         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27939         HAVE_CALLOC_POSIX.
27940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27941         instead of HAVE_CALLOC_POSIX.
27942         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27943         HAVE_CALLOC_POSIX.
27944
27945         Use modern idiom for calloc() replacement.
27946         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27947         AC_FUNC_CALLOC.
27948         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27949         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27950         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27951         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27952         (gl_REPLACE_CALLOC): New macro.
27953
27954 2010-06-21  Bruno Haible  <bruno@clisp.org>
27955
27956         Fix HAVE_REALLOC_POSIX misnomer.
27957         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27958         !HAVE_REALLOC_POSIX.
27959         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27960         HAVE_REALLOC_POSIX.
27961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27962         instead of HAVE_REALLOC_POSIX.
27963         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27964         HAVE_REALLOC_POSIX.
27965
27966         Use modern idiom for realloc() replacement.
27967         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27968         AC_FUNC_REALLOC.
27969         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27970         Autoconf's AC_FUNC_REALLOC.
27971         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27972         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27973         (gl_REPLACE_REALLOC): New macro.
27974         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27975
27976 2010-06-21  Bruno Haible  <bruno@clisp.org>
27977
27978         Fix HAVE_MALLOC_POSIX misnomer.
27979         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27980         !HAVE_MALLOC_POSIX.
27981         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27982         HAVE_MALLOC_POSIX.
27983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27984         instead of HAVE_MALLOC_POSIX.
27985         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27986         HAVE_MALLOC_POSIX.
27987
27988         Use modern idiom for malloc() replacement.
27989         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27990         AC_FUNC_MALLOC.
27991         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27992         Autoconf's AC_FUNC_MALLOC.
27993         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27994         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27995         (gl_REPLACE_MALLOC): New macro.
27996         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27997
27998 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27999
28000         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28001         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28002         This macro takes 3 arguments, not 4.
28003
28004 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28005
28006         ipv6: fix detection under mingw
28007         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28008         in6_addr.
28009
28010 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28011
28012         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28013         that strtod() works when cross-compiling to a glibc version known
28014         to work.
28015
28016 2010-06-15  Bruno Haible  <bruno@clisp.org>
28017
28018         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28019
28020 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28021
28022         select: Correct timeout.
28023         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28024
28025 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28026
28027         git-version-gen: init shell var to avoid env var influence
28028         * build-aux/git-version-gen (v): Init shell var to empty.
28029
28030 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28031
28032         priv-set: Don't assume that priv.h exists merely because getppriv does.
28033         See Jan Andersen's bug report about AIX 5L in
28034         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28035         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28036         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28037         * lib/priv-set.h: Likewise.
28038         * tests/test-priv-set.c: Likewise.
28039
28040 2010-06-13  Bruno Haible  <bruno@clisp.org>
28041
28042         relocatable: Make it easier to test whether to install wrappers.
28043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28044         RELOCATABLE_VIA_WRAPPER.
28045
28046 2010-06-13  Bruno Haible  <bruno@clisp.org>
28047
28048         gnulib-tool: Display specified modules and dependencies differently.
28049         * gnulib-tool (func_show_module_list): New function.
28050         (func_import, func_create_testdir): Invoke it.
28051         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28052
28053 2010-06-13  Bruno Haible  <bruno@clisp.org>
28054
28055         gnulib-tool: Align code of func_import and func_create_testdir.
28056         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28057         specified_modules.
28058
28059 2010-06-12  Jim Meyering  <meyering@redhat.com>
28060
28061         test-inttostr: avoid spurious failure on Solaris 9
28062         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28063         to accept "%ju".  Reported by Bruno Haible.
28064
28065 2010-06-11  Jim Meyering  <meyering@redhat.com>
28066
28067         test-sys_socket: mark variables as used more readably
28068         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28069         as "used" explicitly via (void) statement casts.  This is more
28070         readable than using them in an artificial return expression.
28071         Suggestion from Bruno Haible.
28072
28073 2010-06-11  Bruno Haible  <bruno@clisp.org>
28074
28075         Avoid some more warnings from "gcc -Wwrite-strings".
28076         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28077         to 'const char *'.
28078         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28079         * tests/test-c-strcasestr.c (main): Likewise.
28080         * tests/test-mbscasestr1.c (main): Likewise.
28081         * tests/test-mbscasestr2.c (main): Likewise.
28082         * tests/test-memmem.c (main): Likewise.
28083         * tests/test-strstr.c (main): Likewise.
28084         * tests/test-strcasestr.c (main): Likewise.
28085
28086 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28087
28088         init.sh: change framework_failure_ to fail with status 99, not 1
28089         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28090         automake's parallel-tests rule that this is an unexpected failure,
28091         even if the test is listed in XFAIL_TESTS.
28092
28093 2010-06-11  Jim Meyering  <meyering@redhat.com>
28094
28095         test-inttostr: avoid warnings about 4-6KB literal strings
28096         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28097         Include "macros.h", for its definition of ASSERT.
28098         (CK): s/assert/ASSERT/
28099         * modules/inttostr-tests (Files): Add macros.h.
28100
28101         init.sh: don't use $ME_ or skip_ before they are defined
28102         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28103         their first uses.  Also hoist their companions: warn_, fail_,
28104         framework_failure_, $stderr_fileno.  Prompted by a patch from
28105         Stefano Lattarini.
28106
28107         test-sys_socket: avoid set-but-not-used warnings from gcc
28108         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28109         avoid warning about set-but-not-used variables.
28110
28111         test-xvasprintf: avoid 'const' discard warnings
28112         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28113         "const" when assigning from literal strings.
28114         (test_xasprintf): Add "void" in function argument list to placate
28115         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28116
28117         tests: avoid compilation warnings in argmatch and exclude tests...
28118         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28119         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28120         Since it always exits, declare with the "noreturn" attribute.
28121         * tests/test-argmatch.c: Likewise.
28122
28123         tests: avoid 'const' discard warnings in mbsstr tests
28124         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28125         * tests/test-mbsstr2.c (main): Likewise.
28126
28127         test-verify: avoid warning from gcc's -Wmissing-declarations
28128         * tests/test-verify.c (function): Declare to be static.
28129
28130         test-inttostr.c: include <string.h> for use of strcmp
28131         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28132
28133         test-linkat: avoid failed assertion on "other" architectures
28134         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28135         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28136         sparc: https://bugs.launchpad.net/bugs/591968
28137
28138 2010-06-11  Jim Meyering  <meyering@redhat.com>
28139
28140         printf.m4: avoid autoconf's "Expanded Before Required" warning
28141         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28142         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28143         autoconf warning.
28144
28145 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28146
28147         Replacement header templates are now named with ".in", not "_".
28148         * doc/gnulib-intro.texi: Correct.
28149
28150 2010-06-10  Jim Meyering  <meyering@redhat.com>
28151
28152         inttostr-tests: depend on snprintf, not snprintf-posix
28153         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28154         snprintf-posix, to avoid this aclocal failure:
28155           missing file gnulib-tests/vasnprintf.c
28156           configure.ac:45: error: expected source file, required through \
28157           AC_LIBSOURCES, not found
28158
28159 2010-06-10  Jim Meyering  <meyering@redhat.com>
28160
28161         inttostr: add a new function, inttostr, and tests
28162         The namesake function was not available.  The existence of the
28163         template file, inttostr.c makes its addition nontrivial.
28164         * lib/anytostr.c: Rename from inttostr.c.
28165         (anytostr): Rename from inttostr.
28166         * lib/inttostr.c: New file.
28167         * modules/inttostr (Files): Add anytostr.c.
28168         (Makefile.am): Set lib_SOURCES instead of ...
28169         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28170         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28171         * lib/offtostr.c: Likewise.
28172         * lib/uinttostr.c: Likewise.
28173         * lib/umaxtostr.c: Likewise.
28174         * modules/inttostr-tests: New file.
28175         * tests/test-inttostr.c: New file.  Test these functions.
28176
28177 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28178             Bruno Haible  <bruno@clisp.org>
28179
28180         Add "Extending Gnulib" chapter to manual.
28181         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28182         chapter.
28183         (Extending Gnulib): New chapter.
28184         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28185         chapter.
28186
28187 2010-06-09  Bruno Haible  <bruno@clisp.org>
28188
28189         Avoid relocwrapper link errors due to gnulib replacement functions.
28190         * lib/areadlink.c: Use the system's malloc, realloc functions.
28191         (areadlink): Set errno to ENOMEM explicitly.
28192         * modules/areadlink (Depends-on): Remove malloc-posix.
28193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28194
28195 2010-06-09  Bruno Haible  <bruno@clisp.org>
28196
28197         Avoid relocwrapper link errors due to gnulib replacement functions.
28198         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28199         * lib/malloca.c: Likewise.
28200         * lib/relocatable.c: Likewise.
28201         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28202         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28203         * lib/setenv.c: Use the system's malloc, realloc functions.
28204         * lib/strerror.c: Use the system's sprintf function.
28205         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28206
28207 2010-06-04  Bruno Haible  <bruno@clisp.org>
28208
28209         Prefer documented low-level autoconf macro names.
28210         * m4/lib-link.m4: Use m4_translit instead of translit.
28211         * m4/environ.m4: Likewise.
28212         * m4/mathfunc.m4: Likewise.
28213         * m4/onceonly.m4: Likewise.
28214         * m4/stdint.m4: Likewise.
28215         Suggested by Eric Blake.
28216
28217 2010-06-04  Martin Lambers  <marlam@marlam.de>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         havelib: Allow library names with '+' characters.
28221         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28222         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28223
28224 2010-06-09  Bruno Haible  <bruno@clisp.org>
28225
28226         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28227         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28228         realloc failed.
28229
28230 2010-06-08  Peter Simons  <simons@cryp.to>
28231
28232         maint.mk: make the news-check rule more configurable
28233         * top/maint.mk (news-check-lines-spec): New variable.
28234         (news-check): Use "sed -n 1,10p" in place of "head".
28235
28236 2010-06-07  Jim Meyering  <meyering@redhat.com>
28237
28238         do-release-commit-and-tag: fix typo in --help
28239         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28240
28241         regex: avoid new dead-code warning with gcc-4.6.0
28242         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28243         if-block containing a while-loop.  It's been unused for at least
28244         5 years.
28245
28246 2010-06-05  Bruno Haible  <bruno@clisp.org>
28247
28248         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28249         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28250
28251 2010-06-04  Bruno Haible  <bruno@clisp.org>
28252
28253         Update to GNU gettext 0.18.1.
28254         * modules/gettext (configure.ac): Require gettext infrastructure from
28255         version 0.18.1.
28256
28257 2010-06-03  Bruno Haible  <bruno@clisp.org>
28258
28259         Don't use AC_LIBOBJ with file names in subdirectories.
28260         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28261         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28262         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28263         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28264         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28265         gl_LIBUNISTRING_LIBSOURCE.
28266         (Makefile.am): Augment lib_SOURCES here, conditionally.
28267         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28268
28269 2010-06-03  Bruno Haible  <bruno@clisp.org>
28270
28271         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28273         expansion does not end with a newline.
28274         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28275         unnecessary newline.
28276
28277 2010-06-03  Bruno Haible  <bruno@clisp.org>
28278
28279         Reduce dependencies.
28280         * tests/test-quotearg.h: New file, extracted from
28281         tests/test-quotearg.c.
28282         * tests/test-quotearg-simple.c: New file, extracted from
28283         tests/test-quotearg.c.
28284         * tests/test-quotearg.c: Don't include <ctype.h>.
28285         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28286         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28287         use_quote_double_quotes, use_quotearg_colon): Moved to
28288         tests/test-quotearg.h.
28289         (results_g, flag_results, custom_quotes, custom_results): Moved
28290         to tests/test-quotearg-simple.c.
28291         (main): Moved the part that does not depend on gettext to
28292         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28293         performed.
28294         * modules/quotearg-simple: New file.
28295         * modules/quotearg-simple-tests: New file.
28296         * modules/quotearg (Depends-on): Add quotearg-simple.
28297         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28298         (Files): Add tests/test-quotearg.h.
28299         Reported by Paolo Bonzini.
28300
28301 2010-06-03  Bruno Haible  <bruno@clisp.org>
28302
28303         Reduce dependencies.
28304         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28305
28306 2010-06-03  Bruno Haible  <bruno@clisp.org>
28307
28308         time: Undefine more broken macros.
28309         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28310         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28311         Reported by Eric Blake.
28312
28313 2010-06-03  Bruno Haible  <bruno@clisp.org>
28314
28315         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28316         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28317         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28318         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28319         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28320         Reported by Ludovic Courtès <ludo@gnu.org>.
28321
28322 2010-06-02  Eric Blake  <eblake@redhat.com>
28323
28324         time: work with mingw + pthreads-win32 library
28325         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28326         if timespec is defined only in pthread.h.
28327         * modules/time (Makefile.am): Substitute it.
28328         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28329         <pthread.h>, when needed.
28330         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28331         from the library.
28332
28333 2010-05-31  Bruno Haible  <bruno@clisp.org>
28334
28335         Avoid expanding two macros in the wrong order.
28336         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28337         gl_LIBUNISTRING if it is defined.
28338         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28339         autoconf >= 2.64.
28340         Reported by Ludovic Courtès <ludo@gnu.org>.
28341
28342 2010-05-27  Jim Meyering  <meyering@redhat.com>
28343
28344         maint.mk: also prohibit "#undef" of always-defined symbols
28345         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28346         Allow more than one space before the symbol name.
28347         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28348         the regexp uses alternation.
28349
28350 2010-05-26  Eric Blake  <eblake@redhat.com>
28351
28352         maint.mk: avoid echo -e
28353         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28354         Convert all uses of echo -* to printf.
28355         Reported by Matthias Bolte.
28356
28357 2010-05-25  Bruno Haible  <bruno@clisp.org>
28358
28359         Update to GNU gettext 0.18, part 2.
28360         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28361         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28362
28363 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28364
28365         Add missing include in test-pwrite.c.
28366         * tests/test-pwrite.c: Include string.h, for strcmp.
28367
28368 2010-05-24  Bruno Haible  <bruno@clisp.org>
28369
28370         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28371
28372 2010-05-24  Bruno Haible  <bruno@clisp.org>
28373
28374         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28375         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28376         iconveh_error argument.
28377         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28378         U_STRCONV_TO_LOCALE.
28379         * lib/unistr/u16-strcoll.c: Likewise.
28380         * lib/unistr/u32-strcoll.c: Likewise.
28381         * modules/unistr/u8-strcoll (Depends-on): Add
28382         uniconv/u8-strconv-to-enc, localcharset. Remove
28383         uniconv/u8-strconv-to-locale.
28384         (configure.ac): Bump version number.
28385         * modules/unistr/u16-strcoll (Depends-on): Add
28386         uniconv/u16-strconv-to-enc, localcharset. Remove
28387         uniconv/u16-strconv-to-locale.
28388         (configure.ac): Bump version number.
28389         * modules/unistr/u32-strcoll (Depends-on): Add
28390         uniconv/u32-strconv-to-enc, localcharset. Remove
28391         uniconv/u32-strconv-to-locale.
28392         (configure.ac): Bump version number.
28393
28394 2010-05-24  Bruno Haible  <bruno@clisp.org>
28395
28396         Avoid a test failure on NetBSD 5.0.
28397         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28398         an iconv() bug.
28399
28400 2010-05-24  Bruno Haible  <bruno@clisp.org>
28401
28402         Adjust #include directive style.
28403         * modules/regex (Includes): Recommend to write <regex.h>.
28404
28405 2010-05-24  Bruno Haible  <bruno@clisp.org>
28406
28407         regex: Don't require alloca.
28408         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28409         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28410         only inside if (0).
28411
28412 2010-05-23  Jim Meyering  <meyering@redhat.com>
28413
28414         test-renameat.c: include <sys/stat.h>
28415         * tests/test-renameat.c: Include <sys/stat.h>; required for
28416         definition of S_IS* macros.
28417
28418 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28419
28420         Update maintainer documentation for 'relocatable-prog' module.
28421         * doc/relocatable-maint.texi: Update.
28422         Comments by Bruno Haible.
28423
28424 2010-05-23  Bruno Haible  <bruno@clisp.org>
28425
28426         git-merge-changelog: Enable --split-merged-entry by default.
28427         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28428         (usage): Don't mention this option any more.
28429         Reported by Ralf Wildenhues.
28430
28431 2010-05-23  Jim Meyering  <meyering@redhat.com>
28432
28433         test-pwrite: do not leave behind a test file named "out"
28434         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28435         The trivial-looking use of init.sh is really necessary.
28436         It ensures that the temporary file, "out", is created in
28437         a temporary directory, and removed upon termination.
28438         * tests/test-pwrite.sh: Re-add file.
28439         * modules/pwrite-tests: Reference it.
28440
28441 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28442
28443         Fix output redirection buglet in init.sh.
28444         * tests/init.sh: Fix redirection of stderr.
28445
28446 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28447
28448         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28449
28450 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28451
28452         * modules/valgrind-tests: New file.
28453         * m4/valgrind-tests.m4: New file.
28454         * doc/valgrind-tests.texi: New file.
28455         * doc/gnulib.texi (Running self-tests under valgrind): New
28456         section.
28457
28458 2010-05-19  Bruno Haible  <bruno@clisp.org>
28459
28460         Clean up dead code in recent commit.
28461         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28462         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28463         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28464         Suggested by Paolo Bonzini.
28465
28466 2010-05-19  Bruno Haible  <bruno@clisp.org>
28467
28468         Avoid valgrind error reports from libunistring.
28469         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28470         * modules/libunistring (Files): Add it.
28471         * modules/libunistring-optional (Files): Likewise.
28472
28473 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28474             Bruno Haible  <bruno@clisp.org>
28475
28476         New module 'libunistring-optional'.
28477         * modules/libunistring-optional: New file.
28478         * m4/libunistring-base.m4: New file.
28479         * m4/libunistring-optional.m4: New file.
28480         * lib/unicase.in.h: Renamed from lib/unicase.h.
28481         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28482         * lib/unictype.in.h: Renamed from lib/unictype.h.
28483         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28484         * lib/uniname.in.h: Renamed from lib/uniname.h.
28485         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28486         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28487         * lib/unistr.in.h: Renamed from lib/unistr.h.
28488         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28489         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28490         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28491         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28492         gl_LIBUNISTRING. If the library was found, determine the installed
28493         version and set LIBUNISTRING_VERSION.
28494         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28495         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28496         handle a configuration option --with-included-libunistring.
28497         * modules/libunistring (Files): Add m4/absolute-header.m4.
28498         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28499         Add m4/libunistring-base.m4.
28500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28501         (Makefile.am): Build unicase.h from unicase.in.h.
28502         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28503         Add m4/libunistring-base.m4.
28504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28505         (Makefile.am): Build uniconv.h from uniconv.in.h.
28506         * modules/unictype/base (Files): Use unictype.in.h instead of
28507         unictype.h. Add m4/libunistring-base.m4.
28508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28509         (Makefile.am): Build unictype.h from unictype.in.h.
28510         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28511         Add m4/libunistring-base.m4.
28512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28513         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28514         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28515         Add m4/libunistring-base.m4.
28516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28517         (Makefile.am): Build uniname.h from uniname.in.h.
28518         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28519         Add m4/libunistring-base.m4.
28520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28521         (Makefile.am): Build uninorm.h from uninorm.in.h.
28522         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28523         unistdio.h. Add m4/libunistring-base.m4.
28524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28525         (Makefile.am): Build unistdio.h from unistdio.in.h.
28526         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28527         Add m4/libunistring-base.m4.
28528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28529         (Makefile.am): Build unistr.h from unistr.in.h.
28530         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28531         Add m4/libunistring-base.m4.
28532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28533         (Makefile.am): Build unitypes.h from unitypes.in.h.
28534         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28535         Add m4/libunistring-base.m4.
28536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28537         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28538         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28539         uniwidth.h. Add m4/libunistring-base.m4.
28540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28541         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28542         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28543         instead of augmenting lib_SOURCES.
28544         * modules/unicase/empty-suffix-context: Likewise.
28545         * modules/unicase/locale-language: Likewise.
28546         * modules/unicase/tolower: Likewise.
28547         * modules/unicase/totitle: Likewise.
28548         * modules/unicase/toupper: Likewise.
28549         * modules/unicase/u8-casecmp: Likewise.
28550         * modules/unicase/u8-casecoll: Likewise.
28551         * modules/unicase/u8-casefold: Likewise.
28552         * modules/unicase/u8-casexfrm: Likewise.
28553         * modules/unicase/u8-ct-casefold: Likewise.
28554         * modules/unicase/u8-ct-tolower: Likewise.
28555         * modules/unicase/u8-ct-totitle: Likewise.
28556         * modules/unicase/u8-ct-toupper: Likewise.
28557         * modules/unicase/u8-is-cased: Likewise.
28558         * modules/unicase/u8-is-casefolded: Likewise.
28559         * modules/unicase/u8-is-lowercase: Likewise.
28560         * modules/unicase/u8-is-titlecase: Likewise.
28561         * modules/unicase/u8-is-uppercase: Likewise.
28562         * modules/unicase/u8-prefix-context: Likewise.
28563         * modules/unicase/u8-suffix-context: Likewise.
28564         * modules/unicase/u8-tolower: Likewise.
28565         * modules/unicase/u8-totitle: Likewise.
28566         * modules/unicase/u8-toupper: Likewise.
28567         * modules/unicase/u16-casecmp: Likewise.
28568         * modules/unicase/u16-casecoll: Likewise.
28569         * modules/unicase/u16-casefold: Likewise.
28570         * modules/unicase/u16-casexfrm: Likewise.
28571         * modules/unicase/u16-ct-casefold: Likewise.
28572         * modules/unicase/u16-ct-tolower: Likewise.
28573         * modules/unicase/u16-ct-totitle: Likewise.
28574         * modules/unicase/u16-ct-toupper: Likewise.
28575         * modules/unicase/u16-is-cased: Likewise.
28576         * modules/unicase/u16-is-casefolded: Likewise.
28577         * modules/unicase/u16-is-lowercase: Likewise.
28578         * modules/unicase/u16-is-titlecase: Likewise.
28579         * modules/unicase/u16-is-uppercase: Likewise.
28580         * modules/unicase/u16-prefix-context: Likewise.
28581         * modules/unicase/u16-suffix-context: Likewise.
28582         * modules/unicase/u16-tolower: Likewise.
28583         * modules/unicase/u16-totitle: Likewise.
28584         * modules/unicase/u16-toupper: Likewise.
28585         * modules/unicase/u32-casecmp: Likewise.
28586         * modules/unicase/u32-casecoll: Likewise.
28587         * modules/unicase/u32-casefold: Likewise.
28588         * modules/unicase/u32-casexfrm: Likewise.
28589         * modules/unicase/u32-ct-casefold: Likewise.
28590         * modules/unicase/u32-ct-tolower: Likewise.
28591         * modules/unicase/u32-ct-totitle: Likewise.
28592         * modules/unicase/u32-ct-toupper: Likewise.
28593         * modules/unicase/u32-is-cased: Likewise.
28594         * modules/unicase/u32-is-casefolded: Likewise.
28595         * modules/unicase/u32-is-lowercase: Likewise.
28596         * modules/unicase/u32-is-titlecase: Likewise.
28597         * modules/unicase/u32-is-uppercase: Likewise.
28598         * modules/unicase/u32-prefix-context: Likewise.
28599         * modules/unicase/u32-suffix-context: Likewise.
28600         * modules/unicase/u32-tolower: Likewise.
28601         * modules/unicase/u32-totitle: Likewise.
28602         * modules/unicase/u32-toupper: Likewise.
28603         * modules/unicase/ulc-casecmp: Likewise.
28604         * modules/unicase/ulc-casecoll: Likewise.
28605         * modules/unicase/ulc-casexfrm: Likewise.
28606         * modules/uniconv/u8-conv-from-enc: Likewise.
28607         * modules/uniconv/u8-conv-to-enc: Likewise.
28608         * modules/uniconv/u8-strconv-from-enc: Likewise.
28609         * modules/uniconv/u8-strconv-from-locale: Likewise.
28610         * modules/uniconv/u8-strconv-to-enc: Likewise.
28611         * modules/uniconv/u8-strconv-to-locale: Likewise.
28612         * modules/uniconv/u16-conv-from-enc: Likewise.
28613         * modules/uniconv/u16-conv-to-enc: Likewise.
28614         * modules/uniconv/u16-strconv-from-enc: Likewise.
28615         * modules/uniconv/u16-strconv-from-locale: Likewise.
28616         * modules/uniconv/u16-strconv-to-enc: Likewise.
28617         * modules/uniconv/u16-strconv-to-locale: Likewise.
28618         * modules/uniconv/u32-conv-from-enc: Likewise.
28619         * modules/uniconv/u32-conv-to-enc: Likewise.
28620         * modules/uniconv/u32-strconv-from-enc: Likewise.
28621         * modules/uniconv/u32-strconv-from-locale: Likewise.
28622         * modules/uniconv/u32-strconv-to-enc: Likewise.
28623         * modules/uniconv/u32-strconv-to-locale: Likewise.
28624         * modules/unictype/bidicategory-byname: Likewise.
28625         * modules/unictype/bidicategory-name: Likewise.
28626         * modules/unictype/bidicategory-of: Likewise.
28627         * modules/unictype/bidicategory-test: Likewise.
28628         * modules/unictype/block-list: Likewise.
28629         * modules/unictype/block-test: Likewise.
28630         * modules/unictype/category-C: Likewise.
28631         * modules/unictype/category-Cc: Likewise.
28632         * modules/unictype/category-Cf: Likewise.
28633         * modules/unictype/category-Cn: Likewise.
28634         * modules/unictype/category-Co: Likewise.
28635         * modules/unictype/category-Cs: Likewise.
28636         * modules/unictype/category-L: Likewise.
28637         * modules/unictype/category-Ll: Likewise.
28638         * modules/unictype/category-Lm: Likewise.
28639         * modules/unictype/category-Lo: Likewise.
28640         * modules/unictype/category-Lt: Likewise.
28641         * modules/unictype/category-Lu: Likewise.
28642         * modules/unictype/category-M: Likewise.
28643         * modules/unictype/category-Mc: Likewise.
28644         * modules/unictype/category-Me: Likewise.
28645         * modules/unictype/category-Mn: Likewise.
28646         * modules/unictype/category-N: Likewise.
28647         * modules/unictype/category-Nd: Likewise.
28648         * modules/unictype/category-Nl: Likewise.
28649         * modules/unictype/category-No: Likewise.
28650         * modules/unictype/category-P: Likewise.
28651         * modules/unictype/category-Pc: Likewise.
28652         * modules/unictype/category-Pd: Likewise.
28653         * modules/unictype/category-Pe: Likewise.
28654         * modules/unictype/category-Pf: Likewise.
28655         * modules/unictype/category-Pi: Likewise.
28656         * modules/unictype/category-Po: Likewise.
28657         * modules/unictype/category-Ps: Likewise.
28658         * modules/unictype/category-S: Likewise.
28659         * modules/unictype/category-Sc: Likewise.
28660         * modules/unictype/category-Sk: Likewise.
28661         * modules/unictype/category-Sm: Likewise.
28662         * modules/unictype/category-So: Likewise.
28663         * modules/unictype/category-Z: Likewise.
28664         * modules/unictype/category-Zl: Likewise.
28665         * modules/unictype/category-Zp: Likewise.
28666         * modules/unictype/category-Zs: Likewise.
28667         * modules/unictype/category-and: Likewise.
28668         * modules/unictype/category-and-not: Likewise.
28669         * modules/unictype/category-byname: Likewise.
28670         * modules/unictype/category-name: Likewise.
28671         * modules/unictype/category-none: Likewise.
28672         * modules/unictype/category-of: Likewise.
28673         * modules/unictype/category-or: Likewise.
28674         * modules/unictype/category-test: Likewise.
28675         * modules/unictype/combining-class: Likewise.
28676         * modules/unictype/ctype-alnum: Likewise.
28677         * modules/unictype/ctype-alpha: Likewise.
28678         * modules/unictype/ctype-blank: Likewise.
28679         * modules/unictype/ctype-cntrl: Likewise.
28680         * modules/unictype/ctype-digit: Likewise.
28681         * modules/unictype/ctype-graph: Likewise.
28682         * modules/unictype/ctype-lower: Likewise.
28683         * modules/unictype/ctype-print: Likewise.
28684         * modules/unictype/ctype-punct: Likewise.
28685         * modules/unictype/ctype-space: Likewise.
28686         * modules/unictype/ctype-upper: Likewise.
28687         * modules/unictype/ctype-xdigit: Likewise.
28688         * modules/unictype/decimal-digit: Likewise.
28689         * modules/unictype/digit: Likewise.
28690         * modules/unictype/mirror: Likewise.
28691         * modules/unictype/numeric: Likewise.
28692         * modules/unictype/property-alphabetic: Likewise.
28693         * modules/unictype/property-ascii-hex-digit: Likewise.
28694         * modules/unictype/property-bidi-arabic-digit: Likewise.
28695         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28696         * modules/unictype/property-bidi-block-separator: Likewise.
28697         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28698         * modules/unictype/property-bidi-common-separator: Likewise.
28699         * modules/unictype/property-bidi-control: Likewise.
28700         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28701         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28702         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28703         * modules/unictype/property-bidi-european-digit: Likewise.
28704         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28705         * modules/unictype/property-bidi-left-to-right: Likewise.
28706         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28707         * modules/unictype/property-bidi-other-neutral: Likewise.
28708         * modules/unictype/property-bidi-pdf: Likewise.
28709         * modules/unictype/property-bidi-segment-separator: Likewise.
28710         * modules/unictype/property-bidi-whitespace: Likewise.
28711         * modules/unictype/property-byname: Likewise.
28712         * modules/unictype/property-combining: Likewise.
28713         * modules/unictype/property-composite: Likewise.
28714         * modules/unictype/property-currency-symbol: Likewise.
28715         * modules/unictype/property-dash: Likewise.
28716         * modules/unictype/property-decimal-digit: Likewise.
28717         * modules/unictype/property-default-ignorable-code-point: Likewise.
28718         * modules/unictype/property-deprecated: Likewise.
28719         * modules/unictype/property-diacritic: Likewise.
28720         * modules/unictype/property-extender: Likewise.
28721         * modules/unictype/property-format-control: Likewise.
28722         * modules/unictype/property-grapheme-base: Likewise.
28723         * modules/unictype/property-grapheme-extend: Likewise.
28724         * modules/unictype/property-grapheme-link: Likewise.
28725         * modules/unictype/property-hex-digit: Likewise.
28726         * modules/unictype/property-hyphen: Likewise.
28727         * modules/unictype/property-id-continue: Likewise.
28728         * modules/unictype/property-id-start: Likewise.
28729         * modules/unictype/property-ideographic: Likewise.
28730         * modules/unictype/property-ids-binary-operator: Likewise.
28731         * modules/unictype/property-ids-trinary-operator: Likewise.
28732         * modules/unictype/property-ignorable-control: Likewise.
28733         * modules/unictype/property-iso-control: Likewise.
28734         * modules/unictype/property-join-control: Likewise.
28735         * modules/unictype/property-left-of-pair: Likewise.
28736         * modules/unictype/property-line-separator: Likewise.
28737         * modules/unictype/property-logical-order-exception: Likewise.
28738         * modules/unictype/property-lowercase: Likewise.
28739         * modules/unictype/property-math: Likewise.
28740         * modules/unictype/property-non-break: Likewise.
28741         * modules/unictype/property-not-a-character: Likewise.
28742         * modules/unictype/property-numeric: Likewise.
28743         * modules/unictype/property-other-alphabetic: Likewise.
28744         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28745         * modules/unictype/property-other-grapheme-extend: Likewise.
28746         * modules/unictype/property-other-id-continue: Likewise.
28747         * modules/unictype/property-other-id-start: Likewise.
28748         * modules/unictype/property-other-lowercase: Likewise.
28749         * modules/unictype/property-other-math: Likewise.
28750         * modules/unictype/property-other-uppercase: Likewise.
28751         * modules/unictype/property-paired-punctuation: Likewise.
28752         * modules/unictype/property-paragraph-separator: Likewise.
28753         * modules/unictype/property-pattern-syntax: Likewise.
28754         * modules/unictype/property-pattern-white-space: Likewise.
28755         * modules/unictype/property-private-use: Likewise.
28756         * modules/unictype/property-punctuation: Likewise.
28757         * modules/unictype/property-quotation-mark: Likewise.
28758         * modules/unictype/property-radical: Likewise.
28759         * modules/unictype/property-sentence-terminal: Likewise.
28760         * modules/unictype/property-soft-dotted: Likewise.
28761         * modules/unictype/property-space: Likewise.
28762         * modules/unictype/property-terminal-punctuation: Likewise.
28763         * modules/unictype/property-test: Likewise.
28764         * modules/unictype/property-titlecase: Likewise.
28765         * modules/unictype/property-unassigned-code-value: Likewise.
28766         * modules/unictype/property-unified-ideograph: Likewise.
28767         * modules/unictype/property-uppercase: Likewise.
28768         * modules/unictype/property-variation-selector: Likewise.
28769         * modules/unictype/property-white-space: Likewise.
28770         * modules/unictype/property-xid-continue: Likewise.
28771         * modules/unictype/property-xid-start: Likewise.
28772         * modules/unictype/property-zero-width: Likewise.
28773         * modules/unictype/scripts: Likewise.
28774         * modules/unictype/syntax-c-ident: Likewise.
28775         * modules/unictype/syntax-c-whitespace: Likewise.
28776         * modules/unictype/syntax-java-ident: Likewise.
28777         * modules/unictype/syntax-java-whitespace: Likewise.
28778         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28779         * modules/unilbrk/u8-width-linebreaks: Likewise.
28780         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28781         * modules/unilbrk/u16-width-linebreaks: Likewise.
28782         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28783         * modules/unilbrk/u32-width-linebreaks: Likewise.
28784         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28785         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28786         * modules/uniname/uniname: Likewise.
28787         * modules/uninorm/canonical-decomposition: Likewise.
28788         * modules/uninorm/composition: Likewise.
28789         * modules/uninorm/decomposing-form: Likewise.
28790         * modules/uninorm/decomposition: Likewise.
28791         * modules/uninorm/filter: Likewise.
28792         * modules/uninorm/nfc: Likewise.
28793         * modules/uninorm/nfd: Likewise.
28794         * modules/uninorm/nfkc: Likewise.
28795         * modules/uninorm/nfkd: Likewise.
28796         * modules/uninorm/u8-normalize: Likewise.
28797         * modules/uninorm/u8-normcmp: Likewise.
28798         * modules/uninorm/u8-normcoll: Likewise.
28799         * modules/uninorm/u8-normxfrm: Likewise.
28800         * modules/uninorm/u16-normalize: Likewise.
28801         * modules/uninorm/u16-normcmp: Likewise.
28802         * modules/uninorm/u16-normcoll: Likewise.
28803         * modules/uninorm/u16-normxfrm: Likewise.
28804         * modules/uninorm/u32-normalize: Likewise.
28805         * modules/uninorm/u32-normcmp: Likewise.
28806         * modules/uninorm/u32-normcoll: Likewise.
28807         * modules/uninorm/u32-normxfrm: Likewise.
28808         * modules/unistdio/u8-asnprintf: Likewise.
28809         * modules/unistdio/u8-asprintf: Likewise.
28810         * modules/unistdio/u8-snprintf: Likewise.
28811         * modules/unistdio/u8-sprintf: Likewise.
28812         * modules/unistdio/u8-u8-asnprintf: Likewise.
28813         * modules/unistdio/u8-u8-asprintf: Likewise.
28814         * modules/unistdio/u8-u8-snprintf: Likewise.
28815         * modules/unistdio/u8-u8-sprintf: Likewise.
28816         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28817         * modules/unistdio/u8-u8-vasprintf: Likewise.
28818         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28819         * modules/unistdio/u8-u8-vsprintf: Likewise.
28820         * modules/unistdio/u8-vasnprintf: Likewise.
28821         * modules/unistdio/u8-vasprintf: Likewise.
28822         * modules/unistdio/u8-vsnprintf: Likewise.
28823         * modules/unistdio/u8-vsprintf: Likewise.
28824         * modules/unistdio/u16-asnprintf: Likewise.
28825         * modules/unistdio/u16-asprintf: Likewise.
28826         * modules/unistdio/u16-snprintf: Likewise.
28827         * modules/unistdio/u16-sprintf: Likewise.
28828         * modules/unistdio/u16-u16-asnprintf: Likewise.
28829         * modules/unistdio/u16-u16-asprintf: Likewise.
28830         * modules/unistdio/u16-u16-snprintf: Likewise.
28831         * modules/unistdio/u16-u16-sprintf: Likewise.
28832         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28833         * modules/unistdio/u16-u16-vasprintf: Likewise.
28834         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28835         * modules/unistdio/u16-u16-vsprintf: Likewise.
28836         * modules/unistdio/u16-vasnprintf: Likewise.
28837         * modules/unistdio/u16-vasprintf: Likewise.
28838         * modules/unistdio/u16-vsnprintf: Likewise.
28839         * modules/unistdio/u16-vsprintf: Likewise.
28840         * modules/unistdio/u32-asnprintf: Likewise.
28841         * modules/unistdio/u32-asprintf: Likewise.
28842         * modules/unistdio/u32-snprintf: Likewise.
28843         * modules/unistdio/u32-sprintf: Likewise.
28844         * modules/unistdio/u32-u32-asnprintf: Likewise.
28845         * modules/unistdio/u32-u32-asprintf: Likewise.
28846         * modules/unistdio/u32-u32-snprintf: Likewise.
28847         * modules/unistdio/u32-u32-sprintf: Likewise.
28848         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28849         * modules/unistdio/u32-u32-vasprintf: Likewise.
28850         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28851         * modules/unistdio/u32-u32-vsprintf: Likewise.
28852         * modules/unistdio/u32-vasnprintf: Likewise.
28853         * modules/unistdio/u32-vasprintf: Likewise.
28854         * modules/unistdio/u32-vsnprintf: Likewise.
28855         * modules/unistdio/u32-vsprintf: Likewise.
28856         * modules/unistdio/ulc-asnprintf: Likewise.
28857         * modules/unistdio/ulc-asprintf: Likewise.
28858         * modules/unistdio/ulc-fprintf: Likewise.
28859         * modules/unistdio/ulc-snprintf: Likewise.
28860         * modules/unistdio/ulc-sprintf: Likewise.
28861         * modules/unistdio/ulc-vasnprintf: Likewise.
28862         * modules/unistdio/ulc-vasprintf: Likewise.
28863         * modules/unistdio/ulc-vfprintf: Likewise.
28864         * modules/unistdio/ulc-vsnprintf: Likewise.
28865         * modules/unistdio/ulc-vsprintf: Likewise.
28866         * modules/unistr/u8-check: Likewise.
28867         * modules/unistr/u8-chr: Likewise.
28868         * modules/unistr/u8-cmp: Likewise.
28869         * modules/unistr/u8-cmp2: Likewise.
28870         * modules/unistr/u8-cpy: Likewise.
28871         * modules/unistr/u8-cpy-alloc: Likewise.
28872         * modules/unistr/u8-endswith: Likewise.
28873         * modules/unistr/u8-mblen: Likewise.
28874         * modules/unistr/u8-mbsnlen: Likewise.
28875         * modules/unistr/u8-mbtouc: Likewise.
28876         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28877         * modules/unistr/u8-mbtoucr: Likewise.
28878         * modules/unistr/u8-move: Likewise.
28879         * modules/unistr/u8-next: Likewise.
28880         * modules/unistr/u8-prev: Likewise.
28881         * modules/unistr/u8-set: Likewise.
28882         * modules/unistr/u8-startswith: Likewise.
28883         * modules/unistr/u8-stpcpy: Likewise.
28884         * modules/unistr/u8-stpncpy: Likewise.
28885         * modules/unistr/u8-strcat: Likewise.
28886         * modules/unistr/u8-strchr: Likewise.
28887         * modules/unistr/u8-strcmp: Likewise.
28888         * modules/unistr/u8-strcoll: Likewise.
28889         * modules/unistr/u8-strcpy: Likewise.
28890         * modules/unistr/u8-strcspn: Likewise.
28891         * modules/unistr/u8-strdup: Likewise.
28892         * modules/unistr/u8-strlen: Likewise.
28893         * modules/unistr/u8-strmblen: Likewise.
28894         * modules/unistr/u8-strmbtouc: Likewise.
28895         * modules/unistr/u8-strncat: Likewise.
28896         * modules/unistr/u8-strncmp: Likewise.
28897         * modules/unistr/u8-strncpy: Likewise.
28898         * modules/unistr/u8-strnlen: Likewise.
28899         * modules/unistr/u8-strpbrk: Likewise.
28900         * modules/unistr/u8-strrchr: Likewise.
28901         * modules/unistr/u8-strspn: Likewise.
28902         * modules/unistr/u8-strstr: Likewise.
28903         * modules/unistr/u8-strtok: Likewise.
28904         * modules/unistr/u8-to-u16: Likewise.
28905         * modules/unistr/u8-to-u32: Likewise.
28906         * modules/unistr/u8-uctomb: Likewise.
28907         * modules/unistr/u16-check: Likewise.
28908         * modules/unistr/u16-chr: Likewise.
28909         * modules/unistr/u16-cmp: Likewise.
28910         * modules/unistr/u16-cmp2: Likewise.
28911         * modules/unistr/u16-cpy: Likewise.
28912         * modules/unistr/u16-cpy-alloc: Likewise.
28913         * modules/unistr/u16-endswith: Likewise.
28914         * modules/unistr/u16-mblen: Likewise.
28915         * modules/unistr/u16-mbsnlen: Likewise.
28916         * modules/unistr/u16-mbtouc: Likewise.
28917         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28918         * modules/unistr/u16-mbtoucr: Likewise.
28919         * modules/unistr/u16-move: Likewise.
28920         * modules/unistr/u16-next: Likewise.
28921         * modules/unistr/u16-prev: Likewise.
28922         * modules/unistr/u16-set: Likewise.
28923         * modules/unistr/u16-startswith: Likewise.
28924         * modules/unistr/u16-stpcpy: Likewise.
28925         * modules/unistr/u16-stpncpy: Likewise.
28926         * modules/unistr/u16-strcat: Likewise.
28927         * modules/unistr/u16-strchr: Likewise.
28928         * modules/unistr/u16-strcmp: Likewise.
28929         * modules/unistr/u16-strcoll: Likewise.
28930         * modules/unistr/u16-strcpy: Likewise.
28931         * modules/unistr/u16-strcspn: Likewise.
28932         * modules/unistr/u16-strdup: Likewise.
28933         * modules/unistr/u16-strlen: Likewise.
28934         * modules/unistr/u16-strmblen: Likewise.
28935         * modules/unistr/u16-strmbtouc: Likewise.
28936         * modules/unistr/u16-strncat: Likewise.
28937         * modules/unistr/u16-strncmp: Likewise.
28938         * modules/unistr/u16-strncpy: Likewise.
28939         * modules/unistr/u16-strnlen: Likewise.
28940         * modules/unistr/u16-strpbrk: Likewise.
28941         * modules/unistr/u16-strrchr: Likewise.
28942         * modules/unistr/u16-strspn: Likewise.
28943         * modules/unistr/u16-strstr: Likewise.
28944         * modules/unistr/u16-strtok: Likewise.
28945         * modules/unistr/u16-to-u32: Likewise.
28946         * modules/unistr/u16-to-u8: Likewise.
28947         * modules/unistr/u16-uctomb: Likewise.
28948         * modules/unistr/u32-check: Likewise.
28949         * modules/unistr/u32-chr: Likewise.
28950         * modules/unistr/u32-cmp: Likewise.
28951         * modules/unistr/u32-cmp2: Likewise.
28952         * modules/unistr/u32-cpy: Likewise.
28953         * modules/unistr/u32-cpy-alloc: Likewise.
28954         * modules/unistr/u32-endswith: Likewise.
28955         * modules/unistr/u32-mblen: Likewise.
28956         * modules/unistr/u32-mbsnlen: Likewise.
28957         * modules/unistr/u32-mbtouc: Likewise.
28958         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28959         * modules/unistr/u32-mbtoucr: Likewise.
28960         * modules/unistr/u32-move: Likewise.
28961         * modules/unistr/u32-next: Likewise.
28962         * modules/unistr/u32-prev: Likewise.
28963         * modules/unistr/u32-set: Likewise.
28964         * modules/unistr/u32-startswith: Likewise.
28965         * modules/unistr/u32-stpcpy: Likewise.
28966         * modules/unistr/u32-stpncpy: Likewise.
28967         * modules/unistr/u32-strcat: Likewise.
28968         * modules/unistr/u32-strchr: Likewise.
28969         * modules/unistr/u32-strcmp: Likewise.
28970         * modules/unistr/u32-strcoll: Likewise.
28971         * modules/unistr/u32-strcpy: Likewise.
28972         * modules/unistr/u32-strcspn: Likewise.
28973         * modules/unistr/u32-strdup: Likewise.
28974         * modules/unistr/u32-strlen: Likewise.
28975         * modules/unistr/u32-strmblen: Likewise.
28976         * modules/unistr/u32-strmbtouc: Likewise.
28977         * modules/unistr/u32-strncat: Likewise.
28978         * modules/unistr/u32-strncmp: Likewise.
28979         * modules/unistr/u32-strncpy: Likewise.
28980         * modules/unistr/u32-strnlen: Likewise.
28981         * modules/unistr/u32-strpbrk: Likewise.
28982         * modules/unistr/u32-strrchr: Likewise.
28983         * modules/unistr/u32-strspn: Likewise.
28984         * modules/unistr/u32-strstr: Likewise.
28985         * modules/unistr/u32-strtok: Likewise.
28986         * modules/unistr/u32-to-u16: Likewise.
28987         * modules/unistr/u32-to-u8: Likewise.
28988         * modules/unistr/u32-uctomb: Likewise.
28989         * modules/uniwbrk/u8-wordbreaks: Likewise.
28990         * modules/uniwbrk/u16-wordbreaks: Likewise.
28991         * modules/uniwbrk/u32-wordbreaks: Likewise.
28992         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28993         * modules/uniwbrk/wordbreak-property: Likewise.
28994         * modules/uniwidth/u8-strwidth: Likewise.
28995         * modules/uniwidth/u8-width: Likewise.
28996         * modules/uniwidth/u16-strwidth: Likewise.
28997         * modules/uniwidth/u16-width: Likewise.
28998         * modules/uniwidth/u32-strwidth: Likewise.
28999         * modules/uniwidth/u32-width: Likewise.
29000         * modules/uniwidth/width: Likewise.
29001         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29002         with $(LIBUNISTRING).
29003         * modules/unicase/ignorable-tests: Likewise.
29004         * modules/unicase/locale-language-tests: Likewise.
29005         * modules/unicase/tolower-tests: Likewise.
29006         * modules/unicase/totitle-tests: Likewise.
29007         * modules/unicase/toupper-tests: Likewise.
29008         * modules/unicase/u8-casecmp-tests: Likewise.
29009         * modules/unicase/u8-casecoll-tests: Likewise.
29010         * modules/unicase/u8-casefold-tests: Likewise.
29011         * modules/unicase/u8-is-cased-tests: Likewise.
29012         * modules/unicase/u8-is-casefolded-tests: Likewise.
29013         * modules/unicase/u8-is-lowercase-tests: Likewise.
29014         * modules/unicase/u8-is-titlecase-tests: Likewise.
29015         * modules/unicase/u8-is-uppercase-tests: Likewise.
29016         * modules/unicase/u8-tolower-tests: Likewise.
29017         * modules/unicase/u8-totitle-tests: Likewise.
29018         * modules/unicase/u8-toupper-tests: Likewise.
29019         * modules/unicase/u16-casecmp-tests: Likewise.
29020         * modules/unicase/u16-casecoll-tests: Likewise.
29021         * modules/unicase/u16-casefold-tests: Likewise.
29022         * modules/unicase/u16-is-cased-tests: Likewise.
29023         * modules/unicase/u16-is-casefolded-tests: Likewise.
29024         * modules/unicase/u16-is-lowercase-tests: Likewise.
29025         * modules/unicase/u16-is-titlecase-tests: Likewise.
29026         * modules/unicase/u16-is-uppercase-tests: Likewise.
29027         * modules/unicase/u16-tolower-tests: Likewise.
29028         * modules/unicase/u16-totitle-tests: Likewise.
29029         * modules/unicase/u16-toupper-tests: Likewise.
29030         * modules/unicase/u32-casecmp-tests: Likewise.
29031         * modules/unicase/u32-casecoll-tests: Likewise.
29032         * modules/unicase/u32-casefold-tests: Likewise.
29033         * modules/unicase/u32-is-cased-tests: Likewise.
29034         * modules/unicase/u32-is-casefolded-tests: Likewise.
29035         * modules/unicase/u32-is-lowercase-tests: Likewise.
29036         * modules/unicase/u32-is-titlecase-tests: Likewise.
29037         * modules/unicase/u32-is-uppercase-tests: Likewise.
29038         * modules/unicase/u32-tolower-tests: Likewise.
29039         * modules/unicase/u32-totitle-tests: Likewise.
29040         * modules/unicase/u32-toupper-tests: Likewise.
29041         * modules/unicase/ulc-casecmp-tests: Likewise.
29042         * modules/unicase/ulc-casecoll-tests: Likewise.
29043         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29044         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29045         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29046         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29047         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29048         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29049         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29050         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29051         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29052         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29053         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29054         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29055         * modules/unictype/bidicategory-byname-tests: Likewise.
29056         * modules/unictype/bidicategory-name-tests: Likewise.
29057         * modules/unictype/bidicategory-of-tests: Likewise.
29058         * modules/unictype/bidicategory-test-tests: Likewise.
29059         * modules/unictype/block-list-tests: Likewise.
29060         * modules/unictype/block-of-tests: Likewise.
29061         * modules/unictype/block-test-tests: Likewise.
29062         * modules/unictype/category-C-tests: Likewise.
29063         * modules/unictype/category-Cc-tests: Likewise.
29064         * modules/unictype/category-Cf-tests: Likewise.
29065         * modules/unictype/category-Cn-tests: Likewise.
29066         * modules/unictype/category-Co-tests: Likewise.
29067         * modules/unictype/category-Cs-tests: Likewise.
29068         * modules/unictype/category-L-tests: Likewise.
29069         * modules/unictype/category-Ll-tests: Likewise.
29070         * modules/unictype/category-Lm-tests: Likewise.
29071         * modules/unictype/category-Lo-tests: Likewise.
29072         * modules/unictype/category-Lt-tests: Likewise.
29073         * modules/unictype/category-Lu-tests: Likewise.
29074         * modules/unictype/category-M-tests: Likewise.
29075         * modules/unictype/category-Mc-tests: Likewise.
29076         * modules/unictype/category-Me-tests: Likewise.
29077         * modules/unictype/category-Mn-tests: Likewise.
29078         * modules/unictype/category-N-tests: Likewise.
29079         * modules/unictype/category-Nd-tests: Likewise.
29080         * modules/unictype/category-Nl-tests: Likewise.
29081         * modules/unictype/category-No-tests: Likewise.
29082         * modules/unictype/category-P-tests: Likewise.
29083         * modules/unictype/category-Pc-tests: Likewise.
29084         * modules/unictype/category-Pd-tests: Likewise.
29085         * modules/unictype/category-Pe-tests: Likewise.
29086         * modules/unictype/category-Pf-tests: Likewise.
29087         * modules/unictype/category-Pi-tests: Likewise.
29088         * modules/unictype/category-Po-tests: Likewise.
29089         * modules/unictype/category-Ps-tests: Likewise.
29090         * modules/unictype/category-S-tests: Likewise.
29091         * modules/unictype/category-Sc-tests: Likewise.
29092         * modules/unictype/category-Sk-tests: Likewise.
29093         * modules/unictype/category-Sm-tests: Likewise.
29094         * modules/unictype/category-So-tests: Likewise.
29095         * modules/unictype/category-Z-tests: Likewise.
29096         * modules/unictype/category-Zl-tests: Likewise.
29097         * modules/unictype/category-Zp-tests: Likewise.
29098         * modules/unictype/category-Zs-tests: Likewise.
29099         * modules/unictype/category-and-not-tests: Likewise.
29100         * modules/unictype/category-and-tests: Likewise.
29101         * modules/unictype/category-byname-tests: Likewise.
29102         * modules/unictype/category-name-tests: Likewise.
29103         * modules/unictype/category-none-tests: Likewise.
29104         * modules/unictype/category-of-tests: Likewise.
29105         * modules/unictype/category-or-tests: Likewise.
29106         * modules/unictype/category-test-withtable-tests: Likewise.
29107         * modules/unictype/combining-class-tests: Likewise.
29108         * modules/unictype/ctype-alnum-tests: Likewise.
29109         * modules/unictype/ctype-alpha-tests: Likewise.
29110         * modules/unictype/ctype-blank-tests: Likewise.
29111         * modules/unictype/ctype-cntrl-tests: Likewise.
29112         * modules/unictype/ctype-digit-tests: Likewise.
29113         * modules/unictype/ctype-graph-tests: Likewise.
29114         * modules/unictype/ctype-lower-tests: Likewise.
29115         * modules/unictype/ctype-print-tests: Likewise.
29116         * modules/unictype/ctype-punct-tests: Likewise.
29117         * modules/unictype/ctype-space-tests: Likewise.
29118         * modules/unictype/ctype-upper-tests: Likewise.
29119         * modules/unictype/ctype-xdigit-tests: Likewise.
29120         * modules/unictype/decimal-digit-tests: Likewise.
29121         * modules/unictype/digit-tests: Likewise.
29122         * modules/unictype/mirror-tests: Likewise.
29123         * modules/unictype/numeric-tests: Likewise.
29124         * modules/unictype/property-alphabetic-tests: Likewise.
29125         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29126         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29127         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29128         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29129         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29130         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29131         * modules/unictype/property-bidi-control-tests: Likewise.
29132         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29133         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29134         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29135         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29136         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29137         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29138         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29139         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29140         * modules/unictype/property-bidi-pdf-tests: Likewise.
29141         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29142         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29143         * modules/unictype/property-byname-tests: Likewise.
29144         * modules/unictype/property-combining-tests: Likewise.
29145         * modules/unictype/property-composite-tests: Likewise.
29146         * modules/unictype/property-currency-symbol-tests: Likewise.
29147         * modules/unictype/property-dash-tests: Likewise.
29148         * modules/unictype/property-decimal-digit-tests: Likewise.
29149         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29150         * modules/unictype/property-deprecated-tests: Likewise.
29151         * modules/unictype/property-diacritic-tests: Likewise.
29152         * modules/unictype/property-extender-tests: Likewise.
29153         * modules/unictype/property-format-control-tests: Likewise.
29154         * modules/unictype/property-grapheme-base-tests: Likewise.
29155         * modules/unictype/property-grapheme-extend-tests: Likewise.
29156         * modules/unictype/property-grapheme-link-tests: Likewise.
29157         * modules/unictype/property-hex-digit-tests: Likewise.
29158         * modules/unictype/property-hyphen-tests: Likewise.
29159         * modules/unictype/property-id-continue-tests: Likewise.
29160         * modules/unictype/property-id-start-tests: Likewise.
29161         * modules/unictype/property-ideographic-tests: Likewise.
29162         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29163         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29164         * modules/unictype/property-ignorable-control-tests: Likewise.
29165         * modules/unictype/property-iso-control-tests: Likewise.
29166         * modules/unictype/property-join-control-tests: Likewise.
29167         * modules/unictype/property-left-of-pair-tests: Likewise.
29168         * modules/unictype/property-line-separator-tests: Likewise.
29169         * modules/unictype/property-logical-order-exception-tests: Likewise.
29170         * modules/unictype/property-lowercase-tests: Likewise.
29171         * modules/unictype/property-math-tests: Likewise.
29172         * modules/unictype/property-non-break-tests: Likewise.
29173         * modules/unictype/property-not-a-character-tests: Likewise.
29174         * modules/unictype/property-numeric-tests: Likewise.
29175         * modules/unictype/property-other-alphabetic-tests: Likewise.
29176         * modules/unictype/property-other-default-ignorable-code-point-tests:
29177         Likewise.
29178         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29179         * modules/unictype/property-other-id-continue-tests: Likewise.
29180         * modules/unictype/property-other-id-start-tests: Likewise.
29181         * modules/unictype/property-other-lowercase-tests: Likewise.
29182         * modules/unictype/property-other-math-tests: Likewise.
29183         * modules/unictype/property-other-uppercase-tests: Likewise.
29184         * modules/unictype/property-paired-punctuation-tests: Likewise.
29185         * modules/unictype/property-paragraph-separator-tests: Likewise.
29186         * modules/unictype/property-pattern-syntax-tests: Likewise.
29187         * modules/unictype/property-pattern-white-space-tests: Likewise.
29188         * modules/unictype/property-private-use-tests: Likewise.
29189         * modules/unictype/property-punctuation-tests: Likewise.
29190         * modules/unictype/property-quotation-mark-tests: Likewise.
29191         * modules/unictype/property-radical-tests: Likewise.
29192         * modules/unictype/property-sentence-terminal-tests: Likewise.
29193         * modules/unictype/property-soft-dotted-tests: Likewise.
29194         * modules/unictype/property-space-tests: Likewise.
29195         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29196         * modules/unictype/property-test-tests: Likewise.
29197         * modules/unictype/property-titlecase-tests: Likewise.
29198         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29199         * modules/unictype/property-unified-ideograph-tests: Likewise.
29200         * modules/unictype/property-uppercase-tests: Likewise.
29201         * modules/unictype/property-variation-selector-tests: Likewise.
29202         * modules/unictype/property-white-space-tests: Likewise.
29203         * modules/unictype/property-xid-continue-tests: Likewise.
29204         * modules/unictype/property-xid-start-tests: Likewise.
29205         * modules/unictype/property-zero-width-tests: Likewise.
29206         * modules/unictype/scripts-tests: Likewise.
29207         * modules/unictype/syntax-c-ident-tests: Likewise.
29208         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29209         * modules/unictype/syntax-java-ident-tests: Likewise.
29210         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29211         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29212         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29213         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29214         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29215         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29216         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29217         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29218         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29219         * modules/uniname/uniname-tests: Likewise.
29220         * modules/uninorm/canonical-decomposition-tests: Likewise.
29221         * modules/uninorm/compat-decomposition-tests: Likewise.
29222         * modules/uninorm/composition-tests: Likewise.
29223         * modules/uninorm/decomposing-form-tests: Likewise.
29224         * modules/uninorm/decomposition-tests: Likewise.
29225         * modules/uninorm/filter-tests: Likewise.
29226         * modules/uninorm/nfc-tests: Likewise.
29227         * modules/uninorm/nfd-tests: Likewise.
29228         * modules/uninorm/nfkc-tests: Likewise.
29229         * modules/uninorm/nfkd-tests: Likewise.
29230         * modules/uninorm/u8-normcmp-tests: Likewise.
29231         * modules/uninorm/u8-normcoll-tests: Likewise.
29232         * modules/uninorm/u16-normcmp-tests: Likewise.
29233         * modules/uninorm/u16-normcoll-tests: Likewise.
29234         * modules/uninorm/u32-normcmp-tests: Likewise.
29235         * modules/uninorm/u32-normcoll-tests: Likewise.
29236         * modules/unistdio/u8-asnprintf-tests: Likewise.
29237         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29238         * modules/unistdio/u8-vasprintf-tests: Likewise.
29239         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29240         * modules/unistdio/u8-vsprintf-tests: Likewise.
29241         * modules/unistdio/u16-asnprintf-tests: Likewise.
29242         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29243         * modules/unistdio/u16-vasprintf-tests: Likewise.
29244         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29245         * modules/unistdio/u16-vsprintf-tests: Likewise.
29246         * modules/unistdio/u32-asnprintf-tests: Likewise.
29247         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29248         * modules/unistdio/u32-vasprintf-tests: Likewise.
29249         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29250         * modules/unistdio/u32-vsprintf-tests: Likewise.
29251         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29252         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29253         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29254         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29255         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29256         * modules/unistr/u8-check-tests: Likewise.
29257         * modules/unistr/u8-chr-tests: Likewise.
29258         * modules/unistr/u8-cmp-tests: Likewise.
29259         * modules/unistr/u8-cmp2-tests: Likewise.
29260         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29261         * modules/unistr/u8-cpy-tests: Likewise.
29262         * modules/unistr/u8-mblen-tests: Likewise.
29263         * modules/unistr/u8-mbsnlen-tests: Likewise.
29264         * modules/unistr/u8-mbtouc-tests: Likewise.
29265         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29266         * modules/unistr/u8-mbtoucr-tests: Likewise.
29267         * modules/unistr/u8-move-tests: Likewise.
29268         * modules/unistr/u8-next-tests: Likewise.
29269         * modules/unistr/u8-prev-tests: Likewise.
29270         * modules/unistr/u8-set-tests: Likewise.
29271         * modules/unistr/u8-stpcpy-tests: Likewise.
29272         * modules/unistr/u8-stpncpy-tests: Likewise.
29273         * modules/unistr/u8-strcat-tests: Likewise.
29274         * modules/unistr/u8-strcmp-tests: Likewise.
29275         * modules/unistr/u8-strcoll-tests: Likewise.
29276         * modules/unistr/u8-strcpy-tests: Likewise.
29277         * modules/unistr/u8-strdup-tests: Likewise.
29278         * modules/unistr/u8-strlen-tests: Likewise.
29279         * modules/unistr/u8-strmblen-tests: Likewise.
29280         * modules/unistr/u8-strmbtouc-tests: Likewise.
29281         * modules/unistr/u8-strncat-tests: Likewise.
29282         * modules/unistr/u8-strncmp-tests: Likewise.
29283         * modules/unistr/u8-strncpy-tests: Likewise.
29284         * modules/unistr/u8-strnlen-tests: Likewise.
29285         * modules/unistr/u8-to-u16-tests: Likewise.
29286         * modules/unistr/u8-to-u32-tests: Likewise.
29287         * modules/unistr/u8-uctomb-tests: Likewise.
29288         * modules/unistr/u16-check-tests: Likewise.
29289         * modules/unistr/u16-chr-tests: Likewise.
29290         * modules/unistr/u16-cmp-tests: Likewise.
29291         * modules/unistr/u16-cmp2-tests: Likewise.
29292         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29293         * modules/unistr/u16-cpy-tests: Likewise.
29294         * modules/unistr/u16-mblen-tests: Likewise.
29295         * modules/unistr/u16-mbsnlen-tests: Likewise.
29296         * modules/unistr/u16-mbtouc-tests: Likewise.
29297         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29298         * modules/unistr/u16-mbtoucr-tests: Likewise.
29299         * modules/unistr/u16-move-tests: Likewise.
29300         * modules/unistr/u16-next-tests: Likewise.
29301         * modules/unistr/u16-prev-tests: Likewise.
29302         * modules/unistr/u16-set-tests: Likewise.
29303         * modules/unistr/u16-stpcpy-tests: Likewise.
29304         * modules/unistr/u16-stpncpy-tests: Likewise.
29305         * modules/unistr/u16-strcat-tests: Likewise.
29306         * modules/unistr/u16-strcmp-tests: Likewise.
29307         * modules/unistr/u16-strcoll-tests: Likewise.
29308         * modules/unistr/u16-strcpy-tests: Likewise.
29309         * modules/unistr/u16-strdup-tests: Likewise.
29310         * modules/unistr/u16-strlen-tests: Likewise.
29311         * modules/unistr/u16-strmblen-tests: Likewise.
29312         * modules/unistr/u16-strmbtouc-tests: Likewise.
29313         * modules/unistr/u16-strncat-tests: Likewise.
29314         * modules/unistr/u16-strncmp-tests: Likewise.
29315         * modules/unistr/u16-strncpy-tests: Likewise.
29316         * modules/unistr/u16-strnlen-tests: Likewise.
29317         * modules/unistr/u16-to-u32-tests: Likewise.
29318         * modules/unistr/u16-to-u8-tests: Likewise.
29319         * modules/unistr/u16-uctomb-tests: Likewise.
29320         * modules/unistr/u32-check-tests: Likewise.
29321         * modules/unistr/u32-chr-tests: Likewise.
29322         * modules/unistr/u32-cmp-tests: Likewise.
29323         * modules/unistr/u32-cmp2-tests: Likewise.
29324         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29325         * modules/unistr/u32-cpy-tests: Likewise.
29326         * modules/unistr/u32-mblen-tests: Likewise.
29327         * modules/unistr/u32-mbsnlen-tests: Likewise.
29328         * modules/unistr/u32-mbtouc-tests: Likewise.
29329         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29330         * modules/unistr/u32-mbtoucr-tests: Likewise.
29331         * modules/unistr/u32-move-tests: Likewise.
29332         * modules/unistr/u32-next-tests: Likewise.
29333         * modules/unistr/u32-prev-tests: Likewise.
29334         * modules/unistr/u32-set-tests: Likewise.
29335         * modules/unistr/u32-stpcpy-tests: Likewise.
29336         * modules/unistr/u32-stpncpy-tests: Likewise.
29337         * modules/unistr/u32-strcat-tests: Likewise.
29338         * modules/unistr/u32-strcmp-tests: Likewise.
29339         * modules/unistr/u32-strcoll-tests: Likewise.
29340         * modules/unistr/u32-strcpy-tests: Likewise.
29341         * modules/unistr/u32-strdup-tests: Likewise.
29342         * modules/unistr/u32-strlen-tests: Likewise.
29343         * modules/unistr/u32-strmblen-tests: Likewise.
29344         * modules/unistr/u32-strmbtouc-tests: Likewise.
29345         * modules/unistr/u32-strncat-tests: Likewise.
29346         * modules/unistr/u32-strncmp-tests: Likewise.
29347         * modules/unistr/u32-strncpy-tests: Likewise.
29348         * modules/unistr/u32-strnlen-tests: Likewise.
29349         * modules/unistr/u32-to-u16-tests: Likewise.
29350         * modules/unistr/u32-to-u8-tests: Likewise.
29351         * modules/unistr/u32-uctomb-tests: Likewise.
29352         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29353         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29354         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29355         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29356         * modules/uniwidth/u8-strwidth-tests: Likewise.
29357         * modules/uniwidth/u8-width-tests: Likewise.
29358         * modules/uniwidth/u16-strwidth-tests: Likewise.
29359         * modules/uniwidth/u16-width-tests: Likewise.
29360         * modules/uniwidth/u32-strwidth-tests: Likewise.
29361         * modules/uniwidth/u32-width-tests: Likewise.
29362         * modules/uniwidth/width-tests: Likewise.
29363
29364 2010-05-18  Richard Jones  <rjones@redhat.com>
29365
29366         doc: users.txt: list hivex
29367         * users.txt: Add hivex.
29368
29369 2010-05-18  Richard Jones  <rjones@redhat.com>
29370
29371         doc: users.txt: list febootstrap
29372         * users.txt: Add febootstrap.
29373
29374 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29375
29376         bootstrap: fix an error when gnulib is not used as a git submodule
29377         * build-aux/bootstrap (gnulib_path): If its length is zero then
29378         assign "gnulib" to it.
29379         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29380
29381 2010-05-16  Bruno Haible  <bruno@clisp.org>
29382
29383         Avoid autoconf warnings about AM_ICONV.
29384         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29385         2.64.
29386
29387 2010-05-16  Bruno Haible  <bruno@clisp.org>
29388
29389         absolute-header: Make the macro usable in more situations.
29390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29391         from gl_ABSOLUTE_HEADER.
29392         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29393
29394 2010-05-16  James Youngman  <jay@gnu.org>
29395
29396         doc: update users.txt
29397         * users.txt: Add CSSC.
29398
29399 2010-05-16  Jim Meyering  <meyering@redhat.com>
29400
29401         init.sh: fix an error in the previous change; add more comments
29402         * tests/init.sh: Compare exit code in loop against 9, not 2.
29403         Patch by Bruno Haible.
29404         Make the two tests more similar by adding an empty "then" clause.
29405         Add comments.
29406
29407         init.sh: avoid unnecessary shell re-exec
29408         * tests/init.sh: Improve the re-exec-required check to first test the
29409         current shell.  If it passes the test, do not search for a shell that
29410         does pass, and do not re-exec.  This test is particularly contorted to
29411         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29412         of $(...) evokes a syntax error and causes immediate shell exit with
29413         status 2.  Bruno Haible reported that the re-exec made it impossible
29414         to single-step through any init.sh-using script.
29415
29416 2010-05-16  Bruno Haible  <bruno@clisp.org>
29417
29418         Fix collision between gnulib's and libintl's printf replacements.
29419         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29420         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29421         (printf): When using GNU C, map the __printf__ function to rpl_printf
29422         via __asm__. When not using GNU C, define rpl_printf instead of
29423         __printf__.
29424         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29425         commit.
29426         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29427         commit.
29428         * m4/asm-underscore.m4: New file.
29429         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29430         * modules/stdio (Files): Add m4/asm-underscore.m4.
29431         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29432         Reported by Ben Pfaff.
29433
29434 2010-05-16  Bruno Haible  <bruno@clisp.org>
29435
29436         verify: Avoid skipping the test on openSUSE 11.0.
29437         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29438
29439 2010-05-13  Bruno Haible  <bruno@clisp.org>
29440
29441         Avoid useless warnings from G++.
29442         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29443         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29445
29446 2010-05-11  Jim Meyering  <meyering@redhat.com>
29447
29448         maint.mk: tweak preceding change
29449         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29450         regexps tighter by anchoring at EOL, and make the new group "shy"
29451         for slightly decreased overhead.
29452
29453 2010-05-11  Eric Blake  <eblake@redhat.com>
29454
29455         maint.mk: gnulib doesn't guarantee NSIG
29456         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29457
29458 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29459
29460         test-pwrite.c: Remove unused variable declaration.
29461         * tests/test-pwrite.c (main): Remove read_buf declaration.
29462
29463         Remove useless test-pwrite.sh file.
29464         * tests/test-pwrite.sh: Delete file.
29465         * modules/pwrite-tests: Remove references.
29466         Reported by Bruno Haible.
29467
29468 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29469
29470         init.sh: fix a typo
29471         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29472
29473 2010-05-10  Jim Meyering  <meyering@redhat.com>
29474
29475         maint.mk: avoid using a temporary file in the always-defined-macros check
29476         * top/maint.mk (.re-defmac): Remove rule.
29477         (gl_trap_): Remove definition.
29478         (sc_prohibit_always-defined_macros): Rewrite not to create and
29479         depend on a temporary file.  Instead, depend on GNU grep's ability
29480         to read a list of regular expressions from stdin when given "-f -".
29481
29482 2010-05-09  Bruno Haible  <bruno@clisp.org>
29483
29484         Update to GNU gettext 0.18, part 1.
29485         * m4/gettext.m4: Update to GNU gettext 0.18.
29486         * m4/intl.m4: Likewise.
29487         * m4/po.m4: Likewise.
29488         * modules/gettext (Files): Add m4/fcntl-o.m4.
29489         (configure.ac): Require gettext infrastructure from version 0.18.
29490
29491 2010-05-09  Jim Meyering  <meyering@redhat.com>
29492
29493         init.sh: enable MALLOC_PERTURB_
29494         * tests/init.sh: Enable glibc's malloc-perturbing option.
29495
29496         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29497         With my recent change in init.sh from the two-line form:
29498             -#   : ${srcdir=.}
29499             -#   . "$srcdir/init.sh"; path_prepend_ .
29500             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29501         I noticed that using the one-line form would cause this test
29502         to fail with a false-positive, or to stop working altogether,
29503         depending on whether help-version changed or all the tests did.
29504         * top/maint.mk (_hv_regex): Remove this definition.
29505         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29506         (_hv_regex_strong): Use a stronger regex to check for conformance.
29507         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29508         Give a separate diagnostic for lack of conforming use.
29509
29510         maint.mk: prohibit definition of symbols defined by gnulib
29511         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29512         definition of symbols defined by gnulib.
29513
29514 2010-05-09  Bruno Haible  <bruno@clisp.org>
29515
29516         acl: Avoid test failure on Cygwin-hosted mingw.
29517         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29518
29519 2010-05-09  Bruno Haible  <bruno@clisp.org>
29520
29521         error: Use system's fcntl function.
29522         * lib/error.c (fcntl): Undefine.
29523
29524 2010-05-09  Jim Meyering  <meyering@redhat.com>
29525
29526         verify: adjust formatting to be more consistent
29527         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29528         argument-list '('s, and after one comma.
29529
29530 2010-05-09  Bruno Haible  <bruno@clisp.org>
29531
29532         error: More reliable output on mingw.
29533         * lib/error.c: Include <windows.h>.
29534         (is_open): New function.
29535         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29536         defined.
29537
29538 2010-05-09  Bruno Haible  <bruno@clisp.org>
29539
29540         vasnprintf: Fix syntax errors in libintl build on mingw.
29541         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29542         pad_ourselves and prec_ourselves after use.
29543
29544 2010-05-08  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/config.charset: Update comments for Cygwin 1.7.
29547         * lib/localcharset.c: Likewise.
29548
29549 2010-05-07  Jim Meyering  <meyering@redhat.com>
29550
29551         init.sh: improve comments
29552         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29553         . "${srcdir=.}/init.sh"; path_prepend_ .
29554         Add a note about path_prepend_ and the alternative of using
29555         TESTS_ENVIRONMENT.
29556
29557 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29558
29559         exclude: Unescape hashed patterns in wildcard mode.
29560         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29561         to the hash list.
29562         * tests/test-exclude8.sh: New test case.
29563         * modules/exclude-tests: Add new test.
29564
29565 2010-05-05  Eric Blake  <eblake@redhat.com>
29566
29567         verify: automate tests
29568         * modules/verify-tests: New module.
29569         * tests/test-verify.sh: New file.
29570         * tests/test-verify.c: Guard each negative test with a unique id.
29571         Also avoid warning about unused left hand of comma expressions.
29572
29573 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29574
29575         Further improvements to verify.h, suggested by Eric Blake.
29576         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29577         the GL_* versions, to avoid collision with OpenGL.
29578         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29579         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29580         than testing merely whether it's defined.
29581
29582         Modify verify.h to pacify gcc -Wredundant_decls.
29583         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29584         These use the prefix "GL_" since they're likely to be useful elsewhere.
29585         We may need to break them out into a different .h file.
29586         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29587         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29588         of verify_function__.
29589
29590 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29591
29592         Tests for module pwrite.
29593         * modules/pwrite-tests: New file.
29594         * tests/test-pwrite.sh: New file.
29595         * tests/test-pwrite.c: New file.
29596
29597         New module pwrite.
29598         * lib/unistd.in.h (pwrite): New declaration.
29599         * lib/pwrite.c: New file, from glibc with modifications.
29600         * m4/pwrite.m4: New file.
29601         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29602         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29603         REPLACE_PWRITE.
29604         * modules/pwrite: New file.
29605         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29606         REPLACE_PWRITE.
29607         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29608         * doc/posix-functions/pwrite.texi: Mention the new module.
29609
29610 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29611
29612         pread: Update documentation.
29613         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29614
29615 2010-05-04  Eric Blake  <eblake@redhat.com>
29616
29617         docs: update cygwin progress
29618         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29619         this bug.
29620         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29621         Added in cygwin 1.7.2.
29622         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29623         Likewise.
29624         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29625         Likewise.
29626         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29627         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29628         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29629         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29630         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29631         Mention nproc module.
29632         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29633         bug in cygwin 1.7.5 addition.
29634         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29635         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29636         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29637         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29638         1.7.5.
29639         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29640         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29641         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29642         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29643         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29644         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29645         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29646         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29647         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29648         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29649         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29650         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29651         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29652         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29653         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29654         Likewise.
29655         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29656         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29657         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29658         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29659         Likewise.
29660         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29661         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29662         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29663         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29664         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29665         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29666         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29667         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29668         Likewise.
29669         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29670         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29671         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29672         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29673         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29674         Likewise.
29675         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29676         Likewise.
29677         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29678         Likewise.
29679         * doc/glibc-functions/xdrrec_endofrecord.texi
29680         (xdrrec_endofrecord): Likewise.
29681         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29682         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29683         Likewise.
29684         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29685         Likewise.
29686
29687 2010-05-04  Jim Meyering  <meyering@redhat.com>
29688
29689         gendocs.sh: make its "-s FILE" option more useful
29690         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29691         $PACKAGE to reflect the probably-different basename of "FILE".
29692
29693 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29694
29695         bootstrap: don't ignore download_po_files failure
29696         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29697         failure.
29698
29699 2010-05-03  Jim Meyering  <meyering@redhat.com>
29700
29701         maint.mk: allow to pass options to gendocs.sh
29702         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29703         (gendocs_options_): New overridable variable.
29704
29705         gnu-web-doc-update: don't ignore configure or build failure
29706         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29707
29708         announce-gen: backslash-escape '@'s in --help output
29709         * build-aux/announce-gen: Fix syntax errors.
29710
29711         maint.mk, announce-gen: allow project-specific announcement mail headers
29712         * top/maint.mk (translation_project_): Define default.
29713         (announcement_Cc_, announcement_mail_headers_): Likewise.
29714         (announcement): Invoke announce-gen with new --mail-headers option.
29715         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29716
29717         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29718         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29719         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29720         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29721         line in the "err2" output file when running "make check" in verbose
29722         mode (i.e., with set -x enabled).
29723
29724 2010-05-03  Bruno Haible  <bruno@clisp.org>
29725
29726         wctob: Fix for weird platforms.
29727         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29728         argument value.
29729
29730 2010-05-03  Jim Meyering  <meyering@redhat.com>
29731
29732         maint.mk: prohibit unwarranted use of <strings.h>
29733         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29734         strings.h in a file that does not also use strcasecmp, strncasecmp,
29735         ffs or ffsll.
29736
29737         maint.mk: remove obsolete comments
29738         * top/maint.mk: Remove stale, commented-out rules.
29739
29740 2010-05-02  Bruno Haible  <bruno@clisp.org>
29741
29742         wcwidth: Declare also when it's aliased.
29743         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29744         macro.
29745
29746 2010-05-02  Bruno Haible  <bruno@clisp.org>
29747
29748         Fix regression from 2010-04-25.
29749         * gnulib-tool (func_modules_transitive_closure): Check the status of
29750         all modules, not only of the tests that are of the form foo-tests where
29751         foo is a module.
29752
29753 2010-05-02  Bruno Haible  <bruno@clisp.org>
29754
29755         wctob: Work around nasty Cygwin 1.7.2 bug.
29756         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29757         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29758
29759 2010-05-01  Bruno Haible  <bruno@clisp.org>
29760
29761         fpurge: Sharper test.
29762         * tests/test-fpurge.c (main): Add one more ftell check.
29763         * modules/fpurge-tests (Depends-on): Add ftell.
29764         Suggested by Eric Blake.
29765
29766 2010-05-01  Bruno Haible  <bruno@clisp.org>
29767
29768         ftello: Another test.
29769         * tests/test-ftello3.c: New file.
29770         * modules/ftello-tests (Files): Add it.
29771         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29772         MOSTLYCLEANFILES.
29773
29774         ftell: Another test.
29775         * tests/test-ftell3.c: New file.
29776         * modules/ftell-tests (Files): Add it.
29777         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29778         MOSTLYCLEANFILES.
29779
29780 2010-05-01  Bruno Haible  <bruno@clisp.org>
29781
29782         ftell, ftello: Work around Solaris bug.
29783         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29784         * lib/ftello.c: Include stdio-impl.h.
29785         (ftello): On Solaris, when _IOWRT is set, compute the result without
29786         looking at _IOREAD.
29787         * modules/ftello (Files): Add lib/stdio-impl.h.
29788         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29789         * doc/posix-functions/ftello.texi: Likewise.
29790         Reported by Eric Blake.
29791
29792 2010-05-01  Bruno Haible  <bruno@clisp.org>
29793
29794         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29795         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29796         the _IOWRT flag is also set.
29797
29798 2010-05-01  Bruno Haible  <bruno@clisp.org>
29799
29800         Fix doc about a HP-UX stdio bug.
29801         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29802         * doc/posix-functions/ftello.texi: Likewise.
29803
29804 2010-05-01  Bruno Haible  <bruno@clisp.org>
29805
29806         lseek test: Fix failure on Solaris.
29807         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29808         output.
29809
29810 2010-04-30  Jim Meyering  <meyering@redhat.com>
29811
29812         bootstrap: don't ignore failure to generate po*/Makevars
29813         * build-aux/bootstrap (with_gettext): Don't ignore failure
29814         to create po/Makevars or runtime-po/Makevars.
29815
29816 2010-04-29  Eric Blake  <eblake@redhat.com>
29817
29818         headers: relax license to LGPLv2+
29819         * modules/fcntl-h (License): Relax license.
29820         * modules/getopt-posix (License): Likewise.
29821         * modules/locale (License): Likewise.
29822         * modules/math (License): Likewise.
29823         * modules/pty (License): Likewise.
29824         * modules/sched (License): Likewise.
29825         * modules/search (License): Likewise.
29826         * modules/spawn (License): Likewise.
29827         * modules/stdarg (License): Likewise.
29828         * modules/sysexits (License): Likewise.
29829
29830 2010-04-29  Jim Meyering  <meyering@redhat.com>
29831
29832         inttypes: relax license to LGPLv2+
29833         * modules/inttypes (License): Relax license.
29834
29835 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29836
29837         * top/maint.mk (indent): Run twice to produce idempotent results.
29838
29839 2010-04-28  Bruno Haible  <bruno@clisp.org>
29840
29841         getdate: Generate getdate.c in the source directory.
29842         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29843         MOSTLYCLEANFILES.
29844         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29845
29846 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29847
29848         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29849         is not declared as a const *; avoid warnings in that case.
29850
29851 2010-04-28  Eric Blake  <eblake@redhat.com>
29852
29853         canonicalize-lgpl: avoid compiler warning
29854         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29855         declaration' / 'extraneous semicolon' warning with some compilers.
29856         Reported by Andreas Gruenbacher.
29857
29858 2010-04-28  Jim Meyering  <meyering@redhat.com>
29859
29860         init.sh: ensure a more reliable exit status when exiting via trap
29861         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29862         Inspired by patches from Dmitry V. Levin.
29863         Also trap on signal 3 (SIGQUIT).
29864
29865 2010-04-27  Bruno Haible  <bruno@clisp.org>
29866
29867         Update doc about utimes().
29868         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29869         'utimens' module.
29870         Reported by Andreas Gruenbacher <agruen@suse.de>.
29871
29872 2010-04-27  Eric Blake  <eblake@redhat.com>
29873
29874         full-read, full-write: relax license
29875         * modules/full-read (License): Drop to LGPLv2+.
29876         * modules/full-write (License): Likewise.
29877         * modules/safe-read (License): Likewise.
29878         * modules/safe-write (License): Likewise.
29879
29880         pthread: mention library for linking
29881         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29882
29883 2010-04-27  Jim Meyering  <meyering@redhat.com>
29884
29885         maint.mk: fix a bug introduced in last change
29886         * top/maint.mk (gl_assured_headers_): Now that all names are on
29887         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29888         is not anchored to end of word, it should be adequate.
29889
29890         maint.mk: avoid side-effect in latest syntax-check
29891         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29892         to run commands via $(shell...), and hence to incur cost only when
29893         the new rule is actually run.
29894
29895         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29896         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29897         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29898         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29899         (gl_assured_headers_, az_, AZ_): Define.
29900         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29901
29902 2010-04-26  Jim Meyering  <jim@meyering.net>
29903             Bruno Haible  <bruno@clisp.org>
29904
29905         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29907         Prompted by an exchange with Gilles Espinasse.
29908
29909 2010-04-26  Jim Meyering  <meyering@redhat.com>
29910
29911         git-version-gen: aesthetic tweak
29912         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29913         so that the command remains on a single line.
29914
29915 2010-04-26  Eric Blake  <eblake@redhat.com>
29916
29917         git-version-gen: allow use on EBCDIC hosts
29918         * build-aux/git-version-gen (dirty): Use literal rather than tying
29919         ourselves to ascii.
29920         Reported by Steve Goetze.
29921
29922 2010-04-25  Bruno Haible  <bruno@clisp.org>
29923
29924         netdb: Add support for GNULIB_POSIXCHECK.
29925         * lib/netdb.in.h: Include warn-on-use.h.
29926         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29927         functions are used when GNULIB_POSIXCHECK is defined and the
29928         getaddrinfo module is not in use.
29929         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29930         freeaddrinfo, gai_strerror, getnameinfo are declared.
29931         * modules/netdb (Depends-on): Add warn-on-use.
29932         (Makefile.am): Include warn-on-use.h in netdb.h.
29933
29934 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29935
29936         build: avoid "make check" failure without .git/ directory
29937         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29938         there is no .git/ directory.
29939
29940 2010-04-25  Bruno Haible  <bruno@clisp.org>
29941
29942         ptsname: Fix misuse of ttyname_r.
29943         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29944         of errno.
29945
29946 2010-04-25  Bruno Haible  <bruno@clisp.org>
29947
29948         ttyname_r: Make it work on Solaris 10.
29949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29950         if the system function has the POSIX declaration. Test whether the
29951         function fails if the buffer is less than 128 bytes large.
29952         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29953         system's ttyname_r function. Provide a reasonably large buffer.
29954         * modules/ttyname_r (Depends-on): Add extensions.
29955         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29956
29957 2010-04-25  Bruno Haible  <bruno@clisp.org>
29958
29959         Use the 'extensions' module for some more functions on Solaris.
29960         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29961         module.
29962         * doc/posix-functions/ctime_r.texi: Likewise.
29963         * doc/posix-functions/getgrgid_r.texi: Likewise.
29964         * doc/posix-functions/getgrnam_r.texi: Likewise.
29965         * doc/posix-functions/getpwnam_r.texi: Likewise.
29966         * doc/posix-functions/getpwuid_r.texi: Likewise.
29967         * doc/posix-functions/readdir_r.texi: Likewise.
29968         * doc/posix-functions/sigwait.texi: Likewise.
29969         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29970         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29971
29972 2010-04-25  Bruno Haible  <bruno@clisp.org>
29973
29974         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29975         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29976         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29977         * lib/ttyname_r.c: Include <limits.h>.
29978         (ttyname_r): Define using the system's ttyname_r function, if it exists
29979         and not on Solaris.
29980         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29981         set.
29982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29983         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29984         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29985         Reported by Simon Josefsson.
29986
29987 2010-04-25  Bruno Haible  <bruno@clisp.org>
29988
29989         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29990         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29991         * doc/posix-functions/ctime_r.texi: Likewise.
29992         * doc/posix-functions/getgrgid_r.texi: Likewise.
29993         * doc/posix-functions/getgrnam_r.texi: Likewise.
29994         * doc/posix-functions/getlogin_r.texi: Likewise.
29995         * doc/posix-functions/getpwnam_r.texi: Likewise.
29996         * doc/posix-functions/getpwuid_r.texi: Likewise.
29997         * doc/posix-functions/readdir_r.texi: Likewise.
29998         * doc/posix-functions/sigwait.texi: Likewise.
29999         * doc/posix-functions/ttyname_r.texi: Likewise.
30000         Reported by Simon Josefsson.
30001
30002 2010-04-25  Bruno Haible  <bruno@clisp.org>
30003
30004         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30005         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30006         also to --create-testdir.
30007         (func_acceptable): Don't consider the status of *-tests modules here.
30008         (func_modules_transitive_closure): Consider it here, before including a
30009         test module.
30010         (func_import, func_create_testdir): Set inc_all_direct_tests,
30011         inc_all_indirect_tests.
30012         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30013         --create-testdir and --create-megatestdir.
30014
30015 2010-04-25  Bruno Haible  <bruno@clisp.org>
30016
30017         gnulib-tool: Add --without-*-tests options.
30018         * gnulib-tool (func_usage): Document the --without-*-tests options.
30019         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30020         excl_unportable_tests): New variables.
30021         Fail if they are specified with --import or --update.
30022         (func_acceptable): Respect the excl_*_tests variables.
30023         (func_import): Set the excl_*_tests variables to empty.
30024
30025 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30026             Bruno Haible  <bruno@clisp.org>
30027
30028         Work around a MacOS X 10.4 bug with openpty.
30029         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30030         * tests/test-openpty.c (main): Close the master side explicitly.
30031
30032 2010-04-25  Bruno Haible  <bruno@clisp.org>
30033
30034         strnlen: Fix a C++ test error on MacOS X and Solaris.
30035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30036         the function is not declared.
30037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30038         Simon Josefsson.
30039
30040 2010-04-24  Bruno Haible  <bruno@clisp.org>
30041
30042         Avoid a gcc warning.
30043         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30044         of correct type for %08lx directive.
30045         Reported by Eric Blake.
30046
30047 2010-04-24  Bruno Haible  <bruno@clisp.org>
30048
30049         vasnprintf: Correct errno value in case of out-of-memory.
30050         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30051         or sprintf. Use the errno value from SNPRINTF or sprintf.
30052         Reported by Ian Beckwith <ianb@erislabs.net>.
30053
30054 2010-04-24  Bruno Haible  <bruno@clisp.org>
30055
30056         ansi-c++-opt: Find correct compiler when cross-compiling.
30057         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30058         AC_CHECK_PROGS.
30059         Reported by Simon Josefsson.
30060
30061 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30062
30063         vc-list-files: Add support for subversion
30064         * build-aux/vc-list-files: Use "svn list" to generate the list of
30065         files controlled by subversion.
30066
30067 2010-04-23  Jim Meyering  <meyering@redhat.com>
30068
30069         vc-list-files tests: convert to use init.sh
30070         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30071         path_prepend_.
30072         Use Exit, not exit.
30073         Use skip_ rather than open coding it.
30074         Remove trap set-up and compare definitions.
30075         * tests/test-vc-list-files-git.sh: Likewise.
30076         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30077
30078 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30079
30080         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30081         backup files.
30082
30083 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30084
30085         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30086
30087 2010-04-20  Eric Blake  <eblake@redhat.com>
30088
30089         tests: be robust to ignored SIGPIPE
30090         * tests/test-select-in.sh: Consume all output.
30091         * tests/test-lseek.sh: Check correct exit status, while avoiding
30092         EPIPE.
30093
30094 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30095             Bruno Haible  <bruno@clisp.org>
30096
30097         visibility: Don't use -fvisibility if it leads to a warning.
30098         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30099         yes, don't pretend that visibility works if it leads to a warning.
30100         Reported by Mike Gran <spk121@yahoo.com>.
30101
30102 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30103
30104         * build-aux/bootstrap: Use "git -h" for testing for supported options
30105         instead of "git --help".  The short-form option only shows a summary,
30106         and doesn't layout the full man page.  Grep for the full option name
30107         in the summary, too.
30108
30109 2010-04-19  Bruno Haible  <bruno@clisp.org>
30110
30111         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30113         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30114         mention of RELOCATABLE_STRIP.
30115         Reported by Sylvain Beucler <beuc@beuc.net>.
30116
30117 2010-04-19  Bruno Haible  <bruno@clisp.org>
30118
30119         * lib/diffseq.h: Fix typo in comment.
30120         Reported by Eric Blake.
30121
30122 2010-04-19  Bruno Haible  <bruno@clisp.org>
30123
30124         ioctl: Move autoconf macro to a .m4 file.
30125         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30126         * modules/ioctl (Files): Add it.
30127         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30128         Reported by Ian Beckwith <ianb@erislabs.net>.
30129
30130 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30131             Bruno Haible  <bruno@clisp.org>
30132
30133         diffseq: Accommodate use-case with abstract arrays.
30134         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30135         is not defined.
30136         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30137         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30138
30139 2010-04-18  Bruno Haible  <bruno@clisp.org>
30140
30141         * doc/posix-headers/stdbool.texi: More precise wording.
30142
30143 2010-04-17  Jim Meyering  <meyering@redhat.com>
30144
30145         maint.mk: use gnu-style indentation in an embedded perl script
30146         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30147         Rename variable: s/two/last_two_bytes/
30148
30149 2010-04-16  Eric Blake  <eblake@redhat.com>
30150
30151         test-stdbool: skip test that fails with Solaris CC
30152         * tests/test-stdbool.c (f): Skip test that causes compilation
30153         error under buggy C++ compiler.
30154         * lib/stdbool.in.h: Document the limitation.
30155         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30156
30157         setenv: allow compilation with C++
30158         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30159         register keyword.
30160
30161         stdint: allow test to pass with C++
30162         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30163
30164         getopt: allow compilation with C++
30165         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30166         struct.
30167         * lib/getopt.c (_getopt_internal_r): Use correct type.
30168         Reported by Dagobert Michelson, via Joel E. Denny.
30169
30170 2010-04-16  Bruno Haible  <bruno@clisp.org>
30171
30172         Override netdb.h always.
30173         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30174         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30175         Reported by Ludovic Courtès <ludo@gnu.org>.
30176
30177 2010-04-15  Bruno Haible  <bruno@clisp.org>
30178
30179         openpty: Fix mistake from 2010-03-21.
30180         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30181         Reported by Simon Josefsson.
30182
30183 2010-04-15  Eric Blake  <eblake@redhat.com>
30184
30185         test-forkpty: fix expected signature
30186         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30187         Reported by Simon Josefsson.
30188
30189 2010-04-15  Jim Meyering  <meyering@redhat.com>
30190
30191         maint.mk: texinfo_suffix_re_: correct the default regexp
30192         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30193
30194         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30195         make it configurable via texinfo_suffix_re_.
30196
30197 2010-04-14  Eric Blake  <eblake@redhat.com>
30198
30199         strtok_r: relax license to LGPLv2+
30200         * modules/strtok_r (License): Relax license.
30201         Reported by Matthias Bolte.
30202
30203 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30204
30205         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30206         version 1.4.4 by default instead of requiring the libgcrypt
30207         version used during build.  This makes it possible to use the
30208         application with older but still binary compatible libgcrypt
30209         versions.
30210
30211 2010-04-13  Eric Blake  <eblake@redhat.com>
30212
30213         getopt-gnu: match recent glibc fixes and posix ruling
30214         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30215         '+' handling, when requesting extensions.
30216         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30217         'W;' handling.
30218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30219         * doc/posix-functions/getopt.texi (getopt): Document this.
30220         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30222         Likewise.
30223
30224         getopt: merge bug fixes from glibc
30225         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30226         diagnostics.  Honor '+:' correctly.  Reject ';'.
30227
30228         getopt-posix: detect MacOS bug
30229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30230         optind when missing a required argument.
30231         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30232         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30233         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30234         Likewise.
30235
30236         getopt-posix: avoid spurious failure on Solaris
30237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30238         an indicator that setting optind=1 is sufficient for reset.
30239
30240         getopt-posix: avoid spurious failure on FreeBSD
30241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30242         in POSIX mode, since the m4 test uses it.
30243
30244         gnulib-tool: silence warning on BSD sh
30245         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30246
30247 2010-04-13  Jim Meyering  <meyering@redhat.com>
30248
30249         doc: users.txt: GNU patch now uses gnulib
30250         * users.txt: Add patch.
30251
30252 2010-04-12  Jim Meyering  <meyering@redhat.com>
30253
30254         maint.mk: generate more concise timing data for syntax-check rules
30255         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30256         " done" from each line that reports a syntax-check test duration.
30257
30258 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30259
30260         git-version-gen: use "git update-index..." rather than "git status"
30261         * build-aux/git-version-gen: Use git update-index --refresh, not
30262         "git status".  With some versions of git, "git status" would fail
30263         to update the index and result in an unwarranted "-dirty" suffix.
30264
30265 2010-04-11  Jim Meyering  <meyering@redhat.com>
30266
30267         openat: correct formatting (no semantic change)
30268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30269         Suggested by Bruno Haible.
30270
30271 2010-04-11  Bruno Haible  <bruno@clisp.org>
30272
30273         Stricter declaration checking in testdirs.
30274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30275         If for_tests is true, augment AM_CPPFLAGS to define
30276         GNULIB_STRICT_CHECKING.
30277         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30278         GNULIB_STRICT_CHECKING is defined, verify that the function is
30279         declared.
30280
30281 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30282             Bruno Haible  <bruno@clisp.org>
30283
30284         libunistring: Improve configure output.
30285         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30286         Don't say "consider installing GNU libunistring" when checking again
30287         with libiconv.
30288
30289 2010-04-11  Bruno Haible  <bruno@clisp.org>
30290
30291         libunistring: Correct value of $LTLIBUNISTRING.
30292         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30293         correct the value of $LTLIBUNISTRING.
30294
30295 2010-04-11  Bruno Haible  <bruno@clisp.org>
30296
30297         havelib: Add static libraries to LIBS in the right order.
30298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30299         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30300
30301 2010-04-11  Bruno Haible  <bruno@clisp.org>
30302
30303         libunistring: Detect libunistring also when it depends on libiconv.
30304         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30305         the second AC_LIB_HAVE_LINKFLAGS invocation.
30306
30307 2010-04-11  James Youngman  <jay@gnu.org>
30308
30309         close-stream: declare local scalars to be "const"
30310         * lib/close-stream.c (close_stream): Make boolean variables const
30311         to document the fact that we set but do not change them.
30312
30313 2010-04-11  Bruno Haible  <bruno@clisp.org>
30314
30315         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30316
30317 2010-04-11  Jim Meyering  <meyering@redhat.com>
30318
30319         maint.mk: don't include dist-check.mk
30320         * top/maint.mk: Remove bogus include directive.
30321
30322         maint.mk: improve empty-line-at-EOF check
30323         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30324         solution, rather than tail+Perl-based one.  The latter would read
30325         a few kilobytes from the end of each file, and did not handle empty
30326         files properly.
30327
30328         maint.mk: print the elapsed time for each syntax-check rule
30329         * top/maint.mk (sc_m_rules_): Save start time in a file.
30330         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30331         (local-check): Interpose the .z rules
30332
30333 2010-04-11  Jim Meyering  <meyering@redhat.com>
30334
30335         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30336         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30337         empty file with one that ends in an empty line.
30338
30339 2010-04-10  Bruno Haible  <bruno@clisp.org>
30340
30341         mkdir: Make it work on mingw64.
30342         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30343         * lib/mkdir.c: Update comment.
30344         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30345
30346 2010-04-10  Bruno Haible  <bruno@clisp.org>
30347
30348         Don't override improved macro from newer autoconf.
30349         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30350         autoconf >= 2.62.
30351         Reported by Joel E. Denny <jdenny@clemson.edu>.
30352
30353 2010-04-10  Jim Meyering  <meyering@redhat.com>
30354
30355         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30356         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30357
30358         maint.mk: correct a diagnostic
30359         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30360         in diagnostic; now use $prohibit.
30361
30362 2010-04-10  Bruno Haible  <address@hidden>
30363
30364         fchownat: Fix a C++ test error on Solaris 8.
30365         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30366         the function does not exist.
30367
30368 2010-04-10  Bruno Haible  <bruno@clisp.org>
30369
30370         vasnprintf: Add more tests.
30371         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30372         (test_function): Test converting an invalid wide string.
30373
30374         vasnprintf: Correct handling of unconvertible wide string arguments.
30375         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30376         VASNPRINTF.
30377         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30378         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30379         smaller than the expected maximum need for the directive. Set errno to
30380         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30381         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30383         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30384         * modules/vasnprintf (Files): Add m4/printf.m4.
30385         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30386
30387 2010-04-10  Bruno Haible  <bruno@clisp.org>
30388
30389         vasnprintf: Fix crash in %ls directive.
30390         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30391         string is passed as argument to %ls, with no precision and no width.
30392         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30393
30394 2010-04-10  Bruno Haible  <bruno@clisp.org>
30395
30396         vasnprintf: Fix multiple test failures on mingw.
30397         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30398         _snprintf, or snwprintf, not _snwprintf.
30399
30400 2010-04-10  Bruno Haible  <bruno@clisp.org>
30401
30402         write: Fix a C++ test error on mingw.
30403         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30404
30405 2010-04-10  Bruno Haible  <bruno@clisp.org>
30406
30407         vasnprintf test: Reduce code duplication.
30408         * tests/test-vasnprintf.c (test_function): New function, extracted from
30409         test_vasnprintf.
30410         (test_vasnprintf, test_asnprintf): Invoke it.
30411
30412 2010-04-10  Bruno Haible  <bruno@clisp.org>
30413
30414         strnlen: Fix warning in C++ mode on MacOS X.
30415         * lib/string.in.h (strnlen): Use the modern idiom.
30416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30417         defining strnlen as a macro already in <config.h>.
30418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30419         REPLACE_STRNLEN.
30420         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30422
30423 2010-04-08  James Youngman  <jay@gnu.org>
30424
30425         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30426         the example.
30427
30428 2010-04-09  Jim Meyering  <meyering@redhat.com>
30429
30430         maint.mk: print better diagnostic when there is no $(_hv_file)
30431         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30432         announce that when $(_hv_file) (aka help-version) does not exist.
30433
30434         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30435         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30436         not try to interpret its random input bytes.  Jarno Rajahalme reported
30437         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30438         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30439         (mktempd_): Likewise, just in case.
30440
30441         ftruncate: add two years to projected module removal date: 2012
30442         * m4/ftruncate.m4: Adjust comments.
30443
30444         ftruncate: mark module as obsolete; even MinGW provides it, now
30445         * modules/ftruncate (Status): Obsolete.
30446         (Notice): Say that.
30447         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30448         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30449
30450 2010-04-08  Bruno Haible  <bruno@clisp.org>
30451
30452         Fix side effects from tests-related modules.
30453         * modules/dprintf-posix (Comment): New section.
30454         * modules/fprintf-posix (Comment): Likewise.
30455         * modules/obstack-printf-posix (Comment): Likewise.
30456         * modules/printf-posix (Comment): Likewise.
30457         * modules/snprintf-posix (Comment): Likewise.
30458         * modules/sprintf-posix (Comment): Likewise.
30459         * modules/vasnprintf-posix (Comment): Likewise.
30460         * modules/vasprintf-posix (Comment): Likewise.
30461         * modules/vdprintf-posix (Comment): Likewise.
30462         * modules/vfprintf-posix (Comment): Likewise.
30463         * modules/vprintf-posix (Comment): Likewise.
30464         * modules/vsnprintf-posix (Comment): Likewise.
30465         * modules/vsprintf-posix (Comment): Likewise.
30466         * modules/xprintf-posix (Comment): Likewise.
30467         * modules/xvasprintf-posix (Comment): Likewise.
30468         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30469         * modules/floorf-tests (Depends-on): Likewise.
30470         * modules/round-tests (Depends-on): Likewise.
30471         * modules/roundf-tests (Depends-on): Likewise.
30472         * modules/trunc-tests (Depends-on): Likewise.
30473         * modules/truncf-tests (Depends-on): Likewise.
30474         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30475         'fprintf-posix' module is not present.
30476         * tests/test-floorf2.c (check): Likewise.
30477         * tests/test-trunc2.c (check): Likewise.
30478         * tests/test-truncf2.c (check): Likewise.
30479         * tests/test-round2.c (equal): Likewise.
30480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30481
30482 2010-04-07  Karl Berry  <karl@gnu.org>
30483
30484         * config/srclist.txt,
30485         * config/srclistvars.sh,
30486         * config/srclist-update: doc fixes.
30487
30488 2010-04-07  Jim Meyering  <meyering@redhat.com>
30489
30490         maint.mk: add a PATH crosschecking syntax-check rule
30491         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30492         Useful if you use a test like the one in help-version (coreutils,
30493         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30494         printed by prog --version.
30495
30496 2010-04-06  Bruno Haible  <bruno@clisp.org>
30497
30498         Fix link error on mingw.
30499         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30500         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30501
30502 2010-04-06  Bruno Haible  <bruno@clisp.org>
30503
30504         Assume rmdir exists.
30505         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30506
30507 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30508
30509         doc: update users.txt
30510         * users.txt: Add gcal.
30511
30512 2010-04-06  Jim Meyering  <meyering@redhat.com>
30513
30514         init.sh: simply unset TMPDIR rather than risking env -i
30515         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30516         although it probably works fine on all Unix-based systems, some
30517         systems (Cygwin?) cannot tolerate a totally cleared environment.
30518         Suggestion from Eric Blake.
30519
30520 2010-04-06  Jim Meyering  <meyering@redhat.com>
30521
30522         init.sh: portability fix: use env's POSIX-specified -i option not -u
30523         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30524         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30525
30526 2010-04-05  Bruno Haible  <bruno@clisp.org>
30527
30528         btowc: Work around Cygwin 1.7.2 bug.
30529         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30530         does not map NUL to 0.
30531         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30532
30533 2010-04-05  Bruno Haible  <bruno@clisp.org>
30534
30535         Make the multithread modules work on Cygwin 1.7.2.
30536         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30537         imported symbols can be declared weak, so that it returns "no" on
30538         Cygwin 1.7.2.
30539
30540 2010-04-05  Bruno Haible  <bruno@clisp.org>
30541
30542         Use the module 'strncat'.
30543         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30544
30545         Tests for module 'strncat'.
30546         * modules/strncat-tests: New file.
30547         * tests/test-strncat.c: New file.
30548
30549         New module 'strncat'.
30550         * lib/string.in.h (strncat): New declaration.
30551         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30552         * m4/strncat.m4: New file, based on m4/memchr.m4.
30553         * modules/strncat: New file.
30554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30555         is declared.
30556         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30557         REPLACE_STRNCAT.
30558         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30559         REPLACE_STRNCAT.
30560         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30561         module.
30562         * tests/test-string-c++.cc: Check signature of strncat.
30563
30564 2010-04-05  Jim Meyering  <meyering@redhat.com>
30565
30566         xstrtoumax-tests: convert to use init.sh
30567         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30568         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30569         Use Exit, not exit.
30570         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30571
30572         xstrtoimax-tests: convert to use init.sh
30573         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30574         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30575         Use Exit, not exit.
30576         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30577
30578 2010-04-05  Bruno Haible  <bruno@clisp.org>
30579
30580         sys_socket: Avoid #define replacements in C++ mode.
30581         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30582         warning to the function if possible, rather than #defining the symbol
30583         to a dysfunctional alias.
30584
30585 2010-04-05  Bruno Haible  <bruno@clisp.org>
30586
30587         fseeko: Fix C++ test error on mingw.
30588         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30589         gl_FUNC_FSEEKO.
30590         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30591         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30593         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30594
30595 2010-04-05  Bruno Haible  <bruno@clisp.org>
30596
30597         duplocale: Improve test output.
30598         * tests/test-duplocale.c (main): Print reason for skipped test.
30599
30600 2010-04-05  Bruno Haible  <bruno@clisp.org>
30601
30602         Assume rmdir exists.
30603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30604         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30605
30606 2010-04-05  Bruno Haible  <bruno@clisp.org>
30607
30608         Fix link error on Solaris 8 with cc.
30609         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30610
30611 2010-04-05  Bruno Haible  <bruno@clisp.org>
30612
30613         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30614         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30615
30616 2010-04-05  Bruno Haible  <bruno@clisp.org>
30617
30618         vasprintf: Update documentation.
30619         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30620
30621 2010-04-05  Bruno Haible  <bruno@clisp.org>
30622
30623         ptsname: Improve test.
30624         * tests/test-ptsname.c (main): Also try the various master names of BSD
30625         systems.
30626
30627 2010-04-05  Bruno Haible  <bruno@clisp.org>
30628
30629         memchr: Avoid a possible C++ test error.
30630         * lib/string.in.h (memchr): Provide declaration if function is missing.
30631         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30632         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30634         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30635
30636 2010-04-05  Bruno Haible  <bruno@clisp.org>
30637
30638         strtok_r: Improve idiom.
30639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30640         AC_LIBOBJ is used.
30641
30642 2010-04-05  Bruno Haible  <bruno@clisp.org>
30643
30644         strdup: Improve idiom.
30645         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30646         AC_LIBOBJ is used.
30647         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30648         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30649         when AC_LIBOBJ is used.
30650
30651 2010-04-05  Bruno Haible  <bruno@clisp.org>
30652
30653         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30655         don't set REPLACE_MBSINIT to 1.
30656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30657         don't set REPLACE_MBRTOWC to 1.
30658         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30659         exist, don't set REPLACE_MBSRTOWCS to 1.
30660         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30661         exist, don't set REPLACE_MBSNRTOWCS to 1.
30662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30663         don't set REPLACE_WCRTOMB to 1.
30664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30665         exist, don't set REPLACE_WCSRTOMBS to 1.
30666         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30667         exist, don't set REPLACE_WCSNRTOMBS to 1.
30668
30669 2010-04-05  Bruno Haible  <bruno@clisp.org>
30670
30671         ldexpl: Improve idiom.
30672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30673         make sure to set HAVE_DECL_LDEXPL to 0.
30674
30675 2010-04-05  Jim Meyering  <meyering@redhat.com>
30676
30677         xstrtol-tests: convert to use init.sh
30678         * modules/xstrtol-tests (Files): Add tests/init.sh.
30679         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30680         Use Exit, not exit.
30681         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30682
30683         atexit-tests: convert to use init.sh
30684         * modules/atexit-tests (Files): Add tests/init.sh.
30685         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30686         Use Exit, not exit.
30687         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30688
30689         init.sh: fix typo
30690         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30691
30692         init.sh: make it easier for a test script to write to the tty, ...
30693         when using automake's parallel-tests mode.
30694         * tests/init.sh (stderr_fileno_): Define overridable variable.
30695         (warn_): New function, to use it.
30696         (fail_, skip_, framework_failure_): Use warn_.
30697
30698 2010-04-04  Bruno Haible  <bruno@clisp.org>
30699
30700         btowc: Avoid warning.
30701         * lib/btowc.c: Include <stdlib.h>.
30702         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30703
30704 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30705             Bruno Haible  <bruno@clisp.org>
30706
30707         wchar: Port to NetBSD 1.5.
30708         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30709         * lib/wctype.in.h (WEOF): Likewise.
30710
30711 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30712             Bruno Haible  <bruno@clisp.org>
30713
30714         Port extended stdio to NetBSD 1.5.
30715         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30716         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30717         older.
30718
30719 2010-04-04  Bruno Haible  <bruno@clisp.org>
30720
30721         string: Remove unused substitution.
30722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30723         HAVE_DECL_STRERROR.
30724         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30725
30726 2010-04-04  Bruno Haible  <bruno@clisp.org>
30727
30728         strtod: Avoid a possible C++ test error.
30729         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30730         set REPLACE_STRTOD.
30731
30732 2010-04-04  Bruno Haible  <bruno@clisp.org>
30733
30734         strerror: Update documentation.
30735         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30736
30737 2010-04-04  Bruno Haible  <bruno@clisp.org>
30738
30739         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30740         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30741         _GL_CXXALIAS_SYS_CAST.
30742
30743 2010-04-04  Bruno Haible  <bruno@clisp.org>
30744
30745         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30746         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30747         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30748         REPLACE_FREXPL to 1.
30749         * doc/posix-functions/frexpl.texi: Update documentation.
30750
30751 2010-04-04  Bruno Haible  <bruno@clisp.org>
30752
30753         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30754         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30755
30756 2010-04-04  Bruno Haible  <bruno@clisp.org>
30757
30758         Implement nanosleep for native Windows.
30759         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30760
30761 2010-04-04  Bruno Haible  <bruno@clisp.org>
30762
30763         math: Fix some C++ test errors on Solaris 8.
30764         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30765
30766 2010-04-04  Bruno Haible  <bruno@clisp.org>
30767
30768         math: Fix some C++ test errors on Cygwin.
30769         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30770         truncl): Provide declaration if the system does not have it.
30771         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30772         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30773         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30774         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30775         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30776         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30777         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30778         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30779         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30780         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30781         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30782         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30783         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30784         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30785         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30786         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30788         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30789         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30790         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30791         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30792         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30793
30794 2010-04-04  Bruno Haible  <bruno@clisp.org>
30795
30796         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30797         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30798         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30799         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30800         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30801         * m4/isinf.m4 (gl_ISINF): Likewise.
30802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30803
30804 2010-04-04  Bruno Haible  <bruno@clisp.org>
30805
30806         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30807         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30808
30809 2010-04-04  Bruno Haible  <bruno@clisp.org>
30810
30811         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30812         * modules/tmpfile (configure.ac): Update.
30813
30814         tmpfile: Fix C++ test error on mingw.
30815         * lib/stdio.in.h (tmpfile): New declaration.
30816         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30817         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30818         * modules/tmpfile (Depends-on): Add stdio.
30819         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30820         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30822         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30823         REPLACE_TMPFILE.
30824         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30825
30826 2010-04-04  Bruno Haible  <bruno@clisp.org>
30827
30828         ioctl: Fix C++ test error on mingw.
30829         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30830         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30831         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30832
30833 2010-04-03  Bruno Haible  <bruno@clisp.org>
30834
30835         wcwidth: Fix C++ test error on mingw.
30836         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30838         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30839
30840 2010-04-03  Bruno Haible  <bruno@clisp.org>
30841
30842         nanosleep: Fix C++ test error on mingw.
30843         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30844         * lib/time.in.h (nanosleep): Use modern idiom.
30845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30846         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30847         REPLACE_NANOSLEEP to 1.
30848         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30849         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30850
30851 2010-04-03  Bruno Haible  <bruno@clisp.org>
30852
30853         strptime: Fix C++ test error on mingw.
30854         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30855         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30856         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30857         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30859         not REPLACE_STRPTIME.
30860         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30861         REPLACE_STRPTIME.
30862
30863 2010-04-03  Bruno Haible  <bruno@clisp.org>
30864
30865         timegm: Fix C++ test error on mingw.
30866         * lib/time.in.h (timegm): Use modern idiom.
30867         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30868         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30870         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30871
30872 2010-04-03  Bruno Haible  <bruno@clisp.org>
30873
30874         timegm: Assume declaration if function exists.
30875         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30876         if it exists. Don't clobber ac_cv_func_timegm.
30877
30878 2010-04-03  Bruno Haible  <bruno@clisp.org>
30879
30880         time_r: Fix C++ test error on mingw.
30881         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30882         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30883         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30885         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30886
30887 2010-04-03  Bruno Haible  <bruno@clisp.org>
30888
30889         time_r: Minor updates.
30890         * modules/time_r (Description): Mention the provided functions.
30891         * lib/time_r.c: Don't include <string.h>.
30892         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30893         * doc/posix-functions/localtime_r.texi: Likewise.
30894
30895 2010-04-03  Bruno Haible  <bruno@clisp.org>
30896
30897         time: Fix regression introduced on 2010-03-08.
30898         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30899         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30900
30901 2010-04-03  Jim Meyering  <meyering@redhat.com>
30902
30903         maint.mk: don't silently disable project-specific syntax-check rules
30904         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30905         that they need to convert their project-specific syntax-check rules
30906         to use the new _sc_search_regexp.
30907
30908 2010-04-03  Bruno Haible  <bruno@clisp.org>
30909
30910         fchdir: Fix regression introduced on 2010-03-08.
30911         * lib/unistd.in.h (fchdir): Fix declaration.
30912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30914         REPLACE_FCHDIR.
30915         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30916         REPLACE_FCHDIR.
30917
30918 2010-04-03  Bruno Haible  <bruno@clisp.org>
30919
30920         getpagesize: Fix C++ test error on mingw.
30921         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30922         system does not declare the function.
30923         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30924         declared.
30925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30926         HAVE_DECL_GETPAGESIZE.
30927         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30928
30929 2010-04-03  Bruno Haible  <bruno@clisp.org>
30930
30931         stdio: Make C++ tests work on mingw.
30932         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30933         does not declare the function.
30934
30935 2010-04-03  Bruno Haible  <bruno@clisp.org>
30936
30937         ftello: Fix C++ test error on mingw.
30938         * lib/stdio.in.h (ftello): Use modern idiom.
30939         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30940         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30941         is missing and that it needs to be replaced.
30942         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30944         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30945
30946 2010-04-03  Bruno Haible  <bruno@clisp.org>
30947
30948         fseeko: Fix C++ test error on mingw.
30949         * lib/stdio.in.h (fseeko): Use modern idiom.
30950         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30952         is missing and that it needs to be replaced.
30953         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30955         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30956
30957 2010-04-03  Bruno Haible  <bruno@clisp.org>
30958
30959         mkstemp: Fix C++ test error on mingw.
30960         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30962         function is missing and that it needs to be replaced.
30963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30964         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30965
30966 2010-04-03  Bruno Haible  <bruno@clisp.org>
30967
30968         stpncpy: Fix C++ test error on mingw.
30969         * lib/string.in.h (stpncpy): Use modern idiom.
30970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30971         function is missing and that it needs to be replaced.
30972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30973         REPLACE_STPNCPY.
30974         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30975
30976 2010-04-03  Bruno Haible  <bruno@clisp.org>
30977
30978         sys_stat: Fix C++ test error on mingw.
30979         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30980         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30981
30982 2010-04-03  Bruno Haible  <bruno@clisp.org>
30983
30984         pty: Update doc.
30985         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30986
30987 2010-04-03  Bruno Haible  <bruno@clisp.org>
30988
30989         unistd: Fix C++ test error on mingw.
30990         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30991
30992 2010-04-03  Bruno Haible  <bruno@clisp.org>
30993
30994         Update doc regarding mingw.
30995         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30996         * doc/glibc-functions/login_tty.texi: Likewise.
30997         * doc/glibc-functions/forkpty.texi: Likewise.
30998
30999 2010-04-03  Bruno Haible  <bruno@clisp.org>
31000
31001         stdlib: Avoid compilation failure of c-strtold on mingw.
31002         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31003
31004 2010-04-03  Bruno Haible  <bruno@clisp.org>
31005
31006         locale: Make C++ tests work on Cygwin and mingw.
31007         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31008         cannot provide the function.
31009         Reported by Simon Josefsson.
31010
31011 2010-04-03  Bruno Haible  <bruno@clisp.org>
31012
31013         localename: Port to MacOS X 10.6.
31014         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31015         memory layout of the locales in MacOS X 10.6 as well.
31016         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31017
31018 2010-04-02  Bruno Haible  <bruno@clisp.org>
31019
31020         gnulib-tool: Ensure that long-running tests are executed last.
31021         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31022         running tests after the one for the other tests.
31023
31024 2010-04-02  Bruno Haible  <bruno@clisp.org>
31025
31026         gnulib-tool: Ensure the tests in the main directory are executed first.
31027         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31028         start with the current directory.
31029
31030 2010-04-02  Bruno Haible  <bruno@clisp.org>
31031
31032         Tests for module 'havelib', moved here from GNU gettext.
31033         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31034         modifications.
31035         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31036         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31037         with modifications.
31038         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31039         modifications.
31040         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31041         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31042         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31043         with modifications.
31044         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31045         with modifications.
31046         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31047         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31048         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31049         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31050         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31051         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31052         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31053         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31054         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31055         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31056         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31057         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31058         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31059         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31060         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31061         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31062         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31063         with modifications.
31064         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31065         with modifications.
31066         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31067         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31068         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31069         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31070         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31071         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31072         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31073         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31074         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31075         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31076         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31077         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31078         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31079         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31080         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31081         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31082         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31083         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31084         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31085         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31086         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31087         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31088         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31089         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31090         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31091         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31092         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31093         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31094         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31095         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31096         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31097         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31098         * tests/havelib/rpathx/rpathx.c: New file, from
31099         gettext/autoconf-lib-link.
31100         * tests/havelib/rpathx/Makefile.am: New file, from
31101         gettext/autoconf-lib-link.
31102         * tests/havelib/rpathx/configure.ac: New file, from
31103         gettext/autoconf-lib-link with modifications.
31104         * tests/havelib/rpathy/rpathy.c: New file, from
31105         gettext/autoconf-lib-link.
31106         * tests/havelib/rpathy/Makefile.am: New file, from
31107         gettext/autoconf-lib-link.
31108         * tests/havelib/rpathy/configure.ac: New file, from
31109         gettext/autoconf-lib-link with modifications.
31110         * tests/havelib/rpathz/rpathz.c: New file, from
31111         gettext/autoconf-lib-link.
31112         * tests/havelib/rpathz/Makefile.am: New file, from
31113         gettext/autoconf-lib-link.
31114         * tests/havelib/rpathz/configure.ac: New file, from
31115         gettext/autoconf-lib-link with modifications.
31116         * tests/havelib/rpathlx/usex.c: New file, from
31117         gettext/autoconf-lib-link.
31118         * tests/havelib/rpathlx/Makefile.am: New file, from
31119         gettext/autoconf-lib-link.
31120         * tests/havelib/rpathlx/configure.ac: New file, from
31121         gettext/autoconf-lib-link with modifications.
31122         * tests/havelib/rpathly/usey.c: New file, from
31123         gettext/autoconf-lib-link.
31124         * tests/havelib/rpathly/Makefile.am: New file, from
31125         gettext/autoconf-lib-link.
31126         * tests/havelib/rpathly/configure.ac: New file, from
31127         gettext/autoconf-lib-link with modifications.
31128         * tests/havelib/rpathlz/usez.c: New file, from
31129         gettext/autoconf-lib-link.
31130         * tests/havelib/rpathlz/Makefile.am: New file, from
31131         gettext/autoconf-lib-link.
31132         * tests/havelib/rpathlz/configure.ac: New file, from
31133         gettext/autoconf-lib-link with modifications.
31134         * tests/havelib/rpathlyx/usey.c: New file, from
31135         gettext/autoconf-lib-link.
31136         * tests/havelib/rpathlyx/Makefile.am: New file, from
31137         gettext/autoconf-lib-link.
31138         * tests/havelib/rpathlyx/configure.ac: New file, from
31139         gettext/autoconf-lib-link with modifications.
31140         * tests/havelib/rpathlzyx/usez.c: New file, from
31141         gettext/autoconf-lib-link.
31142         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31143         gettext/autoconf-lib-link.
31144         * tests/havelib/rpathlzyx/configure.ac: New file, from
31145         gettext/autoconf-lib-link with modifications.
31146         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31147         with modifications.
31148
31149 2010-04-02  Bruno Haible  <bruno@clisp.org>
31150
31151         gnulib-tool: Create distributed built sources also for the tests.
31152         * gnulib-tool (func_create_testdir): Also generate distributed built
31153         sources in the tests directory.
31154
31155 2010-04-02  Bruno Haible  <bruno@clisp.org>
31156
31157         gnulib-tool: Obey user's environment variables.
31158         * gnulib-tool (func_create_testdir): When creating built sources,
31159         respect the environment variables for autoconf, automake, etc. given by
31160         the user.
31161
31162 2010-04-02  Bruno Haible  <bruno@clisp.org>
31163
31164         gnulib-tool: Provide the value of --m4-base to modules.
31165         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31166         of gl_m4_base.
31167
31168 2010-04-02  Eric Blake  <eblake@redhat.com>
31169
31170         maint.mk: fix some fallout
31171         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31172         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31173
31174 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31175
31176         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31177         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31178         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31179         (sc_cast_of_x_alloc_return_value): Likewise.
31180         (sc_cast_of_alloca_return_value): Likewise.
31181         (sc_space_tab): Likewise.
31182         (sc_prohibit_atoi_atof): Likewise.
31183         (sc_prohibit_magic_number_exit): Likewise.
31184         (sc_error_exit_success): Likewise.
31185         (sc_file_system): Likewise.
31186         (sc_prohibit_have_config_h): Likewise.
31187         (sc_require_config_h): Likewise.
31188         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31189         (sc_obsolete_symbols): Likewise.
31190         (sc_changelog): Likewise.
31191         (sc_program_name): Likewise.
31192         (sc_the_the): Likewise.
31193         (sc_trailing_blank): Likewise.
31194         (sc_two_space_separator_in_usage): Likewise.
31195         (sc_useless_cpp_parens): Likewise.
31196         (sc_GPL_version): Likewise.
31197         (sc_GFDL_version): Likewise.
31198         (sc_texinfo_acronym): Likewise.
31199         (sc_prohibit_cvs_keyword): Likewise.
31200         (sc_prohibit_stat_st_blocks): Likewise.
31201         (sc_prohibit_S_IS_definition): Likewise.
31202         (sc_redundant_const): Likewise.
31203         (sc_makefile_TAB_only_indentation): Likewise.
31204         (sc_m4_quote_check): Likewise.
31205         (sc_makefile_path_separator_check): Likewise.
31206         (sc_copyright_check): Likewise.
31207         (sc_Wundef_boolean): Likewise.
31208         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31209
31210         maint.mk: match 0 or more whitespace-before-function-call '('
31211         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31212         that have zero or two-and-more spaces between the function name
31213         and the open parenthesis.
31214         (sc_error_message_warn_fatal): Likewise.
31215         (sc_error_message_uppercase): Likewise.
31216         (sc_error_message_period): Likewise.
31217
31218 2010-03-31  Eric Blake  <eblake@redhat.com>
31219
31220         maint.mk: check for [ as well as test
31221         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31222         Based on a libvirt report by Matthias Bolte.
31223
31224         gnumakefile: don't squelch _version output
31225         * top/GNUmakefile (_version): Create one-shot dependency rather
31226         than using $(shell) when version must be regenerated.
31227         (_autoreconf): Run verbosely, by default.
31228
31229         sys_time: avoid compiler warnings
31230         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31231         unconditional, fixing regression from 2010-03-29.
31232         Reported by Simon Josefsson.
31233
31234 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31235
31236         maint.mk: s/_header_without_use/_sc_header_without_use/
31237         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31238         (sc_prohibit_assert_without_use): Use the new name.
31239         (sc_prohibit_close_stream_without_use): Likewise.
31240         (sc_prohibit_getopt_without_use): Likewise.
31241         (sc_prohibit_quotearg_without_use): Likewise.
31242         (sc_prohibit_quote_without_use): Likewise.
31243         (sc_prohibit_long_options_without_use): Likewise.
31244         (sc_prohibit_inttostr_without_use): Likewise.
31245         (sc_prohibit_ignore_value_without_use): Likewise.
31246         (sc_prohibit_error_without_use): Likewise.
31247         (sc_prohibit_xalloc_without_use): Likewise.
31248         (sc_prohibit_hash_without_use): Likewise.
31249         (sc_prohibit_hash_pjw_without_use): Likewise.
31250         (sc_prohibit_safe_read_without_use): Likewise.
31251         (sc_prohibit_argmatch_without_use): Likewise.
31252         (sc_prohibit_canonicalize_without_use): Likewise.
31253         (sc_prohibit_root_dev_ino_without_use): Likewise.
31254         (sc_prohibit_openat_without_use): Likewise.
31255         (sc_prohibit_c_ctype_without_use): Likewise.
31256         (sc_prohibit_signal_without_use): Likewise.
31257         (sc_prohibit_intprops_without_use): Likewise.
31258
31259 2010-03-30  Eric Blake  <eblake@redhat.com>
31260
31261         maint: improve module indicators
31262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31263         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31264         columns, and avoid extra macro expansion.
31265
31266         fdopendir: work around FreeBSD bug
31267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31269         * modules/dirent (Makefile.am): Substitute it.
31270         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31271         declaration.
31272         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31273         fix.
31274         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31275
31276 2010-03-29  Bruno Haible  <bruno@clisp.org>
31277
31278         Emit #pragma system_header after the inclusion guard, not before.
31279         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31280         guard that spans the entire file, not before. This enables an
31281         optimization in GCC's preprocessor.
31282         * lib/ctype.in.h: Likewise.
31283         * lib/dirent.in.h: Likewise.
31284         * lib/errno.in.h: Likewise.
31285         * lib/float.in.h: Likewise.
31286         * lib/getopt.in.h: Likewise.
31287         * lib/iconv.in.h: Likewise.
31288         * lib/langinfo.in.h: Likewise.
31289         * lib/locale.in.h: Likewise.
31290         * lib/math.in.h: Likewise.
31291         * lib/netdb.in.h: Likewise.
31292         * lib/netinet_in.in.h: Likewise.
31293         * lib/pty.in.h: Likewise.
31294         * lib/sched.in.h: Likewise.
31295         * lib/se-selinux.in.h: Likewise.
31296         * lib/search.in.h: Likewise.
31297         * lib/spawn.in.h: Likewise.
31298         * lib/stdarg.in.h: Likewise.
31299         * lib/stdint.in.h: Likewise.
31300         * lib/string.in.h: Likewise.
31301         * lib/strings.in.h: Likewise.
31302         * lib/sys_file.in.h: Likewise.
31303         * lib/sys_ioctl.in.h: Likewise.
31304         * lib/sys_time.in.h: Likewise.
31305         * lib/sys_times.in.h: Likewise.
31306         * lib/sys_utsname.in.h: Likewise.
31307         * lib/sys_wait.in.h: Likewise.
31308         * lib/sysexits.in.h: Likewise.
31309         * lib/wctype.in.h: Likewise.
31310
31311 2010-03-28  James Youngman  <jay@gnu.org>
31312
31313         save-cwd: don't leak a file descriptor when the caller execs.
31314         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31315         saved file descriptor.
31316         * modules/save-cwd (Depends-on): Depend on cloexec.
31317
31318 2010-03-29  Bruno Haible  <bruno@clisp.org>
31319
31320         Remove vestiges of fts-lgpl module.
31321         * lib/fts_.h: Assume GNULIB_FTS is 1.
31322         * lib/fts.c: Likewise.
31323         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31324
31325 2010-03-28  Bruno Haible  <bruno@clisp.org>
31326
31327         Fix definition of tests witness macro.
31328         * gnulib-tool (func_import): Fix definition of witness macro.
31329
31330 2010-03-28  Bruno Haible  <bruno@clisp.org>
31331
31332         Fix ioctl's protoype on glibc systems.
31333         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31334         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31335         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31336         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31337         signature. If not, arrange to replace the ioctl function.
31338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31339         REPLACE_IOCTL.
31340         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31341         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31342         Reported by Ludovic Courtès <ludo@gnu.org>.
31343
31344 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31345
31346         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31347         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31348         made it so grep -r --include=GLOB* ... did not work.
31349
31350 2010-03-26  Jim Meyering  <meyering@redhat.com>
31351             Eric Blake  <eblake@redhat.com>
31352
31353         maint.mk: prohibit use of test's -o and -a operators
31354         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31355
31356 2010-03-28  Bruno Haible  <bruno@clisp.org>
31357
31358         Remove unused GNULIB_XYZ macro definitions.
31359         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31360         invocation.
31361
31362 2010-03-28  Bruno Haible  <bruno@clisp.org>
31363
31364         Mark privileged tests modules.
31365         * modules/idpriv-drop-tests (Status): New section.
31366         * modules/idpriv-droptemp-tests (Status): New section.
31367
31368 2010-03-28  Bruno Haible  <bruno@clisp.org>
31369
31370         Split C++ tests into separate tests modules.
31371         * modules/dirent-c++-tests: New file, extracted from
31372         modules/dirent-tests.
31373         * modules/dirent-tests: Depend on it.
31374         * modules/fcntl-h-c++-tests: New file, extracted from
31375         modules/fcntl-h-tests.
31376         * modules/fcntl-h-tests: Depend on it.
31377         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31378         * modules/glob-tests: Depend on it.
31379         * modules/iconv-h-c++-tests: New file, extracted from
31380         modules/iconv-h-tests.
31381         * modules/iconv-h-tests: Depend on it.
31382         * modules/langinfo-c++-tests: New file, extracted from
31383         modules/langinfo-tests.
31384         * modules/langinfo-tests: Depend on it.
31385         * modules/locale-c++-tests: New file, extracted from
31386         modules/locale-tests.
31387         * modules/locale-tests: Depend on it.
31388         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31389         * modules/math-tests: Depend on it.
31390         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31391         * modules/pty-tests: Depend on it.
31392         * modules/search-c++-tests: New file, extracted from
31393         modules/search-tests.
31394         * modules/search-tests: Depend on it.
31395         * modules/signal-c++-tests: New file, extracted from
31396         modules/signal-tests.
31397         * modules/signal-tests: Depend on it.
31398         * modules/spawn-c++-tests: New file, extracted from
31399         modules/spawn-tests.
31400         * modules/spawn-tests: Depend on it.
31401         * modules/stdio-c++-tests: New file, extracted from
31402         modules/stdio-tests.
31403         * modules/stdio-tests: Depend on it.
31404         * modules/stdlib-c++-tests: New file, extracted from
31405         modules/stdlib-tests.
31406         * modules/stdlib-tests: Depend on it.
31407         * modules/string-c++-tests: New file, extracted from
31408         modules/string-tests.
31409         * modules/string-tests: Depend on it.
31410         * modules/sys_ioctl-c++-tests: New file, extracted from
31411         modules/sys_ioctl-tests.
31412         * modules/sys_ioctl-tests: Depend on it.
31413         * modules/sys_select-c++-tests: New file, extracted from
31414         modules/sys_select-tests.
31415         * modules/sys_select-tests: Depend on it.
31416         * modules/sys_socket-c++-tests: New file, extracted from
31417         modules/sys_socket-tests.
31418         * modules/sys_socket-tests: Depend on it.
31419         * modules/sys_stat-c++-tests: New file, extracted from
31420         modules/sys_stat-tests.
31421         * modules/sys_stat-tests: Depend on it.
31422         * modules/sys_time-c++-tests: New file, extracted from
31423         modules/sys_time-tests.
31424         * modules/sys_time-tests: Depend on it.
31425         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31426         * modules/time-tests: Depend on it.
31427         * modules/unistd-c++-tests: New file, extracted from
31428         modules/unistd-tests.
31429         * modules/unistd-tests: Depend on it.
31430         * modules/wchar-c++-tests: New file, extracted from
31431         modules/wchar-tests.
31432         * modules/wchar-tests: Depend on it.
31433         * modules/wctype-c++-tests: New file, extracted from
31434         modules/wctype-tests.
31435         * modules/wctype-tests: Depend on it.
31436         Reported by Simon Josefsson.
31437
31438 2010-03-28  Bruno Haible  <bruno@clisp.org>
31439
31440         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31441         * gnulib-tool (func_exists_module): New function, extracted from
31442         func_verify_module.
31443         (func_verify_module): Use it.
31444         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31445         'foo' only if 'foo' exists.
31446         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31447         module.
31448
31449 2010-03-28  Bruno Haible  <bruno@clisp.org>
31450
31451         gnulib-tool: Add support for special categories of tests.
31452         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31453         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31454         (func_usage): Document them.
31455         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31456         inc_unportable_tests, inc_all_tests): New variables.
31457         (func_acceptable): Consider these variables.
31458         (func_modules_transitive_closure): Make it work when the 'Status' field
31459         consists of multiple words.
31460         (func_import): Store and restore the values of inc_cxx_tests,
31461         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31462         inc_all_tests in gnulib-comp.m4.
31463         (func_create_testdir): Set inc_all_tests to true.
31464         * doc/gnulib.texi (Extra tests modules): New section.
31465         Suggested by Jim Meyering.
31466
31467 2010-03-28  Bruno Haible  <bruno@clisp.org>
31468
31469         ansi-c++-opt: Allow turning off the C++ build by default.
31470         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31471         gl_CXX_CHOICE_DEFAULT_NO is defined.
31472         Requested by Eric Blake.
31473
31474 2010-03-28  Bruno Haible  <bruno@clisp.org>
31475
31476         unistd: Avoid #define replacements in C++ mode.
31477         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31478         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31479         setsockopt, shutdown, select): In C++, attach a warning to the function
31480         if possible, rather than #defining the symbol to a dysfunctional alias.
31481         Reported by John W. Eaton <jwe@gnu.org>.
31482
31483 2010-03-28  Bruno Haible  <bruno@clisp.org>
31484
31485         Fix link errors on mingw.
31486         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31487         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31488         $(LIBSOCKET).
31489         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31490         $(LIBSOCKET).
31491
31492 2010-03-28  Bruno Haible  <bruno@clisp.org>
31493             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31494
31495         lib-ignore: Determine different options for different compilers.
31496         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31497         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31498         Add comments.
31499         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31500         * NEWS: Mention the change.
31501
31502 2010-03-27  Bruno Haible  <bruno@clisp.org>
31503
31504         Remove unused GNULIB_XYZ macro definitions.
31505         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31506         * modules/fseek (configure.ac): Likewise.
31507         * modules/ioctl (configure.ac): Likewise.
31508         * modules/open (configure.ac): Likewise.
31509         * modules/stdlib-safer (configure.ac): Likewise.
31510
31511 2010-03-27  Bruno Haible  <bruno@clisp.org>
31512
31513         Add a remark about certain modules.
31514         * modules/malloc (Comment): New section.
31515         * modules/realloc (Comment): Likewise.
31516         * modules/sigpipe (Comment): Likewise.
31517
31518 2010-03-27  Bruno Haible  <bruno@clisp.org>
31519
31520         Resolve conflict between the two kinds of module indicators.
31521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31522         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31523         * modules/canonicalize (configure.ac): Invoke
31524         gl_MODULE_INDICATOR_FOR_TESTS.
31525         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31526         GNULIB_XYZ.
31527         * tests/test-dirent-c++.cc: Likewise.
31528         * tests/test-dirent-safer.c: Likewise.
31529         * tests/test-dup2.c: Likewise.
31530         * tests/test-fchdir.c: Likewise.
31531         * tests/test-fcntl-h-c++.cc: Likewise.
31532         * tests/test-getopt.c: Likewise.
31533         * tests/test-getopt.h: Likewise.
31534         * tests/test-langinfo-c++.cc: Likewise.
31535         * tests/test-locale-c++.cc: Likewise.
31536         * tests/test-math-c++.cc: Likewise.
31537         * tests/test-pty-c++.cc: Likewise.
31538         * tests/test-search-c++.cc: Likewise.
31539         * tests/test-signal-c++.cc: Likewise.
31540         * tests/test-spawn-c++.cc: Likewise.
31541         * tests/test-stdio-c++.cc: Likewise.
31542         * tests/test-stdlib-c++.cc: Likewise.
31543         * tests/test-string-c++.cc: Likewise.
31544         * tests/test-sys_ioctl-c++.cc: Likewise.
31545         * tests/test-sys_select-c++.cc: Likewise.
31546         * tests/test-sys_socket-c++.cc: Likewise.
31547         * tests/test-sys_stat-c++.cc: Likewise.
31548         * tests/test-sys_time-c++.cc: Likewise.
31549         * tests/test-time-c++.cc: Likewise.
31550         * tests/test-unistd-c++.cc: Likewise.
31551         * tests/test-wchar-c++.cc: Likewise.
31552         * tests/uninorm/test-u8-nfc.c: Likewise.
31553         * tests/uninorm/test-u8-nfd.c: Likewise.
31554         * tests/uninorm/test-u8-nfkc.c: Likewise.
31555         * tests/uninorm/test-u8-nfkd.c: Likewise.
31556         * tests/uninorm/test-u16-nfc.c: Likewise.
31557         * tests/uninorm/test-u16-nfd.c: Likewise.
31558         * tests/uninorm/test-u16-nfkc.c: Likewise.
31559         * tests/uninorm/test-u16-nfkd.c: Likewise.
31560         * tests/uninorm/test-u32-nfc.c: Likewise.
31561         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31562         * tests/uninorm/test-u32-nfd.c: Likewise.
31563         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31564         * tests/uninorm/test-u32-nfkc.c: Likewise.
31565         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31566         * tests/uninorm/test-u32-nfkd.c: Likewise.
31567         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31568         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31569
31570 2010-03-27  Bruno Haible  <bruno@clisp.org>
31571
31572         Distinguish two kinds of module indicators.
31573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31574         gl_MODULE_INDICATOR.
31575         (gl_MODULE_INDICATOR): New macro.
31576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31577         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31579         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31580         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31581         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31582         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31583         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31584         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31585         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31586         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31587         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31590         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31592         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31595         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31596         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31597         * modules/cloexec (configure.ac): Likewise.
31598         * modules/getopt-gnu (configure.ac): Likewise.
31599         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31600         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31601         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31602         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31603
31604 2010-03-27  Bruno Haible  <bruno@clisp.org>
31605
31606         New module description field 'Comment'.
31607         * gnulib-tool: New option --extract-comment.
31608         (func_usage): Document it.
31609         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31610         (func_get_comment): New function.
31611         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31612
31613 2010-03-27  Bruno Haible  <bruno@clisp.org>
31614
31615         Addendum to 2010-02-07 commit.
31616         * gnulib-tool (func_usage): Document --extract-applicability option.
31617
31618 2010-03-27  Bruno Haible  <bruno@clisp.org>
31619
31620         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31621         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31622         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31623         rather than link errors.
31624
31625 2010-03-27  Bruno Haible  <bruno@clisp.org>
31626
31627         Avoid side effects from tests-related modules on the compilation of lib.
31628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31629         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31630         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31631         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31632         macro.
31633         (func_import): Define a witness macro. Assign it a value that depends
31634         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31635         tests-related modules.
31636         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31637         Reported by Jim Meyering.
31638
31639 2010-03-27  Bruno Haible  <bruno@clisp.org>
31640
31641         Factorize common .m4 code.
31642         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31644         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31645         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31646         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31647         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31648         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31652         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31653         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31654         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31655         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31656         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31657         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31658         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31659         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31661         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31662         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31664         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31665         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31666         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31667         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31668         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31669         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31670         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31671         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31672         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31673         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31674
31675 2010-03-27  Bruno Haible  <bruno@clisp.org>
31676
31677         Fix a compilation error on Cygwin with g++ >= 4.3.
31678         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31679         if it is undefined or if we alias it to chmod.
31680         (lstat): Don't warn about the use of this function if it is undefined
31681         or if we alias it to stat.
31682         Reported by Simon Josefsson.
31683
31684 2010-03-27  Bruno Haible  <bruno@clisp.org>
31685
31686         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31687         * modules/getlogin (configure.ac): Update.
31688
31689         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31690         * modules/getlogin_r (configure.ac): Update.
31691
31692         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31694         * modules/inet_ntop (configure.ac): Update.
31695
31696         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31697         * modules/inet_pton (configure.ac): Update.
31698
31699         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31700         * modules/mbslen (configure.ac): Update.
31701
31702         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31703         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31704         * modules/forkpty (configure.ac): Update.
31705         * modules/openpty (configure.ac): Update.
31706
31707 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31708
31709         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31710         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31711
31712 2010-03-25  Eric Blake  <eblake@redhat.com>
31713
31714         maint: use pragma consistently across replacement headers
31715         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31716         * lib/dirent.in.h (system_header): Likewise.
31717         * lib/errno.in.h (system_header): Likewise.
31718         * lib/float.in.h (system_header): Likewise.
31719         * lib/getopt.in.h (system_header): Likewise.
31720         * lib/iconv.in.h (system_header): Likewise.
31721         * lib/inttypes.in.h (system_header): Likewise.
31722         * lib/langinfo.in.h (system_header): Likewise.
31723         * lib/locale.in.h (system_header): Likewise.
31724         * lib/math.in.h (system_header): Likewise.
31725         * lib/netdb.in.h (system_header): Likewise.
31726         * lib/netinet_in.in.h (system_header): Likewise.
31727         * lib/pty.in.h (system_header): Likewise.
31728         * lib/sched.in.h (system_header): Likewise.
31729         * lib/se-selinux.in.h (system_header): Likewise.
31730         * lib/search.in.h (system_header): Likewise.
31731         * lib/spawn.in.h (system_header): Likewise.
31732         * lib/stdarg.in.h (system_header): Likewise.
31733         * lib/stdint.in.h (system_header): Likewise.
31734         * lib/string.in.h (system_header): Likewise.
31735         * lib/strings.in.h (system_header): Likewise.
31736         * lib/sys_file.in.h (system_header): Likewise.
31737         * lib/sys_ioctl.in.h (system_header): Likewise.
31738         * lib/sys_socket.in.h (system_header): Likewise.
31739         * lib/sys_times.in.h (system_header): Likewise.
31740         * lib/sys_utsname.in.h (system_header): Likewise.
31741         * lib/sys_wait.in.h (system_header): Likewise.
31742         * lib/sysexits.in.h (system_header): Likewise.
31743         * lib/unistd.in.h (system_header): Likewise.
31744         * lib/wctype.in.h (system_header): Likewise.
31745
31746         arpa/inet: fix mingw compilation warning
31747         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31748         Reported by Matthew Bolte.
31749
31750 2010-03-25  Bruno Haible  <bruno@clisp.org>
31751
31752         Avoid collision between gnulib wrapper and libintl wrapper.
31753         * lib/printf.c (printf): Don't define if a printf wrapper is already
31754         defined in intl/printf.c.
31755         Reported by Michel Boaventura <michel@michelboaventura.com>.
31756
31757 2010-03-25  Bruno Haible  <bruno@clisp.org>
31758
31759         Use ANSI C.
31760         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31761
31762 2010-03-25  Bruno Haible  <bruno@clisp.org>
31763
31764         Minor formatting changes.
31765         * lib/acosl.c: Insert space before function argument list.
31766         * lib/argz.c: Likewise.
31767         * lib/asinl.c: Likewise.
31768         * lib/expl.c: Likewise.
31769         * lib/gen-uni-tables.c: Likewise.
31770         * lib/gettext.h: Likewise.
31771         * lib/glthread/lock.h: Likewise.
31772         * lib/tanl.c: Likewise.
31773         * lib/uniname/uniname.c: Likewise.
31774         * tests/test-idpriv-drop.c: Likewise.
31775         * tests/test-idpriv-droptemp.c: Likewise.
31776         * tests/test-lock.c: Likewise.
31777         * tests/test-tls.c: Likewise.
31778         * lib/argp-help.c: Insert space before function-like macro argument
31779         list.
31780         * lib/memcmp.c: Likewise.
31781         * tests/test-base64.c: Likewise.
31782         * lib/localename.c: Insert space before sizeof's argument list.
31783         * lib/safe-alloc.h: Likewise.
31784         * lib/file-set.h: Insert space before macro argument list.
31785         * tests/test-argp.c: Likewise.
31786         * lib/argp-namefrob.h: Insert space before function parameter list.
31787         * lib/getaddrinfo.c: Likewise.
31788         * lib/netdb.in.h: Likewise.
31789         * lib/parse-duration.h: Likewise.
31790         * lib/parse-duration.c: Likewise.
31791         * lib/poll.c: Likewise.
31792         * lib/select.c: Likewise.
31793         * lib/trim.h: Likewise.
31794         * tests/test-usleep.c: Likewise.
31795         * lib/ldexpl.c: Insert space before function parameter list and before
31796         function argument list.
31797         * lib/logl.c: Likewise.
31798         * lib/sqrtl.c: Likewise.
31799         * lib/trim.c: Likewise.
31800         * lib/cosl.c: Use GNU style indentation. Insert space before function
31801         argument list.
31802         * lib/sinl.c: Likewise.
31803         * lib/tsearch.c: Insert space after 'for'.
31804         Reported by Jim Meyering.
31805
31806 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31807
31808         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31809         config header before grepping, as it's not present before
31810         autoreconf/configure are run.  Reported by Simon Josefsson.
31811
31812 2010-03-23  Bruno Haible  <bruno@clisp.org>
31813
31814         pt_chown: Make it work with automake < 1.11.
31815         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31816         Reported by Simon Josefsson.
31817
31818 2010-03-23  Bruno Haible  <bruno@clisp.org>
31819
31820         pt_chown: Don't depend on GPLed modules.
31821         * lib/pt_chown.c: Don't include idpriv.h.
31822         (main): Don't drop privileges.
31823         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31824         Reported by Simon Josefsson.
31825
31826 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31827
31828         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31829         suggestions from karl@freefriends.org (Karl Berry).
31830
31831 2010-03-22  Eric Blake  <eblake@redhat.com>
31832
31833         gethostname: further tweaks
31834         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31835         are overriding gethostname.
31836         Suggested by Bruno Haible.
31837
31838 2010-03-21  Bruno Haible  <bruno@clisp.org>
31839
31840         Fix comments.
31841         * lib/forkpty.c (rpl_forkpty): Fix comment.
31842         * lib/openpty.c (rpl_openpty): Likewise.
31843         Reported by Eric Blake.
31844
31845 2010-03-22  Eric Blake  <eblake@redhat.com>
31846
31847         gethostname: fix build on mingw
31848         * lib/unistd.in.h (includes): Work around fact that mingw
31849         <winsock2.h> re-includes <unistd.h>, by avoiding any
31850         redeclarations if we are being included by <winsock2.h>.
31851         Reported by Matthias Bolte.
31852
31853 2010-03-21  Bruno Haible  <bruno@clisp.org>
31854
31855         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31856         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31857         modifications.
31858         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31859         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31860         provide the replacement.
31861         * modules/forkpty (Depends-on): Add openpty, login_tty.
31862         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31863         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31864         * doc/glibc-functions/forkpty.texi: More supported platforms.
31865         * config/srclist.txt: Add forkpty.c (commented).
31866
31867 2010-03-21  Bruno Haible  <bruno@clisp.org>
31868
31869         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31870         (Makefile.am): Verify that PTY_LIB is defined.
31871
31872         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31873
31874 2010-03-21  Bruno Haible  <bruno@clisp.org>
31875
31876         Tests for module 'login_tty'.
31877         * modules/login_tty-tests: New file.
31878         * tests/test-login_tty.c: New file.
31879
31880         New module 'login_tty'.
31881         * lib/login_tty.c: New file.
31882         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31883         * modules/login_tty: New file.
31884         * doc/glibc-functions/login_tty.texi: Mention the new module.
31885
31886 2010-03-21  Bruno Haible  <bruno@clisp.org>
31887
31888         login_tty: Documentation.
31889         * doc/glibc-functions/login_tty.texi: New file.
31890         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31891
31892 2010-03-21  Bruno Haible  <bruno@clisp.org>
31893
31894         pty: Consistent macro naming.
31895         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31896         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31897         * modules/pty (configure.ac): Update.
31898
31899 2010-03-21  Bruno Haible  <bruno@clisp.org>
31900
31901         Tests for openpty: Make stricter.
31902         * tests/test-openpty.c (main): Add test of canonical processing and
31903         erase.
31904         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31905
31906         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31907         * lib/openpty.c (openpty): New replacement function.
31908         * lib/pty.in.h: Include <termios.h>.
31909         (openpty): Update declaration. Add comments.
31910         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31911         is not declared, arrange to provide the replacement. Check for _getpty
31912         and posix_openpt.
31913         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31914         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31915         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31916         * modules/pty-tests (test_pty_c___LDADD): New variable.
31917         * doc/glibc-functions/openpty.texi: More supported platforms.
31918
31919 2010-03-21  Bruno Haible  <bruno@clisp.org>
31920
31921         setenv: Tweaks.
31922         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31923         the test program.
31924         * doc/posix-functions/setenv.texi: Update platforms list.
31925
31926 2010-03-21  Bruno Haible  <bruno@clisp.org>
31927
31928         New module 'unlockpt'.
31929         * lib/unlockpt.c: New file, from glibc with modifications.
31930         * m4/unlockpt.m4: New file.
31931         * modules/unlockpt: New file.
31932         * lib/stdlib.in.h (unlockpt): New declaration.
31933         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31934         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31935         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31936         HAVE_UNLOCKPT.
31937         * doc/posix-functions/unlockpt.texi: Mention the new module.
31938         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31939         * config/srclist.txt: Add unlockpt.c (commented).
31940
31941 2010-03-21  Jim Meyering  <meyering@redhat.com>
31942
31943         maint.mk: prohibit inclusion of "intprops.h" without use
31944         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31945
31946 2010-03-21  Bruno Haible  <bruno@clisp.org>
31947
31948         New module 'grantpt'.
31949         * lib/grantpt.c: New file, from glibc with modifications.
31950         * m4/grantpt.m4: New file.
31951         * modules/grantpt: New file.
31952         * lib/stdlib.in.h (grantpt): New declaration.
31953         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31954         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31955         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31956         HAVE_GRANTPT.
31957         * doc/posix-functions/grantpt.texi: Mention the new module.
31958         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31959         * config/srclist.txt: Add grantpt.c (commented).
31960
31961 2010-03-21  Bruno Haible  <bruno@clisp.org>
31962
31963         New module 'pt_chown'.
31964         * lib/pt_chown.c: New file, from glibc with modifications.
31965         * lib/pty-private.h: New file, from glibc with modifications.
31966         * modules/pt_chown: New file.
31967         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31968
31969 2010-03-21  Bruno Haible  <bruno@clisp.org>
31970
31971         Tests for module 'ptsname'.
31972         * modules/ptsname-tests: New file.
31973         * tests/test-ptsname.c: New file.
31974
31975         New module 'ptsname'.
31976         * lib/ptsname.c: New file, from glibc with modifications.
31977         * m4/ptsname.m4: New file.
31978         * modules/ptsname: New file.
31979         * lib/stdlib.in.h (ptsname): New declaration.
31980         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31981         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31982         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31983         HAVE_PTSNAME.
31984         * doc/posix-functions/ptsname.texi: Mention the new module.
31985         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31986         * config/srclist.txt: Add ptsname.c (commented).
31987
31988 2010-03-21  Bruno Haible  <bruno@clisp.org>
31989
31990         Tests for module 'ttyname_r'.
31991         * modules/ttyname_r-tests: New file.
31992         * tests/test-ttyname_r.c: New file.
31993
31994         New module 'ttyname_r'.
31995         * lib/ttyname_r.c: New file.
31996         * m4/ttyname_r.m4: New file.
31997         * modules/ttyname_r: New file.
31998         * lib/unistd.in.h (ttyname_r): New declaration.
31999         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32000         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32001         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32002         HAVE_TTYNAME_R.
32003         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32004         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32005
32006 2010-03-20  Bruno Haible  <bruno@clisp.org>
32007
32008         signal: Undefine macro definitions in C++ mode.
32009         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32010         sigfillset): Undefine macro definitions from the system header in C++
32011         mode.
32012         Reported by John W. Eaton <jwe@gnu.org>.
32013
32014 2010-03-20  Bruno Haible  <bruno@clisp.org>
32015
32016         Ensure no #include statements inside extern "C" { ... }.
32017         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32018         contain #include statements.
32019         * lib/time.in.h: Likewise.
32020
32021 2010-03-20  Bruno Haible  <bruno@clisp.org>
32022
32023         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32024         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32025         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32026         Reported by John W. Eaton <jwe@gnu.org>.
32027
32028 2010-03-20  Bruno Haible  <bruno@clisp.org>
32029
32030         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32031         Reported by Jim Meyering.
32032
32033 2010-03-20  Bruno Haible  <bruno@clisp.org>
32034
32035         pipe: Set errno upon failure.
32036         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32037         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32038         errno value in error message.
32039
32040 2010-03-20  Bruno Haible  <bruno@clisp.org>
32041             Jim Meyering  <meyering@redhat.com>
32042
32043         lchown: Avoid "unused variable" warning.
32044         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32045
32046 2010-03-20  Bruno Haible  <bruno@clisp.org>
32047
32048         Work around unlink() bug on MacOS X 10.5.6.
32049         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32050         attempting to unlink a parent directory.
32051         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32052         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32053         activate for the replacement function.
32054         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32055
32056 2010-03-20  Bruno Haible  <bruno@clisp.org>
32057
32058         Fix link errors on Solaris 8.
32059         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32060         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32061
32062 2010-03-19  Jim Meyering  <meyering@redhat.com>
32063
32064         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32065         The _LIBC implementation of build_range_exp correctly honors the
32066         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32067         However, the non-_LIBC implementation would ignore that syntax-bit
32068         flag and return REG_ERANGE unconditionally.
32069         This change makes it honor that flag.
32070         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32071         Make two pointer parameters "const".
32072         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32073         (parse_bracket_exp): Update caller.
32074
32075         regex.m4: correct the reversed range endpoint ([b-a]) test
32076         * m4/regex.m4: When requiring that [b-a] evoke failure,
32077         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32078         test pass once again for x86-based systems.
32079
32080 2010-03-19  Bruno Haible  <bruno@clisp.org>
32081
32082         scandir: Fix link error on Solaris 8.
32083         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32084         macros.
32085
32086 2010-03-19  Bruno Haible  <bruno@clisp.org>
32087
32088         getusershell: Fix documentation.
32089         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32090         module.
32091         * doc/glibc-functions/setusershell.texi: Likewise.
32092
32093         getusershell: Provide declaration, missing on Solaris 9.
32094         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32095         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32096         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32097         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32099         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32100         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32101         HAVE_GETUSERSHELL.
32102         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32103
32104 2010-03-19  Bruno Haible  <bruno@clisp.org>
32105
32106         wctype: Provide iswblank function.
32107         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32108         exists and is fine.
32109         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32110         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32111         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32112         * doc/posix-functions/iswblank.texi: Update.
32113
32114 2010-03-19  Bruno Haible  <bruno@clisp.org>
32115
32116         Tests of module 'pty' in C++ mode.
32117         * modules/pty-tests: New file.
32118         * tests/test-pty-c++.cc: New file.
32119         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32120
32121 2010-03-19  Eric Blake  <eblake@redhat.com>
32122
32123         logb: fix documentation
32124         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32125         1.5 declaration bug.
32126
32127         forkpty, openpty: prefer glibc's const-safe prototype
32128         * lib/forkpty.c (rpl_forkpty): New file.
32129         * lib/openpty.c (rpl_openpty): Likewise.
32130         * modules/forkpty (Files): Distribute it.
32131         * modules/openpty (Files): Likewise.
32132         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32133         check...
32134         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32135         replacement for for non-const BSD signature.
32136         * modules/pty (Makefile.am): Substitute witnesses.
32137         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32138         * tests/test-forkpty.c: Update signature check.
32139         * tests/test-openpty.c: Likewise.
32140         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32141         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32142
32143         forkpty, openpty: split functions into new modules
32144         * modules/pty (Makefile.am): Substitute new witnesses.
32145         (Libraries): Move library detection...
32146         * modules/forkpty: ...into new module.
32147         * modules/openpty: Another new module.
32148         * modules/pty-tests: Rename and split...
32149         * modules/forkpty-tests: ...to this...
32150         * modules/openpty-tests: ...and this.
32151         * tests/test-pty.c: Rename and split...
32152         * tests/test-forkpty.c: ...to this...
32153         * tests/test-openpty.c: ...and this.
32154         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32155         (gl_PTY): Split library searching...
32156         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32157         (gl_FORKPTY, gl_OPENPTY): New macros.
32158         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32159         * NEWS: Mention the split.
32160         * MODULES.html.sh (Misc): Document the modules.
32161         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32162         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32163
32164         pty: improve replacement header
32165         * lib/pty.in.h: New file.
32166         * modules/pty (Files): Ship it.
32167         (Makefile.am): Always build replacement.
32168         * m4/pty.m4: Rename...
32169         * m4/pty_h.m4: ...to this.
32170         (gl_PTY): Modernize setting of witness macros; update check of
32171         forkpty to take proper advantage of cache.
32172         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32173
32174         getopt: avoid compiler warning
32175         * lib/getopt.c (attribute_hidden): Remove unused macro.
32176
32177 2010-03-18  Bruno Haible  <bruno@clisp.org>
32178
32179         Fix link errors on Solaris 8.
32180         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32181         * modules/search-tests (test_search_c___LDADD): Likewise.
32182         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32183         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32184         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32185         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32186         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32187         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32188         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32189
32190 2010-03-18  Bruno Haible  <bruno@clisp.org>
32191
32192         Fix bug introduced on 2010-03-14.
32193         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32194         (gl_SPAWN_H): Require it.
32195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32196         Reported by Simon Josefsson.
32197
32198 2010-03-18  Bruno Haible  <bruno@clisp.org>
32199
32200         Fix typo introduced on 2009-12-31.
32201         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32202         posix_spawn_file_actions_adddup2.
32203
32204 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32205         and Eric Blake  <eblake@redhat.com>
32206
32207         test-vc-list-files-git: make more robust
32208         * tests/test-vc-list-files-git.sh: Unset problematic environment
32209         variables.  Chain commands together.
32210
32211 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32212
32213         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32214         `AC_CHECK_DECL' invocation.
32215
32216 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32217
32218         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32219         appears before executable statements. Suggested by Petr Sumbera
32220         <Petr.Sumbera@Sun.COM>.
32221
32222 2010-03-14  Bruno Haible  <bruno@clisp.org>
32223
32224         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32225         portability problems. Instead use a simpler test.
32226         (main): Check that invalid arguments are rejected only on Linux.
32227
32228 2010-03-14  Bruno Haible  <bruno@clisp.org>
32229
32230         Fix bug introduced on 2009-12-31.
32231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32232         gl_PREREQ_SYS_H_WINSOCK2 always.
32233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32234         SYS_SOCKET_H variable.
32235         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32236         Update comments.
32237         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32241         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32242
32243 2010-03-14  Bruno Haible  <bruno@clisp.org>
32244
32245         Fix values returned by sinl, cosl.
32246         * lib/trigl.h: Add specification comments.
32247         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32248         that combines the values from the precomputed table with the values of
32249         the Chebyshev polynomials.
32250
32251 2010-03-14  Bruno Haible  <bruno@clisp.org>
32252
32253         Fix compilation error when modules 'posix_spawn[p]' are not used.
32254         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32256
32257 2010-03-14  Bruno Haible  <bruno@clisp.org>
32258
32259         Fix compilation error on mingw when module 'time_r' is not used.
32260         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32261         is 1.
32262         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32263         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32264         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32266
32267 2010-03-14  Bruno Haible  <bruno@clisp.org>
32268
32269         Fix compilation error with Sun C.
32270         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32271         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32272         instead of GCC specific ULONG_LONG_MAX.
32273         * lib/xstrtoll.c: Likewise.
32274         * lib/xstrtoull.c: Likewise.
32275
32276 2010-03-13  Bruno Haible  <bruno@clisp.org>
32277
32278         Allow the user to disable C++ code and tests.
32279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32280         (gl_PROG_ANSI_CXX): Require it.
32281
32282 2010-03-13  Bruno Haible  <bruno@clisp.org>
32283
32284         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32285         cases.
32286
32287 2010-03-13  Bruno Haible  <bruno@clisp.org>
32288
32289         Test that gnulib does not break the standard C++ headers.
32290         * tests/test-locale-c++2.cc: New file.
32291         * modules/locale-tests (Files): Add it.
32292         (Makefile.am): Compile it for test-locale-c++.
32293         * tests/test-math-c++2.cc: New file.
32294         * modules/math-tests (Files): Add it.
32295         (Makefile.am): Compile it for test-math-c++.
32296         * tests/test-signal-c++2.cc: New file.
32297         * modules/signal-tests (Files): Add it.
32298         (Makefile.am): Compile it for test-signal-c++.
32299         * tests/test-stdio-c++2.cc: New file.
32300         * modules/stdio-tests (Files): Add it.
32301         (Makefile.am): Compile it for test-stdio-c++.
32302         * tests/test-stdlib-c++2.cc: New file.
32303         * modules/stdlib-tests (Files): Add it.
32304         (Makefile.am): Compile it for test-stdlib-c++.
32305         * tests/test-string-c++2.cc: New file.
32306         * modules/string-tests (Files): Add it.
32307         (Makefile.am): Compile it for test-string-c++.
32308         * tests/test-time-c++2.cc: New file.
32309         * modules/time-tests (Files): Add it.
32310         (Makefile.am): Compile it for test-time-c++.
32311         Reported by John W. Eaton <jwe@gnu.org>.
32312
32313 2010-03-13  Bruno Haible  <bruno@clisp.org>
32314
32315         * gnulib-tool (func_usage): Clarify which options are available for
32316         --create-testdir and --create-megatestdir.
32317
32318 2010-03-13  Bruno Haible  <bruno@clisp.org>
32319
32320         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32321         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32322         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32323         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32324         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32325         when appropriate.
32326         Reported by Jim Meyering.
32327
32328 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32329
32330         * gnulib-tool (func_import): Explain origin of code.
32331
32332 2010-03-12  Bruno Haible  <bruno@clisp.org>
32333
32334         Fix problem with automake's definition of CXXLINK.
32335         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32336         Reported by Simon Josefsson and Ludovic Courtès.
32337
32338 2010-03-12  Bruno Haible  <bruno@clisp.org>
32339
32340         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32341         stable releases.
32342
32343 2010-03-11  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32346         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32347         whether the system provides one variant or multiple variants of the
32348         function.
32349         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32350         C++ compilers.
32351         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32352         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32353         Reported by Jim Meyering.
32354
32355 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32356
32357         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32358
32359 2010-03-08  Bruno Haible  <bruno@clisp.org>
32360
32361         gnulib-tool: Add support for --libtool in --create-testdir.
32362         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32363         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32364
32365 2010-03-08  Eric Blake  <eblake@redhat.com>
32366
32367         gnulib-tool.texi: mention possibility of git submodule
32368         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32369         submodules.
32370         * doc/.gitignore: Ignore another generated file.
32371
32372 2010-03-08  Karl Berry  <karl@gnu.org>
32373
32374         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32375         of committing gnulib files while skipping others.
32376
32377 2010-03-07  Bruno Haible  <bruno@clisp.org>
32378
32379         Tests of module 'wctype' in C++ mode.
32380         * tests/test-wctype-c++.cc: New file.
32381         * modules/wctype-tests (Files): Add it and tests/signature.h.
32382         (Depends-on): Add ansi-c++-opt.
32383         (Makefile.am): Arrange to compile and run test-wctype-c++.
32384
32385         Tests of module 'wchar' in C++ mode.
32386         * tests/test-wchar-c++.cc: New file.
32387         * modules/wchar-tests (Files): Add it and tests/signature.h.
32388         (Depends-on): Add ansi-c++-opt.
32389         (Makefile.am): Arrange to compile and run test-wchar-c++.
32390         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32391         gl_MODULE_INDICATOR.
32392
32393         Tests of module 'unistd' in C++ mode.
32394         * tests/test-unistd-c++.cc: New file.
32395         * modules/unistd-tests (Files): Add it and tests/signature.h.
32396         (Depends-on): Add ansi-c++-opt.
32397         (Makefile.am): Arrange to compile and run test-unistd-c++.
32398         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32399         gl_MODULE_INDICATOR.
32400
32401         Tests of module 'time' in C++ mode.
32402         * tests/test-time-c++.cc: New file.
32403         * modules/time-tests (Files): Add it and tests/signature.h.
32404         (Depends-on): Add ansi-c++-opt.
32405         (Makefile.am): Arrange to compile and run test-time-c++.
32406         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32407
32408         Tests of module 'sys_time' in C++ mode.
32409         * tests/test-sys_time-c++.cc: New file.
32410         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32411         (Depends-on): Add ansi-c++-opt.
32412         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32413         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32414         gl_MODULE_INDICATOR.
32415
32416         Tests of module 'sys_stat' in C++ mode.
32417         * tests/test-sys_stat-c++.cc: New file.
32418         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32419         (Depends-on): Add ansi-c++-opt.
32420         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32421         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32422         gl_MODULE_INDICATOR.
32423
32424         Tests of module 'sys_socket' in C++ mode.
32425         * tests/test-sys_socket-c++.cc: New file.
32426         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32427         (Depends-on): Add ansi-c++-opt.
32428         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32430         gl_MODULE_INDICATOR.
32431
32432         Tests of module 'sys_select' in C++ mode.
32433         * tests/test-sys_select-c++.cc: New file.
32434         * modules/sys_select-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_select-c++.
32437         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32438         gl_MODULE_INDICATOR.
32439
32440         Tests of module 'sys_ioctl' in C++ mode.
32441         * tests/test-sys_ioctl-c++.cc: New file.
32442         * modules/sys_ioctl-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_ioctl-c++.
32445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32446         gl_MODULE_INDICATOR.
32447
32448         Tests of module 'string' in C++ mode.
32449         * tests/test-string-c++.cc: New file.
32450         * modules/string-tests (Files): Add it and tests/signature.h.
32451         (Depends-on): Add ansi-c++-opt.
32452         (Makefile.am): Arrange to compile and run test-string-c++.
32453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32454         gl_MODULE_INDICATOR.
32455
32456         Tests of module 'stdlib' in C++ mode.
32457         * tests/test-stdlib-c++.cc: New file.
32458         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32459         (Depends-on): Add ansi-c++-opt.
32460         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32462         gl_MODULE_INDICATOR.
32463
32464         Tests of module 'stdio' in C++ mode.
32465         * tests/test-stdio-c++.cc: New file.
32466         * modules/stdio-tests (Files): Add it and tests/signature.h.
32467         (Depends-on): Add ansi-c++-opt.
32468         (Makefile.am): Arrange to compile and run test-stdio-c++.
32469         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32470         gl_MODULE_INDICATOR.
32471
32472         Tests of module 'spawn' in C++ mode.
32473         * tests/test-spawn-c++.cc: New file.
32474         * modules/spawn-tests (Files): Add it and tests/signature.h.
32475         (Depends-on): Add ansi-c++-opt.
32476         (Makefile.am): Arrange to compile and run test-spawn-c++.
32477         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32478         gl_MODULE_INDICATOR.
32479
32480         Tests of module 'signal' in C++ mode.
32481         * tests/test-signal-c++.cc: New file.
32482         * modules/signal-tests (Files): Add it and tests/signature.h.
32483         (Depends-on): Add ansi-c++-opt.
32484         (Makefile.am): Arrange to compile and run test-signal-c++.
32485         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32486         gl_MODULE_INDICATOR.
32487
32488         Tests of module 'search' in C++ mode.
32489         * tests/test-search-c++.cc: New file.
32490         * modules/search-tests (Files): Add it and tests/signature.h.
32491         (Depends-on): Add ansi-c++-opt.
32492         (Makefile.am): Arrange to compile and run test-search-c++.
32493         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32494         gl_MODULE_INDICATOR.
32495
32496         Tests of module 'math' in C++ mode.
32497         * tests/test-math-c++.cc: New file.
32498         * modules/math-tests (Files): Add it and tests/signature.h.
32499         (Depends-on): Add ansi-c++-opt.
32500         (Makefile.am): Arrange to compile and run test-math-c++.
32501         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32502
32503         Tests of module 'locale' in C++ mode.
32504         * tests/test-locale-c++.cc: New file.
32505         * modules/locale-tests (Files): Add it and tests/signature.h.
32506         (Depends-on): Add ansi-c++-opt.
32507         (Makefile.am): Arrange to compile and run test-locale-c++.
32508         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32509         gl_MODULE_INDICATOR.
32510
32511         Tests of module 'langinfo' in C++ mode.
32512         * tests/test-langinfo-c++.cc: New file.
32513         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32514         (Depends-on): Add ansi-c++-opt.
32515         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32516         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32517         gl_MODULE_INDICATOR.
32518
32519         Tests of module 'iconv-h' in C++ mode.
32520         * tests/test-iconv-h-c++.cc: New file.
32521         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32522         (Depends-on): Add ansi-c++-opt.
32523         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32524
32525         Tests of module 'glob' in C++ mode.
32526         * tests/test-glob-c++.cc: New file.
32527         * modules/glob-tests (Files): Add it.
32528         (Depends-on): Add ansi-c++-opt.
32529         (Makefile.am): Arrange to compile and run test-glob-c++.
32530
32531         Tests of module 'fcntl-h' in C++ mode.
32532         * tests/test-fcntl-h-c++.cc: New file.
32533         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32534         (Depends-on): Add ansi-c++-opt.
32535         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32536         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32537         gl_MODULE_INDICATOR.
32538
32539         Tests of module 'dirent' in C++ mode.
32540         * tests/test-dirent-c++.cc: New file.
32541         * modules/dirent-tests (Files): Add it and tests/signature.h.
32542         (Depends-on): Add ansi-c++-opt.
32543         (Makefile.am): Arrange to compile and run test-dirent-c++.
32544         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32545         gl_MODULE_INDICATOR.
32546
32547         New module 'ansi-c++-opt'.
32548         * modules/ansi-c++-opt: New file.
32549         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32550
32551         Document C++ namespace mode.
32552         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32553
32554         wctype: Avoid #define replacements in C++ mode.
32555         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32556         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32557         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32558         In C++, define a namespaced alias symbol.
32559         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32560         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32561         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32562         rule.
32563
32564         wchar: Avoid #define replacements in C++ mode.
32565         * lib/wchar.in.h: Include c++defs.h.
32566         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32567         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32568         symbol.
32569         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32570         * modules/wchar (Depends-on): Add c++defs.
32571         (Makefile.am): Update wchar.h rule.
32572
32573         unistd: Avoid #define replacements in C++ mode.
32574         * lib/unistd.in.h: Include c++defs.h.
32575         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32576         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32577         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32578         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32579         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32580         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32581         symbol.
32582         (environ): Update.
32583         * modules/unistd (Depends-on): Add c++defs.
32584         (Makefile.am): Update unistd.h rule.
32585
32586         time: Avoid #define replacements in C++ mode.
32587         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32588         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32589         define a namespaced alias symbol.
32590         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32591         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32592         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32593         * modules/time (Depends-on): Add c++defs, warn-on-use.
32594         (Makefile.am): Update time.h rule.
32595         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32596         * modules/nanosleep (configure.ac): Likewise.
32597         * modules/strptime (configure.ac): Likewise.
32598         * modules/timegm (configure.ac): Likewise.
32599
32600         sys_time: Avoid #define replacements in C++ mode.
32601         * lib/sys_time.in.h: Include c++defs.h.
32602         (gettimeofday): In C++, define a namespaced alias symbol.
32603         * modules/sys_time (Depends-on): Add c++defs.
32604         (Makefile.am): Update sys/time.h rule.
32605
32606         sys_stat: Avoid #define replacements in C++ mode.
32607         * lib/sys_stat.in.h: Include c++defs.h.
32608         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32609         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32610         namespaced alias symbol.
32611         In C++, define a namespaced alias symbol.
32612         * modules/sys_stat (Depends-on): Add c++defs.
32613         (Makefile.am): Update sys/stat.h rule.
32614
32615         sys_socket: Avoid #define replacements in C++ mode.
32616         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32617         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32618         definitions also when the system has a <sys/socket.h>.
32619         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32620         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32621         In C++, define a namespaced alias symbol.
32622         * modules/sys_socket (Depends-on): Add c++defs.
32623         (Makefile.am): Update sys/socket.h rule.
32624
32625         sys_select: Avoid #define replacements in C++ mode.
32626         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32627         definitions also when the system has a <sys/select.h>.
32628         (select): In C++, define a namespaced alias symbol.
32629         * modules/sys_select (Depends-on): Add c++defs.
32630         (Makefile.am): Update sys/select.h rule.
32631
32632         sys_ioctl: Avoid #define replacements in C++ mode.
32633         * lib/sys_ioctl.in.h: Include c++defs.h.
32634         (ioctl): In C++, define a namespaced alias symbol.
32635         * modules/sys_ioctl (Depends-on): Add c++defs.
32636         (Makefile.am): Update sys/ioctl.h rule.
32637
32638         string: Avoid #define replacements in C++ mode.
32639         * lib/string.in.h: Include c++defs.h.
32640         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32641         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32642         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32643         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32644         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32645         * modules/string (Depends-on): Add c++defs.
32646         (Makefile.am): Update string.h rule.
32647
32648         stdlib: Avoid #define replacements in C++ mode.
32649         * lib/stdlib.in.h: Include c++defs.h.
32650         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32651         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32652         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32653         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32654         symbol.
32655         * modules/stdlib (Depends-on): Add c++defs.
32656         (Makefile.am): Update stdlib.h rule.
32657
32658         stdio: Avoid #define replacements in C++ mode.
32659         * lib/stdio.in.h: Include c++defs.h.
32660         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32661         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32662         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32663         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32664         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32665         namespaced alias symbol.
32666         * modules/stdio (Depends-on): Add c++defs.
32667         (Makefile.am): Update stdio.h rule.
32668
32669         spawn: Avoid #define replacements in C++ mode.
32670         * lib/spawn.in.h: Include c++defs.h.
32671         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32672         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32673         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32674         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32675         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32676         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32677         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32678         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32679         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32680         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32681         In C++, define a namespaced alias symbol.
32682         * modules/spawn (Depends-on): Add c++defs.
32683         (Makefile.am): Update spawn.h rule.
32684
32685         signal: Avoid #define replacements in C++ mode.
32686         * lib/signal.in.h: Include c++defs.h.
32687         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32688         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32689         namespaced alias symbol.
32690         * modules/signal (Depends-on): Add c++defs.
32691         (Makefile.am): Update signal.h rule.
32692
32693         search: Avoid #define replacements in C++ mode.
32694         * lib/search.in.h: Include c++defs.h.
32695         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32696         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32697         symbol.
32698         * modules/search (Depends-on): Add c++defs.
32699         (Makefile.am): Update search.h rule.
32700
32701         math: Avoid #define replacements in C++ mode.
32702         * lib/math.in.h: Include c++defs.h.
32703         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32704         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32705         trunc, truncl): In C++, define a namespaced alias symbol.
32706         * modules/math (Depends-on): Add c++defs.
32707         (Makefile.am): Update math.h rule.
32708
32709         locale: Avoid #define replacements in C++ mode.
32710         * lib/locale.in.h: Include c++defs.h.
32711         (duplocale): In C++, define a namespaced alias symbol.
32712         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32713         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32714         * modules/locale (Depends-on): Add c++defs.
32715         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32716
32717         langinfo: Avoid #define replacements in C++ mode.
32718         * lib/langinfo.in.h: Include c++defs.h.
32719         (nl_langinfo): In C++, define a namespaced alias symbol.
32720         * modules/langinfo (Depends-on): Add c++defs.
32721         (Makefile.am): Update langinfo.h rule.
32722
32723         iconv-h: Avoid #define replacements in C++ mode.
32724         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32725         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32726         symbol.
32727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32728         whenever iconv is present.
32729         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32730         (Makefile.am): Update iconv.h rule.
32731
32732         glob: Avoid #define replacements in C++ mode.
32733         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32734         (_gl_glob_errfunc_fn): New type.
32735         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32736         symbol.
32737         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32738         (Makefile.am): Update glob.h rule.
32739
32740         fcntl-h: Avoid #define replacements in C++ mode.
32741         * lib/fcntl.in.h: Include c++defs.h.
32742         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32743         * modules/fcntl-h (Depends-on): Add c++defs.
32744         (Makefile.am): Update fcntl.h rule.
32745
32746         dirent: Avoid #define replacements in C++ mode.
32747         * lib/dirent.in.h: Include c++defs.h.
32748         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32749         namespaced alias symbol.
32750         (dirfd): Update declaration.
32751         * modules/dirent (Depends-on): Add c++defs.
32752         (Makefile.am): Update dirent.h rule.
32753
32754         ctype: Make it usable in C++ code.
32755         * lib/ctype.in.h: Include c++defs.h.
32756         (isblank): Declare as extern "C".
32757         * modules/ctype (Depends-on): Add c++defs.
32758         (Makefile.am): Update ctype.h rule.
32759
32760         New module 'c++defs'.
32761         * modules/c++defs: New file.
32762         * build-aux/c++defs.h: New file.
32763         Reported by John W. Eaton <jwe@gnu.org>.
32764
32765 2010-03-07  Bruno Haible  <bruno@clisp.org>
32766
32767         logb: Provide missing declaration for Cygwin.
32768         * lib/math.in.h (logb): New declaration.
32769         * m4/logb.m4: New file.
32770         * modules/logb (Files): Add m4/logb.m4.
32771         (Depends-on): Add math.
32772         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32773         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32775         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32776         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32777
32778 2010-03-07  Bruno Haible  <bruno@clisp.org>
32779
32780         Fix test-cond link error.
32781         * tests/test-cond.c: Include <stdio.h>.
32782
32783 2010-03-07  Bruno Haible  <bruno@clisp.org>
32784
32785         Fix test-dirent-safer link error.
32786         * modules/dirent-safer-tests (Makefile.am): Define
32787         test_dirent_safer_LDADD.
32788
32789 2010-03-07  Bruno Haible  <bruno@clisp.org>
32790
32791         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32792         among default module list.
32793
32794 2010-03-07  Bruno Haible  <bruno@clisp.org>
32795
32796         Fix link error on platforms with GNU libiconv.
32797         * modules/unistr/u8-strcoll-tests (Makefile): Define
32798         test_u8_strcoll_LDADD.
32799         * modules/unistr/u16-strcoll-tests (Makefile): Define
32800         test_u16_strcoll_LDADD.
32801         * modules/unistr/u32-strcoll-tests (Makefile): Define
32802         test_u32_strcoll_LDADD.
32803
32804 2010-03-07  Bruno Haible  <bruno@clisp.org>
32805
32806         Use POSIX declarations for socket functions.
32807         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32808         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32809         rpl_sendto): Change declaration to match POSIX.
32810         * lib/connect.c (rpl_connect): Likewise.
32811         * lib/accept.c (rpl_accept): Likewise.
32812         * lib/bind.c (rpl_bind): Likewise.
32813         * lib/getpeername.c (rpl_getpeername): Likewise.
32814         * lib/getsockname.c (rpl_getsockname): Likewise.
32815         * lib/recv.c (rpl_recv): Likewise.
32816         * lib/send.c (rpl_send): Likewise.
32817         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32818         * lib/sendto.c (rpl_sendto): Likewise.
32819
32820 2010-03-06  Bruno Haible  <bruno@clisp.org>
32821
32822         Clarify access, euidaccess, faccessat.
32823         * doc/posix-functions/faccessat.texi: Mention security problem under
32824         "Other problems", not "Portability problems".
32825         * doc/posix-functions/access.texi: Likewise. Mention a related security
32826         problem.
32827         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32828         * lib/euidaccess.c: Add comments about platforms.
32829         * lib/unistd.in.h (access, euidaccess): Add warnings.
32830
32831 2010-03-07  Bruno Haible  <bruno@clisp.org>
32832
32833         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32834         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32835         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32836         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32837         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32838         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32839         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32840         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32841         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32843         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32844         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32845         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32846         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32847         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32848         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32849         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32850         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32851         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32852         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32853         Likewise.
32854         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32855         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32856         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32857         Likewise.
32858         * tests/test-spawn.c (main): Make it work when
32859         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32860
32861 2010-03-07  Bruno Haible  <bruno@clisp.org>
32862
32863         Fix incorrect Makefile.am generation in German locale.
32864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32865         Execute sed command with character range in C locale.
32866
32867 2010-03-06  Bruno Haible  <bruno@clisp.org>
32868
32869         Tests for module 'iconv-h'.
32870         * modules/iconv-h-tests: New file.
32871         * tests/test-iconv-h.c: New file.
32872
32873         New module 'iconv-h'.
32874         * modules/iconv-h: New file.
32875         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32876         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32877         (configure.ac): Remove gl_ICONV_H.
32878         (Makefile.am): Remove rule for iconv.h.
32879
32880 2010-03-06  Bruno Haible  <bruno@clisp.org>
32881
32882         More consistent naming of *.m4 files.
32883         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32884         * modules/wctype (Files): Update.
32885
32886         More consistent naming of *.m4 files.
32887         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32888         * modules/wchar (Files): Update.
32889
32890 2010-03-06  Jim Meyering  <meyering@redhat.com>
32891
32892         euidaccess: relax license to LGPLv2+
32893         * modules/euidaccess (License): Relax to LGPLv2+.
32894
32895 2010-03-06  Bruno Haible  <bruno@clisp.org>
32896
32897         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32898         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32899         (Makefile.am): Augment lib_SOURCES instead.
32900
32901 2010-03-04  Jim Meyering  <meyering@redhat.com>
32902
32903         utime: remove obsolete module
32904         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32905         unnecessary for years, and has been marked as obsolete for 10 months.
32906         * modules/utime: Remove file.
32907         * lib/utime.c: Remove file.
32908         * m4/utime.m4: Remove file.
32909         * m4/utimes-null.m4: Remove file.
32910         * doc/posix-functions/utime.texi (utime): Remove reference to
32911         the module.  Move the sole "fixed by gnulib" item into the
32912         "problems not fixed by Gnulib" list.
32913         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32914
32915 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32916
32917         * modules/exit (License): Relax license to LGPLv2+.
32918         (Status): Mark as obsolete.
32919         * NEWS: Mention deprecated 'exit' module.
32920         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32921         of now obsolete 'exit'.
32922
32923 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32924
32925         fts-lgpl: remove unused module
32926         * modules/fts-lgpl: Remove.
32927         * MODULES.html.sh (func_all_modules): Adjust.
32928         * check-module (find_included_lib_files): Adjust.
32929         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32930
32931 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32932
32933         copy-acl: enhance Solaris ACL error handling
32934         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32935         * lib/set-mode-acl.c (qset_acl): Likewise.
32936
32937 2010-03-02  Bruno Haible  <bruno@clisp.org>
32938
32939         spawn: Don't override the system defined values on FreeBSD 8.
32940         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32941         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32942         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32943         if HAVE_POSIX_SPAWN is 1.
32944         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32945
32946 2010-03-01  Bruno Haible  <bruno@clisp.org>
32947
32948         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32949         regarding Automake.
32950
32951 2010-02-25  Bruno Haible  <bruno@clisp.org>
32952
32953         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32954         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32955         setting, not afterwards.
32956         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32957
32958 2010-02-24  Eric Blake  <eblake@redhat.com>
32959
32960         bootstrap, git-version-gen: use timestamp
32961         * build-aux/git-version-gen (scriptversion): Force UTC.
32962         * build-aux/bootstrap (scriptversion): New variable.
32963
32964         bootstrap: allow older git
32965         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32966         older than 1.6.4.  Requested by the libvirt project.
32967
32968 2010-02-23  Eric Blake  <eblake@redhat.com>
32969
32970         warn-on-use: work with old autoconf
32971         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32972         AS_VAR semantics of autoconf 2.60.
32973         Reported by Bruno Haible.
32974
32975         bootstrap: improve some comments
32976         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32977         clarification comments.
32978
32979         gettimeofday: provide correct function
32980         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32981         when replacement is declared, otherwise provide gettimeofday.
32982         Reported by Michael Goffioul.
32983
32984 2010-02-23  Jim Meyering  <meyering@redhat.com>
32985
32986         lib-ignore: relax license to "unlimited", not LGPLv2+
32987         * modules/lib-ignore (License): Relax to "unlimited".
32988
32989 2010-02-23  Jim Meyering  <meyering@redhat.com>
32990
32991         lib-ignore: relax license to LGPLv2+
32992         * modules/lib-ignore (License): Relax to LGPLv2+.
32993
32994 2010-02-22  Eric Blake  <eblake@redhat.com>
32995
32996         lseek: avoid bash 3.2 broken pipe bug
32997         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32998         warning from bash 3.2.
32999         Reported by Ben Pfaff, with analysis from Bruno Haible.
33000
33001         bootstrap: support non-FSF copyright holder
33002         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33003         bootstrap.conf override of COPYRIGHT_HOLDER.
33004         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33005
33006         bootstrap: interoperate with gettext 0.14.1
33007         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33008
33009         bootstrap: allow for alternate submodule location
33010         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33011         hardcoding submodule location.
33012         (gnulib_mk): Allow direct use of Makefile.am.
33013
33014         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33015         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33016         rather than reconfiguring where the submodule points.
33017
33018         gettimeofday: restore support for platforms that lack function
33019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33020         replacement if function is missing.
33021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33022         * modules/sys_time (Makefile.am): Substitute it.
33023         * lib/sys_time.in.h (gettimeofday): Check it.
33024         Reported by Michael Goffioul.
33025
33026 2010-02-21  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/stdio.in.h (obstack_printf): Fix typo.
33029
33030 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33031
33032         vc-list-files: use bzr ls's -R option
33033         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33034         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33035
33036 2010-02-21  Jim Meyering  <meyering@redhat.com>
33037
33038         init.sh: fix EXEEXT shims to work also for names like test-prog
33039         * tests/init.sh: Re-exec a better shell, when needed.
33040         If the current shell lacks support for posix $(...), an init.sh-using
33041         test will now try to find a shell that supports that.  If EXEEXT is
33042         nonempty, we also require support for hyphen-in-alias-name and shell
33043         substitutions like ${var#glob}.  Failure to find such a shell results
33044         in a skipped test.
33045
33046 2010-02-21  Bruno Haible  <bruno@clisp.org>
33047
33048         Really work around around "broken pipe" error message from bash 3.2.
33049         * gnulib-tool (func_reset_sigpipe): Remove function.
33050         (echo): In bash 3.2, define to a function that uses printf.
33051         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33052
33053 2010-02-20  Bruno Haible  <bruno@clisp.org>
33054
33055         Restore support for automake 1.9.6 with autoconf 2.61.
33056         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33057         Reported by James Youngman <jay@gnu.org>.
33058
33059 2010-02-20  Bruno Haible  <bruno@clisp.org>
33060
33061         Improve *printf warning condition.
33062         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33063         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33064         and the function is overridden due to SIGPIPE emulation.
33065
33066 2010-02-20  Bruno Haible  <bruno@clisp.org>
33067
33068         * lib/stdio.in.h: Tweak comments.
33069
33070 2010-02-19  Bruno Haible  <bruno@clisp.org>
33071
33072         Make it easier to find modules. New gnulib-tool option '--find'.
33073         * gnulib-tool: New option --find.
33074         (func_usage): Document it.
33075         (func_sanitize_modulelist): New function, extracted from
33076         func_all_modules.
33077         (func_all_modules): Invoke it.
33078         * doc/gnulib-tool.texi (Which modules?): New node.
33079
33080 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33081
33082         * lib/sys_select.in.h: Provide select replacement even if
33083         sys/select.h exists on a system, for Interix.
33084
33085 2010-02-18  Jim Meyering  <meyering@redhat.com>
33086
33087         init.sh: don't use $(...) just yet
33088         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33089         to accommodate e.g., Solaris' /bin/sh.
33090
33091 2010-02-17  Bruno Haible  <bruno@clisp.org>
33092
33093         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33094         Reported by Ludovic Courtès <ludo@gnu.org>.
33095
33096 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33097
33098         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33099         linking with -lintl.
33100
33101 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33102
33103         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33104         if not provided by the system's netdb.h.  Reported by
33105         ludo@gnu.org (Ludovic Courtès).
33106
33107 2010-02-15  Jim Meyering  <meyering@redhat.com>
33108
33109         init.sh: improve portability and efficiency
33110         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33111         "dummy" in a for loop.
33112         Use '!', not '^' to select the complement of a character set used
33113         in a "case" statement.
33114         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33115         Suggestions from Eric Blake.
33116
33117         init.sh: automatically accommodate programs with the .exe suffix
33118         Automatically arrange for an invocation of "prog" to execute the
33119         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33120         may use the simpler "prog", yet still work when built on a system
33121         that requires specifying the added suffix.
33122         Do this by constructing a function named "prog" that invokes
33123         "prog.exe" for each .exe file in selected directories.
33124         * tests/init.sh (find_exe_basenames_): New function.
33125         (create_exe_shim_functions_): New function.
33126         (path_prepend_): Use it.
33127
33128         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33129         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33130         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33131
33132 2010-02-14  Jim Meyering  <meyering@redhat.com>
33133
33134         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33135         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33136         (sc_prohibit_hash_pjw_without_use): New rule.
33137
33138         maint.mk: allow the default upload destination dir to be overridden
33139         * top/maint.mk (upload_dest_dir_): Define with a default that
33140         preserves the status quo.
33141         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33142         Reported by Peter Simons.
33143
33144         maint.mk: prohibit inclusion of "hash.h" without_use
33145         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33146
33147 2010-02-10  Jim Meyering  <meyering@redhat.com>
33148
33149         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33150         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33151
33152 2010-02-09  Eric Blake  <ebb9@byu.net>
33153         and Bruno Haible  <bruno@clisp.org>
33154
33155         obstack-printf-posix: ensure declaration
33156         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33157         extracted from gl_FUNC_OBSTACK_PRINTF.
33158         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33160         Likewise.
33161         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33162         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33163         0.
33164
33165 2010-02-08  Bruno Haible  <bruno@clisp.org>
33166
33167         gnulib-tool: Fix typo in 2010-02-07 commit.
33168         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33169         Reported by Eric Blake.
33170
33171 2010-02-07  Bruno Haible  <bruno@clisp.org>
33172
33173         gnulib-tool: Fix up caching patches.
33174         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33175         option --no-cache. Use associative arrays when supported by the shell.
33176         (sed_comments): New variable.
33177         (modcache): Renamed from do_cache.
33178         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33179         abbreviate unnecessarily.
33180         (have_associative): New variable.
33181         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33182         way also for ksh and zsh.
33183         (func_init_sed_convert_to_cache_statements): New function, extracted
33184         from func_cache_lookup_module. Add support for associative arrays.
33185         Don't set the c_MODULE_cached variable here. Ignore all lines before
33186         the first field header. Remove only the final newline, not all trailing
33187         newlines. Support empty fields correctly. Limit the use of 'eval' to
33188         assignments.
33189         (func_get_description, func_get_status, func_get_notice,
33190         func_get_applicability, func_get_filelist, func_get_dependencies,
33191         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33192         func_get_automake_snippet, func_get_include_directive,
33193         func_get_link_directive, func_get_license, func_get_maintainer):
33194         Update documentation. List the unoptimized code first. Add support for
33195         associative arrays. Limit the use of 'eval' to assignments.
33196         (func_get_applicability): Undo stylistic pessimisations.
33197         (func_get_automake_snippet, func_get_include_directive): Reduce code
33198         duplication.
33199         (func_modules_transitive_closure, func_modules_add_dummy,
33200         func_modules_notice, func_modules_to_filelist, func_add_file,
33201         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33202         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33203         func_create_testdir, func_create_megatestdir): Update documentation.
33204
33205 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33206
33207         * gnulib-tool (func_cache_lookup_module): Store the module name
33208         belonging to the cache variable; error out if two different
33209         module names map to the same cache variable name.
33210
33211 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33212
33213         gnulib-tool: Make caching optional.
33214         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33215         Update matching short versions of --no-changelog.
33216         (func_usage): Update.
33217         (sed_extract_cache_prog): Renamed from ...
33218         (sed_extract_prog): ... this; revert to old extraction script.
33219         (func_get_description, func_get_status)
33220         (func_get_notice, func_get_applicability, func_get_filelist)
33221         (func_get_dependencies, func_get_autoconf_early_snippet)
33222         (func_get_autoconf_snippet, func_get_automake_snippet)
33223         (func_get_include_directive, func_get_link_directive)
33224         (func_get_license, func_get_maintainer): If $do_cache is false,
33225         use old, non-caching extraction scripts.
33226         Suggestion by Bruno Haible.
33227
33228 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33229
33230         gnulib-tool: cache module metainformation.
33231         * gnulib-tool (sed_extract_prog): Match newline before each
33232         header, and rewrite header to a shell variable suffix.
33233         (func_cache_var, func_cache_lookup_module): New functions,
33234         to turn a module name into a cache variable prefix, and to
33235         look up and cache module metainformation.
33236         (func_get_description, func_get_status)
33237         (func_get_notice, func_get_applicability, func_get_filelist)
33238         (func_get_dependencies, func_get_autoconf_early_snippet)
33239         (func_get_autoconf_snippet, func_get_automake_snippet)
33240         (func_get_include_directive, func_get_link_directive)
33241         (func_get_license, func_get_maintainer): Use
33242         func_cache_lookup_module.
33243
33244 2010-02-07  Bruno Haible  <bruno@clisp.org>
33245
33246         fnctl: Fix missing dependency.
33247         * modules/fcntl (Depends-on): Add getdtablesize.
33248         Reported by John W. Eaton <jwe@gnu.org>.
33249
33250 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33251
33252         Argp: fix recognition of short alias options.
33253
33254         * lib/argp-parse.c (convert_options): Fix improper use of
33255         `|' between character values.
33256         * tests/test-argp.c (group1_option): New alias option
33257         --read (-r).
33258         (group1_parser): Special handling for 'r'.
33259         (test15): New test case.
33260         (test_fun): Add test15.
33261         * tests/test-argp-2.sh: Update expected --help and --usage
33262         outputs.
33263
33264 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33265
33266         * tests/test-argp.c: Fix indentation.
33267
33268 2010-02-04  Eric Blake  <ebb9@byu.net>
33269
33270         gettimeofday: expose type of second argument
33271         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33272         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33273         * tests/test-gettimeofday.c: Use it to silence warning.
33274         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33275         the issue.
33276
33277 2010-02-03  Jim Meyering  <meyering@redhat.com>
33278
33279         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33280         * lib/regcomp.c (TYPE_SIGNED): Define.
33281         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33282
33283         regcomp.c: avoid a new -Wshadow warning
33284         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33285
33286 2010-02-01  Jim Meyering  <meyering@redhat.com>
33287
33288         removing useless parentheses in cpp #define directives
33289         For motivation, see commit c0221df4, "define STREQ(a,b)
33290         consistently, removing useless parentheses"
33291         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33292         * lib/mountlist.c (MNT_IGNORE): Likewise.
33293         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33294
33295 2010-02-01  Eric Blake  <ebb9@byu.net>
33296
33297         sys_time: use link-warning
33298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33299         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33300         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33301         * modules/sys_time (Depends-on): Add warn-on-use.
33302         (Makefile.am): Always build replacement.
33303         (configure.ac): Update substitutions.
33304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33305         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33306         bother with SYS_TIME_H.
33307         * modules/gettimeofday (configure.ac): Declare indicator.
33308         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33309         in use.
33310
33311         closein-tests: silence compiler warning
33312         * tests/test-closein.c (main): Ignore fread result.
33313         * modules/closein-tests (Depends-on): Add ignore-value.
33314
33315         tests: silence warning about system return
33316         * tests/test-areadlink-with-size.c (main): Ignore system result.
33317         * tests/test-areadlink.c (main): Likewise.
33318         * tests/test-areadlinkat-with-size.c (main): Likewise.
33319         * tests/test-areadlinkat.c (main): Likewise.
33320         * tests/test-canonicalize-lgpl.c (main): Likewise.
33321         * tests/test-canonicalize.c (main): Likewise.
33322         * tests/test-chown.c (main): Likewise.
33323         * tests/test-fchownat.c (main): Likewise.
33324         * tests/test-fdutimensat.c (main): Likewise.
33325         * tests/test-fstatat.c (main): Likewise.
33326         * tests/test-futimens.c (main): Likewise.
33327         * tests/test-lchown.c (main): Likewise.
33328         * tests/test-link.c (main): Likewise.
33329         * tests/test-linkat.c (main): Likewise.
33330         * tests/test-lstat.c (main): Likewise.
33331         * tests/test-mkdir.c (main): Likewise.
33332         * tests/test-mkdirat.c (main): Likewise.
33333         * tests/test-mkfifo.c (main): Likewise.
33334         * tests/test-mkfifoat.c (main): Likewise.
33335         * tests/test-mknod.c (main): Likewise.
33336         * tests/test-readlink.c (main): Likewise.
33337         * tests/test-remove.c (main): Likewise.
33338         * tests/test-rename.c (main): Likewise.
33339         * tests/test-renameat.c (main): Likewise.
33340         * tests/test-rmdir.c (main): Likewise.
33341         * tests/test-symlink.c (main): Likewise.
33342         * tests/test-symlinkat.c (main): Likewise.
33343         * tests/test-unlink.c (main): Likewise.
33344         * tests/test-unlinkat.c (main): Likewise.
33345         * tests/test-utimens.c (main): Likewise.
33346         * tests/test-utimensat.c (main): Likewise.
33347         * modules/areadlink-tests (Depends-on): Add ignore-value.
33348         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33349         * modules/areadlinkat-tests (Depends-on): Likewise.
33350         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33351         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33352         * modules/canonicalize-tests (Depends-on): Likewise.
33353         * modules/chown-tests (Depends-on): Likewise.
33354         * modules/fdutimensat-tests (Depends-on): Likewise.
33355         * modules/futimens-tests (Depends-on): Likewise.
33356         * modules/lchown-tests (Depends-on): Likewise.
33357         * modules/link-tests (Depends-on): Likewise.
33358         * modules/linkat-tests (Depends-on): Likewise.
33359         * modules/lstat-tests (Depends-on): Likewise.
33360         * modules/mkdir-tests (Depends-on): Likewise.
33361         * modules/mkfifo-tests (Depends-on): Likewise.
33362         * modules/mkfifoat-tests (Depends-on): Likewise.
33363         * modules/mknod-tests (Depends-on): Likewise.
33364         * modules/openat-tests (Depends-on): Likewise.
33365         * modules/readlink-tests (Depends-on): Likewise.
33366         * modules/remove-tests (Depends-on): Likewise.
33367         * modules/rename-tests (Depends-on): Likewise.
33368         * modules/renameat-tests (Depends-on): Likewise.
33369         * modules/rmdir-tests (Depends-on): Likewise.
33370         * modules/symlink-tests (Depends-on): Likewise.
33371         * modules/symlinkat-tests (Depends-on): Likewise.
33372         * modules/unlink-tests (Depends-on): Likewise.
33373         * modules/utimens-tests (Depends-on): Likewise.
33374         * modules/utimensat-tests (Depends-on): Likewise.
33375
33376 2010-01-31  Bruno Haible  <bruno@clisp.org>
33377
33378         Perform the same test for many <math.h> functions.
33379         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33380         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33381         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33382         of gl_MATHFUNC.
33383         * modules/acos (configure.ac): Likewise.
33384         * modules/asin (configure.ac): Likewise.
33385         * modules/atan (configure.ac): Likewise.
33386         * modules/atan2 (configure.ac): Likewise.
33387         * modules/cbrt (configure.ac): Likewise.
33388         * modules/copysign (configure.ac): Likewise.
33389         * modules/cos (configure.ac): Likewise.
33390         * modules/cosh (configure.ac): Likewise.
33391         * modules/erf (configure.ac): Likewise.
33392         * modules/erfc (configure.ac): Likewise.
33393         * modules/exp (configure.ac): Likewise.
33394         * modules/fmod (configure.ac): Likewise.
33395         * modules/hypot (configure.ac): Likewise.
33396         * modules/j0 (configure.ac): Likewise.
33397         * modules/j1 (configure.ac): Likewise.
33398         * modules/jn (configure.ac): Likewise.
33399         * modules/lgamma (configure.ac): Likewise.
33400         * modules/log (configure.ac): Likewise.
33401         * modules/log10 (configure.ac): Likewise.
33402         * modules/log1p (configure.ac): Likewise.
33403         * modules/pow (configure.ac): Likewise.
33404         * modules/remainder (configure.ac): Likewise.
33405         * modules/sin (configure.ac): Likewise.
33406         * modules/sinh (configure.ac): Likewise.
33407         * modules/tan (configure.ac): Likewise.
33408         * modules/tanh (configure.ac): Likewise.
33409         * modules/y0 (configure.ac): Likewise.
33410         * modules/y1 (configure.ac): Likewise.
33411         * modules/yn (configure.ac): Likewise.
33412         Suggested by Paolo Bonzini.
33413
33414 2010-01-31  Bruno Haible  <bruno@clisp.org>
33415
33416         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33417
33418 2010-01-31  Bruno Haible  <bruno@clisp.org>
33419
33420         Work around getdelim() bug on FreeBSD 8.0.
33421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33422         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33423         not work.
33424         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33425         is 1.
33426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33427         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33428         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33429         a non-zero size.
33430         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33431
33432 2010-01-31  Bruno Haible  <bruno@clisp.org>
33433
33434         Work around getline() bug on FreeBSD 8.0.
33435         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33436         and a non-zero size.
33437         * tests/test-getline.c (main): Likewise.
33438         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33439         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33440
33441 2010-01-28  Eric Blake  <ebb9@byu.net>
33442
33443         regex: fix build failure
33444         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33445         platforms.
33446
33447 2010-01-28  Jim Meyering  <meyering@redhat.com>
33448
33449         regex: do not ignore memory allocation failure
33450         * lib/regex_internal.c (create_cd_newstate): Detect
33451         re_node_set_init_copy failure.   Extracted from glibc commit
33452         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33453
33454         regex: sync more white-space changes from libc
33455         * lib/regex_internal.c: White-space only changes.
33456         * lib/regexec.c: Likewise.
33457
33458         regex: add many uses of __attribute_warn_unused_result__
33459         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33460         * lib/regexec.c: Likewise.
33461         Extracted from a messy glibc commit.
33462
33463         regcomp.c: spelling and merge-artifact from glibc
33464         * lib/regcomp.c: Merge remainder of glibc's
33465         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33466
33467         regcomp.c: sync white-space changes from glibc
33468         * lib/regcomp.c: Merge to accommodate white space
33469         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33470
33471         regcomp.c: do not ignore internal return values
33472         * lib/regcomp.c: Do not ignore internal return values.
33473         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33474         but without its white-space changes and spelling fixes.
33475
33476         regex_internal.h: define __attribute_warn_unused_result__
33477         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33478
33479         maint: add a syntax-check rule to check for vulnerable Makefile.in
33480         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33481
33482 2010-01-27  Jim Meyering  <meyering@redhat.com>
33483
33484         ncftpput-ftp: clean up spaces
33485         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33486         Remove trailing blanks.
33487
33488 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33489
33490         * build-aux/git-version-gen: Fix copyright statement.
33491         * build-aux/gnupload: Likewise.
33492         * tests/test-arcfour.c: Likewise.
33493         * tests/test-arctwo.c: Likewise.
33494         * tests/test-count-one-bits.c: Likewise.
33495         * tests/test-crc.c: Likewise.
33496         * tests/test-des.c: Likewise.
33497         * tests/test-gc-arcfour.c: Likewise.
33498         * tests/test-gc-arctwo.c: Likewise.
33499         * tests/test-gc-des.c: Likewise.
33500         * tests/test-gc-hmac-md5.c: Likewise.
33501         * tests/test-gc-hmac-sha1.c: Likewise.
33502         * tests/test-gc-md2.c: Likewise.
33503         * tests/test-gc-md4.c: Likewise.
33504         * tests/test-gc-md5.c: Likewise.
33505         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33506         * tests/test-gc-rijndael.c: Likewise.
33507         * tests/test-gc-sha1.c: Likewise.
33508         * tests/test-gc.c: Likewise.
33509         * tests/test-gethostname.c: Likewise.
33510         * tests/test-gettimeofday.c: Likewise.
33511         * tests/test-hash.c: Likewise.
33512         * tests/test-hmac-md5.c: Likewise.
33513         * tests/test-hmac-sha1.c: Likewise.
33514         * tests/test-md2.c: Likewise.
33515         * tests/test-md4.c: Likewise.
33516         * tests/test-md5.c: Likewise.
33517         * tests/test-memchr.c: Likewise.
33518         * tests/test-memchr2.c: Likewise.
33519         * tests/test-memcmp.c: Likewise.
33520         * tests/test-memmem.c: Likewise.
33521         * tests/test-memrchr.c: Likewise.
33522         * tests/test-rawmemchr.c: Likewise.
33523         * tests/test-read-file.c: Likewise.
33524         * tests/test-rijndael.c: Likewise.
33525         * tests/test-sockets.c: Likewise.
33526         * tests/test-strchrnul.c: Likewise.
33527         * tests/test-strstr.c: Likewise.
33528         * tests/test-strtod.c: Likewise.
33529         * build-aux/ncftpput-ftp: Likewise.
33530
33531 2010-01-26  Eric Blake  <ebb9@byu.net>
33532
33533         ignore-value: update recommended header name
33534         * modules/ignore-value (Include): Only use <> for headers that
33535         exist in glibc.
33536
33537 2010-01-26  Jim Meyering  <meyering@redhat.com>
33538
33539         test-userspec.c: avoid compiler warnings
33540         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33541         and "initialization discards qualifiers..." warnings.
33542         Put the first "uid" in its own scope, and make char* members "const".
33543
33544 2010-01-25  Bruno Haible  <bruno@clisp.org>
33545
33546         gnulib-tool: Make warning diagnostics consistent.
33547         * gnulib-tool (func_warning): New function.
33548         Use it everywhere where gnulib-tool produces output to stderr and it is
33549         not a fatal error.
33550
33551 2010-01-25  Bruno Haible  <bruno@clisp.org>
33552
33553         Fix test dependencies.
33554         * modules/xstrtol-tests (Depends-on): Add inttypes.
33555         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33556
33557 2010-01-25 Pádraig Brady <P@draigBrady.com>
33558
33559         syntax-check: detect incorrect boolean macro values in config.h
33560         * modules/maintainer-makefile (configure.ac): Parameterize the location
33561         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33562         The logic is from Eric Blake and the location indicated by Jim Meyering.
33563         Note the more natural CONFIG_HEADER name is prohibited by automake
33564         for backwards compatibility reasons.
33565         * top/maint.mk (sc_Wundef_boolean): New rule.
33566
33567 2010-01-25  Jim Meyering  <meyering@redhat.com>
33568
33569         bootstrap: detect MacOS 10.6's shasum, too
33570         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33571         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33572
33573 2010-01-23  Jim Meyering  <meyering@redhat.com>
33574
33575         xstrtoll: new module
33576         * modules/xstrtoll: New file.
33577         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33578         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33579         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33580         ./configure fails if you use this module and lack "long long".
33581         * modules/xstrtoll-tests: New module.
33582         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33583         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33584         new init.sh-based test framework.
33585
33586 2010-01-24  Bruno Haible  <bruno@clisp.org>
33587
33588         Tests for module 'yn'.
33589         * modules/yn-tests: New file.
33590         * tests/test-yn.c: New file.
33591
33592         Tests for module 'y1'.
33593         * modules/y1-tests: New file.
33594         * tests/test-y1.c: New file.
33595
33596         Tests for module 'y0'.
33597         * modules/y0-tests: New file.
33598         * tests/test-y0.c: New file.
33599
33600         Tests for module 'tanh'.
33601         * modules/tanh-tests: New file.
33602         * tests/test-tanh.c: New file.
33603
33604         Tests for module 'tan'.
33605         * modules/tan-tests: New file.
33606         * tests/test-tan.c: New file.
33607
33608         Tests for module 'sqrt'.
33609         * modules/sqrt-tests: New file.
33610         * tests/test-sqrt.c: New file.
33611
33612         Tests for module 'sinh'.
33613         * modules/sinh-tests: New file.
33614         * tests/test-sinh.c: New file.
33615
33616         Tests for module 'sin'.
33617         * modules/sin-tests: New file.
33618         * tests/test-sin.c: New file.
33619
33620         Tests for module 'rint'.
33621         * modules/rint-tests: New file.
33622         * tests/test-rint.c: New file.
33623
33624         Tests for module 'remainder'.
33625         * modules/remainder-tests: New file.
33626         * tests/test-remainder.c: New file.
33627
33628         Tests for module 'pow'.
33629         * modules/pow-tests: New file.
33630         * tests/test-pow.c: New file.
33631
33632         Tests for module 'nextafter'.
33633         * modules/nextafter-tests: New file.
33634         * tests/test-nextafter.c: New file.
33635
33636         Tests for module 'modf'.
33637         * modules/modf-tests: New file.
33638         * tests/test-modf.c: New file.
33639
33640         Tests for module 'logb'.
33641         * modules/logb-tests: New file.
33642         * tests/test-logb.c: New file.
33643
33644         Tests for module 'log1p'.
33645         * modules/log1p-tests: New file.
33646         * tests/test-log1p.c: New file.
33647
33648         Tests for module 'log10'.
33649         * modules/log10-tests: New file.
33650         * tests/test-log10.c: New file.
33651
33652         Tests for module 'log'.
33653         * modules/log-tests: New file.
33654         * tests/test-log.c: New file.
33655
33656         Tests for module 'lgamma'.
33657         * modules/lgamma-tests: New file.
33658         * tests/test-lgamma.c: New file.
33659
33660         Tests for module 'ldexp'.
33661         * modules/ldexp-tests: New file.
33662         * tests/test-ldexp.c: New file.
33663
33664         Tests for module 'jn'.
33665         * modules/jn-tests: New file.
33666         * tests/test-jn.c: New file.
33667
33668         Tests for module 'j1'.
33669         * modules/j1-tests: New file.
33670         * tests/test-j1.c: New file.
33671
33672         Tests for module 'j0'.
33673         * modules/j0-tests: New file.
33674         * tests/test-j0.c: New file.
33675
33676         Tests for module 'hypot'.
33677         * modules/hypot-tests: New file.
33678         * tests/test-hypot.c: New file.
33679
33680         Tests for module 'fmod'.
33681         * modules/fmod-tests: New file.
33682         * tests/test-fmod.c: New file.
33683
33684         Tests for module 'fabs'.
33685         * modules/fabs-tests: New file.
33686         * tests/test-fabs.c: New file.
33687
33688         Tests for module 'exp'.
33689         * modules/exp-tests: New file.
33690         * tests/test-exp.c: New file.
33691
33692         Tests for module 'erfc'.
33693         * modules/erfc-tests: New file.
33694         * tests/test-erfc.c: New file.
33695
33696         Tests for module 'erf'.
33697         * modules/erf-tests: New file.
33698         * tests/test-erf.c: New file.
33699
33700         Tests for module 'cosh'.
33701         * modules/cosh-tests: New file.
33702         * tests/test-cosh.c: New file.
33703
33704         Tests for module 'cos'.
33705         * modules/cos-tests: New file.
33706         * tests/test-cos.c: New file.
33707
33708         Tests for module 'copysign'.
33709         * modules/copysign-tests: New file.
33710         * tests/test-copysign.c: New file.
33711
33712         Tests for module 'cbrt'.
33713         * modules/cbrt-tests: New file.
33714         * tests/test-cbrt.c: New file.
33715
33716         Tests for module 'atan2'.
33717         * modules/atan2-tests: New file.
33718         * tests/test-atan2.c: New file.
33719
33720         Tests for module 'atan'.
33721         * modules/atan-tests: New file.
33722         * tests/test-atan.c: New file.
33723
33724         Tests for module 'asin'.
33725         * modules/asin-tests: New file.
33726         * tests/test-asin.c: New file.
33727
33728         Tests for module 'acos'.
33729         * modules/acos-tests: New file.
33730         * tests/test-acos.c: New file.
33731
33732 2010-01-24  Bruno Haible  <bruno@clisp.org>
33733
33734         Fix tests for common <math.h> functions.
33735         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33736         code snippet that references the function pointer, rather than merely
33737         calling the function. Substitute the FUNC_LIBM variable.
33738         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33739         * modules/acos (configure.ac): Likewise.
33740         * modules/asin (configure.ac): Likewise.
33741         * modules/atan (configure.ac): Likewise.
33742         * modules/atan2 (configure.ac): Likewise.
33743         * modules/cbrt (configure.ac): Likewise.
33744         * modules/copysign (configure.ac): Likewise.
33745         * modules/cos (configure.ac): Likewise.
33746         * modules/cosh (configure.ac): Likewise.
33747         * modules/erf (configure.ac): Likewise.
33748         * modules/erfc (configure.ac): Likewise.
33749         * modules/exp (configure.ac): Likewise.
33750         * modules/fabs (configure.ac): Likewise.
33751         * modules/fmod (configure.ac): Likewise.
33752         * modules/hypot (configure.ac): Likewise.
33753         * modules/j0 (configure.ac): Likewise.
33754         * modules/j1 (configure.ac): Likewise.
33755         * modules/jn (configure.ac): Likewise.
33756         * modules/ldexp (configure.ac): Likewise.
33757         * modules/lgamma (configure.ac): Likewise.
33758         * modules/log (configure.ac): Likewise.
33759         * modules/log10 (configure.ac): Likewise.
33760         * modules/log1p (configure.ac): Likewise.
33761         * modules/logb (configure.ac): Likewise.
33762         * modules/modf (configure.ac): Likewise.
33763         * modules/nextafter (configure.ac): Likewise.
33764         * modules/pow (configure.ac): Likewise.
33765         * modules/remainder (configure.ac): Likewise.
33766         * modules/rint (configure.ac): Likewise.
33767         * modules/sin (configure.ac): Likewise.
33768         * modules/sinh (configure.ac): Likewise.
33769         * modules/tan (configure.ac): Likewise.
33770         * modules/tanh (configure.ac): Likewise.
33771         * modules/y0 (configure.ac): Likewise.
33772         * modules/y1 (configure.ac): Likewise.
33773         * modules/yn (configure.ac): Likewise.
33774
33775 2010-01-24  Bruno Haible  <bruno@clisp.org>
33776
33777         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33778         * tests/test-acosl.c (x): New variable.
33779         (main): Store argument in x and fetch it from x.
33780         * tests/test-asinl.c (x): New variable.
33781         (main): Store argument in x and fetch it from x.
33782         * tests/test-atanl.c (x): New variable.
33783         (main): Store argument in x and fetch it from x.
33784         * tests/test-cosl.c (x): New variable.
33785         (main): Store argument in x and fetch it from x.
33786         * tests/test-expl.c (x): New variable.
33787         (main): Store argument in x and fetch it from x.
33788         * tests/test-logl.c (x): New variable.
33789         (main): Store argument in x and fetch it from x.
33790         * tests/test-sinl.c (x): New variable.
33791         (main): Store argument in x and fetch it from x.
33792         * tests/test-sqrtl.c (x): New variable.
33793         (main): Store argument in x and fetch it from x.
33794         * tests/test-tanl.c (x): New variable.
33795         (main): Store argument in x and fetch it from x.
33796
33797 2010-01-24  Bruno Haible  <bruno@clisp.org>
33798
33799         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33800         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33801         assignments to the initial TESTS_ENVIRONMENT.
33802         * doc/gnulib.texi (Unit test modules): Document it.
33803         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33804         TESTS_ENVIRONMENT.
33805         * modules/btowc-tests (Makefile.am): Likewise.
33806         * modules/c-stack-tests (Makefile.am): Likewise.
33807         * modules/c-strcase-tests (Makefile.am): Likewise.
33808         * modules/copy-file-tests (Makefile.am): Likewise.
33809         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33810         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33811         * modules/mbrtowc-tests (Makefile.am): Likewise.
33812         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33813         * modules/mbscasestr-tests (Makefile.am): Likewise.
33814         * modules/mbschr-tests (Makefile.am): Likewise.
33815         * modules/mbscspn-tests (Makefile.am): Likewise.
33816         * modules/mbsinit-tests (Makefile.am): Likewise.
33817         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33818         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33819         * modules/mbspbrk-tests (Makefile.am): Likewise.
33820         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33821         * modules/mbsrchr-tests (Makefile.am): Likewise.
33822         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33823         * modules/mbsspn-tests (Makefile.am): Likewise.
33824         * modules/mbsstr-tests (Makefile.am): Likewise.
33825         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33826         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33827         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33828         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33829         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33830         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33831         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33832         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33833         * modules/wcrtomb-tests (Makefile.am): Likewise.
33834         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33835         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33836         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33837         assignments from TESTS_ENVIRONMENT.
33838         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33839         augmentation.
33840         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33841         * modules/atexit-tests (Makefile.am): Likewise.
33842         * modules/binary-io-tests (Makefile.am): Likewise.
33843         * modules/closein-tests (Makefile.am): Likewise.
33844         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33845         * modules/exclude-tests (Makefile.am): Likewise.
33846         * modules/fflush-tests (Makefile.am): Likewise.
33847         * modules/fpending-tests (Makefile.am): Likewise.
33848         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33849         * modules/freadahead-tests (Makefile.am): Likewise.
33850         * modules/freadptr-tests (Makefile.am): Likewise.
33851         * modules/freadseek-tests (Makefile.am): Likewise.
33852         * modules/fseek-tests (Makefile.am): Likewise.
33853         * modules/fseeko-tests (Makefile.am): Likewise.
33854         * modules/ftell-tests (Makefile.am): Likewise.
33855         * modules/ftello-tests (Makefile.am): Likewise.
33856         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33857         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33858         * modules/lseek-tests (Makefile.am): Likewise.
33859         * modules/parse-duration-tests (Makefile.am): Likewise.
33860         * modules/perror-tests (Makefile.am): Likewise.
33861         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33862         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33863         * modules/pipe-tests (Makefile.am): Likewise.
33864         * modules/pread-tests (Makefile.am): Likewise.
33865         * modules/printf-posix-tests (Makefile.am): Likewise.
33866         * modules/select-tests (Makefile.am): Likewise.
33867         * modules/sigpipe-tests (Makefile.am): Likewise.
33868         * modules/tsearch-tests (Makefile.am): Likewise.
33869         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33870         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33871         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33872         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33873         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33874         * modules/version-etc-tests (Makefile.am): Likewise.
33875         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33876         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33877         * modules/xalloc-die-tests (Makefile.am): Likewise.
33878         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33879         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33880         * modules/xstrtol-tests (Makefile.am): Likewise.
33881         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33882         * modules/yesno-tests (Makefile.am): Likewise.
33883         Suggested by Jim Meyering.
33884
33885 2010-01-24  Bruno Haible  <bruno@clisp.org>
33886
33887         More documentation.
33888         * doc/gnulib.texi (Writing modules): New chapter.
33889         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33890         the new chapter.
33891
33892 2010-01-24  Jim Meyering  <meyering@redhat.com>
33893
33894         maint.mk: do not prepend "./" after filtering
33895         * top/maint.mk (_prepend_srcdir_prefix): New variable
33896         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33897         "./" when $(srcdir) is ".".
33898
33899         define STREQ(a,b) consistently, removing useless parentheses
33900         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33901         since the only risk is that "a" or "b" contains an unparenthesized
33902         comma, but if either did that, STREQ would have 3 or more arguments.
33903         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33904         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33905         * lib/hash-triple.c (STREQ): Likewise.
33906         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33907         * lib/getugroups.c (STREQ): Likewise.
33908
33909 2010-01-23  Jim Meyering  <meyering@redhat.com>
33910
33911         maint.mk: fix syntax-check in a non-srcdir build directory
33912         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33913         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33914
33915 2010-01-22  Jim Meyering  <meyering@redhat.com>
33916
33917         userspec: add unit tests
33918         * tests/test-userspec.c: New file.
33919         * modules/userspec-tests: Likewise.
33920
33921 2010-01-21  Jim Meyering  <meyering@redhat.com>
33922
33923         maint.mk: handle source file names containing "." robustly
33924         * top/maint.mk (_dot_escaped_srcdir): Define.
33925         (VC_LIST): Use it in LHS of sed substitution.
33926
33927 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33928
33929         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33930         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33931         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33932         from a non-srcdir build.
33933
33934 2010-01-20  Eric Blake  <ebb9@byu.net>
33935
33936         warn-on-use: use instead of link-warning
33937         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33938         * modules/unistd (Depends-on, Makefile.am): Likewise.
33939         * modules/arpa_inet (Depends-on): Replace link-warning with
33940         warn-on-use.
33941         (Makefile.am): Update rules accordingly.
33942         * modules/ctype (Depends-on, Makefile.am): Likewise.
33943         * modules/dirent (Depends-on, Makefile.am): Likewise.
33944         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33945         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33946         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33947         * modules/locale (Depends-on, Makefile.am): Likewise.
33948         * modules/math (Depends-on, Makefile.am): Likewise.
33949         * modules/search (Depends-on, Makefile.am): Likewise.
33950         * modules/signal (Depends-on, Makefile.am): Likewise.
33951         * modules/spawn (Depends-on, Makefile.am): Likewise.
33952         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33953         * modules/string (Depends-on, Makefile.am): Likewise.
33954         * modules/strings (Depends-on, Makefile.am): Likewise.
33955         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33956         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33957         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33958         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33959         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33960         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33961         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33962         * modules/wchar (Depends-on, Makefile.am): Likewise.
33963         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33964         should be poisoned.
33965         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33966         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33967         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33968         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33970         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33971         * m4/math_h.m4 (gl_MATH_H): Likewise.
33972         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33973         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33974         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33975         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33976         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33978         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33979         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33985         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33986         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33988         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33989         GL_LINK_WARNING.
33990         * lib/ctype.in.h: Likewise.
33991         * lib/dirent.in.h: Likewise.
33992         * lib/fcntl.in.h: Likewise.
33993         * lib/inttypes.in.h: Likewise.
33994         * lib/langinfo.in.h: Likewise.
33995         * lib/locale.in.h: Likewise.
33996         * lib/math.in.h: Likewise.
33997         * lib/search.in.h: Likewise.
33998         * lib/signal.in.h: Likewise.
33999         * lib/spawn.in.h: Likewise.
34000         * lib/stdio.in.h: Likewise.
34001         * lib/stdlib.in.h: Likewise.
34002         * lib/string.in.h: Likewise.
34003         * lib/strings.in.h: Likewise.
34004         * lib/sys_file.in.h: Likewise.
34005         * lib/sys_ioctl.in.h: Likewise.
34006         * lib/sys_select.in.h: Likewise.
34007         * lib/sys_socket.in.h: Likewise.
34008         * lib/sys_stat.in.h: Likewise.
34009         * lib/sys_times.in.h: Likewise.
34010         * lib/sys_utsname.in.h: Likewise.
34011         * lib/unistd.in.h: Likewise.
34012         * lib/wchar.in.h: Likewise.
34013
34014 2010-01-20  Bruno Haible  <bruno@clisp.org>
34015
34016         Avoid duplicate -lm.
34017         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34018         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34021         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34022         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34023         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34024         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34026         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34027         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34028         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34029         Reported by Paolo Bonzini.
34030
34031 2010-01-19  Bruno Haible  <bruno@clisp.org>
34032
34033         langinfo, nl_langinfo: Relicense under LGPLv2+.
34034         * modules/langinfo (License): Change to LGPLv2+.
34035         * modules/nl_langinfo (License): Likewise.
34036         Patch by David Lutterkort <lutter@redhat.com>.
34037
34038 2010-01-19  Bruno Haible  <bruno@clisp.org>
34039
34040         Avoid compilation error with cc on OSF/1 5.1.
34041         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34042         statement, not before.
34043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34044
34045 2010-01-18  Bruno Haible  <bruno@clisp.org>
34046
34047         Avoid a link error due to the __printf__ symbol.
34048         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34049         and 2.6.x.
34050         (__format__, __printf__): Remove definitions.
34051         * lib/argp-fmtstream.h: Likewise.
34052         * lib/argp.h: Likewise.
34053         * lib/error.h: Likewise.
34054         * lib/vasnprintf.h: Likewise.
34055         * lib/xprintf.h: Likewise.
34056         * lib/xvasprintf.h: Likewise.
34057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34058
34059 2010-01-18  Bruno Haible  <bruno@clisp.org>
34060
34061         Tests for module 'tanl'.
34062         * modules/tanl-tests: New file.
34063         * tests/test-tanl.c: New file.
34064
34065         Tests for module 'sqrtl'.
34066         * modules/sqrtl-tests: New file.
34067         * tests/test-sqrtl.c: New file.
34068
34069         Tests for module 'sinl'.
34070         * modules/sinl-tests: New file.
34071         * tests/test-sinl.c: New file.
34072
34073         Tests for module 'logl'.
34074         * modules/logl-tests: New file.
34075         * tests/test-logl.c: New file.
34076
34077         Tests for module 'expl'.
34078         * modules/expl-tests: New file.
34079         * tests/test-expl.c: New file.
34080
34081         Tests for module 'cosl'.
34082         * modules/cosl-tests: New file.
34083         * tests/test-cosl.c: New file.
34084
34085         Tests for module 'atanl'.
34086         * modules/atanl-tests: New file.
34087         * tests/test-atanl.c: New file.
34088
34089         Tests for module 'asinl'.
34090         * modules/asinl-tests: New file.
34091         * tests/test-asinl.c: New file.
34092
34093         Tests for module 'acosl'.
34094         * modules/acosl-tests: New file.
34095         * tests/test-acosl.c: New file.
34096
34097         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34098         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34099         tanl): Use the standard gnulib idiom.
34100         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34101         * lib/sinl.c: Likewise.
34102         * lib/tanl.c: Don't include trigl.c.
34103         (kernel_tanl): Make static.
34104         * lib/sincosl.c: Include trigl.h first.
34105         * lib/trigl.c: Likewise.
34106         * m4/acosl.m4: New file.
34107         * m4/asinl.m4: New file.
34108         * m4/atanl.m4: New file.
34109         * m4/cosl.m4: New file.
34110         * m4/expl.m4: New file.
34111         * m4/logl.m4: New file.
34112         * m4/sinl.m4: New file.
34113         * m4/sqrtl.m4: New file.
34114         * m4/tanl.m4: New file.
34115         * m4/mathl.m4: Remove file.
34116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34117         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34118         Don't initialize GNULIB_MATHL.
34119         * modules/acosl: New file.
34120         * modules/asinl: New file.
34121         * modules/atanl: New file.
34122         * modules/cosl: New file.
34123         * modules/expl: New file.
34124         * modules/logl: New file.
34125         * modules/sinl: New file.
34126         * modules/sqrtl: New file.
34127         * modules/tanl: New file.
34128         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34129         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34130         substitute GNULIB_MATHL.
34131         * modules/mathl: Rewritten.
34132         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34133         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34134         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34135         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34136         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34137         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34138         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34139         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34140         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34141
34142 2010-01-18  Bruno Haible  <bruno@clisp.org>
34143
34144         sqrt: Make gl_FUNC_SQRT requirable.
34145         * m4/sqrt.m4: New file.
34146         * modules/sqrt (Files): Add it.
34147         (configure.ac): Invoke gl_FUNC_SQRT.
34148
34149 2010-01-18  Bruno Haible  <bruno@clisp.org>
34150
34151         New modules for common <math.h> functions.
34152         * m4/mathfunc.m4: New file.
34153         * modules/acos: New file.
34154         * modules/asin: New file.
34155         * modules/atan: New file.
34156         * modules/atan2: New file.
34157         * modules/cbrt: New file.
34158         * modules/copysign: New file.
34159         * modules/cos: New file.
34160         * modules/cosh: New file.
34161         * modules/erf: New file.
34162         * modules/erfc: New file.
34163         * modules/exp: New file.
34164         * modules/fabs: New file.
34165         * modules/fmod: New file.
34166         * modules/hypot: New file.
34167         * modules/j0: New file.
34168         * modules/j1: New file.
34169         * modules/jn: New file.
34170         * modules/ldexp: New file.
34171         * modules/lgamma: New file.
34172         * modules/log: New file.
34173         * modules/log10: New file.
34174         * modules/log1p: New file.
34175         * modules/logb: New file.
34176         * modules/modf: New file.
34177         * modules/nextafter: New file.
34178         * modules/pow: New file.
34179         * modules/remainder: New file.
34180         * modules/rint: New file.
34181         * modules/sin: New file.
34182         * modules/sinh: New file.
34183         * modules/sqrt: New file.
34184         * modules/tan: New file.
34185         * modules/tanh: New file.
34186         * modules/y0: New file.
34187         * modules/y1: New file.
34188         * modules/yn: New file.
34189         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34190         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34191         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34192         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34193         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34194         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34195         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34196         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34197         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34198         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34199         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34200         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34201         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34202         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34203         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34204         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34205         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34206         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34207         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34208         * doc/posix-functions/log.texi: Mention the 'log' module.
34209         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34210         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34211         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34212         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34213         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34214         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34215         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34216         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34217         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34218         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34219         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34220         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34221         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34222         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34223         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34224         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34225
34226 2010-01-18  Jim Meyering  <meyering@redhat.com>
34227
34228         ignore-value: relax license to LGPLv2+
34229         * modules/ignore-value (License): Relax to LGPLv2+.
34230
34231         getdate: don't leak when TZ contains two or more '"'s
34232         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34233         double quote in TZ after the first one.
34234
34235         readtokens: do not leak internal token_lengths buffer
34236         * lib/readtokens.c (readtokens): Free the local, lengths,
34237         when the supplied "token_lengths" parameter is NULL.
34238
34239 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34240
34241         Fix a couple of missing LIBTHREAD link failures on AIX.
34242         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34243         $(LIBTHREAD).
34244         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34245
34246         Link test-poll against INET_PTON_LIB.
34247         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34248         for inet_pton on Solaris 10.
34249
34250 2010-01-17  Bruno Haible  <bruno@clisp.org>
34251
34252         unistdio/*-sprintf: Fix typo in module description.
34253         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34254         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34255         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34256         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34257         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34258         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34259         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34261
34262 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34263
34264         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34265         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34266         variables in shell case patterns, for AIX and HP-UX ksh.
34267
34268         Split large sed scripts, for HP-UX sed.
34269         * modules/stdio: Split sed scripts around 50 sed commands,
34270         to avoid HP-UX limit of 99 commands, in the near future.
34271         * modules/string: Likewise.
34272         * modules/unistd: Likewise.
34273
34274         gnulib-tool: avoid writing in the current directory.
34275         * gnulib-tool (func_emit_lib_Makefile_am)
34276         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34277         not in the current directory, so concurrent gnulib-tool
34278         instances do not interfere.
34279
34280 2010-01-16  Jim Meyering  <meyering@redhat.com>
34281
34282         doc: update users.txt
34283         * users.txt: Add grep.
34284         (diffutils, gzip): Update URLs.
34285
34286 2010-01-12  Bruno Haible  <bruno@clisp.org>
34287
34288         posix_spawn: Avoid test failure on Cygwin.
34289         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34290         characters.
34291         Reported by Simon Josefsson.
34292
34293 2010-01-12  Bruno Haible  <bruno@clisp.org>
34294
34295         * tests/test-cond.c (main): When skipping the test, show the reason.
34296
34297 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34298
34299         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34300
34301 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34302
34303         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34304         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34305
34306 2010-01-12  Eric Blake  <ebb9@byu.net>
34307
34308         build: guarantee AS_VAR_IF
34309         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34310         (gl_AS_VAR_IF): Move...
34311         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34312         Reported by Simon Josefsson.
34313
34314 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34315
34316         * lib/stdio.in.h: Fix typo.
34317
34318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34319
34320         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34321         libgpg-error.
34322
34323 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34324
34325         * tests/test-xalloc-die.sh: Use $EXEEXT.
34326
34327 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34328             Bruno Haible  <bruno@clisp.org>
34329
34330         getlogin, getlogin_r: Avoid test failure.
34331         * tests/test-getlogin.c: Include <stdio.h>.
34332         (main): Skip the test when the function fails because stdin is not a
34333         tty.
34334         * tests/test-getlogin_r.c: Include <stdio.h>.
34335         (main): Skip the test when the function fails because stdin is not a
34336         tty.
34337
34338 2010-01-11  Eric Blake  <ebb9@byu.net>
34339
34340         tests: avoid more large file warnings
34341         * tests/test-fflush.c: Avoid warning about ftell use.
34342         * tests/test-fseek.c: Avoid warning about fseek use.
34343
34344 2010-01-10  Bruno Haible  <bruno@clisp.org>
34345
34346         nproc: Work better on Linux when /proc and /sys are not mounted.
34347         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34348         as lower bound when, on glibc/Linux systems,
34349         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34350         Suggested by Pádraig Brady <P@draigbrady.com>.
34351         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34352
34353         nproc: Refactor.
34354         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34355         extracted from num_processors.
34356         (num_processors): Call it.
34357
34358 2010-01-11  Jim Meyering  <meyering@redhat.com>
34359
34360         utimecmp: avoid new warning from upcoming gcc-4.5.0
34361         * lib/utimecmp.c (BILLION): Define using #define rather than an
34362         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34363
34364 2010-01-11  Eric Blake  <ebb9@byu.net>
34365
34366         math: add portability warnings for classification macros
34367         * modules/math (Depends-on): Add warn-on-use.
34368         (Makefile.am): Provide new substitutions.
34369         * m4/math_h.m4 (gl_MATH_H): Require inline.
34370         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34371         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34372         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34373         implement warnings.
34374
34375         unistd: warn on use of environ without module
34376         * modules/unistd (Depends-on): Add warn-on-use.
34377         (Makefile.am): Provide new substitutions.
34378         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34379         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34380
34381         stdio: warn on suspicious uses
34382         * modules/stdio (Depends-on): Add warn-on-use.
34383         (Makefile.am): Provide new substitutions.
34384         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34385         fseeko.
34386         * lib/stdio.in.h (gets): Always warn on use.
34387         (fseek, ftell): Adjust when warnings are issued, and honor
34388         _GL_NO_LARGE_FILES as a way to silence the warning.
34389         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34390         any warning about large file offsets.
34391         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34392         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34393         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34394         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34395         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34396         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34397         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34398         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34399
34400         warn-on-use: new module
34401         * modules/warn-on-use: New file.
34402         * build-aux/warn-on-use.h: Likewise.
34403         * m4/warn-on-use.m4: Likewise.
34404         * MODULES.html.sh (Support for building): Mention it.
34405
34406 2010-01-10  Bruno Haible  <bruno@clisp.org>
34407
34408         Tests for module 'unistr/u32-strdup'.
34409         * modules/unistr/u32-strdup-tests: New file.
34410         * tests/unistr/test-u32-strdup.c: New file.
34411
34412         Tests for module 'unistr/u16-strdup'.
34413         * modules/unistr/u16-strdup-tests: New file.
34414         * tests/unistr/test-u16-strdup.c: New file.
34415
34416         Tests for module 'unistr/u8-strdup'.
34417         * modules/unistr/u8-strdup-tests: New file.
34418         * tests/unistr/test-u8-strdup.c: New file.
34419         * tests/unistr/test-strdup.h: New file.
34420
34421         Tests for module 'unistr/u32-strncmp'.
34422         * modules/unistr/u32-strncmp-tests: New file.
34423         * tests/unistr/test-u32-strncmp.c: New file.
34424
34425         Tests for module 'unistr/u16-strncmp'.
34426         * modules/unistr/u16-strncmp-tests: New file.
34427         * tests/unistr/test-u16-strncmp.c: New file.
34428
34429         Tests for module 'unistr/u8-strncmp'.
34430         * modules/unistr/u8-strncmp-tests: New file.
34431         * tests/unistr/test-u8-strncmp.c: New file.
34432         * tests/unistr/test-strncmp.h: New file.
34433
34434         Tests for module 'unistr/u32-strcoll'.
34435         * modules/unistr/u32-strcoll-tests: New file.
34436         * tests/unistr/test-u32-strcoll.c: New file.
34437
34438         Tests for module 'unistr/u16-strcoll'.
34439         * modules/unistr/u16-strcoll-tests: New file.
34440         * tests/unistr/test-u16-strcoll.c: New file.
34441
34442         Tests for module 'unistr/u8-strcoll'.
34443         * modules/unistr/u8-strcoll-tests: New file.
34444         * tests/unistr/test-u8-strcoll.c: New file.
34445
34446         Tests for module 'unistr/u32-strcmp'.
34447         * modules/unistr/u32-strcmp-tests: New file.
34448         * tests/unistr/test-u32-strcmp.c: New file.
34449         * tests/unistr/test-u32-strcmp.h: New file.
34450
34451         Tests for module 'unistr/u16-strcmp'.
34452         * modules/unistr/u16-strcmp-tests: New file.
34453         * tests/unistr/test-u16-strcmp.c: New file.
34454         * tests/unistr/test-u16-strcmp.h: New file.
34455
34456         Tests for module 'unistr/u8-strcmp'.
34457         * modules/unistr/u8-strcmp-tests: New file.
34458         * tests/unistr/test-u8-strcmp.c: New file.
34459         * tests/unistr/test-u8-strcmp.h: New file.
34460         * tests/unistr/test-strcmp.h: New file.
34461
34462         Tests for module 'unistr/u32-strncat'.
34463         * modules/unistr/u32-strncat-tests: New file.
34464         * tests/unistr/test-u32-strncat.c: New file.
34465
34466         Tests for module 'unistr/u16-strncat'.
34467         * modules/unistr/u16-strncat-tests: New file.
34468         * tests/unistr/test-u16-strncat.c: New file.
34469
34470         Tests for module 'unistr/u8-strncat'.
34471         * modules/unistr/u8-strncat-tests: New file.
34472         * tests/unistr/test-u8-strncat.c: New file.
34473         * tests/unistr/test-strncat.h: New file.
34474
34475         Tests for module 'unistr/u32-strcat'.
34476         * modules/unistr/u32-strcat-tests: New file.
34477         * tests/unistr/test-u32-strcat.c: New file.
34478
34479         Tests for module 'unistr/u16-strcat'.
34480         * modules/unistr/u16-strcat-tests: New file.
34481         * tests/unistr/test-u16-strcat.c: New file.
34482
34483         Tests for module 'unistr/u8-strcat'.
34484         * modules/unistr/u8-strcat-tests: New file.
34485         * tests/unistr/test-u8-strcat.c: New file.
34486         * tests/unistr/test-strcat.h: New file.
34487
34488         Tests for module 'unistr/u32-stpncpy'.
34489         * modules/unistr/u32-stpncpy-tests: New file.
34490         * tests/unistr/test-u32-stpncpy.c: New file.
34491
34492         Tests for module 'unistr/u16-stpncpy'.
34493         * modules/unistr/u16-stpncpy-tests: New file.
34494         * tests/unistr/test-u16-stpncpy.c: New file.
34495
34496         Tests for module 'unistr/u8-stpncpy'.
34497         * modules/unistr/u8-stpncpy-tests: New file.
34498         * tests/unistr/test-u8-stpncpy.c: New file.
34499         * tests/unistr/test-stpncpy.h: New file.
34500
34501         Tests for module 'unistr/u32-strncpy'.
34502         * modules/unistr/u32-strncpy-tests: New file.
34503         * tests/unistr/test-u32-strncpy.c: New file.
34504
34505         Tests for module 'unistr/u16-strncpy'.
34506         * modules/unistr/u16-strncpy-tests: New file.
34507         * tests/unistr/test-u16-strncpy.c: New file.
34508
34509         Tests for module 'unistr/u8-strncpy'.
34510         * modules/unistr/u8-strncpy-tests: New file.
34511         * tests/unistr/test-u8-strncpy.c: New file.
34512         * tests/unistr/test-strncpy.h: New file.
34513
34514         Tests for module 'unistr/u32-stpcpy'.
34515         * modules/unistr/u32-stpcpy-tests: New file.
34516         * tests/unistr/test-u32-stpcpy.c: New file.
34517
34518         Tests for module 'unistr/u16-stpcpy'.
34519         * modules/unistr/u16-stpcpy-tests: New file.
34520         * tests/unistr/test-u16-stpcpy.c: New file.
34521
34522         Tests for module 'unistr/u8-stpcpy'.
34523         * modules/unistr/u8-stpcpy-tests: New file.
34524         * tests/unistr/test-u8-stpcpy.c: New file.
34525         * tests/unistr/test-stpcpy.h: New file.
34526
34527         Tests for module 'unistr/u32-strcpy'.
34528         * modules/unistr/u32-strcpy-tests: New file.
34529         * tests/unistr/test-u32-strcpy.c: New file.
34530
34531         Tests for module 'unistr/u16-strcpy'.
34532         * modules/unistr/u16-strcpy-tests: New file.
34533         * tests/unistr/test-u16-strcpy.c: New file.
34534
34535         Tests for module 'unistr/u8-strcpy'.
34536         * modules/unistr/u8-strcpy-tests: New file.
34537         * tests/unistr/test-u8-strcpy.c: New file.
34538         * tests/unistr/test-strcpy.h: New file.
34539
34540         Tests for module 'unistr/u32-strnlen'.
34541         * modules/unistr/u32-strnlen-tests: New file.
34542         * tests/unistr/test-u32-strnlen.c: New file.
34543
34544         Tests for module 'unistr/u16-strnlen'.
34545         * modules/unistr/u16-strnlen-tests: New file.
34546         * tests/unistr/test-u16-strnlen.c: New file.
34547
34548         Tests for module 'unistr/u8-strnlen'.
34549         * modules/unistr/u8-strnlen-tests: New file.
34550         * tests/unistr/test-u8-strnlen.c: New file.
34551         * tests/unistr/test-strnlen.h: New file.
34552
34553         Tests for module 'unistr/u32-strlen'.
34554         * modules/unistr/u32-strlen-tests: New file.
34555         * tests/unistr/test-u32-strlen.c: New file.
34556
34557         Tests for module 'unistr/u16-strlen'.
34558         * modules/unistr/u16-strlen-tests: New file.
34559         * tests/unistr/test-u16-strlen.c: New file.
34560
34561         Tests for module 'unistr/u8-strlen'.
34562         * modules/unistr/u8-strlen-tests: New file.
34563         * tests/unistr/test-u8-strlen.c: New file.
34564
34565         Tests for module 'unistr/u32-prev'.
34566         * modules/unistr/u32-prev-tests: New file.
34567         * tests/unistr/test-u32-prev.c: New file.
34568
34569         Tests for module 'unistr/u16-prev'.
34570         * modules/unistr/u16-prev-tests: New file.
34571         * tests/unistr/test-u16-prev.c: New file.
34572
34573         Tests for module 'unistr/u8-prev'.
34574         * modules/unistr/u8-prev-tests: New file.
34575         * tests/unistr/test-u8-prev.c: New file.
34576
34577         Tests for module 'unistr/u32-next'.
34578         * modules/unistr/u32-next-tests: New file.
34579         * tests/unistr/test-u32-next.c: New file.
34580
34581         Tests for module 'unistr/u16-next'.
34582         * modules/unistr/u16-next-tests: New file.
34583         * tests/unistr/test-u16-next.c: New file.
34584
34585         Tests for module 'unistr/u8-next'.
34586         * modules/unistr/u8-next-tests: New file.
34587         * tests/unistr/test-u8-next.c: New file.
34588
34589         Tests for module 'unistr/u32-strmbtouc'.
34590         * modules/unistr/u32-strmbtouc-tests: New file.
34591         * tests/unistr/test-u32-strmbtouc.c: New file.
34592
34593         Tests for module 'unistr/u16-strmbtouc'.
34594         * modules/unistr/u16-strmbtouc-tests: New file.
34595         * tests/unistr/test-u16-strmbtouc.c: New file.
34596
34597         Tests for module 'unistr/u8-strmbtouc'.
34598         * modules/unistr/u8-strmbtouc-tests: New file.
34599         * tests/unistr/test-u8-strmbtouc.c: New file.
34600
34601         Tests for module 'unistr/u32-strmblen'.
34602         * modules/unistr/u32-strmblen-tests: New file.
34603         * tests/unistr/test-u32-strmblen.c: New file.
34604
34605         Tests for module 'unistr/u16-strmblen'.
34606         * modules/unistr/u16-strmblen-tests: New file.
34607         * tests/unistr/test-u16-strmblen.c: New file.
34608
34609         Tests for module 'unistr/u8-strmblen'.
34610         * modules/unistr/u8-strmblen-tests: New file.
34611         * tests/unistr/test-u8-strmblen.c: New file.
34612
34613         Tests for module 'unistr/u32-cpy-alloc'.
34614         * modules/unistr/u32-cpy-alloc-tests: New file.
34615         * tests/unistr/test-u32-cpy-alloc.c: New file.
34616
34617         Tests for module 'unistr/u16-cpy-alloc'.
34618         * modules/unistr/u16-cpy-alloc-tests: New file.
34619         * tests/unistr/test-u16-cpy-alloc.c: New file.
34620
34621         Tests for module 'unistr/u8-cpy-alloc'.
34622         * modules/unistr/u8-cpy-alloc-tests: New file.
34623         * tests/unistr/test-u8-cpy-alloc.c: New file.
34624         * tests/unistr/test-cpy-alloc.h: New file.
34625
34626         Tests for module 'unistr/u32-mbsnlen'.
34627         * modules/unistr/u32-mbsnlen-tests: New file.
34628         * tests/unistr/test-u32-mbsnlen.c: New file.
34629
34630         Tests for module 'unistr/u16-mbsnlen'.
34631         * modules/unistr/u16-mbsnlen-tests: New file.
34632         * tests/unistr/test-u16-mbsnlen.c: New file.
34633
34634         Tests for module 'unistr/u8-mbsnlen'.
34635         * modules/unistr/u8-mbsnlen-tests: New file.
34636         * tests/unistr/test-u8-mbsnlen.c: New file.
34637
34638         Tests for module 'unistr/u32-chr'.
34639         * modules/unistr/u32-chr-tests: New file.
34640         * tests/unistr/test-u32-chr.c: New file.
34641
34642         Tests for module 'unistr/u16-chr'.
34643         * modules/unistr/u16-chr-tests: New file.
34644         * tests/unistr/test-u16-chr.c: New file.
34645
34646         Tests for module 'unistr/u8-chr'.
34647         * modules/unistr/u8-chr-tests: New file.
34648         * tests/unistr/test-u8-chr.c: New file.
34649         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34650
34651         Tests for module 'unistr/u32-cmp2'.
34652         * modules/unistr/u32-cmp2-tests: New file.
34653         * tests/unistr/test-u32-cmp2.c: New file.
34654
34655         Tests for module 'unistr/u16-cmp2'.
34656         * modules/unistr/u16-cmp2-tests: New file.
34657         * tests/unistr/test-u16-cmp2.c: New file.
34658
34659         Tests for module 'unistr/u8-cmp2'.
34660         * modules/unistr/u8-cmp2-tests: New file.
34661         * tests/unistr/test-u8-cmp2.c: New file.
34662         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34663
34664         Tests for module 'unistr/u32-cmp'.
34665         * modules/unistr/u32-cmp-tests: New file.
34666         * tests/unistr/test-u32-cmp.c: New file.
34667
34668         Tests for module 'unistr/u16-cmp'.
34669         * modules/unistr/u16-cmp-tests: New file.
34670         * tests/unistr/test-u16-cmp.c: New file.
34671
34672         Tests for module 'unistr/u8-cmp'.
34673         * modules/unistr/u8-cmp-tests: New file.
34674         * tests/unistr/test-u8-cmp.c: New file.
34675         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34676
34677         Tests for module 'unistr/u32-set'.
34678         * modules/unistr/u32-set-tests: New file.
34679         * tests/unistr/test-u32-set.c: New file.
34680
34681         Tests for module 'unistr/u16-set'.
34682         * modules/unistr/u16-set-tests: New file.
34683         * tests/unistr/test-u16-set.c: New file.
34684
34685         Tests for module 'unistr/u8-set'.
34686         * modules/unistr/u8-set-tests: New file.
34687         * tests/unistr/test-u8-set.c: New file.
34688         * tests/unistr/test-set.h: New file.
34689
34690         Tests for module 'unistr/u32-move'.
34691         * modules/unistr/u32-move-tests: New file.
34692         * tests/unistr/test-u32-move.c: New file.
34693
34694         Tests for module 'unistr/u16-move'.
34695         * modules/unistr/u16-move-tests: New file.
34696         * tests/unistr/test-u16-move.c: New file.
34697
34698         Tests for module 'unistr/u8-move'.
34699         * modules/unistr/u8-move-tests: New file.
34700         * tests/unistr/test-u8-move.c: New file.
34701         * tests/unistr/test-move.h: New file.
34702
34703         Tests for module 'unistr/u32-cpy'.
34704         * modules/unistr/u32-cpy-tests: New file.
34705         * tests/unistr/test-u32-cpy.c: New file.
34706
34707         Tests for module 'unistr/u16-cpy'.
34708         * modules/unistr/u16-cpy-tests: New file.
34709         * tests/unistr/test-u16-cpy.c: New file.
34710
34711         Tests for module 'unistr/u8-cpy'.
34712         * modules/unistr/u8-cpy-tests: New file.
34713         * tests/unistr/test-u8-cpy.c: New file.
34714         * tests/unistr/test-cpy.h: New file.
34715
34716 2010-01-09  Bruno Haible  <bruno@clisp.org>
34717
34718         Tests for module 'unistr/u32-uctomb'.
34719         * modules/unistr/u32-uctomb-tests: New file.
34720         * tests/unistr/test-u32-uctomb.c: New file.
34721
34722         Tests for module 'unistr/u16-uctomb'.
34723         * modules/unistr/u16-uctomb-tests: New file.
34724         * tests/unistr/test-u16-uctomb.c: New file.
34725
34726         Tests for module 'unistr/u8-uctomb'.
34727         * modules/unistr/u8-uctomb-tests: New file.
34728         * tests/unistr/test-u8-uctomb.c: New file.
34729
34730         Tests for module 'unistr/u32-mbtoucr'.
34731         * modules/unistr/u32-mbtoucr-tests: New file.
34732         * tests/unistr/test-u32-mbtoucr.c: New file.
34733
34734         Tests for module 'unistr/u16-mbtoucr'.
34735         * modules/unistr/u16-mbtoucr-tests: New file.
34736         * tests/unistr/test-u16-mbtoucr.c: New file.
34737
34738         Tests for module 'unistr/u8-mbtoucr'.
34739         * modules/unistr/u8-mbtoucr-tests: New file.
34740         * tests/unistr/test-u8-mbtoucr.c: New file.
34741
34742         Tests for module 'unistr/u32-mbtouc'.
34743         * modules/unistr/u32-mbtouc-tests: New file.
34744         * tests/unistr/test-u32-mbtouc.c: New file.
34745
34746         Tests for module 'unistr/u16-mbtouc'.
34747         * modules/unistr/u16-mbtouc-tests: New file.
34748         * tests/unistr/test-u16-mbtouc.c: New file.
34749
34750         Tests for module 'unistr/u8-mbtouc'.
34751         * modules/unistr/u8-mbtouc-tests: New file.
34752         * tests/unistr/test-u8-mbtouc.c: New file.
34753
34754         Tests for module 'unistr/u32-mbtouc-unsafe'.
34755         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34756         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34757         * tests/unistr/test-u32-mbtouc.h: New file.
34758
34759         Tests for module 'unistr/u16-mbtouc-unsafe'.
34760         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34761         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34762         * tests/unistr/test-u16-mbtouc.h: New file.
34763
34764         Tests for module 'unistr/u8-mbtouc-unsafe'.
34765         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34766         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34767         * tests/unistr/test-u8-mbtouc.h: New file.
34768
34769         Tests for module 'unistr/u32-mblen'.
34770         * modules/unistr/u32-mblen-tests: New file.
34771         * tests/unistr/test-u32-mblen.c: New file.
34772
34773         Tests for module 'unistr/u16-mblen'.
34774         * modules/unistr/u16-mblen-tests: New file.
34775         * tests/unistr/test-u16-mblen.c: New file.
34776
34777         Tests for module 'unistr/u8-mblen'.
34778         * modules/unistr/u8-mblen-tests: New file.
34779         * tests/unistr/test-u8-mblen.c: New file.
34780
34781         Tests for module 'unistr/u32-to-u16'.
34782         * modules/unistr/u32-to-u16-tests: New file.
34783         * tests/unistr/test-u32-to-u16.c: New file.
34784
34785         Tests for module 'unistr/u32-to-u8'.
34786         * modules/unistr/u32-to-u8-tests: New file.
34787         * tests/unistr/test-u32-to-u8.c: New file.
34788
34789         Tests for module 'unistr/u16-to-u32'.
34790         * modules/unistr/u16-to-u32-tests: New file.
34791         * tests/unistr/test-u16-to-u32.c: New file.
34792
34793         Tests for module 'unistr/u16-to-u8'.
34794         * modules/unistr/u16-to-u8-tests: New file.
34795         * tests/unistr/test-u16-to-u8.c: New file.
34796
34797         Tests for module 'unistr/u8-to-u32'.
34798         * modules/unistr/u8-to-u32-tests: New file.
34799         * tests/unistr/test-u8-to-u32.c: New file.
34800
34801         Tests for module 'unistr/u8-to-u16'.
34802         * modules/unistr/u8-to-u16-tests: New file.
34803         * tests/unistr/test-u8-to-u16.c: New file.
34804
34805         Tests for module 'unistr/u32-check'.
34806         * modules/unistr/u32-check-tests: New file.
34807         * tests/unistr/test-u32-check.c: New file.
34808
34809         Tests for module 'unistr/u16-check'.
34810         * modules/unistr/u16-check-tests: New file.
34811         * tests/unistr/test-u16-check.c: New file.
34812
34813         Tests for module 'unistr/u8-check'.
34814         * modules/unistr/u8-check-tests: New file.
34815         * tests/unistr/test-u8-check.c: New file.
34816
34817         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34818         (category_equals): New function.
34819         (main): Add more tests.
34820         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34821
34822         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34823
34824 2010-01-10  Bruno Haible  <bruno@clisp.org>
34825
34826         unistr/u*-strcoll: Try harder to distinguish different strings.
34827         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34828         compare s1 and s2 to see if they are different.
34829
34830 2010-01-10  Bruno Haible  <bruno@clisp.org>
34831
34832         unistr/u*-stpncpy: Fix the return value.
34833         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34834         description of the return value consistent with stpncpy in glibc.
34835         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34836         written non-NUL unit.
34837
34838 2010-01-10  Bruno Haible  <bruno@clisp.org>
34839
34840         unistr/u*-next: Add missing dependencies.
34841         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34842         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34843         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34844
34845 2010-01-10  Bruno Haible  <bruno@clisp.org>
34846
34847         unistr/u8-mbsnlen: Fix return value for incomplete character.
34848         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34849         u8_mblen.
34850         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34851         Remove unistr/u8-mblen.
34852         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34853         u16_mblen.
34854         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34855         Remove unistr/u16-mblen.
34856
34857 2010-01-10  Bruno Haible  <bruno@clisp.org>
34858
34859         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34860         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34861         Reported by Brian Gough <bjg@gnu.org> and
34862         Chris Clayton <chris2553@googlemail.com> via
34863         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34864
34865 2010-01-09  Bruno Haible  <bruno@clisp.org>
34866
34867         unistr/u16-to-u32: Reject invalid input.
34868         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34869         u16_mbtouc.
34870         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34871         Remove unistr/u16-mbtouc.
34872
34873         unistr/u16-to-u8: Reject invalid input.
34874         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34875         u16_mbtouc.
34876         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34877         Remove unistr/u16-mbtouc.
34878
34879         unistr/u8-to-u32: Reject invalid input.
34880         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34881         u8_mbtouc.
34882         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34883         Remove unistr/u8-mbtouc.
34884
34885         unistr/u8-to-u16: Reject invalid input.
34886         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34887         u8_mbtouc.
34888         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34889         Remove unistr/u8-mbtouc.
34890
34891 2010-01-09  Bruno Haible  <bruno@clisp.org>
34892
34893         Tests for module 'getlogin'.
34894         * modules/getlogin-tests: New file.
34895         * tests/test-getlogin.c: New file.
34896
34897         New module 'getlogin'.
34898         * lib/unistd.in.h (getlogin): New declaration.
34899         * lib/getlogin.c: New file.
34900         * m4/getlogin.m4: New file.
34901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34902         HAVE_GETLOGIN.
34903         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34904         HAVE_GETLOGIN.
34905         * modules/getlogin: New file.
34906         * doc/posix-functions/getlogin.texi: Mention the new module.
34907         Reported by John W. Eaton <jwe@gnu.org>.
34908
34909 2010-01-09  Bruno Haible  <bruno@clisp.org>
34910
34911         getlogin_r: Support for native Windows.
34912         * lib/getlogin_r.c: Include <windows.h>
34913         (getlogin_r): Implement for native Windows.
34914         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34915         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34916         via John W. Eaton <jwe@gnu.org>.
34917
34918 2010-01-09  Bruno Haible  <bruno@clisp.org>
34919
34920         getlogin_r: Small fixes.
34921         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34922         succeeds.
34923         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34924         before testing whether getlogin_r is declared. No need to set
34925         HAVE_DECL_GETLOGIN_R to 1.
34926         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34927
34928 2010-01-09  Bruno Haible  <bruno@clisp.org>
34929
34930         * lib/unistd.in.h (getlogin_r): Add comment.
34931
34932 2010-01-09  Bruno Haible  <bruno@clisp.org>
34933
34934         Tests for module 'getlogin_r'.
34935         * modules/getlogin_r-tests: New file.
34936         * tests/test-getlogin_r.c: New file.
34937
34938 2010-01-09  Jim Meyering  <meyering@redhat.com>
34939
34940         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34941         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34942         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34943
34944 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34945
34946         * lib/dup2.c (rpl_dup2): Improve comment.
34947
34948 2010-01-08  Eric Blake  <ebb9@byu.net>
34949
34950         maint.mk: allow packages to add makefile @@ exceptions
34951         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34952         (sc_makefile_check): Rename...
34953         (sc_makefile_at_at_check): ...to this, and use hook.
34954
34955         dup2: work around mingw bug
34956         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34957         Reported by Simon Josefsson.
34958
34959 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34960
34961         glob: Fix C++ compilation.
34962         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34963         C++.
34964
34965 2010-01-07  Bruno Haible  <bruno@clisp.org>
34966
34967         Fix indentation of wctype.in.h, broken since 2007-01-06.
34968         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34969
34970 2010-01-07  Bruno Haible  <bruno@clisp.org>
34971
34972         mbslen: Avoid collision with system function.
34973         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34974         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34975         * m4/mbslen.m4: New file.
34976         * modules/mbslen (Files): Add it.
34977         (configure.ac): Invoke gl_MBSLEN.
34978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34979         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34980         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34981         via Ian Beckwith <ianb@erislabs.net>.
34982
34983 2010-01-07  Bruno Haible  <bruno@clisp.org>
34984
34985         dirent: Document the last fix.
34986         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34987
34988 2010-01-07  Bruno Haible  <bruno@clisp.org>
34989
34990         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34991         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34992         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34993         va_list are defined.
34994         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34995         Reported by Eric Blake.
34996
34997 2010-01-07  Bruno Haible  <bruno@clisp.org>
34998
34999         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35000         * modules/xlist (Depends-on): Add 'list',
35001         * modules/xoset (Depends-on): Add 'oset'.
35002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35003
35004 2010-01-07  Bruno Haible  <bruno@clisp.org>
35005
35006         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35007         * doc/posix-functions/strncasecmp.texi: Likewise.
35008
35009 2010-01-07  Bruno Haible  <bruno@clisp.org>
35010
35011         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35012
35013 2010-01-07  John W. Eaton  <jwe@octave.org>
35014
35015         wctype: allow C++ use
35016         * lib/wctype.in.h: Add extern "C" block for C++.
35017
35018 2010-01-06  Eric Blake  <ebb9@byu.net>
35019
35020         maint.mk: detect incorrect GFDL usage
35021         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35022
35023 2010-01-06  Jim Meyering  <meyering@redhat.com>
35024         and Eric Blake  <ebb9@byu.net>
35025
35026         maint.mk: ignore multi-line copyright in NEWS
35027         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35028
35029 2010-01-06  Eric Blake  <ebb9@byu.net>
35030
35031         select: add missing dependency
35032         * modules/select-tests (Depends-on): Move sockets dependency...
35033         * modules/select (Depends-on): ...here.
35034         Reported by Ian Beckwith.
35035
35036         doc: regenerate INSTALL
35037         * doc/INSTALL: Reflect recent autoconf update.
35038         * doc/INSTALL.ISO: Likewise.
35039         * doc/INSTALL.UTF-8: Likewise.
35040
35041         pread: fix compilation on glibc
35042         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35043         Reported by Ralf Wildenhues.
35044
35045         dirent: fix test failure
35046         * lib/dirent.in.h (includes): Guarantee ino_t.
35047         Reported by Ralf Wildenhues.
35048
35049 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35050
35051         linkat, renameat: avoid bad free
35052         * lib/at-func2.c (at_func2): Fix typo.
35053         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35054
35055 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35056
35057         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35058         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35059         to avoid failure of symlink test later.
35060
35061 2010-01-06  Eric Blake  <ebb9@byu.net>
35062
35063         stdio, unistd: guarantee ssize_t
35064         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35065         2008 are exposed when needed.
35066         * lib/stdio.in.h (includes): Likewise.
35067         Reported by Ralf Wildenhues.
35068
35069 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35070
35071         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35073         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35074
35075 2010-01-06  Jim Meyering  <meyering@redhat.com>
35076
35077         readtokens: this module *does* require xalloc.h
35078         It uses only functions that were omitted by the old syntax-check rule.
35079         * lib/readtokens.c: Include "xalloc.h" once again.
35080         * modules/readtokens (Depends-on): Add xalloc.
35081         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35082
35083 2010-01-05  Eric Blake  <ebb9@byu.net>
35084
35085         maint: support 'make announcement' from a VPATH build
35086         * top/maint.mk (announcement): Look for correct NEWS file.
35087
35088 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35089
35090         utimens (fdutimens): ignore a negative FD, per contract
35091         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35092         when we have a valid file descriptor.  Otherwise, using a brand
35093         new glibc (with just-patched futimens that now fails with EBADF)
35094         would cause this function to fail with ENOSYS.
35095         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35096         See also http://bugzilla.redhat.com/552320.
35097
35098 2010-01-05  Eric Blake  <ebb9@byu.net>
35099
35100         strcase: document what it provides
35101         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35102         gnulib module.
35103         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35104         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35105
35106 2010-01-05  Jim Meyering  <meyering@redhat.com>
35107
35108         maint: remove useless inclusions of "xalloc.h"
35109         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35110         * lib/readtokens.c: Likewise.
35111         * lib/same.c: Likewise.
35112         * modules/getloadavg (Depends-on): Remove xalloc.
35113         * modules/readtokens: Likewise.
35114         * modules/same: Likewise.
35115
35116         maint.mk: include 4 more function names in alloca.h-checking regexp
35117         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35118         regexp.  Before, we would give a false-positive (saying alloca.h
35119         is included unnecessarily) when the only uses involved omitted symbols.
35120
35121         xalloc.h: use consistent formatting
35122         * lib/xalloc.h: Move declarations to start in the first column.
35123
35124 2010-01-05  Eric Blake  <ebb9@byu.net>
35125
35126         mkdir: avoid xalloc
35127         * lib/mkdir.c (includes): Drop unused header.
35128         Reported by John W. Eaton.
35129
35130 2010-01-04  Jim Meyering  <meyering@redhat.com>
35131
35132         nl_langinfo: avoid configure-time syntax error
35133         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35134         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35135         the empty string.  Don't let that provoke a shell syntax error.
35136
35137         regcomp, regexec, fnmatch: avoid array bounds read error
35138         * lib/regcomp.c (build_equiv_class): From glibc:
35139         Use only the low 24 bits of a findidx return value as an index
35140         into the weights array.  Patch by Ulrich Drepper:
35141         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35142         * lib/regexec.c (check_node_accept_bytes): Likewise.
35143         * lib/fnmatch_loop.c (FCT): Likewise.
35144
35145         regcomp: skip collseq lookup when there are no rules
35146         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35147         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35148
35149         regcomp: recognize ill-formed { } expressions
35150         * lib/regcomp.c (parse_dup_op): From glibc:
35151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35152
35153         regcomp: fix typo in comment
35154         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35155         s/satisfy/satisfies/.
35156
35157         regcomp: sync from glibc: remove dead store
35158         * lib/regcomp.c (duplicate_node_closure): Remove useless
35159         search_duplicated_node call and dead store.
35160
35161         regcomp: sync from glibc; always use nl_langinfo
35162         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35163         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35164         * modules/regex (Depends-on): Add nl_langinfo.
35165
35166 2010-01-04  Eric Blake  <ebb9@byu.net>
35167
35168         fdopendir: fix configure test
35169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35170
35171 2010-01-01  Bruno Haible  <bruno@clisp.org>
35172
35173         wchar: Remove unused configure check.
35174         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35175
35176 2010-01-01  Eric Blake  <ebb9@byu.net>
35177
35178         headers: make check of system header explicit
35179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35180         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35181         ourselves.
35182         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35186         internals.
35187         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35188         missing.
35189         Suggested by Bruno Haible.
35190
35191 2010-01-01  Jim Meyering  <meyering@redhat.com>
35192
35193         ChangeLog: tweak to eliminate unnecessary copyright line
35194         * ChangeLog: Remove a copyright line that was mistakenly updated
35195         by today's update-copyright run.  Reported by Eric Blake.
35196
35197         test-update-copyright: don't let envvar setting cause test failure
35198         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35199
35200 2010-01-01  Bruno Haible  <bruno@clisp.org>
35201
35202         localename: Avoid gcc warning.
35203         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35204         function if it is not used.
35205
35206 2010-01-01  Jim Meyering  <meyering@redhat.com>
35207
35208         update nearly all FSF copyright year lists to include 2010
35209         Use the same procedure as for 2009, outlined in
35210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35211
35212         version-etc: set COPYRIGHT_YEAR to 2010
35213         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35214
35215 2009-12-31  Eric Blake  <ebb9@byu.net>
35216
35217         doc: correct availability of cygwin 1.5.x getopt
35218         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35219         variables.
35220         * doc/posix-functions/opterr.texi (opterr): Likewise.
35221         * doc/posix-functions/optind.texi (optind): Likewise.
35222         * doc/posix-functions/optopt.texi (optopt): Likewise.
35223         * doc/posix-functions/tzname.texi (tzname): Likewise.
35224
35225         openat: update maintainer
35226         * modules/openat (Maintainer): Add myself.
35227
35228         utimens: avoid shadowing warning
35229         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35230         buffers into one, to avoid shadowing, as well as avoiding a
35231         redundant stat.
35232         Reported by Jim Meyering.
35233
35234         test-dup2: avoid compiler warning
35235         * tests/test-dup2.c (is_inheritable): Only define if used.
35236
35237 2010-01-01  Bruno Haible  <bruno@clisp.org>
35238
35239         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35240         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35241         defined, use wctomb instead of wcrtomb.
35242
35243 2010-01-01  Bruno Haible  <bruno@clisp.org>
35244
35245         iconv: Reject native Solaris iconv.
35246         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35247         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35248
35249 2009-12-31  Bruno Haible  <bruno@clisp.org>
35250
35251         * tests/test-signal.c (main): Remove test of 'SIG'.
35252
35253 2009-12-31  Bruno Haible  <bruno@clisp.org>
35254
35255         spawn: Fix incomplete fix.
35256         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35257         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35258         warnings for GNULIB_POSIXCHECK again.
35259         Reported by Eric Blake.
35260
35261 2009-12-31  Bruno Haible  <bruno@clisp.org>
35262
35263         Avoid namespace pollution on glibc systems.
35264         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35265         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35266         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35267         glibc systems.
35268
35269 2009-12-31  Bruno Haible  <bruno@clisp.org>
35270
35271         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35272         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35273         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35274         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35275         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35277         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35278
35279 2009-12-31  Bruno Haible  <bruno@clisp.org>
35280
35281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35282         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35283         afterwards.
35284
35285 2009-12-31  Bruno Haible  <bruno@clisp.org>
35286
35287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35288         SYS_UTSNAME_H.
35289
35290 2009-12-31  Bruno Haible  <bruno@clisp.org>
35291
35292         spawn: Fix misapplied patch.
35293         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35294         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35295         warnings for GNULIB_POSIXCHECK.
35296
35297 2009-12-31  Bruno Haible  <bruno@clisp.org>
35298
35299         times: Update after sys_times changed.
35300         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35301         * modules/times (Files): Add it.
35302         (configure.ac): Invoke gl_FUNC_TIMES.
35303
35304 2009-12-31  Bruno Haible  <bruno@clisp.org>
35305
35306         Use AC_C_INLINE where necessary.
35307         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35310         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35311         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35312         * m4/mbiter.m4 (gl_MBITER): Likewise.
35313         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35314         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35316         * modules/u64 (configure.ac): Likewise.
35317
35318 2009-12-31  Bruno Haible  <bruno@clisp.org>
35319
35320         Use AC_C_INLINE instead of module 'inline' where possible.
35321         * modules/inline (Description): Clarify purpose.
35322         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35323         * modules/count-one-bits (Depends-on): Remove inline.
35324         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35325         * modules/openat (Depends-on): Remove inline.
35326         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35327         instead of depending on module 'inline'.
35328         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35329         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35330         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35331         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35332         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35333         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35334         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35335         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35336         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35337         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35338         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35339         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35340         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35341         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35342         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35343         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35344         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35345         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35346         Likewise.
35347         * modules/unictype/property-ascii-hex-digit (Depends-on,
35348         configure.ac): Likewise.
35349         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35350         configure.ac): Likewise.
35351         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35352         configure.ac): Likewise.
35353         * modules/unictype/property-bidi-block-separator (Depends-on,
35354         configure.ac): Likewise.
35355         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35356         configure.ac): Likewise.
35357         * modules/unictype/property-bidi-common-separator (Depends-on,
35358         configure.ac): Likewise.
35359         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35360         Likewise.
35361         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35362         configure.ac): Likewise.
35363         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35364         configure.ac): Likewise.
35365         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35366         configure.ac): Likewise.
35367         * modules/unictype/property-bidi-european-digit (Depends-on,
35368         configure.ac): Likewise.
35369         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35370         configure.ac): Likewise.
35371         * modules/unictype/property-bidi-left-to-right (Depends-on,
35372         configure.ac): Likewise.
35373         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35374         configure.ac): Likewise.
35375         * modules/unictype/property-bidi-other-neutral (Depends-on,
35376         configure.ac): Likewise.
35377         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35378         Likewise.
35379         * modules/unictype/property-bidi-segment-separator (Depends-on,
35380         configure.ac): Likewise.
35381         * modules/unictype/property-bidi-whitespace (Depends-on,
35382         configure.ac): Likewise.
35383         * modules/unictype/property-combining (Depends-on, configure.ac):
35384         Likewise.
35385         * modules/unictype/property-composite (Depends-on, configure.ac):
35386         Likewise.
35387         * modules/unictype/property-currency-symbol (Depends-on,
35388         configure.ac): Likewise.
35389         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35390         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35391         Likewise.
35392         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35393         configure.ac): Likewise.
35394         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35395         Likewise.
35396         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35397         Likewise.
35398         * modules/unictype/property-extender (Depends-on, configure.ac):
35399         Likewise.
35400         * modules/unictype/property-format-control (Depends-on, configure.ac):
35401         Likewise.
35402         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35403         Likewise.
35404         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35405         Likewise.
35406         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35407         Likewise.
35408         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35409         Likewise.
35410         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35411         Likewise.
35412         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35413         Likewise.
35414         * modules/unictype/property-id-start (Depends-on, configure.ac):
35415         Likewise.
35416         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35417         Likewise.
35418         * modules/unictype/property-ids-binary-operator (Depends-on,
35419         configure.ac): Likewise.
35420         * modules/unictype/property-ids-trinary-operator (Depends-on,
35421         configure.ac): Likewise.
35422         * modules/unictype/property-ignorable-control (Depends-on,
35423         configure.ac): Likewise.
35424         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35425         Likewise.
35426         * modules/unictype/property-join-control (Depends-on, configure.ac):
35427         Likewise.
35428         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35429         Likewise.
35430         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35431         Likewise.
35432         * modules/unictype/property-logical-order-exception (Depends-on,
35433         configure.ac): Likewise.
35434         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35435         Likewise.
35436         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35437         * modules/unictype/property-non-break (Depends-on, configure.ac):
35438         Likewise.
35439         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35440         Likewise.
35441         * modules/unictype/property-numeric (Depends-on, configure.ac):
35442         Likewise.
35443         * modules/unictype/property-other-alphabetic (Depends-on,
35444         configure.ac): Likewise.
35445         * modules/unictype/property-other-default-ignorable-code-point
35446         (Depends-on, configure.ac): Likewise.
35447         * modules/unictype/property-other-grapheme-extend (Depends-on,
35448         configure.ac): Likewise.
35449         * modules/unictype/property-other-id-continue (Depends-on,
35450         configure.ac): Likewise.
35451         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35452         Likewise.
35453         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35454         Likewise.
35455         * modules/unictype/property-other-math (Depends-on, configure.ac):
35456         Likewise.
35457         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35458         Likewise.
35459         * modules/unictype/property-paired-punctuation (Depends-on,
35460         configure.ac): Likewise.
35461         * modules/unictype/property-paragraph-separator (Depends-on,
35462         configure.ac): Likewise.
35463         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35464         Likewise.
35465         * modules/unictype/property-pattern-white-space (Depends-on,
35466         configure.ac): Likewise.
35467         * modules/unictype/property-private-use (Depends-on, configure.ac):
35468         Likewise.
35469         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35470         Likewise.
35471         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35472         Likewise.
35473         * modules/unictype/property-radical (Depends-on, configure.ac):
35474         Likewise.
35475         * modules/unictype/property-sentence-terminal (Depends-on,
35476         configure.ac): Likewise.
35477         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35478         Likewise.
35479         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35480         * modules/unictype/property-terminal-punctuation (Depends-on,
35481         configure.ac): Likewise.
35482         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35483         Likewise.
35484         * modules/unictype/property-unassigned-code-value (Depends-on,
35485         configure.ac): Likewise.
35486         * modules/unictype/property-unified-ideograph (Depends-on,
35487         configure.ac): Likewise.
35488         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35489         Likewise.
35490         * modules/unictype/property-variation-selector (Depends-on,
35491         configure.ac): Likewise.
35492         * modules/unictype/property-white-space (Depends-on, configure.ac):
35493         Likewise.
35494         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35495         Likewise.
35496         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35497         Likewise.
35498         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35499         Likewise.
35500         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35501         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35502         Likewise.
35503
35504 2009-12-31  Bruno Haible  <bruno@clisp.org>
35505
35506         Remove unnecessary AC_C_INLINE invocation.
35507         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35508         since 2009-08-21.
35509
35510 2009-12-31  Jim Meyering  <meyering@redhat.com>
35511
35512         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35513         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35514         With this change, we can all remove the gpg_key_ID = ... definition
35515         from our respective cfg.mk files.
35516
35517         maint.mk: create announcement template in ~/, not in /tmp
35518         * top/maint.mk (emit_upload_commands): Adjust.
35519         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35520         Remove temporary file, .ci-msg.
35521
35522 2009-12-31  Eric Blake  <ebb9@byu.net>
35523
35524         link-warning: always build headers with link warnings
35525         * modules/arpa_inet (Makefile.am): Always build replacement
35526         header.
35527         * modules/ctype (Makefile.am): Likewise.
35528         * modules/dirent (Makefile.am): Likewise.
35529         * modules/inttypes (Makefile.am): Likewise.
35530         * modules/langinfo (Makefile.am): Likewise.
35531         * modules/locale (Makefile.am): Likewise.
35532         * modules/spawn (Makefile.am): Likewise.
35533         * modules/sys_file (Makefile.am): Likewise.
35534         * modules/sys_ioctl (Makefile.am): Likewise.
35535         * modules/sys_select (Makefile.am): Likewise.
35536         * modules/sys_socket (Makefile.am): Likewise.
35537         * modules/sys_times (Makefile.am): Likewise.
35538         * modules/sys_utsname (Makefile.am): Likewise.
35539         * modules/sys_wait (Makefile.am): Likewise.
35540         * modules/wchar (Makefile.am): Likewise.
35541         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35542         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35543         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35544         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35546         Likewise.
35547         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35548         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35549         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35550         Likewise.
35551         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35552         Likewise.
35553         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35555         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35557         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35559         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35560         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35561         (gl_WCHAR_H_DEFAULTS): Likewise.
35562
35563 2009-12-31  Eric Blake  <ebb9@byu.net>
35564
35565         signal, spawn: use link warnings
35566         * lib/signal.in.h (sigset_t): Make unconditional.
35567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35568         (sigpending, sigprocmask, sigaction): Add link warnings.
35569         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35570         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35571         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35572         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35573         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35574         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35575         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35576         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35577         (posix_spawn_file_actions_destroy)
35578         (posix_spawn_file_actions_addopen)
35579         (posix_spawn_file_actions_addclose)
35580         (posix_spawn_file_actions_adddup2): Likewise.
35581         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35582         * tests/test-signal.c (main): Enhance test.
35583
35584         spawn: improve wrapper support
35585         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35586         (gl_SPAWN_H_DEFAULTS): New defaults.
35587         * modules/spawn (Makefile.am): Substitute them.
35588         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35589         Only declare if missing or broken.
35590
35591         sys_times, sys_utsname: use include_next
35592         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35593         header.
35594         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35596         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35597         * modules/sys_times (Depends-on): Add include_next.
35598         (Makefile.am): Substitute additional values.
35599         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35600         * lib/sys_times.in.h (includes): Include native header, if
35601         available.
35602         * lib/sys_utsname.in.h (includes): Likewise.
35603         * tests/test-sys_times.c (main): Enhance test.
35604
35605         fdutimensat: revert prior patch
35606         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35607         utimens.h.
35608         Reported by Bruno Haible.
35609
35610 2009-12-30  Eric Blake  <ebb9@byu.net>
35611
35612         sys_wait: drop link-warning dependency
35613         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35614         link-warning efforts.
35615         * lib/sys_wait.in.h: Likewise.
35616
35617         fdutimensat: remove bogus dependency
35618         * modules/fdutimensat (Depends-on): Drop inline.
35619
35620         unistd: fix typo
35621         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35622
35623 2009-12-30  Bruno Haible  <bruno@clisp.org>
35624
35625         Fix compilation error with Solaris cc.
35626         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35627         * lib/unicase/u16-is-invariant.c: Likewise.
35628         * lib/unicase/u32-is-invariant.c: Likewise.
35629         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35630
35631 2009-12-30  Bruno Haible  <bruno@clisp.org>
35632
35633         Fix test crash.
35634         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35635         locales.
35636         Reported by Simon Josefsson <simon@josefsson.org>.
35637
35638 2009-12-30  Bruno Haible  <bruno@clisp.org>
35639
35640         Fix compilation error on most platforms.
35641         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35642         Reported by Simon Josefsson <simon@josefsson.org>
35643         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35644
35645 2009-12-30  Eric Blake  <ebb9@byu.net>
35646
35647         futimens, utimensat: work around ntfs-3g bug
35648         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35649         a ctime bug is present, and expand workaround to cover ntfs-3g.
35650         * lib/utimens.c (fdutimens, lutimens): Likewise.
35651         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35652         (validate_timespec): Adjust return value.
35653         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35655         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35656
35657 2009-12-29  Eric Blake  <ebb9@byu.net>
35658
35659         link-warning: make usage consistent
35660         * modules/ctype (Depends-on): Add link-warning.
35661         (Makefile.am): Update rules accordingly.
35662         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35663         * modules/locale (Depends-on, Makefile.am): Likewise.
35664         * modules/sys_file (Makefile.am): Likewise.
35665         * modules/getopt-posix (Makefile.am): Delete unused link warning
35666         efforts.
35667         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35668         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35669         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35670         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35671
35672         stdio: remove unused variables
35673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35675         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35676
35677         tests: test more substitute headers
35678         * modules/ctype-tests: New file.
35679         * modules/dirent-tests: Likewise.
35680         * modules/spawn-tests: Likewise.
35681         * modules/sys_file-tests: Likewise.
35682         * modules/sys_ioctl-tests: Likewise.
35683         * modules/sys_wait-tests: Likewise.
35684         * tests/test-ctype.c: Likewise.
35685         * tests/test-dirent.c: Likewise.
35686         * tests/test-spawn.c: Likewise.
35687         * tests/test-sys_file.c: Likewise.
35688         * tests/test-sys_ioctl.c: Likewise.
35689         * tests/test-sys_wait.c: Likewise.
35690         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35691         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35692         whether or not flock is in use.
35693
35694         tests: remove License section from module
35695         * modules/arpa_inet-tests: Remove unneeded section.
35696         * modules/byteswap-tests: Likewise.
35697         * modules/ceilf-tests: Likewise.
35698         * modules/ceill-tests: Likewise.
35699         * modules/crypto/des-tests: Likewise.
35700         * modules/crypto/gc-arcfour-tests: Likewise.
35701         * modules/crypto/gc-arctwo-tests: Likewise.
35702         * modules/crypto/gc-des-tests: Likewise.
35703         * modules/crypto/gc-hmac-md5-tests: Likewise.
35704         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35705         * modules/crypto/gc-md2-tests: Likewise.
35706         * modules/crypto/gc-md4-tests: Likewise.
35707         * modules/crypto/gc-md5-tests: Likewise.
35708         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35709         * modules/crypto/gc-rijndael-tests: Likewise.
35710         * modules/crypto/gc-sha1-tests: Likewise.
35711         * modules/crypto/gc-tests: Likewise.
35712         * modules/crypto/md2-tests: Likewise.
35713         * modules/crypto/md4-tests: Likewise.
35714         * modules/fcntl-h-tests: Likewise.
35715         * modules/floorf-tests: Likewise.
35716         * modules/floorl-tests: Likewise.
35717         * modules/frexp-nolibm-tests: Likewise.
35718         * modules/frexp-tests: Likewise.
35719         * modules/frexpl-nolibm-tests: Likewise.
35720         * modules/frexpl-tests: Likewise.
35721         * modules/getaddrinfo-tests: Likewise.
35722         * modules/inttypes-tests: Likewise.
35723         * modules/isfinite-tests: Likewise.
35724         * modules/isinf-tests: Likewise.
35725         * modules/ldexpl-tests: Likewise.
35726         * modules/locale-tests: Likewise.
35727         * modules/math-tests: Likewise.
35728         * modules/netdb-tests: Likewise.
35729         * modules/netinet_in-tests: Likewise.
35730         * modules/printf-frexp-tests: Likewise.
35731         * modules/printf-frexpl-tests: Likewise.
35732         * modules/priv-set-tests: Likewise.
35733         * modules/random_r-tests: Likewise.
35734         * modules/round-tests: Likewise.
35735         * modules/roundf-tests: Likewise.
35736         * modules/roundl-tests: Likewise.
35737         * modules/search-tests: Likewise.
35738         * modules/select-tests: Likewise.
35739         * modules/signal-tests: Likewise.
35740         * modules/stdbool-tests: Likewise.
35741         * modules/stddef-tests: Likewise.
35742         * modules/stdint-tests: Likewise.
35743         * modules/stdio-tests: Likewise.
35744         * modules/stdlib-tests: Likewise.
35745         * modules/string-tests: Likewise.
35746         * modules/strings-tests: Likewise.
35747         * modules/sys_select-tests: Likewise.
35748         * modules/sys_socket-tests: Likewise.
35749         * modules/sys_stat-tests: Likewise.
35750         * modules/sys_time-tests: Likewise.
35751         * modules/sys_utsname-tests: Likewise.
35752         * modules/sysexits-tests: Likewise.
35753         * modules/time-tests: Likewise.
35754         * modules/trunc-tests: Likewise.
35755         * modules/truncf-tests: Likewise.
35756         * modules/truncl-tests: Likewise.
35757         * modules/tsearch-tests: Likewise.
35758         * modules/unistd-tests: Likewise.
35759         * modules/wchar-tests: Likewise.
35760         * modules/wctype-tests: Likewise.
35761
35762         tests: fix license on several tests
35763         * tests/test-des.c: Update to GPLv3+.
35764         * tests/test-flock.c: Likewise.
35765         * tests/test-fsync.c: Likewise.
35766         * tests/test-futimens.h: Likewise.
35767         * tests/test-gc-arcfour.c: Likewise.
35768         * tests/test-gc-arctwo.c: Likewise.
35769         * tests/test-gc-des.c: Likewise.
35770         * tests/test-gc-hmac-md5.c: Likewise.
35771         * tests/test-gc-hmac-sha1.c: Likewise.
35772         * tests/test-gc-md2.c: Likewise.
35773         * tests/test-gc-md4.c: Likewise.
35774         * tests/test-gc-md5.c: Likewise.
35775         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35776         * tests/test-gc-rijndael.c: Likewise.
35777         * tests/test-gc-sha1.c: Likewise.
35778         * tests/test-gc.c: Likewise.
35779         * tests/test-getcwd.c: Likewise.
35780         * tests/test-link.c: Likewise.
35781         * tests/test-link.h: Likewise.
35782         * tests/test-lutimens.h: Likewise.
35783         * tests/test-md2.c: Likewise.
35784         * tests/test-md4.c: Likewise.
35785         * tests/test-mkdir.h: Likewise.
35786         * tests/test-rename.c: Likewise.
35787         * tests/test-rename.h: Likewise.
35788         * tests/test-safe-alloc.c: Likewise.
35789         * tests/test-utimens-common.h: Likewise.
35790         * tests/test-utimens.h: Likewise.
35791
35792         maint: sync license texts
35793         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35794         * doc/gpl-3.0.texi: Revert copyright year update.
35795         * doc/lgpl-3.0.texi: Likewise.
35796
35797 2009-12-29  Jim Meyering  <meyering@redhat.com>
35798
35799         update nearly all FSF copyright year lists to include 2009
35800         The files named by the following are exempted:
35801             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35802               test -f "$dst" && { echo "$dst"; continue; }
35803               test -d "$dst" || continue
35804               echo "$dst"/$(basename "$src")
35805             done > exempt
35806             git ls-files tests/unictype >> exempt
35807         In the remaining files, convert to all-interval notation if
35808         - there is already at least one year interval like 2000-2003
35809         - the file is maintained by me
35810         - the file is in lib/uni*/, where that style already prevails
35811         Otherwise, use update-copyright's default.
35812
35813 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35814         and Eric Blake  <ebb9@byu.net>
35815
35816         tests: don't require debug system() to pass
35817         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35818         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35819         * tests/test-unlink.h (test_unlink_func): Likewise.
35820         * tests/test-fstatat.c (main): ...into callers.
35821         * tests/test-lstat.c (main): Likewise.
35822         * tests/test-rmdir.c (main): Likewise.
35823         * tests/test-unlink.c (main): Likewise.
35824         * tests/test-unlinkat.c (main): Likewise.
35825         * tests/test-areadlink-with-size.c (main): Don't require a
35826         debug-only system call to pass, aiding cross-testing to mingw.
35827         * tests/test-areadlink.c (main): Likewise.
35828         * tests/test-areadlinkat-with-size.c (main): Likewise.
35829         * tests/test-areadlinkat.c (main): Likewise.
35830         * tests/test-canonicalize-lgpl.c (main): Likewise.
35831         * tests/test-canonicalize.c (main): Likewise.
35832         * tests/test-chown.c (main): Likewise.
35833         * tests/test-fchownat.c (main): Likewise.
35834         * tests/test-lchown.c (main): Likewise.
35835         * tests/test-fdutimensat.c (main): Likewise.
35836         * tests/test-futimens.c (main): Likewise.
35837         * tests/test-link.c (main): Likewise.
35838         * tests/test-linkat.c (main): Likewise.
35839         * tests/test-mkdir.c (main): Likewise.
35840         * tests/test-mkdirat.c (main): Likewise.
35841         * tests/test-mkfifo.c (main): Likewise.
35842         * tests/test-mkfifoat.c (main): Likewise.
35843         * tests/test-mknod.c (main): Likewise.
35844         * tests/test-readlink.c (main): Likewise.
35845         * tests/test-remove.c (main): Likewise.
35846         * tests/test-rename.c (main): Likewise.
35847         * tests/test-renameat.c (main): Likewise.
35848         * tests/test-symlink.c (main): Likewise.
35849         * tests/test-symlinkat.c (main): Likewise.
35850         * tests/test-utimens.c (main): Likewise.
35851         * tests/test-utimensat.c (main): Likewise.
35852
35853 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35854
35855         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35856         on $(UNUSED_PARAMETER_H) to avoid build failure.
35857
35858 2009-12-28  Jim Meyering  <meyering@redhat.com>
35859
35860         update-copyright: you may specify a max. line length other than 72
35861         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35862
35863         maint: use consistent FSF copyright line syntax
35864         * lib/posixtm.c: Add missing comma in FSF copyright line.
35865         * lib/posixtm.h: Likewise.
35866         * lib/getugroups.c: Add missing ", Inc.".
35867
35868         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35869         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35870         FSF copyright line.  Remove trailing blanks.
35871
35872 2009-12-28  Eric Blake  <ebb9@byu.net>
35873
35874         test-dup2: reduce dependencies
35875         * modules/cloexec (Configure.ac): Set witness.
35876         * modules/dup2-tests (Depends-on): Drop cloexec.
35877         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35878         not present.
35879         Suggested by Bruno Haible.
35880
35881 2009-12-26  Bruno Haible  <bruno@clisp.org>
35882
35883         Remove an unneeded dependency.
35884         * modules/fseterr (Depends-on): Remove dup2.
35885
35886 2009-12-26  Eric Blake  <ebb9@byu.net>
35887
35888         tests: use macros.h in more places
35889         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35890         (ASSERT_STREAM): Provide default of stderr.
35891         * tests/test-dirent-safer.c: Include macros.h, using alternate
35892         stream for assertions.
35893         * tests/test-dup-safer.c: Likewise.
35894         * tests/test-freopen-safer.c: Likewise.
35895         * tests/test-getopt.c: Likewise.
35896         * tests/test-openat-safer.c: Likewise.
35897         * tests/test-pipe.c: Likewise.
35898         * tests/test-popen-safer.c: Likewise.
35899         * modules/dirent-safer-tests (Files): Include macros.h.
35900         * modules/unistd-safer-tests (Files): Likewise.
35901         * modules/freopen-safer-tests (Files): Likewise.
35902         * modules/getopt-posix-tests (Files): Likewise.
35903         * modules/openat-safer-tests (Files): Likewise.
35904         * modules/pipe-tests (Files): Likewise.
35905
35906 2009-12-26  Bruno Haible  <bruno@clisp.org>
35907
35908         javacomp: Portability fix.
35909         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35910         that it also works on Solaris.
35911
35912 2009-12-26  Bruno Haible  <bruno@clisp.org>
35913
35914         localename: Fix storage allocation of gl_locale_name_thread's result.
35915         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35916         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35917         all platforms that have 'uselocale'.
35918         (gl_locale_name_thread_unsafe): New function, extracted from
35919         gl_locale_name_thread.
35920         (gl_locale_name_thread): Call struniq on all platforms that have
35921         'uselocale'.
35922         * tests/test-localename.c (test_locale_name_thread): Check that the
35923         resulting strings are permanently allocated.
35924         * modules/localename-tests (Depends-on): Add strdup.
35925
35926 2009-12-26  Bruno Haible  <bruno@clisp.org>
35927
35928         * tests/test-localename.c (categories): Fill in the strings.
35929
35930 2009-12-26  Jim Meyering  <meyering@redhat.com>
35931
35932         isdir: complete the removal of m4/isdir.m4
35933         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35934
35935         isdir: clean up, since at least grep still uses it
35936         * lib/isdir.c: Include "isdir.h".
35937         (S_ISDIR): Remove now-unneeded definition.
35938         * modules/isdir (Files): Add lib/isdir.h.
35939         * lib/isdir.h: New file, with declaration.
35940         * m4/isdir.m4: Remove file -- unneeded.
35941
35942 2009-12-25  Bruno Haible  <bruno@clisp.org>
35943
35944         selinux-h: Make generated .h files standalone.
35945         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35946         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35947         * lib/se-selinux.in.h: Likewise.
35948         * modules/selinux-h (Depends-on): Add unused-parameter.
35949         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35950         selinux/selinux.h and selinux/context.h.
35951         Suggested by Eric Blake.
35952
35953 2009-12-25  Bruno Haible  <bruno@clisp.org>
35954
35955         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35956         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35957         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35958         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35959         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35960
35961 2009-12-24  Bruno Haible  <bruno@clisp.org>
35962
35963         openat: Fix warning.
35964         * lib/openat-proc.c: Include <unistd.h>.
35965
35966 2009-12-24  Bruno Haible  <bruno@clisp.org>
35967
35968         New module 'unused-parameter'.
35969         * build-aux/unused-parameter.h: New file, extracted from earlier
35970         gnulib-common.m4.
35971         * modules/unused-parameter: New file.
35972         * lib/unistr.h: Include unused-parameter.h.
35973         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35974         _GL_UNUSED.
35975         * modules/unistr/base (Depends-on): Add unused-parameter.
35976
35977 2009-12-24  Bruno Haible  <bruno@clisp.org>
35978
35979         Add missing dependencies to 'extensions' module.
35980         * m4/extensions.m4: Add comment.
35981         * modules/accept4 (Depends-on): Add extensions.
35982         * modules/dup3 (Depends-on): Likewise.
35983         * modules/fcntl (Depends-on): Likewise.
35984         * modules/futimens (Depends-on): Likewise.
35985         * modules/mknod (Depends-on): Likewise.
35986         * modules/pipe2 (Depends-on): Likewise.
35987         * modules/stat-time (Depends-on): Likewise.
35988         * modules/strcasestr-simple (Depends-on): Likewise.
35989         * modules/strsignal (Depends-on): Likewise.
35990         * modules/utimensat (Depends-on): Likewise.
35991         * modules/localcharset (Depends-on): Likewise. Needed because of
35992         gl_FCNTL_O_FLAGS.
35993         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35994         AC_TYPE_MBSTATE_T.
35995         * modules/wcsnrtombs (Depends-on): Likewise.
35996         * modules/wcsrtombs (Depends-on): Likewise.
35997
35998 2009-12-24  Bruno Haible  <bruno@clisp.org>
35999
36000         binary-io: Avoid gcc warning due to SET_BINARY.
36001         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36002         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36003
36004 2009-12-24  Bruno Haible  <bruno@clisp.org>
36005
36006         Avoid future namespace pollution on glibc systems.
36007         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36008         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36009         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36010         glibc systems.
36011
36012 2009-12-24  Bruno Haible  <bruno@clisp.org>
36013
36014         Refactor common macros used in tests.
36015         * tests/macros.h: New file.
36016         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36017         and/or <stdlib.h>, if appropriate.
36018         (ASSERT, SIZEOF): Remove macros.
36019         * tests/test-areadlink-with-size.c: Likewise.
36020         * tests/test-areadlinkat.c: Likewise.
36021         * tests/test-areadlinkat-with-size.c: Likewise.
36022         * tests/test-argmatch.c: Likewise.
36023         * tests/test-argv-iter.c: Likewise.
36024         * tests/test-array-mergesort.c: Likewise.
36025         * tests/test-array_list.c: Likewise.
36026         * tests/test-array_oset.c: Likewise.
36027         * tests/test-avltree_list.c: Likewise.
36028         * tests/test-avltree_oset.c: Likewise.
36029         * tests/test-avltreehash_list.c: Likewise.
36030         * tests/test-base64.c: Likewise.
36031         * tests/test-binary-io.c: Likewise.
36032         * tests/test-bitrotate.c: Likewise.
36033         * tests/test-btowc.c: Likewise.
36034         * tests/test-byteswap.c: Likewise.
36035         * tests/test-c-ctype.c: Likewise.
36036         * tests/test-c-stack.c: Likewise.
36037         * tests/test-c-strcasecmp.c: Likewise.
36038         * tests/test-c-strcasestr.c: Likewise.
36039         * tests/test-c-strncasecmp.c: Likewise.
36040         * tests/test-c-strstr.c: Likewise.
36041         * tests/test-canonicalize-lgpl.c: Likewise.
36042         * tests/test-canonicalize.c: Likewise.
36043         * tests/test-carray_list.c: Likewise.
36044         * tests/test-ceilf1.c: Likewise.
36045         * tests/test-ceilf2.c: Likewise.
36046         * tests/test-ceill.c: Likewise.
36047         * tests/test-chown.c: Likewise.
36048         * tests/test-cloexec.c: Likewise.
36049         * tests/test-copy-acl.c: Likewise.
36050         * tests/test-copy-file.c: Likewise.
36051         * tests/test-count-one-bits.c: Likewise.
36052         * tests/test-dprintf-posix.c: Likewise.
36053         * tests/test-dup2.c: Likewise.
36054         * tests/test-dup3.c: Likewise.
36055         * tests/test-duplocale.c: Likewise.
36056         * tests/test-fbufmode.c: Likewise.
36057         * tests/test-fchdir.c: Likewise.
36058         * tests/test-fchownat.c: Likewise.
36059         * tests/test-fcntl-safer.c: Likewise.
36060         * tests/test-fcntl.c: Likewise.
36061         * tests/test-fdopendir.c: Likewise.
36062         * tests/test-fdutimensat.c: Likewise.
36063         * tests/test-fflush2.c: Likewise.
36064         * tests/test-file-has-acl.c: Likewise.
36065         * tests/test-filevercmp.c: Likewise.
36066         * tests/test-flock.c: Likewise.
36067         * tests/test-floorf1.c: Likewise.
36068         * tests/test-floorf2.c: Likewise.
36069         * tests/test-floorl.c: Likewise.
36070         * tests/test-fnmatch.c: Likewise.
36071         * tests/test-fopen.h: Likewise.
36072         * tests/test-fpending.c: Likewise.
36073         * tests/test-fprintf-posix.c: Likewise.
36074         * tests/test-fpurge.c: Likewise.
36075         * tests/test-freadable.c: Likewise.
36076         * tests/test-freadahead.c: Likewise.
36077         * tests/test-freading.c: Likewise.
36078         * tests/test-freadptr.c: Likewise.
36079         * tests/test-freadptr2.c: Likewise.
36080         * tests/test-freadseek.c: Likewise.
36081         * tests/test-freopen.c: Likewise.
36082         * tests/test-frexp.c: Likewise.
36083         * tests/test-frexpl.c: Likewise.
36084         * tests/test-fseek.c: Likewise.
36085         * tests/test-fseeko.c: Likewise.
36086         * tests/test-fstatat.c: Likewise.
36087         * tests/test-fstrcmp.c: Likewise.
36088         * tests/test-fsync.c: Likewise.
36089         * tests/test-ftell.c: Likewise.
36090         * tests/test-ftello.c: Likewise.
36091         * tests/test-func.c: Likewise.
36092         * tests/test-futimens.c: Likewise.
36093         * tests/test-fwritable.c: Likewise.
36094         * tests/test-fwriting.c: Likewise.
36095         * tests/test-getcwd.c: Likewise.
36096         * tests/test-getdate.c: Likewise.
36097         * tests/test-getdelim.c: Likewise.
36098         * tests/test-getdtablesize.c: Likewise.
36099         * tests/test-getgroups.c: Likewise.
36100         * tests/test-getline.c: Likewise.
36101         * tests/test-getndelim2.c: Likewise.
36102         * tests/test-glob.c: Likewise.
36103         * tests/test-hash.c: Likewise.
36104         * tests/test-i-ring.c: Likewise.
36105         * tests/test-iconv-utf.c: Likewise.
36106         * tests/test-iconv.c: Likewise.
36107         * tests/test-idpriv-drop.c: Likewise.
36108         * tests/test-idpriv-droptemp.c: Likewise.
36109         * tests/test-inet_ntop.c: Likewise.
36110         * tests/test-inet_pton.c: Likewise.
36111         * tests/test-isblank.c: Likewise.
36112         * tests/test-isfinite.c: Likewise.
36113         * tests/test-isinf.c: Likewise.
36114         * tests/test-isnan.c: Likewise.
36115         * tests/test-isnand.h: Likewise.
36116         * tests/test-isnanf.h: Likewise.
36117         * tests/test-isnanl.h: Likewise.
36118         * tests/test-lchown.c: Likewise.
36119         * tests/test-ldexpl.c: Likewise.
36120         * tests/test-link.c: Likewise.
36121         * tests/test-linkat.c: Likewise.
36122         * tests/test-linked_list.c: Likewise.
36123         * tests/test-linkedhash_list.c: Likewise.
36124         * tests/test-localename.c: Likewise.
36125         * tests/test-lseek.c: Likewise.
36126         * tests/test-lstat.c: Likewise.
36127         * tests/test-mbmemcasecmp.c: Likewise.
36128         * tests/test-mbmemcasecoll.c: Likewise.
36129         * tests/test-mbrtowc.c: Likewise.
36130         * tests/test-mbscasecmp.c: Likewise.
36131         * tests/test-mbscasestr1.c: Likewise.
36132         * tests/test-mbscasestr2.c: Likewise.
36133         * tests/test-mbscasestr3.c: Likewise.
36134         * tests/test-mbscasestr4.c: Likewise.
36135         * tests/test-mbschr.c: Likewise.
36136         * tests/test-mbscspn.c: Likewise.
36137         * tests/test-mbsinit.c: Likewise.
36138         * tests/test-mbsncasecmp.c: Likewise.
36139         * tests/test-mbsnrtowcs.c: Likewise.
36140         * tests/test-mbspbrk.c: Likewise.
36141         * tests/test-mbspcasecmp.c: Likewise.
36142         * tests/test-mbsrchr.c: Likewise.
36143         * tests/test-mbsrtowcs.c: Likewise.
36144         * tests/test-mbsspn.c: Likewise.
36145         * tests/test-mbsstr1.c: Likewise.
36146         * tests/test-mbsstr2.c: Likewise.
36147         * tests/test-mbsstr3.c: Likewise.
36148         * tests/test-memchr.c: Likewise.
36149         * tests/test-memchr2.c: Likewise.
36150         * tests/test-memcmp.c: Likewise.
36151         * tests/test-memmem.c: Likewise.
36152         * tests/test-memrchr.c: Likewise.
36153         * tests/test-mkdir.c: Likewise.
36154         * tests/test-mkdirat.c: Likewise.
36155         * tests/test-mkfifo.c: Likewise.
36156         * tests/test-mkfifoat.c: Likewise.
36157         * tests/test-mknod.c: Likewise.
36158         * tests/test-nanosleep.c: Likewise.
36159         * tests/test-nl_langinfo.c: Likewise.
36160         * tests/test-obstack-printf.c: Likewise.
36161         * tests/test-open.c: Likewise.
36162         * tests/test-openat.c: Likewise.
36163         * tests/test-pipe-filter-gi1.c: Likewise.
36164         * tests/test-pipe-filter-gi2-main.c: Likewise.
36165         * tests/test-pipe-filter-ii1.c: Likewise.
36166         * tests/test-pipe-filter-ii2-main.c: Likewise.
36167         * tests/test-pipe2.c: Likewise.
36168         * tests/test-popen.h: Likewise.
36169         * tests/test-posixtm.c: Likewise.
36170         * tests/test-pread.c: Likewise.
36171         * tests/test-printf-frexp.c: Likewise.
36172         * tests/test-printf-frexpl.c: Likewise.
36173         * tests/test-printf-posix.c: Likewise.
36174         * tests/test-priv-set.c: Likewise.
36175         * tests/test-quotearg.c: Likewise.
36176         * tests/test-random_r.c: Likewise.
36177         * tests/test-rawmemchr.c: Likewise.
36178         * tests/test-rbtree_list.c: Likewise.
36179         * tests/test-rbtree_oset.c: Likewise.
36180         * tests/test-rbtreehash_list.c: Likewise.
36181         * tests/test-readlink.c: Likewise.
36182         * tests/test-remove.c: Likewise.
36183         * tests/test-rename.c: Likewise.
36184         * tests/test-renameat.c: Likewise.
36185         * tests/test-rmdir.c: Likewise.
36186         * tests/test-round1.c: Likewise.
36187         * tests/test-roundf1.c: Likewise.
36188         * tests/test-roundl.c: Likewise.
36189         * tests/test-safe-alloc.c: Likewise.
36190         * tests/test-sameacls.c: Likewise.
36191         * tests/test-set-mode-acl.c: Likewise.
36192         * tests/test-setenv.c: Likewise.
36193         * tests/test-sigaction.c: Likewise.
36194         * tests/test-signbit.c: Likewise.
36195         * tests/test-sleep.c: Likewise.
36196         * tests/test-snprintf-posix.c: Likewise.
36197         * tests/test-snprintf.c: Likewise.
36198         * tests/test-sprintf-posix.c: Likewise.
36199         * tests/test-stat-time.c: Likewise.
36200         * tests/test-stat.c: Likewise.
36201         * tests/test-strcasestr.c: Likewise.
36202         * tests/test-strchrnul.c: Likewise.
36203         * tests/test-strerror.c: Likewise.
36204         * tests/test-striconv.c: Likewise.
36205         * tests/test-striconveh.c: Likewise.
36206         * tests/test-striconveha.c: Likewise.
36207         * tests/test-strsignal.c: Likewise.
36208         * tests/test-strstr.c: Likewise.
36209         * tests/test-strtod.c: Likewise.
36210         * tests/test-strverscmp.c: Likewise.
36211         * tests/test-symlink.c: Likewise.
36212         * tests/test-symlinkat.c: Likewise.
36213         * tests/test-trunc1.c: Likewise.
36214         * tests/test-trunc2.c: Likewise.
36215         * tests/test-truncf1.c: Likewise.
36216         * tests/test-truncf2.c: Likewise.
36217         * tests/test-truncl.c: Likewise.
36218         * tests/test-uname.c: Likewise.
36219         * tests/test-unlink.c: Likewise.
36220         * tests/test-unlinkat.c: Likewise.
36221         * tests/test-unsetenv.c: Likewise.
36222         * tests/test-usleep.c: Likewise.
36223         * tests/test-utimens.c: Likewise.
36224         * tests/test-utimensat.c: Likewise.
36225         * tests/test-vasnprintf-posix.c: Likewise.
36226         * tests/test-vasnprintf-posix2.c: Likewise.
36227         * tests/test-vasnprintf.c: Likewise.
36228         * tests/test-vasprintf-posix.c: Likewise.
36229         * tests/test-vasprintf.c: Likewise.
36230         * tests/test-vdprintf-posix.c: Likewise.
36231         * tests/test-vfprintf-posix.c: Likewise.
36232         * tests/test-vprintf-posix.c: Likewise.
36233         * tests/test-vsnprintf-posix.c: Likewise.
36234         * tests/test-vsnprintf.c: Likewise.
36235         * tests/test-vsprintf-posix.c: Likewise.
36236         * tests/test-wcrtomb.c: Likewise.
36237         * tests/test-wcsnrtombs.c: Likewise.
36238         * tests/test-wcsrtombs.c: Likewise.
36239         * tests/test-wctype.c: Likewise.
36240         * tests/test-wcwidth.c: Likewise.
36241         * tests/test-xfprintf-posix.c: Likewise.
36242         * tests/test-xmemdup0.c: Likewise.
36243         * tests/test-xprintf-posix.c: Likewise.
36244         * tests/test-xvasprintf.c: Likewise.
36245         * tests/unicase/test-locale-language.c: Likewise.
36246         * tests/unicase/test-mapping-part1.h: Likewise.
36247         * tests/unicase/test-predicate-part1.h: Likewise.
36248         * tests/unicase/test-u8-casecmp.c: Likewise.
36249         * tests/unicase/test-u8-casecoll.c: Likewise.
36250         * tests/unicase/test-u8-casefold.c: Likewise.
36251         * tests/unicase/test-u8-is-cased.c: Likewise.
36252         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36253         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36254         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36255         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36256         * tests/unicase/test-u8-tolower.c: Likewise.
36257         * tests/unicase/test-u8-totitle.c: Likewise.
36258         * tests/unicase/test-u8-toupper.c: Likewise.
36259         * tests/unicase/test-u16-casecmp.c: Likewise.
36260         * tests/unicase/test-u16-casecoll.c: Likewise.
36261         * tests/unicase/test-u16-casefold.c: Likewise.
36262         * tests/unicase/test-u16-is-cased.c: Likewise.
36263         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36264         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36265         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36266         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36267         * tests/unicase/test-u16-tolower.c: Likewise.
36268         * tests/unicase/test-u16-totitle.c: Likewise.
36269         * tests/unicase/test-u16-toupper.c: Likewise.
36270         * tests/unicase/test-u32-casecmp.c: Likewise.
36271         * tests/unicase/test-u32-casecoll.c: Likewise.
36272         * tests/unicase/test-u32-casefold.c: Likewise.
36273         * tests/unicase/test-u32-is-cased.c: Likewise.
36274         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36275         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36276         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36277         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36278         * tests/unicase/test-u32-tolower.c: Likewise.
36279         * tests/unicase/test-u32-totitle.c: Likewise.
36280         * tests/unicase/test-u32-toupper.c: Likewise.
36281         * tests/unicase/test-ulc-casecmp.c: Likewise.
36282         * tests/unicase/test-ulc-casecoll.c: Likewise.
36283         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36284         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36285         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36286         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36287         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36288         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36292         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36293         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36294         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36295         * tests/unictype/test-bidi_byname.c: Likewise.
36296         * tests/unictype/test-bidi_name.c: Likewise.
36297         * tests/unictype/test-bidi_of.c: Likewise.
36298         * tests/unictype/test-bidi_test.c: Likewise.
36299         * tests/unictype/test-block_list.c: Likewise.
36300         * tests/unictype/test-block_of.c: Likewise.
36301         * tests/unictype/test-block_test.c: Likewise.
36302         * tests/unictype/test-categ_and.c: Likewise.
36303         * tests/unictype/test-categ_and_not.c: Likewise.
36304         * tests/unictype/test-categ_byname.c: Likewise.
36305         * tests/unictype/test-categ_name.c: Likewise.
36306         * tests/unictype/test-categ_none.c: Likewise.
36307         * tests/unictype/test-categ_of.c: Likewise.
36308         * tests/unictype/test-categ_or.c: Likewise.
36309         * tests/unictype/test-categ_test_withtable.c: Likewise.
36310         * tests/unictype/test-combining.c: Likewise.
36311         * tests/unictype/test-decdigit.c: Likewise.
36312         * tests/unictype/test-digit.c: Likewise.
36313         * tests/unictype/test-mirror.c: Likewise.
36314         * tests/unictype/test-numeric.c: Likewise.
36315         * tests/unictype/test-pr_byname.c: Likewise.
36316         * tests/unictype/test-pr_test.c: Likewise.
36317         * tests/unictype/test-predicate-part1.h: Likewise.
36318         * tests/unictype/test-scripts.c: Likewise.
36319         * tests/unictype/test-sy_c_ident.c: Likewise.
36320         * tests/unictype/test-sy_java_ident.c: Likewise.
36321         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36322         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36323         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36324         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36325         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36326         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36327         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36328         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36329         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36330         * tests/uninorm/test-compat-decomposition.c: Likewise.
36331         * tests/uninorm/test-composition.c: Likewise.
36332         * tests/uninorm/test-decomposing-form.c: Likewise.
36333         * tests/uninorm/test-decomposition.c: Likewise.
36334         * tests/uninorm/test-u8-nfc.c: Likewise.
36335         * tests/uninorm/test-u8-nfd.c: Likewise.
36336         * tests/uninorm/test-u8-nfkc.c: Likewise.
36337         * tests/uninorm/test-u8-nfkd.c: Likewise.
36338         * tests/uninorm/test-u8-normcmp.c: Likewise.
36339         * tests/uninorm/test-u8-normcoll.c: Likewise.
36340         * tests/uninorm/test-u16-nfc.c: Likewise.
36341         * tests/uninorm/test-u16-nfd.c: Likewise.
36342         * tests/uninorm/test-u16-nfkc.c: Likewise.
36343         * tests/uninorm/test-u16-nfkd.c: Likewise.
36344         * tests/uninorm/test-u16-normcmp.c: Likewise.
36345         * tests/uninorm/test-u16-normcoll.c: Likewise.
36346         * tests/uninorm/test-u32-nfc.c: Likewise.
36347         * tests/uninorm/test-u32-nfd.c: Likewise.
36348         * tests/uninorm/test-u32-nfkc.c: Likewise.
36349         * tests/uninorm/test-u32-nfkd.c: Likewise.
36350         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36351         * tests/uninorm/test-u32-normcmp.c: Likewise.
36352         * tests/uninorm/test-u32-normcoll.c: Likewise.
36353         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36354         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36355         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36356         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36357         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36358         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36359         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36360         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36361         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36362         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36363         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36364         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36365         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36366         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36367         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36368         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36369         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36370         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36371         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36372         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36373         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36374         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36375         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36376         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36377         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36378         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36379         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36380         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36381         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36382         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36383         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36384         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36385         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36386         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36387         * tests/uniwidth/test-u8-width.c: Likewise.
36388         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36389         * tests/uniwidth/test-u16-width.c: Likewise.
36390         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36391         * tests/uniwidth/test-u32-width.c: Likewise.
36392         * tests/uniwidth/test-uc_width.c: Likewise.
36393         * tests/uniwidth/test-uc_width2.c: Likewise.
36394         * modules/acl-tests (Files): Add tests/macros.h.
36395         * modules/areadlink-tests (Files): Likewise.
36396         * modules/areadlink-with-size-tests (Files): Likewise.
36397         * modules/areadlinkat-tests (Files): Likewise.
36398         * modules/areadlinkat-with-size-tests (Files): Likewise.
36399         * modules/argmatch-tests (Files): Likewise.
36400         * modules/argv-iter-tests (Files): Likewise.
36401         * modules/array-list-tests (Files): Likewise.
36402         * modules/array-mergesort-tests (Files): Likewise.
36403         * modules/array-oset-tests (Files): Likewise.
36404         * modules/avltree-list-tests (Files): Likewise.
36405         * modules/avltree-oset-tests (Files): Likewise.
36406         * modules/avltreehash-list-tests (Files): Likewise.
36407         * modules/base64-tests (Files): Likewise.
36408         * modules/binary-io-tests (Files): Likewise.
36409         * modules/bitrotate-tests (Files): Likewise.
36410         * modules/btowc-tests (Files): Likewise.
36411         * modules/byteswap-tests (Files): Likewise.
36412         * modules/c-ctype-tests (Files): Likewise.
36413         * modules/c-stack-tests (Files): Likewise.
36414         * modules/c-strcase-tests (Files): Likewise.
36415         * modules/c-strcasestr-tests (Files): Likewise.
36416         * modules/c-strstr-tests (Files): Likewise.
36417         * modules/canonicalize-lgpl-tests (Files): Likewise.
36418         * modules/canonicalize-tests (Files): Likewise.
36419         * modules/carray-list-tests (Files): Likewise.
36420         * modules/ceilf-tests (Files): Likewise.
36421         * modules/ceill-tests (Files): Likewise.
36422         * modules/chown-tests (Files): Likewise.
36423         * modules/cloexec-tests (Files): Likewise.
36424         * modules/copy-file-tests (Files): Likewise.
36425         * modules/count-one-bits-tests (Files): Likewise.
36426         * modules/dprintf-posix-tests (Files): Likewise.
36427         * modules/dup2-tests (Files): Likewise.
36428         * modules/dup3-tests (Files): Likewise.
36429         * modules/duplocale-tests (Files): Likewise.
36430         * modules/fbufmode-tests (Files): Likewise.
36431         * modules/fchdir-tests (Files): Likewise.
36432         * modules/fcntl-safer-tests (Files): Likewise.
36433         * modules/fcntl-tests (Files): Likewise.
36434         * modules/fdopendir-tests (Files): Likewise.
36435         * modules/fdutimensat-tests (Files): Likewise.
36436         * modules/fflush-tests (Files): Likewise.
36437         * modules/filevercmp-tests (Files): Likewise.
36438         * modules/flock-tests (Files): Likewise.
36439         * modules/floorf-tests (Files): Likewise.
36440         * modules/floorl-tests (Files): Likewise.
36441         * modules/fnmatch-tests (Files): Likewise.
36442         * modules/fopen-safer-tests (Files): Likewise.
36443         * modules/fopen-tests (Files): Likewise.
36444         * modules/fpending-tests (Files): Likewise.
36445         * modules/fprintf-posix-tests (Files): Likewise.
36446         * modules/fpurge-tests (Files): Likewise.
36447         * modules/freadable-tests (Files): Likewise.
36448         * modules/freadahead-tests (Files): Likewise.
36449         * modules/freading-tests (Files): Likewise.
36450         * modules/freadptr-tests (Files): Likewise.
36451         * modules/freadseek-tests (Files): Likewise.
36452         * modules/freopen-tests (Files): Likewise.
36453         * modules/frexp-nolibm-tests (Files): Likewise.
36454         * modules/frexp-tests (Files): Likewise.
36455         * modules/frexpl-nolibm-tests (Files): Likewise.
36456         * modules/frexpl-tests (Files): Likewise.
36457         * modules/fseek-tests (Files): Likewise.
36458         * modules/fseeko-tests (Files): Likewise.
36459         * modules/fstrcmp-tests (Files): Likewise.
36460         * modules/fsync-tests (Files): Likewise.
36461         * modules/ftell-tests (Files): Likewise.
36462         * modules/ftello-tests (Files): Likewise.
36463         * modules/func-tests (Files): Likewise.
36464         * modules/futimens-tests (Files): Likewise.
36465         * modules/fwritable-tests (Files): Likewise.
36466         * modules/fwriting-tests (Files): Likewise.
36467         * modules/getcwd-tests (Files): Likewise.
36468         * modules/getdate-tests (Files): Likewise.
36469         * modules/getdelim-tests (Files): Likewise.
36470         * modules/getdtablesize-tests (Files): Likewise.
36471         * modules/getgroups-tests (Files): Likewise.
36472         * modules/getline-tests (Files): Likewise.
36473         * modules/getndelim2-tests (Files): Likewise.
36474         * modules/glob-tests (Files): Likewise.
36475         * modules/hash-tests (Files): Likewise.
36476         * modules/i-ring-tests (Files): Likewise.
36477         * modules/iconv-tests (Files): Likewise.
36478         * modules/iconv_open-utf-tests (Files): Likewise.
36479         * modules/idpriv-drop-tests (Files): Likewise.
36480         * modules/idpriv-droptemp-tests (Files): Likewise.
36481         * modules/inet_ntop-tests (Files): Likewise.
36482         * modules/inet_pton-tests (Files): Likewise.
36483         * modules/isblank-tests (Files): Likewise.
36484         * modules/isfinite-tests (Files): Likewise.
36485         * modules/isinf-tests (Files): Likewise.
36486         * modules/isnan-tests (Files): Likewise.
36487         * modules/isnand-nolibm-tests (Files): Likewise.
36488         * modules/isnand-tests (Files): Likewise.
36489         * modules/isnanf-nolibm-tests (Files): Likewise.
36490         * modules/isnanf-tests (Files): Likewise.
36491         * modules/isnanl-nolibm-tests (Files): Likewise.
36492         * modules/isnanl-tests (Files): Likewise.
36493         * modules/lchown-tests (Files): Likewise.
36494         * modules/ldexpl-tests (Files): Likewise.
36495         * modules/link-tests (Files): Likewise.
36496         * modules/linkat-tests (Files): Likewise.
36497         * modules/linked-list-tests (Files): Likewise.
36498         * modules/linkedhash-list-tests (Files): Likewise.
36499         * modules/localename-tests (Files): Likewise.
36500         * modules/lseek-tests (Files): Likewise.
36501         * modules/lstat-tests (Files): Likewise.
36502         * modules/mbmemcasecmp-tests (Files): Likewise.
36503         * modules/mbmemcasecoll-tests (Files): Likewise.
36504         * modules/mbrtowc-tests (Files): Likewise.
36505         * modules/mbscasecmp-tests (Files): Likewise.
36506         * modules/mbscasestr-tests (Files): Likewise.
36507         * modules/mbschr-tests (Files): Likewise.
36508         * modules/mbscspn-tests (Files): Likewise.
36509         * modules/mbsinit-tests (Files): Likewise.
36510         * modules/mbsncasecmp-tests (Files): Likewise.
36511         * modules/mbsnrtowcs-tests (Files): Likewise.
36512         * modules/mbspbrk-tests (Files): Likewise.
36513         * modules/mbspcasecmp-tests (Files): Likewise.
36514         * modules/mbsrchr-tests (Files): Likewise.
36515         * modules/mbsrtowcs-tests (Files): Likewise.
36516         * modules/mbsspn-tests (Files): Likewise.
36517         * modules/mbsstr-tests (Files): Likewise.
36518         * modules/memchr-tests (Files): Likewise.
36519         * modules/memchr2-tests (Files): Likewise.
36520         * modules/memcmp-tests (Files): Likewise.
36521         * modules/memmem-tests (Files): Likewise.
36522         * modules/memrchr-tests (Files): Likewise.
36523         * modules/mkdir-tests (Files): Likewise.
36524         * modules/mkfifo-tests (Files): Likewise.
36525         * modules/mkfifoat-tests (Files): Likewise.
36526         * modules/mknod-tests (Files): Likewise.
36527         * modules/nanosleep-tests (Files): Likewise.
36528         * modules/nl_langinfo-tests (Files): Likewise.
36529         * modules/obstack-printf-tests (Files): Likewise.
36530         * modules/open-tests (Files): Likewise.
36531         * modules/openat-tests (Files): Likewise.
36532         * modules/pipe-filter-gi-tests (Files): Likewise.
36533         * modules/pipe-filter-ii-tests (Files): Likewise.
36534         * modules/pipe2-tests (Files): Likewise.
36535         * modules/popen-safer-tests (Files): Likewise.
36536         * modules/popen-tests (Files): Likewise.
36537         * modules/posixtm-tests (Files): Likewise.
36538         * modules/pread-tests (Files): Likewise.
36539         * modules/printf-frexp-tests (Files): Likewise.
36540         * modules/printf-frexpl-tests (Files): Likewise.
36541         * modules/printf-posix-tests (Files): Likewise.
36542         * modules/priv-set-tests (Files): Likewise.
36543         * modules/quotearg-tests (Files): Likewise.
36544         * modules/random_r-tests (Files): Likewise.
36545         * modules/rawmemchr-tests (Files): Likewise.
36546         * modules/rbtree-list-tests (Files): Likewise.
36547         * modules/rbtree-oset-tests (Files): Likewise.
36548         * modules/rbtreehash-list-tests (Files): Likewise.
36549         * modules/readlink-tests (Files): Likewise.
36550         * modules/remove-tests (Files): Likewise.
36551         * modules/rename-tests (Files): Likewise.
36552         * modules/renameat-tests (Files): Likewise.
36553         * modules/rmdir-tests (Files): Likewise.
36554         * modules/round-tests (Files): Likewise.
36555         * modules/roundf-tests (Files): Likewise.
36556         * modules/roundl-tests (Files): Likewise.
36557         * modules/safe-alloc-tests (Files): Likewise.
36558         * modules/setenv-tests (Files): Likewise.
36559         * modules/sigaction-tests (Files): Likewise.
36560         * modules/signbit-tests (Files): Likewise.
36561         * modules/sleep-tests (Files): Likewise.
36562         * modules/snprintf-posix-tests (Files): Likewise.
36563         * modules/snprintf-tests (Files): Likewise.
36564         * modules/sprintf-posix-tests (Files): Likewise.
36565         * modules/stat-tests (Files): Likewise.
36566         * modules/stat-time-tests (Files): Likewise.
36567         * modules/strcasestr-tests (Files): Likewise.
36568         * modules/strchrnul-tests (Files): Likewise.
36569         * modules/strerror-tests (Files): Likewise.
36570         * modules/striconv-tests (Files): Likewise.
36571         * modules/striconveh-tests (Files): Likewise.
36572         * modules/striconveha-tests (Files): Likewise.
36573         * modules/strsignal-tests (Files): Likewise.
36574         * modules/strstr-tests (Files): Likewise.
36575         * modules/strtod-tests (Files): Likewise.
36576         * modules/strverscmp-tests (Files): Likewise.
36577         * modules/symlink-tests (Files): Likewise.
36578         * modules/symlinkat-tests (Files): Likewise.
36579         * modules/trunc-tests (Files): Likewise.
36580         * modules/truncf-tests (Files): Likewise.
36581         * modules/truncl-tests (Files): Likewise.
36582         * modules/uname-tests (Files): Likewise.
36583         * modules/unicase/cased-tests (Files): Likewise.
36584         * modules/unicase/ignorable-tests (Files): Likewise.
36585         * modules/unicase/locale-language-tests (Files): Likewise.
36586         * modules/unicase/tolower-tests (Files): Likewise.
36587         * modules/unicase/totitle-tests (Files): Likewise.
36588         * modules/unicase/toupper-tests (Files): Likewise.
36589         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36590         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36591         * modules/unicase/u8-casefold-tests (Files): Likewise.
36592         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36593         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36594         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36595         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36596         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36597         * modules/unicase/u8-tolower-tests (Files): Likewise.
36598         * modules/unicase/u8-totitle-tests (Files): Likewise.
36599         * modules/unicase/u8-toupper-tests (Files): Likewise.
36600         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36601         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36602         * modules/unicase/u16-casefold-tests (Files): Likewise.
36603         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36604         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36605         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36606         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36607         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36608         * modules/unicase/u16-tolower-tests (Files): Likewise.
36609         * modules/unicase/u16-totitle-tests (Files): Likewise.
36610         * modules/unicase/u16-toupper-tests (Files): Likewise.
36611         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36612         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36613         * modules/unicase/u32-casefold-tests (Files): Likewise.
36614         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36615         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36616         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36617         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36618         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36619         * modules/unicase/u32-tolower-tests (Files): Likewise.
36620         * modules/unicase/u32-totitle-tests (Files): Likewise.
36621         * modules/unicase/u32-toupper-tests (Files): Likewise.
36622         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36623         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36624         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36625         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36626         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36627         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36628         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36629         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36630         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36631         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36632         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36633         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36634         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36635         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36636         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36637         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36638         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36639         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36640         * modules/unictype/block-list-tests (Files): Likewise.
36641         * modules/unictype/block-of-tests (Files): Likewise.
36642         * modules/unictype/block-test-tests (Files): Likewise.
36643         * modules/unictype/category-C-tests (Files): Likewise.
36644         * modules/unictype/category-Cc-tests (Files): Likewise.
36645         * modules/unictype/category-Cf-tests (Files): Likewise.
36646         * modules/unictype/category-Cn-tests (Files): Likewise.
36647         * modules/unictype/category-Co-tests (Files): Likewise.
36648         * modules/unictype/category-Cs-tests (Files): Likewise.
36649         * modules/unictype/category-L-tests (Files): Likewise.
36650         * modules/unictype/category-Ll-tests (Files): Likewise.
36651         * modules/unictype/category-Lm-tests (Files): Likewise.
36652         * modules/unictype/category-Lo-tests (Files): Likewise.
36653         * modules/unictype/category-Lt-tests (Files): Likewise.
36654         * modules/unictype/category-Lu-tests (Files): Likewise.
36655         * modules/unictype/category-M-tests (Files): Likewise.
36656         * modules/unictype/category-Mc-tests (Files): Likewise.
36657         * modules/unictype/category-Me-tests (Files): Likewise.
36658         * modules/unictype/category-Mn-tests (Files): Likewise.
36659         * modules/unictype/category-N-tests (Files): Likewise.
36660         * modules/unictype/category-Nd-tests (Files): Likewise.
36661         * modules/unictype/category-Nl-tests (Files): Likewise.
36662         * modules/unictype/category-No-tests (Files): Likewise.
36663         * modules/unictype/category-P-tests (Files): Likewise.
36664         * modules/unictype/category-Pc-tests (Files): Likewise.
36665         * modules/unictype/category-Pd-tests (Files): Likewise.
36666         * modules/unictype/category-Pe-tests (Files): Likewise.
36667         * modules/unictype/category-Pf-tests (Files): Likewise.
36668         * modules/unictype/category-Pi-tests (Files): Likewise.
36669         * modules/unictype/category-Po-tests (Files): Likewise.
36670         * modules/unictype/category-Ps-tests (Files): Likewise.
36671         * modules/unictype/category-S-tests (Files): Likewise.
36672         * modules/unictype/category-Sc-tests (Files): Likewise.
36673         * modules/unictype/category-Sk-tests (Files): Likewise.
36674         * modules/unictype/category-Sm-tests (Files): Likewise.
36675         * modules/unictype/category-So-tests (Files): Likewise.
36676         * modules/unictype/category-Z-tests (Files): Likewise.
36677         * modules/unictype/category-Zl-tests (Files): Likewise.
36678         * modules/unictype/category-Zp-tests (Files): Likewise.
36679         * modules/unictype/category-Zs-tests (Files): Likewise.
36680         * modules/unictype/category-and-not-tests (Files): Likewise.
36681         * modules/unictype/category-and-tests (Files): Likewise.
36682         * modules/unictype/category-byname-tests (Files): Likewise.
36683         * modules/unictype/category-name-tests (Files): Likewise.
36684         * modules/unictype/category-none-tests (Files): Likewise.
36685         * modules/unictype/category-of-tests (Files): Likewise.
36686         * modules/unictype/category-or-tests (Files): Likewise.
36687         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36688         * modules/unictype/combining-class-tests (Files): Likewise.
36689         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36690         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36691         * modules/unictype/ctype-blank-tests (Files): Likewise.
36692         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36693         * modules/unictype/ctype-digit-tests (Files): Likewise.
36694         * modules/unictype/ctype-graph-tests (Files): Likewise.
36695         * modules/unictype/ctype-lower-tests (Files): Likewise.
36696         * modules/unictype/ctype-print-tests (Files): Likewise.
36697         * modules/unictype/ctype-punct-tests (Files): Likewise.
36698         * modules/unictype/ctype-space-tests (Files): Likewise.
36699         * modules/unictype/ctype-upper-tests (Files): Likewise.
36700         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36701         * modules/unictype/decimal-digit-tests (Files): Likewise.
36702         * modules/unictype/digit-tests (Files): Likewise.
36703         * modules/unictype/mirror-tests (Files): Likewise.
36704         * modules/unictype/numeric-tests (Files): Likewise.
36705         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36706         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36707         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36708         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36709         Likewise.
36710         * modules/unictype/property-bidi-block-separator-tests (Files):
36711         Likewise.
36712         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36713         Likewise.
36714         * modules/unictype/property-bidi-common-separator-tests (Files):
36715         Likewise.
36716         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36717         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36718         Likewise.
36719         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36720         Likewise.
36721         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36722         Likewise.
36723         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36724         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36725         Likewise.
36726         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36727         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36728         Likewise.
36729         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36730         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36731         * modules/unictype/property-bidi-segment-separator-tests (Files):
36732         Likewise.
36733         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36734         * modules/unictype/property-byname-tests (Files): Likewise.
36735         * modules/unictype/property-combining-tests (Files): Likewise.
36736         * modules/unictype/property-composite-tests (Files): Likewise.
36737         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36738         * modules/unictype/property-dash-tests (Files): Likewise.
36739         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36740         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36741         Likewise.
36742         * modules/unictype/property-deprecated-tests (Files): Likewise.
36743         * modules/unictype/property-diacritic-tests (Files): Likewise.
36744         * modules/unictype/property-extender-tests (Files): Likewise.
36745         * modules/unictype/property-format-control-tests (Files): Likewise.
36746         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36747         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36748         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36749         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36750         * modules/unictype/property-hyphen-tests (Files): Likewise.
36751         * modules/unictype/property-id-continue-tests (Files): Likewise.
36752         * modules/unictype/property-id-start-tests (Files): Likewise.
36753         * modules/unictype/property-ideographic-tests (Files): Likewise.
36754         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36755         * modules/unictype/property-ids-trinary-operator-tests (Files):
36756         Likewise.
36757         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36758         * modules/unictype/property-iso-control-tests (Files): Likewise.
36759         * modules/unictype/property-join-control-tests (Files): Likewise.
36760         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36761         * modules/unictype/property-line-separator-tests (Files): Likewise.
36762         * modules/unictype/property-logical-order-exception-tests (Files):
36763         Likewise.
36764         * modules/unictype/property-lowercase-tests (Files): Likewise.
36765         * modules/unictype/property-math-tests (Files): Likewise.
36766         * modules/unictype/property-non-break-tests (Files): Likewise.
36767         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36768         * modules/unictype/property-numeric-tests (Files): Likewise.
36769         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36770         * modules/unictype/property-other-default-ignorable-code-point-tests
36771         (Files): Likewise.
36772         * modules/unictype/property-other-grapheme-extend-tests (Files):
36773         Likewise.
36774         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36775         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36776         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36777         * modules/unictype/property-other-math-tests (Files): Likewise.
36778         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36779         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36780         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36781         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36782         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36783         * modules/unictype/property-private-use-tests (Files): Likewise.
36784         * modules/unictype/property-punctuation-tests (Files): Likewise.
36785         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36786         * modules/unictype/property-radical-tests (Files): Likewise.
36787         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36788         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36789         * modules/unictype/property-space-tests (Files): Likewise.
36790         * modules/unictype/property-terminal-punctuation-tests (Files):
36791         Likewise.
36792         * modules/unictype/property-test-tests (Files): Likewise.
36793         * modules/unictype/property-titlecase-tests (Files): Likewise.
36794         * modules/unictype/property-unassigned-code-value-tests (Files):
36795         Likewise.
36796         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36797         * modules/unictype/property-uppercase-tests (Files): Likewise.
36798         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36799         * modules/unictype/property-white-space-tests (Files): Likewise.
36800         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36801         * modules/unictype/property-xid-start-tests (Files): Likewise.
36802         * modules/unictype/property-zero-width-tests (Files): Likewise.
36803         * modules/unictype/scripts-tests (Files): Likewise.
36804         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36805         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36806         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36807         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36808         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36809         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36810         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36811         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36812         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36813         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36814         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36815         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36816         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36817         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36818         * modules/uninorm/composition-tests (Files): Likewise.
36819         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36820         * modules/uninorm/decomposition-tests (Files): Likewise.
36821         * modules/uninorm/filter-tests (Files): Likewise.
36822         * modules/uninorm/nfc-tests (Files): Likewise.
36823         * modules/uninorm/nfd-tests (Files): Likewise.
36824         * modules/uninorm/nfkc-tests (Files): Likewise.
36825         * modules/uninorm/nfkd-tests (Files): Likewise.
36826         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36827         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36828         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36829         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36830         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36831         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36832         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36833         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36834         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36835         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36836         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36837         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36838         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36839         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36840         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36841         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36842         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36843         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36844         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36845         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36846         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36847         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36848         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36849         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36850         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36851         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36852         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36853         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36854         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36855         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36856         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36857         * modules/uniwidth/u8-width-tests (Files): Likewise.
36858         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36859         * modules/uniwidth/u16-width-tests (Files): Likewise.
36860         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36861         * modules/uniwidth/u32-width-tests (Files): Likewise.
36862         * modules/uniwidth/width-tests (Files): Likewise.
36863         * modules/unlink-tests (Files): Likewise.
36864         * modules/unsetenv-tests (Files): Likewise.
36865         * modules/usleep-tests (Files): Likewise.
36866         * modules/utimens-tests (Files): Likewise.
36867         * modules/utimensat-tests (Files): Likewise.
36868         * modules/vasnprintf-posix-tests (Files): Likewise.
36869         * modules/vasnprintf-tests (Files): Likewise.
36870         * modules/vasprintf-posix-tests (Files): Likewise.
36871         * modules/vasprintf-tests (Files): Likewise.
36872         * modules/vdprintf-posix-tests (Files): Likewise.
36873         * modules/vfprintf-posix-tests (Files): Likewise.
36874         * modules/vprintf-posix-tests (Files): Likewise.
36875         * modules/vsnprintf-posix-tests (Files): Likewise.
36876         * modules/vsnprintf-tests (Files): Likewise.
36877         * modules/vsprintf-posix-tests (Files): Likewise.
36878         * modules/wcrtomb-tests (Files): Likewise.
36879         * modules/wcsnrtombs-tests (Files): Likewise.
36880         * modules/wcsrtombs-tests (Files): Likewise.
36881         * modules/wctype-tests (Files): Likewise.
36882         * modules/wcwidth-tests (Files): Likewise.
36883         * modules/xmemdup0-tests (Files): Likewise.
36884         * modules/xprintf-posix-tests (Files): Likewise.
36885         * modules/xvasprintf-tests (Files): Likewise.
36886
36887 2009-12-24  Eric Blake  <ebb9@byu.net>
36888
36889         test-nanosleep: fix typo
36890         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36891         patch.
36892         Reported by Bruno Haible.
36893
36894 2009-12-24  Bruno Haible  <bruno@clisp.org>
36895
36896         Reduce namespace pollution on glibc systems.
36897         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36898         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36899         systems.
36900         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36901         <getopt.h> on glibc systems.
36902         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36903         systems.
36904         * lib/fcntl.c: Include <unistd.h> here instead.
36905
36906 2009-12-24  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36909
36910 2009-12-24  Eric Blake  <ebb9@byu.net>
36911
36912         tests: add signature checks
36913         * tests/signature.h (SIGNATURE_CHECK): New file.
36914         * modules/atexit-tests (Files): Use it.
36915         * modules/btowc-tests (Files): Likewise.
36916         * modules/canonicalize-lgpl-tests (Files): Likewise.
36917         * modules/ceilf-tests (Files): Likewise.
36918         * modules/ceill-tests (Files): Likewise.
36919         * modules/chown-tests (Files): Likewise.
36920         * modules/dprintf-posix-tests (Files): Likewise.
36921         * modules/dup2-tests (Files): Likewise.
36922         * modules/dup3-tests (Files): Likewise.
36923         * modules/duplocale-tests (Files): Likewise.
36924         * modules/fchdir-tests (Files): Likewise.
36925         * modules/fcntl-tests (Files): Likewise.
36926         * modules/fdopendir-tests (Files): Likewise.
36927         * modules/fflush-tests (Files): Likewise.
36928         * modules/flock-tests (Files): Likewise.
36929         * modules/floorf-tests (Files): Likewise.
36930         * modules/floorl-tests (Files): Likewise.
36931         * modules/fnmatch-tests (Files): Likewise.
36932         * modules/fopen-tests (Files): Likewise.
36933         * modules/fprintf-posix-tests (Files): Likewise.
36934         * modules/freopen-tests (Files): Likewise.
36935         * modules/frexp-nolibm-tests (Files): Likewise.
36936         * modules/frexp-tests (Files): Likewise.
36937         * modules/frexpl-nolibm-tests (Files): Likewise.
36938         * modules/frexpl-tests (Files): Likewise.
36939         * modules/fseek-tests (Files): Likewise.
36940         * modules/fseeko-tests (Files): Likewise.
36941         * modules/fsync-tests (Files): Likewise.
36942         * modules/ftell-tests (Files): Likewise.
36943         * modules/ftello-tests (Files): Likewise.
36944         * modules/futimens-tests (Files): Likewise.
36945         * modules/getaddrinfo-tests (Files): Likewise.
36946         * modules/getcwd-tests (Files): Likewise.
36947         * modules/getdelim-tests (Files): Likewise.
36948         * modules/getdtablesize-tests (Files): Likewise.
36949         * modules/getgroups-tests (Files): Likewise.
36950         * modules/gethostname-tests (Files): Likewise.
36951         * modules/getline-tests (Files): Likewise.
36952         * modules/getopt-posix-tests (Files): Likewise.
36953         * modules/gettimeofday-tests (Files): Likewise.
36954         * modules/glob-tests (Files): Likewise.
36955         * modules/iconv-tests (Files): Likewise.
36956         * modules/inet_ntop-tests (Files): Likewise.
36957         * modules/inet_pton-tests (Files): Likewise.
36958         * modules/isblank-tests (Files): Likewise.
36959         * modules/lchown-tests (Files): Likewise.
36960         * modules/ldexpl-tests (Files): Likewise.
36961         * modules/link-tests (Files): Likewise.
36962         * modules/linkat-tests (Files): Likewise.
36963         * modules/lseek-tests (Files): Likewise.
36964         * modules/lstat-tests (Files): Likewise.
36965         * modules/mbrtowc-tests (Files): Likewise.
36966         * modules/mbsinit-tests (Files): Likewise.
36967         * modules/mbsnrtowcs-tests (Files): Likewise.
36968         * modules/mbsrtowcs-tests (Files): Likewise.
36969         * modules/memchr-tests (Files): Likewise.
36970         * modules/memcmp-tests (Files): Likewise.
36971         * modules/memmem-tests (Files): Likewise.
36972         * modules/memrchr-tests (Files): Likewise.
36973         * modules/mkdir-tests (Files): Likewise.
36974         * modules/mkfifo-tests (Files): Likewise.
36975         * modules/mkfifoat-tests (Files): Likewise.
36976         * modules/mknod-tests (Files): Likewise.
36977         * modules/nanosleep-tests (Files): Likewise.
36978         * modules/nl_langinfo-tests (Files): Likewise.
36979         * modules/obstack-printf-tests (Files): Likewise.
36980         * modules/open-tests (Files): Likewise.
36981         * modules/openat-tests (Files): Likewise.
36982         * modules/perror-tests (Files): Likewise.
36983         * modules/pipe2-tests (Files): Likewise.
36984         * modules/poll-tests (Files): Likewise.
36985         * modules/popen-tests (Files): Likewise.
36986         * modules/posix_spawn-tests (Files): Likewise.
36987         * modules/posix_spawnp-tests (Files): Likewise.
36988         * modules/pread-tests (Files): Likewise.
36989         * modules/printf-posix-tests (Files): Likewise.
36990         * modules/pty-tests (Files): Likewise.
36991         * modules/random_r-tests (Files): Likewise.
36992         * modules/rawmemchr-tests (Files): Likewise.
36993         * modules/readlink-tests (Files): Likewise.
36994         * modules/remove-tests (Files): Likewise.
36995         * modules/rename-tests (Files): Likewise.
36996         * modules/renameat-tests (Files): Likewise.
36997         * modules/rmdir-tests (Files): Likewise.
36998         * modules/round-tests (Files): Likewise.
36999         * modules/roundf-tests (Files): Likewise.
37000         * modules/roundl-tests (Files): Likewise.
37001         * modules/select-tests (Files): Likewise.
37002         * modules/setenv-tests (Files): Likewise.
37003         * modules/sigaction-tests (Files): Likewise.
37004         * modules/sleep-tests (Files): Likewise.
37005         * modules/snprintf-posix-tests (Files): Likewise.
37006         * modules/snprintf-tests (Files): Likewise.
37007         * modules/sprintf-posix-tests (Files): Likewise.
37008         * modules/stat-tests (Files): Likewise.
37009         * modules/strcasestr-tests (Files): Likewise.
37010         * modules/strchrnul-tests (Files): Likewise.
37011         * modules/strerror-tests (Files): Likewise.
37012         * modules/strsignal-tests (Files): Likewise.
37013         * modules/strstr-tests (Files): Likewise.
37014         * modules/strtod-tests (Files): Likewise.
37015         * modules/strverscmp-tests (Files): Likewise.
37016         * modules/symlink-tests (Files): Likewise.
37017         * modules/symlinkat-tests (Files): Likewise.
37018         * modules/times-tests (Files): Likewise.
37019         * modules/trunc-tests (Files): Likewise.
37020         * modules/truncf-tests (Files): Likewise.
37021         * modules/truncl-tests (Files): Likewise.
37022         * modules/tsearch-tests (Files): Likewise.
37023         * modules/uname-tests (Files): Likewise.
37024         * modules/unlink-tests (Files): Likewise.
37025         * modules/unsetenv-tests (Files): Likewise.
37026         * modules/usleep-tests (Files): Likewise.
37027         * modules/utimensat-tests (Files): Likewise.
37028         * modules/vasprintf-tests (Files): Likewise.
37029         * modules/vdprintf-posix-tests (Files): Likewise.
37030         * modules/vfprintf-posix-tests (Files): Likewise.
37031         * modules/vprintf-posix-tests (Files): Likewise.
37032         * modules/vsnprintf-posix-tests (Files): Likewise.
37033         * modules/vsnprintf-tests (Files): Likewise.
37034         * modules/vsprintf-posix-tests (Files): Likewise.
37035         * modules/wcrtomb-tests (Files): Likewise.
37036         * modules/wcsnrtombs-tests (Files): Likewise.
37037         * modules/wcsrtombs-tests (Files): Likewise.
37038         * modules/wcwidth-tests (Files): Likewise.
37039         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37040         * tests/test-isinf.c (isinf): Likewise.
37041         * tests/test-isnan.c (isnan): Likewise.
37042         * tests/test-signbit.c (signbit): Likewise.
37043         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37044         declaration, either as macro or with correct signature.
37045         (select): Ensure function under test is declared with correct
37046         signature in correct header.
37047         * tests/test-atexit.c (atexit): Likewise.
37048         * tests/test-btowc.c (btowc): Likewise.
37049         * tests/test-canonicalize-lgpl.c (realpath)
37050         (canonicalize_file_name): Likewise.
37051         * tests/test-ceilf1.c (ceilf): Likewise.
37052         * tests/test-ceill.c (ceill): Likewise.
37053         * tests/test-chown.c (chown): Likewise.
37054         * tests/test-dprintf-posix.c (dprintf): Likewise.
37055         * tests/test-dup2.c (dup2): Likewise.
37056         * tests/test-dup3.c (dup3): Likewise.
37057         * tests/test-duplocale.c (duplocale): Likewise.
37058         * tests/test-fchdir.c (fchdir): Likewise.
37059         * tests/test-fchownat.c (fchownat): Likewise.
37060         * tests/test-fcntl.c (fcntl): Likewise.
37061         * tests/test-fdopendir.c (fdopendir): Likewise.
37062         * tests/test-fflush.c (fflush): Likewise.
37063         * tests/test-flock.c (flock): Likewise.
37064         * tests/test-floorf1.c (floorf): Likewise.
37065         * tests/test-floorl.c (floorl): Likewise.
37066         * tests/test-fnmatch.c (fnmatch): Likewise.
37067         * tests/test-fopen.c (fopen): Likewise.
37068         * tests/test-fprintf-posix.c (fprintf): Likewise.
37069         * tests/test-freopen.c (freopen): Likewise.
37070         * tests/test-frexp.c (frexp): Likewise.
37071         * tests/test-frexpl.c (frexpl): Likewise.
37072         * tests/test-fseek.c (fseek): Likewise.
37073         * tests/test-fseeko.c (fseeko): Likewise.
37074         * tests/test-fstatat.c (fstatat): Likewise.
37075         * tests/test-fsync.c (fsync): Likewise.
37076         * tests/test-ftell.c (ftell): Likewise.
37077         * tests/test-ftello.c (ftello): Likewise.
37078         * tests/test-futimens.c (futimens): Likewise.
37079         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37080         (gai_strerror): Likewise.
37081         * tests/test-getcwd.c (getcwd): Likewise.
37082         * tests/test-getdelim.c (getdelim): Likewise.
37083         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37084         * tests/test-getgroups.c (getgroups): Likewise.
37085         * tests/test-gethostname.c (gethostname): Likewise.
37086         * tests/test-getline.c (getline): Likewise.
37087         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37088         Likewise.
37089         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37090         * tests/test-glob.c (glob, globfree): Likewise.
37091         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37092         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37093         * tests/test-inet_pton.c (inet_pton): Likewise.
37094         * tests/test-isblank.c (isblank): Likewise.
37095         * tests/test-lchown.c (lchown): Likewise.
37096         * tests/test-ldexpl.c (ldexpl): Likewise.
37097         * tests/test-link.c (link): Likewise.
37098         * tests/test-linkat.c (linkat): Likewise.
37099         * tests/test-lseek.c (lseek): Likewise.
37100         * tests/test-lstat.c (lstat): Likewise.
37101         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37102         * tests/test-mbsinit.c (mbsinit): Likewise.
37103         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37104         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37105         * tests/test-memchr.c (memchr): Likewise.
37106         * tests/test-memcmp.c (memcmp): Likewise.
37107         * tests/test-memmem.c (memmem): Likewise.
37108         * tests/test-memrchr.c (memrchr): Likewise.
37109         * tests/test-mkdir.c (mkdir): Likewise.
37110         * tests/test-mkdirat.c (mkdirat): Likewise.
37111         * tests/test-mkfifo.c (mkfifo): Likewise.
37112         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37113         * tests/test-mknod.c (mknod): Likewise.
37114         * tests/test-nanosleep.c (nanosleep): Likewise.
37115         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37116         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37117         Likewise.
37118         * tests/test-open.c (open): Likewise.
37119         * tests/test-openat.c (openat): Likewise.
37120         * tests/test-perror.c (perror): Likewise.
37121         * tests/test-pipe2.c (pipe2): Likewise.
37122         * tests/test-poll.c (poll): Likewise.
37123         * tests/test-popen.c (popen, pclose): Likewise.
37124         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37125         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37126         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37127         (posix_spawn_file_actions_destroy)
37128         (posix_spawn_file_actions_addclose)
37129         (posix_spawn_file_actions_addopen)
37130         (posix_spawn_file_actions_adddup2): Likewise.
37131         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37132         * tests/test-pread.c (pread): Likewise.
37133         * tests/test-printf-posix.c (printf): Likewise.
37134         * tests/test-pty.c (openpty, forkpty): Likewise.
37135         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37136         (random_r): Likewise.
37137         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37138         * tests/test-readlink.c (readlink): Likewise.
37139         * tests/test-remove.c (remove): Likewise.
37140         * tests/test-rename.c (rename): Likewise.
37141         * tests/test-renameat.c (renameat): Likewise.
37142         * tests/test-rmdir.c (rmdir): Likewise.
37143         * tests/test-round1.c (round): Likewise.
37144         * tests/test-roundf1.c (roundf): Likewise.
37145         * tests/test-roundl.c (roundl): Likewise.
37146         * tests/test-setenv.c (setenv): Likewise.
37147         * tests/test-sigaction.c (sigaction): Likewise.
37148         * tests/test-sleep.c (sleep): Likewise.
37149         * tests/test-snprintf.c (snprintf): Likewise.
37150         * tests/test-sprintf-posix.c (sprintf): Likewise.
37151         * tests/test-stat.c (stat): Likewise.
37152         * tests/test-stpncpy.c (stpncpy): Likewise.
37153         * tests/test-strcasestr.c (strcasestr): Likewise.
37154         * tests/test-strchrnul.c (strchrnul): Likewise.
37155         * tests/test-strerror.c (strerror): Likewise.
37156         * tests/test-strsignal.c (strsignal): Likewise.
37157         * tests/test-strstr.c (strstr): Likewise.
37158         * tests/test-strtod.c (strtod): Likewise.
37159         * tests/test-strverscmp.c (strverscmp): Likewise.
37160         * tests/test-symlink.c (symlink): Likewise.
37161         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37162         * tests/test-times.c (times): Likewise.
37163         * tests/test-trunc1.c (trunc): Likewise.
37164         * tests/test-truncf1.c (truncf): Likewise.
37165         * tests/test-truncl.c (truncl): Likewise.
37166         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37167         Likewise.
37168         * tests/test-uname.c (uname): Likewise.
37169         * tests/test-unlink.c (unlink): Likewise.
37170         * tests/test-unlinkat.c (unlinkat): Likewise.
37171         * tests/test-unsetenv.c (unsetenv): Likewise.
37172         * tests/test-usleep.c (usleep): Likewise.
37173         * tests/test-utimensat.c (utimensat): Likewise.
37174         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37175         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37176         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37177         * tests/test-vprintf-posix.c (vprintf): Likewise.
37178         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37179         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37180         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37181         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37182         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37183         * tests/test-wcwidth.c (wcwidth): Likewise.
37184
37185         build: pull in conditional headers during GNULIB_POSIXCHECK
37186         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37187         definitions from any conditionally-included headers.
37188         * lib/stdlib.in.h (includes): Likewise.
37189         * lib/unistd.in.h (includes): Likewise.
37190
37191 2009-12-24  Bruno Haible  <bruno@clisp.org>
37192
37193         * tests/test-argv-iter.c: Include header file being tested immediately
37194         after config.h.
37195         * tests/test-base64.c: Likewise.
37196         * tests/test-flock.c: Likewise.
37197         * tests/test-fsync.c: Likewise.
37198         * tests/test-getdate.c: Likewise.
37199         * tests/test-getndelim2.c: Likewise.
37200         * tests/test-isfinite.c: Likewise.
37201         * tests/test-isinf.c: Likewise.
37202         * tests/test-strerror.c: Likewise.
37203         * tests/test-strsignal.c: Likewise.
37204
37205 2009-12-23  Eric Blake  <ebb9@byu.net>
37206
37207         unistd: work around cygwin bug
37208         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37209         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37210         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37211
37212 2009-12-23  Bruno Haible  <bruno@clisp.org>
37213
37214         localename: More tests.
37215         * tests/test-localename.c (SIZEOF): New macro.
37216         (categories): New variable.
37217         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37218         test_locale_name_default): Add test w.r.t. thread locale.
37219         (test_locale_name_thread): New function.
37220         (main): Invoke it.
37221
37222         localename: Make aware of thread locale.
37223         * lib/localename.h (gl_locale_name_thread): New declaration.
37224         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37225         behaviour with respect to thread locale.
37226         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37227         <langinfo.h>, glthread/lock.h.
37228         (SIZE_BITS): New macro.
37229         (string_hash): New function.
37230         (struct hash_node): New type.
37231         (HASH_TABLE_SIZE): New macro.
37232         (struniq_hash_table, struniq_lock): New variables.
37233         (struniq): New function.
37234         (gl_locale_name_thread): New function.
37235         (gl_locale_name): Invoke it.
37236         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37237         * modules/localename (Depends-on): Add lock.
37238         Reported by Mike Gran <spk121@yahoo.com>.
37239
37240 2009-12-23  Eric Blake  <ebb9@byu.net>
37241
37242         va-args: new module
37243         * modules/va-args: New file.
37244         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37245         * MODULES.html.sh (Core language properties): Mention it.
37246
37247         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37248         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37249         named alias for __attribute__((__unused__)).
37250         * lib/chown.c: Update client.
37251         * lib/fchmodat.c: Likewise.
37252         * lib/fts.c: Likewise.
37253         * lib/getdate.y: Likewise.
37254         * lib/getgroups.c: Likewise.
37255         * lib/getopt.c: Likewise.
37256         * lib/getugroups.c: Likewise.
37257         * lib/mkdir.c: Likewise.
37258         * lib/mkfifo.c: Likewise.
37259         * lib/mkfifoat.c: Likewise.
37260         * lib/mknod.c: Likewise.
37261         * lib/mknodat.c: Likewise.
37262         * lib/readlink.c: Likewise.
37263         * lib/se-context.in.h: Likewise.
37264         * lib/se-selinux.in.h: Likewise.
37265         * lib/sockets.c: Likewise.
37266         * lib/symlink.c: Likewise.
37267         * lib/symlinkat.c: Likewise.
37268         * lib/unicodeio.c: Likewise.
37269         * lib/unistr.h: Likewise.
37270         * tests/test-areadlink.c: Likewise.
37271         * tests/test-areadlinkat.c: Likewise.
37272         * tests/test-filenamecat.c: Likewise.
37273         * tests/test-fseeko.c: Likewise.
37274         * tests/test-ftello.c: Likewise.
37275         * tests/test-getdate.c: Likewise.
37276         * tests/test-getgroups.c: Likewise.
37277         * tests/test-gethostname.c: Likewise.
37278         * tests/test-quotearg.c: Likewise.
37279         * tests/test-version-etc.c: Likewise.
37280         * tests/test-xalloc-die.c: Likewise.
37281         * tests/test-xfprintf-posix.c: Likewise.
37282         * tests/test-xprintf-posix.c: Likewise.
37283         * tests/test-xvasprintf.c: Likewise.
37284
37285         tests: avoid compiler warnings
37286         * tests/test-fcntl.c (main): Delete unused parameters.
37287         * tests/test-freopen-safer.c (main): Likewise.
37288         * tests/test-xalloc-die.c (main): Mark unused parameters.
37289         * tests/test-fseeko.c (main): Likewise.
37290         * tests/test-ftello.c (main): Likewise.
37291         * tests/test-nanosleep.c (main): Avoid declaration warning.
37292         * tests/test-sleep.c (main): Likewise.
37293         * tests/test-unsetenv.c (main): Silence warning about string
37294         literal.
37295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37296
37297 2009-12-23  Bruno Haible  <bruno@clisp.org>
37298
37299         * tests/test-localename.c (test_locale_name): New function, extracted
37300         from main. Also test mixed situations.
37301         (test_locale_name_posix, test_locale_name_environ,
37302         test_locale_name_default): New functions.
37303         (main): Invoke them all.
37304         * modules/localename-tests (configure.ac): Test for newlocale.
37305
37306 2009-12-23  Bruno Haible  <bruno@clisp.org>
37307
37308         unistd: Ensure getcwd gets declared before being overridden.
37309         * lib/unistd.in.h: Conditionally include <io.h>.
37310
37311 2009-12-22  Bruno Haible  <bruno@clisp.org>
37312
37313         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37314         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37315         (gl_WCHAR_H): Invoke it.
37316         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37317         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37318         Reported by Karl Berry <karl@freefriends.org>.
37319
37320 2009-12-22  Eric Blake  <ebb9@byu.net>
37321
37322         math, unistd: avoid redundant includes
37323         * lib/math.in.h (isnan): No need to re-include <math.h>.
37324         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37325
37326         getsubopt: work around cygwin bug
37327         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37328         avoid conflicting with system getsubopt.
37329         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37330         bug.
37331
37332         getopt: synchronize from glibc
37333         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37334         parameter order.  Adjust all callers.
37335         (_getopt_internal_r, main): Adjust quoting in error messages.
37336         Drop considerations for outdated POSIX 1003.2 error message.
37337         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37338         callers.
37339         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37340
37341         test-getopt: test stderr behavior
37342         * modules/getopt-posix-tests (Depends-on): Add dup2.
37343         * tests/test-getopt.c (ASSERT): Avoid stderr.
37344         (main): Move stderr to a temporary file.
37345         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37346         Instead, add parameter to inform caller if output occurred.
37347         (test_getopt): Adjust all existing tests to expect silence, and
37348         add new tests of leading ":".
37349         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37350         glibc shortcomings with leading "-:" or "+:" in optstring.
37351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37352         Likewise.
37353         * doc/posix-functions/getopt.texi (getopt): Likewise.
37354
37355         test-getopt: enhance test
37356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37357         supports optind=0.
37358         * tests/test-getopt.c (OPTIND_MIN): Move...
37359         * tests/test-getopt.h (OPTIND_MIN): ...here.
37360         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37361         Require that optind=0 works, since modern BSD supports it in
37362         addition to optreset, and since coreutils expects it.
37363         (test_getopt_long_only): New test.
37364         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37365         glibc shortcomings with 'W;', and enforcement of optind=0.
37366         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37367         Likewise.
37368
37369 2009-12-21  Bruno Haible  <bruno@clisp.org>
37370
37371         localename: Improvements for MacOS X and Cygwin.
37372         * lib/localename.h (gl_locale_name_environ): New declaration.
37373         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37374         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37375         (gl_locale_name_posix): Invoke it.
37376         (gl_locale_name_default): Add comments. Use Windows native API also on
37377         Cygwin.
37378
37379 2009-12-21  Bruno Haible  <bruno@clisp.org>
37380
37381         Update list of Win32 locale ids.
37382         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37383         (LANG_SAMI): Renamed from LANG_SAAMI.
37384         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37385         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37386         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37387         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37388         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37389         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37390         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37391         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37392         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37393         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37394         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37395         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37396         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37397         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37398         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37399         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37400         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37401         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37402         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37403         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37404         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37405         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37406         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37407         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37408         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37409         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37410         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37411         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37412         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37413         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37414         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37415         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37416         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37417         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37418         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37419         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37420         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37421         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37422         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37423         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37424         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37425         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37426         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37427         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37428         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37429         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37430         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37431         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37432         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37433         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37434         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37435         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37436         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37437         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37438         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37439         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37440         Add more languages and countries for Sami, Sorbian. Add more countries
37441         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37442         for Pashto. Change country for Syriac, Tswana.
37443
37444 2009-12-21  Eric Blake  <ebb9@byu.net>
37445
37446         test-utimens: avoid spurious failure
37447         * tests/test-chown.h (nap): Factor...
37448         * tests/nap.h: ...into new file.
37449         * tests/test-lchown.h (nap): Avoid duplication.
37450         * tests/test-utimens-common.h (nap): Use shared implementation,
37451         necessary on file systems with 1-second resolution.
37452         * modules/chown-tests (Files): Include new file.
37453         * modules/fdutimensat-tests (Files): Likewise.
37454         * modules/futimens-tests (Files): Likewise.
37455         * modules/lchown-tests (Files): Likewise.
37456         * modules/openat-tests (Files): Likewise.
37457         * modules/utimens-tests (Files): Likewise.
37458         * modules/utimensat-tests (Files): Likewise.
37459
37460 2009-12-19  Eric Blake  <ebb9@byu.net>
37461
37462         futimens, utimensat: work around Linux bug
37463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37464         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37465         * lib/utimensat.c (rpl_utimensat): Work around it.
37466         * lib/futimens.c (rpl_futimens): Adjust comment.
37467
37468         utimens: work around Linux ctime bug
37469         * lib/utimens.c (detect_ctime_bug): New helper function.
37470         (update_timespec): Differentiate between workaround needed for
37471         this bug vs. what is needed for systems that lack utimensat.
37472         (fdutimens, lutimens): Work around bug.
37473
37474         utimens: check for ctime update
37475         * tests/test-utimens-common.h (check_ctime): Define.
37476         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37477         * tests/test-futimens.h (test_futimens): Likewise.
37478         * tests/test-lutimens.h (test_lutimens): Likewise.
37479         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37480         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37481
37482 2009-12-19  Bruno Haible  <bruno@clisp.org>
37483
37484         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37485         * tests/test-dprintf-posix2.sh: New file.
37486         * tests/test-dprintf-posix2.c: New file.
37487         * modules/dprintf-posix-tests (Files): Add them.
37488         (configure.ac): Check for getrlimit and setrlimit.
37489         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37490
37491 2009-12-19  Bruno Haible  <bruno@clisp.org>
37492
37493         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37494         * tests/test-fprintf-posix3.sh: New file.
37495         * tests/test-fprintf-posix3.c: New file.
37496         * modules/fprintf-posix-tests (Files): Add them.
37497         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37498
37499 2009-12-19  Eric Blake  <ebb9@byu.net>
37500
37501         dirfd: fix prototype
37502         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37503         * lib/dirfd.c (dirfd): Likewise.
37504
37505         canonicalize: reduce memory usage
37506         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37507         allocation to size.
37508         Reported by Solar Designer <solar@openwall.com>.
37509
37510 2009-12-19  Bruno Haible  <bruno@clisp.org>
37511
37512         New module attribute 'Applicability'.
37513         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37514         * gnulib-tool: New option --extract-applicability.
37515         (func_usage): Document it.
37516         (sed_extract_prog): Recognize it.
37517         (func_get_applicability): New function.
37518         (func_import): Generalize handling of 'link-warning' module.
37519         * modules/link-warning (Applicability): New section.
37520         * modules/arg-nonnull (Applicability): New section.
37521         Repoted by Simon Josefsson <simon@josefsson.org>.
37522
37523 2009-12-19  Bruno Haible  <bruno@clisp.org>
37524
37525         fflush: tweak
37526         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37527         * lib/fseeko.c (rpl_fseeko): Likewise.
37528
37529 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37530
37531         * lib/gl_list.h: Fix typo in comment.
37532
37533 2009-12-16  Eric Blake  <ebb9@byu.net>
37534
37535         fcntl: use to simplify other modules
37536         * modules/cloexec (Depends-on): Add fcntl.
37537         * modules/fchdir (Depends-on): Likewise.
37538         * modules/fd-safer-flag (Depends-on): Likewise.
37539         * modules/unistd-safer (Depends-on): Likewise.
37540         * modules/dup3 (configure.ac): Set module indicator.
37541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37542         missing.
37543         * lib/fchdir.c (_gl_register_dup): Fix comment.
37544         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37545         * lib/dup-safer.c (dup_safer): Likewise.
37546         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37547         * lib/dup3.c (dup3): Likewise.
37548         * tests/test-fchdir.c (main): Enhance test.
37549         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37550
37551         fcntl: port portions of fcntl to mingw
37552         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37553         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37554         replacement for mingw.
37555         * modules/fcntl (Description): Update.
37556         (Depends-on): Add dup2.
37557         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37558         * modules/fcntl-h (Makefile.am): Substitute it.
37559         * lib/fcntl.in.h (fcntl): Update declaration.
37560         (F_DUPFD, F_GETFD): New macros, when needed.
37561         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37562         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37563         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37564         we now guarantee.
37565
37566         fcntl: work around cygwin bug in F_DUPFD
37567         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37568         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37569         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37570         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37571         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37572
37573         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37574         * modules/fcntl (Files): List new files.
37575         (configure.ac): Run a test.
37576         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37577         * lib/fcntl.c (rpl_fcntl): Likewise.
37578         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37579         (gl_FCNTL_H): Always replace fcntl.h.
37580         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37581         * lib/fcntl.in.h (fcntl): Declare replacement.
37582         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37583         needed, plus a witness.
37584         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37585         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37586         * tests/test-fcntl.c: New file.
37587         * modules/fcntl-tests: Likewise.
37588
37589         binary-io: avoid potential compilation warning
37590         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37591         directives.
37592
37593         fflush: avoid compilation error on NetBSD
37594         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37595         between off_t and fpos_t, since the latter is sometimes a struct.
37596         * lib/fseeko.c (rpl_fseeko): Likewise.
37597         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37598
37599 2009-12-15  Eric Blake  <ebb9@byu.net>
37600
37601         fcntl-h, stdio, sys_ioctl: fix declarations
37602         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37603         function must not take arguments.
37604         * lib/sys_ioctl.in.h (ioctl): Likewise.
37605         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37606         (open): Add a link warning.
37607
37608 2009-12-15  Jim Meyering  <meyering@redhat.com>
37609
37610         areadlink, areadlink-with-size: relax license to LGPLv2+
37611         * modules/areadlink (License): Relax to LGPLv2+.
37612         * modules/areadlink-with-size (License): Likewise.
37613
37614 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37615             Bruno Haible  <bruno@clisp.org>
37616
37617         *printf: Fix memory leak.
37618         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37619         * lib/vfprintf.c (vfprintf): Likewise.
37620         * lib/dprintf.c (dprintf): Likewise.
37621         * lib/vdprintf.c (vdprintf): Likewise.
37622
37623 2009-12-14  Eric Blake  <ebb9@byu.net>
37624
37625         accept4: adjust module dependencies
37626         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37627
37628         utimens: one more try at avoiding compiler warning
37629         * lib/utimens.c (lutimens): Lower scope of result.
37630
37631 2009-12-13  Bruno Haible  <bruno@clisp.org>
37632
37633         Move the malloc checking from module 'list' to new module 'xlist'.
37634         * modules/xlist: New file.
37635         * lib/gl_xlist.h: New file.
37636         * lib/gl_xlist.c: New file.
37637         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37638         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37639         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37640         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37641         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37642         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37643         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37644         gl_sortedlist_nx_add): New declarations.
37645         (struct gl_list_implementation): Rename and change methods accordingly.
37646         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37647         (gl_list_nx_create): Renamed from gl_list_create.
37648         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37649         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37650         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37651         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37652         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37653         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37654         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37655         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37656         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37657         gl_list_create_empty.
37658         (gl_list_nx_create): Renamed from gl_list_create.
37659         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37660         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37661         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37662         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37663         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37664         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37665         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37666         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37667         * lib/gl_array_list.c: Don't include xalloc.h.
37668         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37669         NULL upon out-of-memory.
37670         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37671         out-of-memory.
37672         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37673         Change return type to 'int'.
37674         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37675         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37676         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37677         upon out-of-memory.
37678         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37679         upon out-of-memory.
37680         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37681         upon out-of-memory.
37682         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37683         upon out-of-memory.
37684         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37685         out-of-memory.
37686         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37687         Update.
37688         (gl_array_list_implementation): Update.
37689         * lib/gl_carray_list.c: Don't include xalloc.h.
37690         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37691         Return NULL upon out-of-memory.
37692         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37693         out-of-memory.
37694         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37695         Change return type to 'int'.
37696         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37697         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37698         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37699         upon out-of-memory.
37700         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37701         upon out-of-memory.
37702         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37703         out-of-memory.
37704         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37705         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37706         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37707         Update.
37708         (gl_carray_list_implementation): Update.
37709         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37710         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37711         gl_linked_create_empty. Return NULL upon out-of-memory.
37712         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37713         out-of-memory.
37714         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37715         Change return type to 'int'. Return -1 upon out-of-memory.
37716         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37717         out-of-memory.
37718         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37719         upon out-of-memory.
37720         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37721         upon out-of-memory.
37722         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37723         NULL upon out-of-memory.
37724         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37725         upon out-of-memory.
37726         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37727         out-of-memory.
37728         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37729         Update.
37730         * lib/gl_linked_list.c: Don't include xalloc.h.
37731         (gl_linked_list_implementation): Update.
37732         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37733         (add_to_bucket): Change return type to 'int'.
37734         (gl_linkedhash_list_implementation): Update.
37735         * lib/gl_anytree_list1.h (free_subtree): New function.
37736         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37737         gl_tree_create_empty. Return NULL upon out-of-memory.
37738         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37739         Change return type to 'int'. Return -1 upon out-of-memory.
37740         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37741         out-of-memory.
37742         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37743         (gl_tree_remove_node): New function, moved here from
37744         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37745         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37746         Update.
37747         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37748         malloc, not xmalloc. Return NULL upon out-of-memory.
37749         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37750         out-of-memory.
37751         (gl_tree_remove_node_from_tree): New function, extracted from
37752         gl_tree_remove_node.
37753         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37754         upon out-of-memory.
37755         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37756         out-of-memory.
37757         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37758         upon out-of-memory.
37759         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37760         upon out-of-memory.
37761         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37762         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37763         not xmalloc. Return NULL upon out-of-memory.
37764         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37765         out-of-memory.
37766         (gl_tree_remove_node_from_tree): New function, extracted from
37767         gl_tree_remove_node.
37768         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37769         upon out-of-memory.
37770         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37771         out-of-memory.
37772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37773         upon out-of-memory.
37774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37775         upon out-of-memory.
37776         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37777         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37778         gl_anytree_list1.h before gl_anyavltree_list2.h.
37779         (gl_avltree_list_implementation): Update.
37780         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37781         gl_anytree_list1.h before gl_anyavltree_list2.h.
37782         (gl_rbtree_list_implementation): Update.
37783         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37784         Change return type to 'int'. Return -1 upon out-of-memory. Use
37785         __builtin_expect.
37786         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37787         (gl_avltreehash_list_implementation): Update.
37788         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37789         (gl_rbtreehash_list_implementation): Update.
37790         * modules/array-list (Depends-on): Remove xalloc.
37791         * modules/carray-list (Depends-on): Likewise.
37792         * modules/linked-list (Depends-on): Likewise.
37793         * modules/linkedhash-list (Depends-on): Likewise.
37794         * modules/avltree-list (Depends-on): Likewise.
37795         * modules/rbtree-list (Depends-on): Likewise.
37796         * modules/avltreehash-list (Depends-on): Likewise.
37797         * modules/rbtreehash-list (Depends-on): Likewise.
37798
37799         * modules/xsublist: New file.
37800         * lib/gl_xsublist.h: New file.
37801         * lib/gl_xsublist.c: New file.
37802         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37803         (gl_sublist_nx_create): New declaration.
37804         * lib/gl_sublist.c: Don't include xalloc.h.
37805         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37806         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37807         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37808         Change return type to 'int'. Return -1 upon out-of-memory.
37809         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37810         upon out-of-memory.
37811         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37812         NULL upon out-of-memory.
37813         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37814         upon out-of-memory.
37815         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37816         NULL upon out-of-memory.
37817         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37818         NULL upon out-of-memory.
37819         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37820         upon out-of-memory.
37821         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37822         (gl_sublist_list_implementation): Update.
37823         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37824         upon out-of-memory.
37825         * modules/sublist (Depends-on): Remove xalloc.
37826
37827         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37828         * tests/test-carray_list.c: Likewise.
37829         * tests/test-linked_list.c: Likewise.
37830         * tests/test-linkedhash_list.c: Likewise.
37831         * tests/test-avltree_list.c: Likewise.
37832         * tests/test-rbtree_list.c: Likewise.
37833         * tests/test-avltreehash_list.c: Likewise.
37834         * tests/test-rbtreehash_list.c: Likewise.
37835         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37836         * modules/carray-list-tests (Makefile.am): Likewise.
37837         * modules/linked-list-tests (Makefile.am): Likewise.
37838         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37839         * modules/avltree-list-tests (Makefile.am): Likewise.
37840         * modules/rbtree-list-tests (Makefile.am): Likewise.
37841         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37842         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37843
37844         * NEWS: Mention the changes.
37845
37846         * lib/clean-temp.c: Include gl_xlist.h.
37847         * modules/clean-temp (Depends-on): Add xlist.
37848
37849         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37850         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37851
37852         * tests/test-array_oset.c: Include gl_xlist.h.
37853         * modules/array-oset-tests (Depends-on): Add xlist.
37854
37855         Reported by José E. Marchesi <jemarch@gnu.org>.
37856
37857 2009-12-13  Bruno Haible  <bruno@clisp.org>
37858
37859         Move the malloc checking from module 'oset' to new module 'xoset'.
37860         * modules/xoset: New file.
37861         * lib/gl_xoset.h: New file.
37862         * lib/gl_xoset.c: New file.
37863         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37864         declarations.
37865         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37866         (struct gl_oset_implementation): Rename and change methods accordingly.
37867         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37868         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37869         'int'. Mark as __warn_unused_result__.
37870         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37871         gl_oset_create_empty.
37872         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37873         'int'.
37874         * lib/gl_array_oset.c: Don't include xalloc.h.
37875         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37876         malloc, not xmalloc.
37877         (grow): Change return type to 'int'. Don't call xalloc_die.
37878         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37879         to 'int'.
37880         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37881         'int'.
37882         (gl_array_oset_implementation): Update.
37883         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37884         gl_tree_create_empty.
37885         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37886         'int'.
37887         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37888         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37889         xmalloc.
37890         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37891         not xmalloc.
37892         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37893         xmalloc.
37894         (gl_avltree_oset_implementation): Update.
37895         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37896         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37897         xmalloc.
37898         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37899         not xmalloc.
37900         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37901         xmalloc.
37902         (gl_rbtree_oset_implementation): Update.
37903         * modules/array-oset (Depends-on): Remove xalloc.
37904         * modules/avltree-oset (Depends-on): Likewise.
37905         * modules/rbtree-oset (Depends-on): Likewise.
37906         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37907         * tests/test-avltree_oset.c: Likewise.
37908         * tests/test-rbtree_oset.c: Likewise.
37909         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37910         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37911         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37912         * NEWS: Mention the change.
37913
37914 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37915
37916         maint.mk: allow a project to override release-prep commands
37917         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37918         commands into a new rule.
37919         (release-prep): New rule.
37920         (release-prep-hook): New overridable variable.
37921
37922 2009-12-13  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37925
37926 2009-12-13  Jim Meyering  <meyering@redhat.com>
37927
37928         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37929         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37930
37931 2009-12-12  Bruno Haible  <bruno@clisp.org>
37932
37933         duplocale: Tweak.
37934         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37935
37936 2009-12-12  Karl Berry  <karl@gnu.org>
37937
37938         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37939
37940 2009-12-12  Bruno Haible  <bruno@clisp.org>
37941
37942         * m4/po.m4: Undo incorrect untabification.
37943
37944 2009-12-12  Bruno Haible  <bruno@clisp.org>
37945
37946         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37947         * modules/c-strtod (Depends-on): Add locale.
37948         * modules/c-strtold (Depends-on): Likewise.
37949
37950 2009-12-12  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37953
37954 2009-12-11  Eric Blake  <ebb9@byu.net>
37955
37956         setenv: relax requirement in light of POSIX ruling
37957         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37958         not NULL.
37959         * tests/test-setenv.c (main): Relax test.
37960         * tests/test-unsetenv.c (main): Likewise.
37961         * doc/posix-functions/setenv.texi (setenv): Document this.
37962         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37963
37964 2009-12-11  Bruno Haible  <bruno@clisp.org>
37965
37966         New module 'fd-safer-flag'.
37967         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37968         * lib/dup-safer.c (dup_safer_flag): Remove function.
37969         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37970         * lib/fd-safer.c (fd_safer_flag): Remove function.
37971         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37972         * modules/cloexec (configure.ac): Drop indicator macro.
37973         * modules/fd-safer-flag: New file.
37974         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37975         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37976         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37977
37978 2009-12-11  Bruno Haible  <bruno@clisp.org>
37979
37980         Tests for module 'nl_langinfo'.
37981         * modules/nl_langinfo-tests: New file.
37982         * tests/test-nl_langinfo.sh: New file.
37983         * tests/test-nl_langinfo.c: New file.
37984
37985         New module 'nl_langinfo'.
37986         * lib/nl_langinfo.c: New file.
37987         * m4/nl_langinfo.m4: New file.
37988         * modules/nl_langinfo: New file.
37989         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37990
37991 2009-12-11  Bruno Haible  <bruno@clisp.org>
37992
37993         Tests for module 'langinfo'.
37994         * modules/langinfo-tests: New file.
37995         * tests/test-langinfo.c: New file.
37996
37997         New module 'langinfo'.
37998         * lib/langinfo.in.h: New file.
37999         * m4/langinfo_h.m4: New file.
38000         * modules/langinfo: New file.
38001         * doc/posix-headers/langinfo.texi: Mention the new module.
38002
38003 2009-12-11  Bruno Haible  <bruno@clisp.org>
38004
38005         * lib/config.charset: Untabify.
38006
38007 2009-12-11  Bruno Haible  <bruno@clisp.org>
38008
38009         * modules/unistd-safer (configure.ac): Drop indicator macro.
38010
38011 2009-12-11  Bruno Haible  <bruno@clisp.org>
38012
38013         Move pipe2-safer code to its own file.
38014         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38015         * lib/pipe-safer.c (pipe2_safer): Remove function.
38016         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38017         (Makefile.am): Add it to lib_SOURCES.
38018
38019 2009-12-10  Bruno Haible  <bruno@clisp.org>
38020
38021         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38022
38023 2009-12-10  Bruno Haible  <bruno@clisp.org>
38024
38025         Declare which arguments expect non-NULL values, for GCC and clang.
38026         * build-aux/arg-nonnull.h: New file.
38027         * modules/arg-nonnull: New file.
38028         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38029         (inet_ntop, inet_pton): Use it.
38030         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38031         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38032         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38033         (open, openat): Use it.
38034         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38035         (fnmatch): Use it.
38036         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38037         (getopt, getopt_long, getopt_long_only): Use it.
38038         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38039         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38040         Use it.
38041         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38042         (iconv_open): Use it.
38043         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38044         (strtoimax, strtoumax): Use it.
38045         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38046         (duplocale): Use it.
38047         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38048         (frexp, frexpl): Use it.
38049         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38050         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38051         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38052         (tsearch, tfind, tdelete, twalk): Use it.
38053         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38054         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38055         sigpending): Use it.
38056         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38057         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38058         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38059         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38060         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38061         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38062         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38063         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38064         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38065         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38066         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38067         Use it.
38068         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38069         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38070         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38071         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38072         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38073         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38074         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38075         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38076         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38077         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38078         strtoull, unsetenv): Use it.
38079         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38080         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38081         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38082         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38083         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38084         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38085         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38086         (strcasecmp, strncasecmp): Use it.
38087         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38088         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38089         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38090         rpl_setsockopt): Use it.
38091         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38092         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38093         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38094         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38095         (gettimeofday): Use it.
38096         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38097         (times): Use it.
38098         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38099         (uname): Use it.
38100         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38101         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38102         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38103         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38104         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38105         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38106         unlinkat, write): Use it.
38107         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38108         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38109         * lib/argv-iter.h: Include arg-nonnull.h.
38110         (_ATTRIBUTE_NONNULL_): Remove macro.
38111         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38112         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38113         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38114         optimization.
38115         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38116         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38117         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38118         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38119         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38120         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38121         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38122         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38123         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38124         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38125         * modules/dirent (Depends-on): Add arg-nonnull.
38126         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38127         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38128         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38129         * modules/fnmatch (Depends-on): Add arg-nonnull.
38130         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38131         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38132         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38133         * modules/glob (Depends-on): Add arg-nonnull.
38134         (Makefile.am): Insert arg-nonnull.h into glob.h.
38135         * modules/iconv_open (Depends-on): Add arg-nonnull.
38136         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38137         * modules/inttypes (Depends-on): Add arg-nonnull.
38138         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38139         * modules/locale (Depends-on): Add arg-nonnull.
38140         (Makefile.am): Insert arg-nonnull.h into locale.h.
38141         * modules/math (Depends-on): Add arg-nonnull.
38142         (Makefile.am): Insert arg-nonnull.h into math.h.
38143         * modules/netdb (Depends-on): Add arg-nonnull.
38144         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38145         * modules/search (Depends-on): Add arg-nonnull.
38146         (Makefile.am): Insert arg-nonnull.h into search.h.
38147         * modules/signal (Depends-on): Add arg-nonnull.
38148         (Makefile.am): Insert arg-nonnull.h into signal.h.
38149         * modules/spawn (Depends-on): Add arg-nonnull.
38150         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38151         * modules/stdio (Depends-on): Add arg-nonnull.
38152         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38153         * modules/stdlib (Depends-on): Add arg-nonnull.
38154         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38155         * modules/string (Depends-on): Add arg-nonnull.
38156         (Makefile.am): Insert arg-nonnull.h into string.h.
38157         * modules/strings (Depends-on): Add arg-nonnull.
38158         (Makefile.am): Insert arg-nonnull.h into strings.h.
38159         * modules/sys_socket (Depends-on): Add arg-nonnull.
38160         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38161         * modules/sys_stat (Depends-on): Add arg-nonnull.
38162         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38163         * modules/sys_time (Depends-on): Add arg-nonnull.
38164         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38165         * modules/sys_times (Depends-on): Add arg-nonnull.
38166         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38167         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38168         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38169         * modules/time (Depends-on): Add arg-nonnull.
38170         (Makefile.am): Insert arg-nonnull.h into time.h.
38171         * modules/unistd (Depends-on): Add arg-nonnull.
38172         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38173         * modules/wchar (Depends-on): Add arg-nonnull.
38174         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38175         * modules/argv-iter (Depends-on): Add arg-nonnull.
38176         * tests/test-canonicalize.c (null_ptr): New function.
38177         (main): Use it.
38178         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38179         (main): Use it.
38180         * tests/test-memmem.c (null_ptr): New function.
38181         (main): Use it.
38182         Reported by Jim Meyering.
38183
38184 2009-12-10  Bruno Haible  <bruno@clisp.org>
38185
38186         Use spaces for indentation, not tabs.
38187         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38188         * m4/*.m4: Untabify.
38189         * build-aux/*.h: Untabify.
38190         * tests/**/*.[hc]: Untabify.
38191         * README: New section "Indent with spaces, not TABs", based on
38192         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38193         * NEWS: Mention the change.
38194
38195 2009-12-10  Bruno Haible  <bruno@clisp.org>
38196
38197         pty test: Fix link error.
38198         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38199         test_pty_LDADD.
38200
38201 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38202
38203         * modules/pty: New file.
38204         * modules/pty-tests: New file.
38205         * m4/pty.m4: New file.
38206         * tests/test-pty.c: New file.
38207         * doc/glibc-headers/pty.texi: Modified.
38208         * doc/glibc-functions/forkpty.texi: Modified.
38209         * doc/glibc-functions/openpty.texi: Modified.
38210
38211 2009-12-10  Bruno Haible  <bruno@clisp.org>
38212
38213         Avoid syntax error in C++ mode.
38214         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38215
38216 2009-12-10  Bruno Haible  <bruno@clisp.org>
38217
38218         Use sed with option -e.
38219         * gnulib-tool (func_version, func_emit_copyright_notice,
38220         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38221         option -e to sed.
38222         * modules/link-warning (Makefile.am): Likewise.
38223
38224 2009-12-10  Jim Meyering  <meyering@redhat.com>
38225
38226         mgetgroups: do not write bytes beyond end of malloc'd buffer
38227         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38228         username, we call getgroups with a one-element-shorter buffer,
38229         but still told it the length was original, max_n_groups.
38230
38231 2009-12-09  Eric Blake  <ebb9@byu.net>
38232
38233         cloexec: relax license
38234         * modules/cloexec (Maintainer): Add myself.
38235         (License): Use LGPL, not GPL.
38236
38237         link-warning: optimize generation
38238         * modules/link-warning (Makefile.am): Reduce process usage.
38239
38240 2009-12-09  Bruno Haible  <bruno@clisp.org>
38241
38242         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38243         workaround was added on 2009-11-17.
38244
38245 2009-12-09  Jim Meyering  <meyering@redhat.com>
38246             Bruno Haible  <bruno@clisp.org>
38247
38248         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38249         * modules/link-warning (Makefile.am): Make the comment-removing sed
38250         command more robust in the face of bootstrap-prepended comment lines.
38251
38252 2009-12-09  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38255         most one group.
38256
38257 2009-12-09  Simon Josefsson <simon@josefsson.org>
38258             Bruno Haible  <bruno@clisp.org>
38259
38260         * build-aux/link-warning.h: Add copyright notice.
38261         * modules/link-warning (Makefile.am): Generate link-warning.h from
38262         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38263         * NEWS: Mention change in link-warning module.
38264         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38265         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38266         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38267         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38268         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38269         * modules/math (Makefile.am): Add dependency to math.h.
38270         * modules/search (Makefile.am): Add dependency to search.h.
38271         * modules/signal (Makefile.am): Add dependency to signal.h.
38272         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38273         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38274         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38275         * modules/string (Makefile.am): Add dependency to string.h.
38276         * modules/strings (Makefile.am): Add dependency to strings.h.
38277         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38278         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38279         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38280         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38281         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38282         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38283         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38284         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38285         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38286
38287 2009-12-09  Bruno Haible  <bruno@clisp.org>
38288
38289         fchdir: Optimize away rpl_fstat when possible.
38290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38291         REPLACE_OPEN_DIRECTORY.
38292         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38293
38294 2009-12-09  Bruno Haible  <bruno@clisp.org>
38295
38296         * lib/fchdir.c: Update comment.
38297
38298 2009-12-09  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38301
38302 2009-12-08  Eric Blake  <ebb9@byu.net>
38303
38304         fchdir: avoid memory leak on re-registration.
38305         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38306
38307 2009-12-08  Jim Meyering  <meyering@redhat.com>
38308
38309         init.sh: avoid Solaris 10 /bin/sh portability problem
38310         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38311         sourced script:
38312           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38313           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38314           bar
38315         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38316         and two tests used that idiom.
38317         * tests/init.sh: Update suggested usage comments.
38318         (path_prepend_): New function, to be used in place
38319         of the --src-path=DIR option.
38320         (setup_): Move PATH-prepending code into path_prepend_.
38321         * tests/test-pread.sh: Adapt to new usage.
38322         * tests/test-xalloc-die.sh: Likewise.
38323
38324 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38325
38326         * doc/gnulib.texi (Glibc pty.h): Add.
38327         * doc/glibc-functions/forkpty.texi: Add.
38328         * doc/glibc-functions/openpty.texi: Add.
38329         Suggested by Bruno Haible.
38330
38331 2009-12-08  Eric Blake  <ebb9@byu.net>
38332
38333         fchdir: fix logic bugs
38334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38335         * tests/test-fchdir.c (main): Enhance test.
38336         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38337         is in use.
38338
38339         dup2: fix logic bugs
38340         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38341         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38342         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38343         exists.
38344         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38345
38346 2009-12-07  Eric Blake  <ebb9@byu.net>
38347
38348         unlink: fix m4 detection
38349         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38350
38351         unistd-safer: add unit test
38352         * modules/unistd-safer-tests: New file.
38353         * tests/test-dup-safer.c: Likewise.
38354         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38355         * tests/test-dup2.c (setmode): Likewise.
38356         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38357
38358         cloexec: preserve text vs. binary across dup_cloexec
38359         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38360         mode.
38361         * modules/dup2-tests (Depends-on): Add binary-io.
38362         * modules/cloexec-tests (Depends-on): Likewise.
38363         * tests/test-dup2.c (setmode, is_mode): New helpers.
38364         (main): Add tests that translation mode is preserved.
38365         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38366         Reported by Bruno Haible.
38367
38368         mgetgroups: reduce duplicate listings
38369         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38370         resulting array.
38371         * tests/test-chown.h (test_chown): Simplify client.
38372         * tests/test-lchown.h (test_lchown): Likewise.
38373
38374 2009-12-06  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38377         value.
38378
38379 2009-12-06  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/progname.c: Include stdio.h, stdlib.h.
38382         (set_program_name): Reject a NULL argument.
38383
38384 2009-12-05  Eric Blake  <ebb9@byu.net>
38385
38386         pipe2-safer: new module
38387         * modules/pipe2-safer: New file.
38388         * lib/unistd-safer.h (pipe2_safer): New prototype.
38389         * lib/unistd--.h (pipe2): New wrapper.
38390         * lib/pipe-safer.c (pipe2_safer): New function.
38391         * modules/pipe (Depends-on): Add pipe2-safer.
38392         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38393
38394         stdlib-safer: preserve cloexec flag for mkostemp[s]
38395         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38396         fd_safer_flag.
38397
38398         unistd-safer: allow preservation of cloexec status via flag
38399         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38400         prototypes.
38401         * lib/dup-safer.c (dup_safer_flag): New function.
38402         * lib/fd-safer.c (fd_safer_flag): Likewise.
38403         * modules/cloexec (configure.ac): Set witness.
38404
38405         test-dup2: enhance test
38406         * modules/dup2-tests (Depends-on): Add cloexec.
38407         * tests/test-dup2.c (main): Enhance test.
38408
38409         cloexec: add dup_cloexec
38410         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38411         header and comments.
38412         * lib/cloexec.c (set_cloexec_flag): Add comments.
38413         (dup_cloexec): New function, with mingw implementation borrowed
38414         from...
38415         * lib/w32spawn.h (dup_noinherit): ...here.
38416         * modules/execute (Depends-on): Add cloexec.
38417         * modules/pipe (Depends-on): Likewise.
38418         * modules/cloexec (Depends-on): Add dup2.
38419         * modules/cloexec-tests (Files): New file.
38420         * tests/test-cloexec.c: Likewise.
38421
38422         test-xalloc-die: fix test for mingw
38423         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38424         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38425         directory and .exe suffix off argv[0] output.
38426
38427         test-fseeko: fix test for mingw
38428         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38429         than undefining fseek, so test will pass on mingw.
38430
38431 2009-12-05  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/progname.h (set_program_name): Clarify specification.
38434         * lib/progname.c (set_program_name): Likewise.
38435         Reported by Jim Meyering.
38436
38437 2009-12-05  Jim Meyering  <meyering@redhat.com>
38438
38439         maint.mk: backslash-escape parens in default regexp
38440         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38441         backslash-escape the literal parentheses.
38442
38443         maint.mk: news-date-check: use grep -E
38444         * top/maint.mk (today): Define a Make variable, not a...
38445         (news-date-check): ...shell variable.
38446         (news-date-regexp): Use the Make variable.
38447         Use grep's -E option.  Change the failing diagnostic to mention
38448         the variable, $(news-date-regexp).
38449
38450 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38451
38452         maintainer-makefile: allow customization of NEWS entry format
38453         * top/maint.mk (news-date-regexp): New overridable variable.
38454         (news-date-check): Use it.
38455
38456 2009-12-04  Eric Blake  <ebb9@byu.net>
38457
38458         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38459         * lib/mgetgroups.h (xgetgroups): New prototype.
38460         * lib/mgetgroups.c (xgetgroups): New wrapper.
38461         (mgetgroups): Handle ENOSYS.
38462         * modules/mgetgroups (Depends-on): Add realloc.
38463         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38464
38465         mgetgroups: avoid argument promotion issues with -1
38466         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38467         for invalid gid_t.
38468         * tests/test-chown.h (getegid, test_chown): Likewise.
38469         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38470
38471 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38472
38473         exclude: Fix header file problems.
38474         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38475
38476 2009-12-01  Jim Meyering  <meyering@redhat.com>
38477
38478         fts: fts_open: do not let an empty string cause immediate failure
38479         This is required in support of GNU rm, for which the command
38480         "rm A '' B" must process and remove both A and B, in spite of
38481         the empty string argument.
38482         * lib/fts.c (fts_open): Do not let the presence of an empty string
38483         cause fts_open to fail immediately.  Most fts-using tools must be
38484         able to process all arguments, in order, and can be expected to
38485         diagnose such arguments themselves.
38486
38487 2009-11-30  Eric Blake  <ebb9@byu.net>
38488
38489         utimens: fix compilation error
38490         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38491         Declare variable at right scope.
38492
38493 2009-11-29  Jim Meyering  <meyering@redhat.com>
38494
38495         bootstrap: handle perl-5.11's changed --version output
38496         * build-aux/bootstrap (get_version): Handle perl separately,
38497         since perl-5.11's --version output is different.
38498
38499 2009-11-28  Jim Meyering  <meyering@redhat.com>
38500
38501         userspec: depend on the inttostr module, too
38502         * modules/userspec (Depends-on): Add inttostr.
38503
38504         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38505         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38506         number of MAXUID when it evaluates to (uid_t) -1.
38507         Likewise for group ID.  Reported by Matt McCutchen in
38508         <http://savannah.gnu.org/bugs/?28113>
38509
38510         userspec: reformat to use spaces, not TABs
38511         * lib/userspec.c: Expand TABs to spaces.
38512         Add Emacs' "indent-tabs-mode: nil" hint.
38513
38514 2009-11-27  Eric Blake  <ebb9@byu.net>
38515
38516         getopt-gnu: flush out another BSD bug
38517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38518         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38519         flush out BSD bug.
38520         * tests/test-getopt.h (test_getopt): End lists with NULL.
38521         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38522         (test_getopt_long_posix): Enhance test.
38523         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38524         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38525         getopt-gnu.
38526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38527         Likewise.
38528
38529 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38530
38531         * modules/idpriv-droptemp-tests (Notice): Fix text.
38532
38533 2009-11-27  Jim Meyering  <meyering@redhat.com>
38534
38535         test-xalloc-die: avoid spurious failure due to libtool argv difference
38536         In a libtool-enabled project, this test would fail due to a difference
38537         in the emitted program name, e.g.,
38538         -test-xalloc-die: memory exhausted
38539         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38540         Use program to avoid that.
38541         * modules/xalloc-die-tests (Depends-on): Add progname.
38542         * tests/test-xalloc-die.c: Include progname.h".
38543         (program_name): Remove decl.
38544         (main): Call set_program_name.
38545         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38546
38547 2009-11-26  Richard Jones  <rjones@redhat.com>
38548
38549         w32sock: leave win32 error in place.
38550         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38551
38552 2009-11-26  Eric Blake  <ebb9@byu.net>
38553
38554         init.sh: suggest to use skip_ and fail_ functions in comments
38555         * tests/init.sh: Add a sentence.
38556
38557 2009-11-25  Bruno Haible  <bruno@clisp.org>
38558
38559         init.sh: add documentation in comments
38560         * tests/init.sh: Add some developer and user documentation.
38561
38562 2009-11-26  Jim Meyering  <meyering@redhat.com>
38563
38564         init.sh: accommodate even those who specify bogus srcdir manually
38565         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38566         configure-time tests to be sanitized, so that there is no need to
38567         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38568         (with no double quotes) suffices.  However, since tests may be
38569         invoked manually, and since you may explicitly set srcdir to the
38570         name of a directory containing spaces, do quote its uses here.
38571         * tests/test-pread.sh: Likewise.
38572         Suggested by Bruno Haible.
38573
38574         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38575         * tests/test-pread.sh: Write no data into the pipe, because
38576         test-pread actually reads none.  This avoids a diagnostic,
38577         "bash: echo: write error: Broken pipe", that arises in the unusual
38578         event something is ignoring SIGPIPE, and might be interpreted
38579         as some sort of failure.  Reported by Bruno Haible.
38580
38581 2009-11-25  Jim Meyering  <meyering@redhat.com>
38582
38583         test-pread: cover failure with ESPIPE and EINVAL
38584         * tests/test-pread.c (main): Test for failure, too.
38585         * tests/test-pread.sh: Invoke with stdin on a pipe.
38586         Suggested by Eric Blake.
38587
38588         pread: improvement and fix
38589         * modules/pread (Depends-on): Depend on lseek, for portability to
38590         e.g., mingw.  Suggested by Eric Blake.
38591         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38592
38593         unistd.in.h: correct declaration of pread
38594         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38595         Reported by Richard W.M. Jones.
38596
38597         test-pread.sh: distribute the test script
38598         * modules/pread-tests (Files): Include test-pread.sh.
38599
38600         test-pread.sh: clean up
38601         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38602         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38603         That is unnecessary, since it's always ".".
38604         Suggestion from Eric Blake.
38605
38606         test-pread.sh: make executable
38607         * tests/test-pread.sh: Set executable bit.
38608         Reported by Eric Blake.
38609
38610         correct typo in test-pread.sh
38611         * tests/test-pread.sh: Add #! line.
38612
38613         test pread
38614         * tests/test-pread.c: New file.
38615         * tests/test-pread.sh: Likewise.
38616         * modules/pread-tests: Likewise.
38617
38618         pread: new module
38619         * modules/pread: New file.
38620         * lib/unistd.in.h (pread): Define/declare.
38621         * lib/pread.c (pread): New file.
38622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38623         * modules/unistd (Makefile.am): Substitute witnesses.
38624         * doc/posix-functions/pread.texi (pread): Update.
38625         * MODULES.html.sh: Add pread.
38626
38627 2009-11-25  Jim Meyering  <meyering@redhat.com>
38628
38629         tests/init.sh: new file to be used via most *.sh tests
38630         * tests/init.sh: New file.
38631
38632 2009-11-25  Eric Blake  <ebb9@byu.net>
38633
38634         utimens: work around older Linux failure with symlinks
38635         * lib/utimens.c (lutimensat_works_really): New variable.
38636         (fdutimens, lutimens): Use it to manage kernels that support
38637         nanosecond times on files, but not on symlinks.
38638         Reported by Ondřej Vašík.
38639
38640         utimes: fix configure grammar
38641         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38642
38643 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38644
38645         regex: Fix fastmap for multibyte character ranges.
38646         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38647         characters when a multibyte character range is included.
38648
38649 2009-11-22  Andy Wingo  <wingo@pobox.com>
38650
38651         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38652         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38653
38654 2009-11-24  Bruno Haible  <bruno@clisp.org>
38655
38656         doc: Most *_l functions exist in MacOS X 10.5.
38657         * doc/posix-functions/duplocale.texi: Update platforms list.
38658         * doc/posix-functions/freelocale.texi: Likewise.
38659         * doc/posix-functions/newlocale.texi: Likewise.
38660         * doc/posix-functions/uselocale.texi: Likewise.
38661         * doc/posix-functions/isalnum_l.texi: Likewise.
38662         * doc/posix-functions/isalpha_l.texi: Likewise.
38663         * doc/posix-functions/isblank_l.texi: Likewise.
38664         * doc/posix-functions/iscntrl_l.texi: Likewise.
38665         * doc/posix-functions/isdigit_l.texi: Likewise.
38666         * doc/posix-functions/isgraph_l.texi: Likewise.
38667         * doc/posix-functions/islower_l.texi: Likewise.
38668         * doc/posix-functions/isprint_l.texi: Likewise.
38669         * doc/posix-functions/ispunct_l.texi: Likewise.
38670         * doc/posix-functions/isspace_l.texi: Likewise.
38671         * doc/posix-functions/isupper_l.texi: Likewise.
38672         * doc/posix-functions/iswalnum_l.texi: Likewise.
38673         * doc/posix-functions/iswalpha_l.texi: Likewise.
38674         * doc/posix-functions/iswblank_l.texi: Likewise.
38675         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38676         * doc/posix-functions/iswctype_l.texi: Likewise.
38677         * doc/posix-functions/iswdigit_l.texi: Likewise.
38678         * doc/posix-functions/iswgraph_l.texi: Likewise.
38679         * doc/posix-functions/iswlower_l.texi: Likewise.
38680         * doc/posix-functions/iswprint_l.texi: Likewise.
38681         * doc/posix-functions/iswpunct_l.texi: Likewise.
38682         * doc/posix-functions/iswspace_l.texi: Likewise.
38683         * doc/posix-functions/iswupper_l.texi: Likewise.
38684         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38685         * doc/posix-functions/isxdigit_l.texi: Likewise.
38686         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38687         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38688         * doc/posix-functions/strcoll_l.texi: Likewise.
38689         * doc/posix-functions/strfmon_l.texi: Likewise.
38690         * doc/posix-functions/strftime_l.texi: Likewise.
38691         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38692         * doc/posix-functions/strxfrm_l.texi: Likewise.
38693         * doc/posix-functions/tolower_l.texi: Likewise.
38694         * doc/posix-functions/toupper_l.texi: Likewise.
38695         * doc/posix-functions/towctrans_l.texi: Likewise.
38696         * doc/posix-functions/towlower_l.texi: Likewise.
38697         * doc/posix-functions/towupper_l.texi: Likewise.
38698         * doc/posix-functions/wcscoll_l.texi: Likewise.
38699         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38700         * doc/posix-functions/wctrans_l.texi: Likewise.
38701         * doc/posix-functions/wctype_l.texi: Likewise.
38702         * doc/glibc-functions/strptime_l.texi: Likewise.
38703         * doc/glibc-functions/strtod_l.texi: Likewise.
38704         * doc/glibc-functions/strtof_l.texi: Likewise.
38705         * doc/glibc-functions/strtol_l.texi: Likewise.
38706         * doc/glibc-functions/strtold_l.texi: Likewise.
38707         * doc/glibc-functions/strtoll_l.texi: Likewise.
38708         * doc/glibc-functions/strtoul_l.texi: Likewise.
38709         * doc/glibc-functions/strtoull_l.texi: Likewise.
38710         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38711         * doc/glibc-functions/wcstod_l.texi: Likewise.
38712         * doc/glibc-functions/wcstof_l.texi: Likewise.
38713         * doc/glibc-functions/wcstol_l.texi: Likewise.
38714         * doc/glibc-functions/wcstold_l.texi: Likewise.
38715         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38716         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38717         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38718
38719 2009-11-24  Bruno Haible  <bruno@clisp.org>
38720
38721         duplocale: Fix logic bug.
38722         * lib/duplocale.c: Don't include <langinfo.h>.
38723         (_NL_LOCALE_NAME): Remove macro.
38724         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38725         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38726
38727 2009-11-23  Jim Meyering  <meyering@redhat.com>
38728
38729         test-update-copyright: don't hard-code /usr/bin/perl
38730         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38731         perl to print the current year.  Gilles Espinasse reported that
38732         the replaced use of perl was hard-coded as /usr/bin/perl.
38733
38734 2009-11-23  Bruno Haible  <bruno@clisp.org>
38735
38736         duplocale: Add support for glibc 2.3.x.
38737         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38738
38739 2009-11-22  Bruno Haible  <bruno@clisp.org>
38740
38741         vasnprintf: Tiny optimization.
38742         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38743         MacOS X.
38744
38745 2009-11-22  Bruno Haible  <bruno@clisp.org>
38746
38747         Tests for module 'duplocale'.
38748         * modules/duplocale-tests: New file.
38749         * tests/test-duplocale.c: New file.
38750
38751         New module 'duplocale'.
38752         * m4/duplocale.m4: New file.
38753         * lib/locale.in.h (duplocale): New declaration.
38754         * lib/duplocale.c: New file.
38755         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38756         gl_LOCALE_H_DEFAULTS): New macros.
38757         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38758         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38759         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38760         REPLACE_DUPLOCALE.
38761         * modules/duplocale: New file.
38762         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38763
38764 2009-11-22  Bruno Haible  <bruno@clisp.org>
38765
38766         * modules/locale-tests (configure.ac): Test for newlocale function.
38767         * tests/test-locale.c: When the system has extended locale functions,
38768         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38769
38770         locale: Make locale_t available when possible.
38771         * lib/locale.in.h: Include <xlocale.h> when it exists.
38772         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38773         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38774         * modules/locale (Depends-on): Add extensions.
38775         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38776         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38777
38778 2009-11-22  Bruno Haible  <bruno@clisp.org>
38779
38780         Add comments.
38781         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38782         invocation.
38783         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38784         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38785         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38786
38787 2009-11-22  Bruno Haible  <bruno@clisp.org>
38788
38789         error: account for the possibility of freopen (stdout).
38790         * lib/error.c: Include <unistd.h>.
38791         (flush_stdout): New function, extracted from error and error_at_line.
38792         Determine stdout's fd dynamically.
38793         (error, error_at_line): Invoke flush_stdout.
38794         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38795         * modules/error (Depends-on): Add unistd.
38796
38797 2009-11-22  Bruno Haible  <bruno@clisp.org>
38798
38799         diffseq: Add comment.
38800         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38801
38802 2009-11-22  Jim Meyering  <meyering@redhat.com>
38803
38804         c-stack: avoid defining an unused static function
38805         * lib/c-stack.c (find_stack_direction): Do not define this function
38806         when it will not be used.
38807
38808         diffseq: avoid spurious gcc warnings
38809         * lib/diffseq.h (IF_LINT2): Define.
38810         (compareseq): Use it to initialize two members of "part".
38811         This avoids two used-uninitialized warnings.
38812
38813 2009-11-21  Jim Meyering  <meyering@redhat.com>
38814
38815         c-stack: avoid "ignoring return value of `write'" warning
38816         * lib/c-stack.c: Include "ignore-value.h".
38817         (die): Explicitly ignore each write return value.
38818         * modules/c-stack (Depends-on): Add ignore-value.
38819
38820 2009-11-21  Bruno Haible  <bruno@clisp.org>
38821
38822         diffseq: reduce scope of variable 'best'.
38823         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38824         variable, earlier used for two different purposes.
38825
38826 2009-11-21  Jim Meyering  <meyering@redhat.com>
38827
38828         diffseq: remove useless assignment to "best"
38829         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38830         assignment.  At that point "best" is already guaranteed to be zero.
38831
38832 2009-11-20  Eric Blake  <ebb9@byu.net>
38833
38834         build: mention ftp redirector in release announcements
38835         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38836         values that used to come from cfg.mk; mention FTP redirect URL.
38837         * build-aux/announce-gen: Mention the mirror list.
38838         Suggested by Karl Berry.
38839
38840         nanosleep: improve port to mingw
38841         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38843         LIB_NANOSLEEP, but only when needed.
38844         * modules/select (Link): Document LIBSOCKET.
38845         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38846         enough.
38847
38848         nanosleep: work around cygwin bug
38849         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38850         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38851         bug.
38852         (getnow): Delete, not needed.
38853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38854         LIB_CLOCK_GETTIME.
38855         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38856         clock-time, gettime.
38857         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38858         bug.
38859         * modules/nanosleep-tests: New test.
38860         * tests/test-nanosleep.c: New file.
38861
38862         sleep: work around cygwin bug
38863         * lib/sleep.c (rpl_sleep): Work around the bug.
38864         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38865         (gl_PREREQ_SLEEP): Delete unused macro.
38866         * modules/sleep (Depends-on): Add verify.
38867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38868         * modules/unistd (Makefile.am): Substitute witness.
38869         * lib/unistd.in.h (sleep): Update prototype.
38870         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38871         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38872         * modules/sleep-tests (Depends-on): Check for alarm.
38873
38874 2009-11-20  Jim Meyering  <meyering@redhat.com>
38875
38876         maint.mk: improve sc_prohibit_magic_number_exit
38877         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38878         so it does not match uses like System.exit(1).
38879         Add comments showing how to correct all offenders.
38880
38881 2009-11-19  Eric Blake  <ebb9@byu.net>
38882
38883         xalloc-die-tests: add missing library
38884         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38885
38886         test-xvasprintf: silence compiler warnings
38887         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38888         empty string from gcc.
38889
38890 2009-11-19  Jim Meyering  <meyering@redhat.com>
38891
38892         xfreopen: new module, from coreutils
38893         * modules/xfreopen: New module.
38894         * lib/xfreopen.c: New file.
38895         * lib/xfreopen.h: New file.
38896         * MODULES.html.sh (File stream based Input/Output"): Add it.
38897
38898 2009-11-19  Eric Blake  <ebb9@byu.net>
38899
38900         manywarnings: depend on warnings
38901         * modules/manywarnings (Depends-on): Add warnings.
38902
38903         build: avoid compiler warnings
38904         * lib/select.c (rpl_select): Delete unused variable.
38905         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38906
38907 2009-11-18  Eric Blake  <ebb9@byu.net>
38908
38909         tests: avoid false negative with --with-packager
38910         * tests/test-version-etc.sh: Discard packager information.
38911         * tests/test-argp-version-etc-1.sh: Likewise.
38912         Reported by Mike Frysinger.
38913
38914         utimens: fix regression on Solaris
38915         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38916         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38917         can only change fd timestamps via futimesat.  Instead, use an
38918         additional witness macro to avoid BSD bug.
38919         Reported by Jim Meyering.
38920
38921 2009-11-17  Eric Blake  <ebb9@byu.net>
38922
38923         usleep: use it to simplify tests
38924         * modules/stat-time-tests (Depends-on): Add usleep.
38925         (configure.ac): Drop usleep check.
38926         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38927         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38928         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38929         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38930         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38931         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38932         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38933         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38934         Likewise.
38935         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38936         * tests/test-lchown.h (nap): Likewise.
38937         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38938         * tests/test-stat-time.c (nap): Likewise.
38939         * tests/test-utimens-common.h (nap): Update comments.
38940
38941         usleep: new module
38942         * modules/usleep: New file.
38943         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38944         * lib/usleep.c (usleep): Likewise.
38945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38946         * modules/unistd (Makefile.am): Substitute witnesses.
38947         * lib/unistd.in.h (usleep): Add declaration.
38948         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38949         * MODULES.html.sh (Date and time): Likewise.
38950         * modules/usleep-tests (Depends-on): New test.
38951         * tests/test-usleep.c: New file.
38952
38953         chown: work around OpenBSD bug
38954         * lib/chown.c (rpl_chown): Work around the bug.
38955         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38956         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38958         * modules/chown (Depends-on): Add stdbool.
38959         * modules/lchown (Depends-on): Likewise.
38960         * doc/posix-functions/chown.texi (chown): Document the bug.
38961         * doc/posix-functions/lchown.texi (lchown): Likewise.
38962         * tests/test-lchown.h (test_chown): Relax test.
38963
38964         mkstemp: avoid conflict with C++ keyword template
38965         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38966         * lib/mkostemp.c (mkostemp): Likewise.
38967         * lib/mkostemps.c (mkostemps): Likewise.
38968         * lib/mkstemp.c (mkstemp): Likewise.
38969         * lib/mkstemps.c (mkstemps): Likewise.
38970
38971         xalloc-die-tests: optimize
38972         * tests/test-xalloc-die.sh: Reduce number of processes.
38973
38974 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38975
38976         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38977         patch from ludo@gnu.org (Ludovic Courtès).
38978
38979 2009-11-17  Jim Meyering  <meyering@redhat.com>
38980
38981         version-etc: use proper license string
38982         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38983         * modules/version-etc-fsf: Likewise.
38984
38985 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38986
38987         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38988         printed to stdout.  Deal with EOL differences.
38989
38990 2009-11-17  Eric Blake  <ebb9@byu.net>
38991
38992         unsetenv: work around Solaris bug
38993         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38994         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38995         Reported by Jim Meyering.
38996
38997         vasnprintf: avoid compiler warnings
38998         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38999         variables.
39000         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39001
39002 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39003
39004         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39005         settings since xalloc-die is no longer the self test,
39006         xalloc-die.sh is.
39007
39008 2009-11-17  Jim Meyering  <meyering@redhat.com>
39009
39010         test-xalloc-die.sh: make the code agree with the commit log
39011         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39012         at the end, just in case you happen to have a test-xalloc-die
39013         program in some other PATH directory.
39014
39015         test-xalloc-die.sh: fix a portability bug
39016         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39017         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39018         Otherwise, argv[0] (as often seen in diagnostics) would be too
39019         system-dependent, sometimes with, and sometimes without the leading "./".
39020
39021         version-etc-fsf: relax license to LGPLv3+
39022         * modules/version-etc-fsf (License): Relax license.
39023
39024 2009-11-16  Eric Blake  <ebb9@byu.net>
39025
39026         xalloc-die-tests: avoid printing null pointer
39027         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39028         shell script.
39029         * tests/test-xalloc-die.c (program_name): Declare.
39030         * tests/test-xalloc-die.sh (tmpfiles): New file.
39031
39032         setenv, unsetenv: work around various bugs
39033         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39034         (setenv) [HAVE_SETENV]: Work around bugs.
39035         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39037         for bugs.
39038         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39039         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39041         * modules/stdlib (Makefile.am): Update substitutions.
39042         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39043         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39044         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39045         * modules/setenv-tests: New test.
39046         * modules/unsetenv-tests: Likewise.
39047         * tests/test-setenv.c: New file.
39048         * tests/test-unsetenv.c: Likewise.
39049
39050 2009-11-16  Jim Meyering  <meyering@redhat.com>
39051
39052         version-etc: relax license to LGPLv3+
39053         * modules/version-etc (License): Relax license.
39054
39055         better AC_REQUIRE expanded-before-required-warning avoidance
39056         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39057         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39058         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39059         which is no longer needed.
39060
39061 2009-11-16  Eric Blake  <ebb9@byu.net>
39062
39063         test-freading: clean up temporary file
39064         * tests/test-freading.c (main): Remove file on success, and use
39065         ASSERT more liberally.
39066         Reported by Jim Meyering.
39067
39068 2009-11-16  Jim Meyering  <meyering@redhat.com>
39069
39070         avoid new AC_REQUIRE expanded-before-required warnings
39071         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39072         merely using it.
39073         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39074         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39075
39076 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39077
39078         * tests/test-xalloc-die.c: New file.
39079         * modules/xalloc-die-tests: New file.
39080         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39081         XFAIL_TESTS so it can be appended by modules.
39082
39083 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39084
39085         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39086         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39087
39088 2009-11-14  Eric Blake  <ebb9@byu.net>
39089
39090         fnmatch: avoid compiler warning
39091         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39092         to silence compiler warning about mismatch signedness in ?:.
39093         Reported by Robert Millan.
39094
39095         intprops: add double-inclusion guard
39096         * lib/intprops.h: Allow idempotent includes.
39097         Suggested by Bruce Korb.
39098
39099         openat: detect Solaris fchownat bug
39100         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39101         penalizing glibc chownat when only lchownat is broken.
39102         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39103         trailing slash bugs.
39104         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39105         * modules/openat-tests (Files): Include more files.
39106         (Depends-on): Add mgetgroups, sleep, stat-time.
39107         (configure.ac): Add additional checks.
39108         (Makefile.am): Build new test.
39109         * tests/test-fchownat.c: New file.
39110
39111         lchown: detect Solaris and FreeBSD bug
39112         * lib/lchown.c (rpl_lchown): Work around bug.
39113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39115         * modules/unistd (Makefile.am): Populate it.
39116         * lib/unistd.in.h (lchown): Update declaration.
39117         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39118         * modules/lchown-tests: New file.
39119         * tests/test-lchown.h (test_lchown): Likewise.
39120         * tests/test-lchown.c (main): Likewise.
39121
39122         chown: detect Solaris and FreeBSD bug
39123         * lib/chown.c (rpl_chown): Work around bug.
39124         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39125         (gl_PREREQ_CHOWN): Delete.
39126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39127         * modules/unistd (Makefile.am): Populate it.
39128         * lib/unistd.in.h (chown): Update declaration.
39129         * lib/lchown.c (chown): Update client.
39130         * modules/lchown (Depends-on): Add lstat.
39131         * doc/posix-functions/chown.texi (chown): Document the bug.
39132         * doc/posix-functions/getgroups.texi (getgroups): Document
39133         getgroups pitfall.
39134         * modules/chown-tests: New file.
39135         * tests/test-chown.h (test_chown): Likewise.
39136         * tests/test-chown.c (main): Likewise.
39137
39138 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39139
39140         gnulib-tool: correctly detect absence of m4 directories
39141         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39142
39143 2009-11-14  Jim Meyering  <meyering@redhat.com>
39144
39145         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39146         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39147
39148 2009-11-14  John W. Eaton  <jwe@gnu.org>
39149
39150         strftime.h: wrap funtion declaration in extern "C" block
39151         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39152
39153 2009-11-13  Eric Blake  <ebb9@byu.net>
39154
39155         getgroups: avoid compiler warning
39156         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39157
39158         getgroups: work around FreeBSD bug
39159         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39161         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39162         * tests/test-getgroups.c (main): Fix buffer overrun.
39163
39164         getgroups: avoid compilation failure
39165         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39166         * modules/getgroups (Depends-on): Add stdint.
39167
39168 2009-11-13  Jim Meyering  <meyering@redhat.com>
39169
39170         test-getgroups: avoid compilation failure
39171         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39172
39173 2009-11-13  Eric Blake  <ebb9@byu.net>
39174
39175         mgetgroups: new module, taken from coreutils
39176         * modules/mgetgroups: New file.
39177         * lib/mgetgroups.h: Likewise.
39178         * lib/mgetgroups.c (mgetgroups): Likewise.
39179         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39180         * MODULES.html.sh (Users and groups): Mention it.
39181
39182         getgroups: don't expose GETGROUPS_T to user
39183         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39184         an element at a time if GETGROUPS_T is wrong size.
39185         * lib/getugroups.h (getugroups): Change signature.
39186         * lib/unistd.in.h (getgroups): Likewise.
39187         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39188         signature needs fixing.
39189         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39190         AC_TYPE_GETGROUPS.
39191         * modules/group-member (Depends-on): Add getgroups.
39192         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39193         (group_member): Rely on getgroups replacement.
39194         * lib/getugroups.c (getugroups): Use gid_t.
39195         * tests/test-getgroups.c (main): Likewise.
39196         * NEWS: Mention the signature change.
39197         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39198         problem with signature.
39199         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39200         GETGROUPS_T is still useful for setgroups.
39201
39202         getgroups, getugroups: provide stubs for mingw
39203         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39204         * lib/getugroups.c (getugroups): Likewise.
39205         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39206         function.  Modernize replacement scheme.
39207         (gl_PREREQ_GETGROUPS): Delete.
39208         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39209         * modules/getgroups (configure.ac): Declare witness.
39210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39211         * modules/unistd (Depends-on): Substitute witness.
39212         * lib/unistd.in.h (getgroups): Declare replacement.
39213
39214         getgroups: avoid calling exit
39215         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39216         drop xalloc.
39217         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39218         dependencies.
39219         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39220         exiting, in the rare case of malloc failure.
39221
39222         getgroups: fix logic error
39223         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39224         has more than 20 groups.
39225         * modules/getgroups-tests: New test.
39226         * tests/test-getgroups.c: New file.
39227
39228 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39229
39230         * tests/test-base64.c: Improve.
39231
39232 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39233
39234         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39235         Blake <ebb9@byu.net>.
39236
39237 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39238
39239         * tests/test-xvasprintf.c: Add %s%s related checks.
39240
39241 2009-11-12  Eric Blake  <ebb9@byu.net>
39242
39243         version-etc: match standards.texi style
39244         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39245         and use <> only for URLs.
39246
39247 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39248
39249         fts: do not fail on a submount during traversal
39250         * lib/fts.c (fts_build): Read the stat info again after opening
39251         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39252         Original report at http://bugzilla.redhat.com/501848.
39253
39254 2009-11-12  Jim Meyering  <meyering@redhat.com>
39255
39256         bootstrap: sync from coreutils
39257         * build-aux/bootstrap (bootstrap_epilogue): New function.
39258         Use git_modules_config in one more place.  This make bootstrap's
39259         --gnulib-srcdir option more useful for testing.
39260
39261         bootstrap: generalize autoheader check
39262         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39263         AC_CONFIG_HEADERS.
39264
39265 2009-11-11  Eric Blake  <ebb9@byu.net>
39266
39267         mkfifoat: use new modules for Solaris and BSD bugs
39268         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39269         * lib/mkfifoat.c (mknodat): Split...
39270         * lib/mknodat.c (mknodat): ...into new file.
39271         * modules/mkfifoat (Files): Ship new file.
39272         (Depends-on): Add mkfifo, mknod.
39273         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39274         (Depends-on): Add symlink.
39275         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39276         redundant with test_mkfifo.h.
39277         (do_mkfifoat, do_mknodat): New helpers.
39278
39279         mknod: new module
39280         * modules/mknod: New file.
39281         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39282         * lib/mknod.c (mknod): Likewise.
39283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39284         defaults.
39285         * modules/sys_stat (Makefile.am): Substitute them.
39286         * lib/sys_stat.in.h (mknod): Declare replacement.
39287         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39288         Document it.
39289         * doc/posix-functions/mknod.texi (mknod): Likewise.
39290         * modules/mknod-tests: New test.
39291         * tests/test-mknod.c: Likewise.
39292
39293         mkfifo: new module
39294         * modules/mkfifo: New file.
39295         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39296         * lib/mkfifo.c (mkfifo): Likewise.
39297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39298         defaults.
39299         * modules/sys_stat (Makefile.am): Substitute them.
39300         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39301         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39302         Document it.
39303         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39304         * modules/mkfifo-tests: New test.
39305         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39306         from test-mkfifoat.c.
39307         * tests/test-mkfifo.c: New file.
39308
39309         readlink: detect FreeBSD bug
39310         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39311         slash on symlink.
39312         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39313         * tests/test-readlink.h (test_readlink): Enhance test.
39314
39315         symlink: detect FreeBSD bug
39316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39317         slash on symlink.
39318         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39319         * tests/test-symlink.h (test_symlink): Enhance test.
39320
39321 2009-11-10  Eric Blake  <ebb9@byu.net>
39322
39323         link: detect FreeBSD bug
39324         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39325         symlink.
39326         * doc/posix-functions/link.texi (link): Document the bug.
39327         * tests/test-link.h (test_link): Enhance test.
39328         * tests/test-linkat.c (main): Update caller.
39329
39330         unlink, remove: detect FreeBSD bug
39331         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39332         slash on symlink.
39333         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39334         * doc/posix-functions/remove.texi (remove): Likewise.
39335         * tests/test-unlink.h (test_unlink): Enhance test.
39336         * tests/test-remove.c (main): Likewise.
39337
39338 2009-11-09  Eric Blake  <ebb9@byu.net>
39339
39340         rename: detect FreeBSD bug
39341         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39342         slash on symlink.
39343         * modules/renameat-tests (Depends-on): Add filenamecat.
39344         * tests/test-rename.h (test_rename): Allow one more errno.
39345         * tests/test-renameat.c (main): Likewise.
39346         * doc/posix-functions/rename.texi (rename): Document the bug.
39347
39348         open: detect FreeBSD bug
39349         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39350         symlink.
39351         * doc/posix-functions/open.texi (open): Document the bug.
39352         * doc/posix-functions/utimes.texi (utimes): Likewise.
39353         * tests/test-open.h (test_open): Add parameters, and test symlink
39354         handling.
39355         * tests/test-open.c (main): Adjust caller.
39356         * tests/test-fcntl-safer.c (main): Likewise.
39357         * modules/open-tests (Depends-on): Add stdbool, symlink.
39358         * modules/fcntl-safer-tests (Depends-on): Likewise.
39359         * tests/test-openat.c (main): Add test-open tests.
39360
39361         stat: detect FreeBSD bug
39362         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39363         symlink.
39364         * doc/posix-functions/stat.texi (stat): Document the bug.
39365         * tests/test-stat.h (test_stat_func): Add argument.
39366         * tests/test-stat.c (main): Adjust caller.
39367         * tests/test-fstatat.c (main): Likewise.
39368         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39369         Reported by Jim Meyering.
39370
39371 2009-11-09  James Youngman  <jay@gnu.org>
39372
39373         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39374         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39375
39376 2009-11-08  Jim Meyering  <meyering@redhat.com>
39377
39378         utimens: remove invalid futimesat call
39379         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39380         It used the file descriptor of the target file as the DIR_FD
39381         parameter and NULL as the file name.  That caused failure with
39382         errno == EFAULT on FreeBSD-8.0-rc2
39383
39384 2009-11-07  Eric Blake  <ebb9@byu.net>
39385
39386         fflush, freadseek: use fseeko, not fseek
39387         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39388         (clear_ungetc_buffer): Avoid potential problems on large files.
39389         * lib/freadseek.c (freadseek): Likewise.
39390         * modules/freadseek (Depends-on): Add fseeko.
39391         * modules/fseek (configure.ac): Set a witness.
39392         * tests/test-fflush.c (main): Use fseeko.
39393         * tests/test-fpurge.c (fseek): Disable link warning.
39394         * tests/test-freadable.c (fseek): Likewise.
39395         * tests/test-freading.c (fseek): Likewise.
39396         * tests/test-fseeko.c (fseek): Likewise.
39397         * tests/test-ftell.c (fseek): Likewise.
39398         * tests/test-ftello.c (fseek): Likewise.
39399         * tests/test-fwritable.c (fseek): Likewise.
39400         * tests/test-fwriting.c (fseek): Likewise.
39401
39402 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39403
39404         * modules/memchr (Depends-on): Drop getpagesize dependency.
39405
39406 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39407
39408         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39409         Reported by Ludovic Courtès.
39410         * build-aux/pmccabe2html: Improve example usage.
39411         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39412
39413 2009-11-06  Jim Meyering  <meyering@redhat.com>
39414
39415         do-release-commit-and-tag: New module.
39416         Automate the release-commit and tag process.
39417         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39418         * modules/do-release-commit-and-tag: New file.
39419         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39420
39421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39422
39423         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39424         because test-select.c uses inet_pton.
39425
39426 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39427
39428         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39429         GETADDRINFO_LIB.  Bump serial number.
39430         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39431         Suggested by Eric Blake <ebb9@byu.net>.
39432
39433 2009-11-05  Eric Blake  <ebb9@byu.net>
39434
39435         strtod: detect darwin bug
39436         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39437         Reported by Leo Davis.
39438
39439         freopen-safer: new module
39440         * modules/freopen-safer: New module.
39441         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39442         * lib/freopen-safer.c (freopen_safer): New file.
39443         * lib/stdio-safer.h (freopen_safer): New declaration.
39444         * lib/stdio--.h (freopen): New override.
39445         * MODULES.html.sh (File stream based Input/Output): Mention it.
39446         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39447         freopen-safer module.
39448         * doc/posix-functions/stderr.texi (stderr): Likewise.
39449         * doc/posix-functions/stdin.texi (stdin): Likewise.
39450         * doc/posix-functions/stdout.texi (stdout): Likewise.
39451         * modules/freopen-safer-tests: New test.
39452         * tests/test-reopen-safer.c: New file.
39453
39454 2009-11-05  Jim Meyering  <meyering@redhat.com>
39455
39456         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39457         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39458
39459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39460
39461         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39462
39463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39464
39465         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39466
39467 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39468
39469         Fix link error.
39470         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39471         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39472
39473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39474
39475         * tests/test-func.c: Also test value of __func__.
39476
39477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39478
39479         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39480         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39481
39482 2009-11-05  Bruno Haible  <bruno@clisp.org>
39483
39484         Fix link error.
39485         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39486         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39487         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39488
39489 2009-11-05  Bruno Haible  <bruno@clisp.org>
39490
39491         Tests for module 'inet_pton'.
39492         * modules/inet_pton-tests: New file.
39493         * tests/test-inet_pton.c: New file.
39494
39495 2009-11-05  Bruno Haible  <bruno@clisp.org>
39496
39497         Tests for module 'inet_ntop'.
39498         * modules/inet_ntop-tests: New file.
39499         * tests/test-inet_ntop.c: New file.
39500
39501 2009-11-04  Eric Blake  <ebb9@byu.net>
39502
39503         stdlib-safer: wrap all mkstemp variants
39504         * modules/mkostemp (configure.ac): Set witness.
39505         * modules/mkostemps (configure.ac): Likewise.
39506         * modules/mkstemps (configure.ac): Likewise.
39507         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39508         (mkstemps_safer): Wrap more functions.
39509         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39510         wrapping.
39511         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39512         (mkstemps_safer): Implement the wrappers.
39513
39514         mkstemps, mkostemps: new modules
39515         * modules/mkostemps: New module.
39516         * modules/mkstemps: Likewise.
39517         * lib/mkostemps.c (mkostemps): New file.
39518         * lib/mkstemps.c (mkstemps): Likewise.
39519         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39520         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39522         * modules/stdlib (Makefile.am): Substitute them.
39523         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39524         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39525         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39526         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39527         * MODULES.html.sh (File system functions): Mention them.
39528
39529         tempname: resync from glibc
39530         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39531         same values for __GT_FILE as glibc.  Abort even when assertions
39532         are disabled.
39533         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39534         match its value otherwise.  Allow idempotent inclusion.
39535         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39536         * lib/mkostemp.c (mkostemp): Likewise.
39537         * lib/mkstemp.c (mkstemp): Likewise.
39538         * lib/tmpfile.c (tmpfile): Likewise.
39539         * NEWS: Document this.
39540
39541         utimens: fix use of futimens on older Linux
39542         * lib/utimens.c (fdutimens): Use updated, rather than original,
39543         timespec to avoid bug in older Linux kernel.
39544         Reported by Simon Josefsson.
39545
39546 2009-11-04  Bruno Haible  <bruno@clisp.org>
39547
39548         Make num_processors more flexible and consistent.
39549         * lib/nproc.h (enum nproc_query): New type.
39550         (num_processors): Add a 'query' argument.
39551         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39552         (num_processors): Add a 'query' argument. Test the value of the
39553         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39554         mingw, count the number of CPUs available for the current process.
39555         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39556         Check for sched_getaffinity and sched_getaffinity_np.
39557         * modules/nproc (Depends-on): Add c-ctype, extensions.
39558         * NEWS: Mention the change.
39559
39560 2009-11-03  Bruno Haible  <bruno@clisp.org>
39561
39562         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39563
39564 2009-11-03  Jim Meyering  <meyering@redhat.com>
39565
39566         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39567         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39568         if it is defined.
39569
39570 2009-11-02  Eric Blake  <ebb9@byu.net>
39571
39572         mktime, timegm: share common declaration
39573         * lib/mktime-internal.h: New file.
39574         * lib/mktime.c: Use it rather than open-coding a declaration.
39575         * lib/timegm.c: Likewise.
39576         * modules/mktime (Files): Ship it.
39577         * modules/timegm (Files): Likewise.
39578         Suggested by Bruno Haible.
39579
39580         test-update-copyright: update test to match script changes
39581         * tests/test-update-copyright.sh: Avoid hard-coding perl
39582         location.  Don't update *.bak created by earlier runs.
39583
39584 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39585             Simon Josefsson  <simon@josefsson.org>
39586             Bruno Haible  <bruno@clisp.org>
39587
39588         Fix link error on Solaris 8.
39589         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39590         also in libnsl. Define also INET_PTON_LIB.
39591         * modules/inet_pton (Link): New section.
39592
39593 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39594             Bruno Haible  <bruno@clisp.org>
39595
39596         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39597         * modules/inet_ntop (Link): New section.
39598         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39599
39600 2009-11-02  Eric Blake  <ebb9@byu.net>
39601
39602         maint: avoid compiler warnings in m4 macros
39603         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39605
39606 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39607
39608         * m4/pmccabe2html.m4: Remove file.
39609         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39610         function.  Change maintainer.
39611         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39612         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39613         Courtès).
39614
39615 2009-10-31  Eric Blake  <ebb9@byu.net>
39616
39617         fseeko: fix m4 regression
39618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39619         regression from 2009-10-27.
39620         Reported by Ralf Wildenhues.
39621
39622 2009-10-31  Jim Meyering  <meyering@redhat.com>
39623
39624         inttostr: aesthetics and improved (compile-time) safety
39625         Define inttype_is_signed rather than inttype_is_unsigned,
39626         since the sole use is via "#if inttype_is_signed".
39627         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39628         inttype_is_unsigned.
39629         * lib/offtostr.c (inttype_is_signed): Likewise.
39630         * lib/uinttostr.c (inttype_is_signed): Likewise.
39631         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39632         * lib/inttostr.c (inttostr): Use verify to cross-check the
39633         inttype_is_signed value and the signedness of the actual type.
39634         * modules/inttostr (Depends-on): Add verify.
39635
39636 2009-10-30  Eric Blake  <ebb9@byu.net>
39637
39638         build: avoid compiler warnings
39639         * lib/fchmodat.c (lchmod): Mark unused variables.
39640         * lib/getopt.c (_getopt_initialize): Likewise.
39641         * lib/mktime.c (__mktime_internal): Provide prototype.
39642         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39643         older gcc that do not understand #pragma GCC diagnostic.
39644         * lib/uinttostr.c (inttype_is_unsigned): Define.
39645         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39646
39647 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39648
39649         stat: fix compilation on AIX
39650         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39651         only see struct stat64.
39652
39653 2009-10-30  Eric Blake  <ebb9@byu.net>
39654
39655         exclude: make more robust
39656         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39657         rather than masking a coding bug.
39658         Suggested by Bruno Haible.
39659
39660 2009-10-30  Jim Meyering  <meyering@redhat.com>
39661
39662         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39663         Rather than putting #!/usr/bin/perl on the first line,
39664         start with a variant of what's recommended by "man perlrun" that
39665         invokes the first "perl" program from your shell's search path.
39666         * build-aux/gitlog-to-changelog: Replace #!... as above.
39667         Add a "Local Variables" perl mode setting.
39668         Prompted by a patch from Ludovic Courtès.
39669         Improved by Eric Blake.
39670         * build-aux/useless-if-before-free: Likewise.
39671         * build-aux/announce-gen: Likewise.
39672         * build-aux/update-copyright: Likewise.
39673
39674 2009-10-29  Eric Blake  <ebb9@byu.net>
39675
39676         filenamecat-lgpl: adjust clients
39677         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39678         filenamecat.
39679         * modules/renameat (Depends-on): Likewise.
39680
39681         filenamecat: split into filenamecat-lgpl
39682         * modules/filenamecat-lgpl: New module.
39683         * modules/filenamecat (Files): Move library-safe files into
39684         filenamecat-lgpl.
39685         (Depends-on): Add filenamecat-lgpl.
39686         (configure.ac): Declare witness.
39687         * lib/filenamecat.h (file_name_concat): Only declare when using
39688         GPL module.
39689         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39690         Move...
39691         * lib/filenamecat-lgpl.c: ...into new file.
39692         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39693         (gl_FILE_NAME_CONCAT): Use it.
39694         * MODULES.html.sh (File system functions): Mention new module.
39695
39696         argp: avoid memory leak
39697         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39698         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39699         base_name, since the latter malloc()s and can call exit().
39700         Leak introduced 2006-07-03.
39701
39702         dirname-lgpl: adjust clients that don't need full dirname
39703         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39704         * modules/filenamecat (Depends-on): Likewise.
39705         * modules/linkat (Depends-on): Likewise.
39706         * modules/mkancesdirs (Depends-on): Likewise.
39707         * modules/mkdir (Depends-on): Likewise.
39708         * modules/openat (Depends-on): Likewise.
39709         * modules/savewd (Depends-on): Likewise.
39710         * modules/rename (Depends-on): Likewise.
39711         (License): Relax license.
39712         * modules/mkdir-tests (Depends-on): Drop progname.
39713         (Makefile.am): Delete unneeded LDADD.
39714         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39715
39716         dirname: split into dirname-lgpl
39717         * modules/dirname-lgpl: New module.
39718         * modules/dirname (Files): Move library-safe files into
39719         dirname-lgpl.
39720         (Depends-on): Add dirname-lgpl.
39721         (configure.ac): Declare witness.
39722         * modules/double-slash-root (License): Relax license.
39723         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39724         module.
39725         * lib/dirname.c (dir_len, mdir_name): Move...
39726         * lib/dirname-lgpl.c: ...into new file.
39727         * lib/basename.c (last_component, base_len): Move...
39728         * lib/basename-lgpl.c: ...into new file.
39729         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39730         (gl_DIRNAME): Use it.
39731         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39732         Mention new module.
39733         * modules/dirname-tests (Depends-on): Add progname.
39734         * tests/test-dirname.c (program_name): Delete.
39735
39736         mkdir: make safe for libraries
39737         * modules/mkdir (Depends-on): Drop xalloc.
39738         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39739         exit.
39740
39741         tests: avoid some compiler warnings
39742         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39743         literals.
39744         * tests/test-memchr.c (main): Avoid type mismatch.
39745         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39746         * tests/test-base64.c (main): Likewise.
39747         * tests/test-getdelim.c (main): Likewise.
39748         * tests/test-gethostname.c (main): Likewise.
39749         * tests/test-getline.c (main): Likewise.
39750         * tests/test-netinet_in.c (main): Likewise.
39751         * tests/test-select.c (open_server_socket, main): Likewise.
39752         * tests/test-select-stdin.c (main): Likewise.
39753         * tests/test-sockets.c (main): Likewise.
39754         * tests/test-strsignal.c (main): Likewise.
39755         * tests/test-sys_select.c (main): Likewise.
39756         * tests/test-sys_socket.c (main): Likewise.
39757         * tests/test-u64.c (main): Likewise.
39758         * tests/test-xfprintf-posix.c (main): Likewise.
39759         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39760
39761         sockets: avoid compiler warning
39762         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39763
39764         maint: detect usage(1) and other suspicious exits
39765         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39766
39767 2009-10-29  Jim Meyering  <meyering@redhat.com>
39768
39769         timespec: long-to-int truncation could make timespec_cmp malfunction
39770         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39771         a multiple of 2^32 nanoseconds as no difference.
39772
39773 2009-10-28  Jim Meyering  <meyering@redhat.com>
39774
39775         fprintftime: wrap macro code argument in "do {...} while(0)"
39776         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39777         cpy macro must be a statement that can be followed by a semicolon.
39778         Now that the else clause contains a comment and is hence longer
39779         than one line, I require curly braces.  That in turn requires
39780         that we wrap this code block in the standard do...while(0).
39781
39782         fprintftime: remove stray semicolon from previous change
39783         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39784
39785         fprintftime: avoid a warning about ignored fwrite return value
39786         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39787         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39788         that is unsafe.
39789         * modules/fprintftime (Depends-on): Add ignore-value.
39790
39791         exclude: avoid an unwarranted warning
39792         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39793
39794 2009-10-27  Eric Blake  <ebb9@byu.net>
39795
39796         fseek: avoid compilation failure when fflush is replaced
39797         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39798         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39799         module is in use.
39800         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39801         module is not in use; since REPLACE_FSEEK worked otherwise.
39802         (GNULIB_FTELLO): Likewise for ftell.
39803         Reported by Ian Beckwith and others.
39804
39805 2009-10-27  Bruno Haible  <bruno@clisp.org>
39806
39807         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39808         Reported by Jim Meyering.
39809
39810 2009-10-27  Jim Meyering  <jim@meyering.net>
39811             Bruno Haible  <bruno@clisp.org>
39812
39813         Avoid warning despite dropping the return value of fwrite.
39814         * lib/unicodeio.c: Include ignore-value.h.
39815         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39816         * modules/unicodeio (Depends-on): Add ignore-value.
39817
39818 2009-10-26  Eric Blake  <ebb9@byu.net>
39819
39820         areadlinkat: fix fallback path
39821         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39822         pointer and zero.
39823
39824 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39825
39826         Use a better IO block size for modern systems
39827         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39828         * lib/md2.c: Likewise.
39829         * lib/md4.c: Likewise.
39830         * lib/md5.c: Likewise.
39831         * lib/sha1.c: Likewise.
39832         * lib/sha256.c: Likewise.
39833         * lib/sha512.c: Likewise.
39834
39835 2009-10-22  Eric Blake  <ebb9@byu.net>
39836
39837         tests: avoid several compiler warnings
39838         * tests/test-getcwd.c (main): Avoid buffer underflow.
39839         * tests/test-getdate.c (main): String literals are not safe with
39840         putenv, so use setenv.  Declare unused argument.
39841         * modules/getdate-tests (Depends-on): Add setenv.
39842         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39843         problems with string literals in char *.
39844         * tests/test-hash.c (main): Avoid shadowing declaration.
39845         (insert_new): Treat string literals as char const *.
39846         * tests/test-getopt.h (test_getopt): Likewise.
39847         (getopt_loop): Alter types to minimize casting elsewhere.
39848         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39849         (test_getopt_long_posix): Likewise.
39850         (do_getopt_long): Add wrapper to minimize casting.
39851         * tests/test-atexit.c (clear_temp_file): Use void.
39852         * tests/test-areadlink-with-size.c (main): Declare unused
39853         arguments.
39854         * tests/test-areadlink.c (main): Likewise.
39855         * tests/test-areadlinkat-with-size.c (main): Likewise.
39856         * tests/test-areadlinkat.c (main): Likewise.
39857         * tests/test-canonicalize-lgpl.c (main): Likewise.
39858         * tests/test-canonicalize.c (main): Likewise.
39859         * tests/test-dirent-safer.c (main): Likewise.
39860         * tests/test-dirname.c (main): Likewise.
39861         * tests/test-dup2.c (main): Likewise.
39862         * tests/test-fchdir.c (main): Likewise.
39863         * tests/test-fcntl-h.c (main): Likewise.
39864         * tests/test-fcntl-safer.c (main): Likewise.
39865         * tests/test-fdopendir.c (main): Likewise.
39866         * tests/test-fdutimensat.c (main): Likewise.
39867         * tests/test-fflush.c (main): Likewise.
39868         * tests/test-filenamecat.c (main): Likewise.
39869         * tests/test-filevercmp.c (main): Likewise.
39870         * tests/test-fopen-safer.c (main): Likewise.
39871         * tests/test-fopen.c (main): Likewise.
39872         * tests/test-fpending.c (main): Likewise.
39873         * tests/test-fpurge.c (main): Likewise.
39874         * tests/test-freading.c (main): Likewise.
39875         * tests/test-fstatat.c (main): Likewise.
39876         * tests/test-fsync.c (main): Likewise.
39877         * tests/test-futimens.c (main): Likewise.
39878         * tests/test-getndelim2.c (main): Likewise.
39879         * tests/test-gettimeofday.c (main): Likewise.
39880         * tests/test-getopt.c (main): Likewise.
39881         * tests/test-i-ring.c (main): Likewise.
39882         * tests/test-inttypes.c (main): Likewise.
39883         * tests/test-link.c (main): Likewise.
39884         * tests/test-lstat.c (main): Likewise.
39885         * tests/test-math.c (main): Likewise.
39886         * tests/test-md5.c (main): Likewise.
39887         * tests/test-memchr2.c (main): Likewise.
39888         * tests/test-memrchr.c (main): Likewise.
39889         * tests/test-mkdir.c (main): Likewise.
39890         * tests/test-mkdirat.c (main): Likewise.
39891         * tests/test-mkfifoat.c (main): Likewise.
39892         * tests/test-open.c (main): Likewise.
39893         * tests/test-openat-safer.c (main): Likewise.
39894         * tests/test-openat.c (main): Likewise.
39895         * tests/test-quotearg.c (main): Likewise.
39896         * tests/test-rawmemchr.c (main): Likewise.
39897         * tests/test-readlink.c (main): Likewise.
39898         * tests/test-remove.c (main): Likewise.
39899         * tests/test-rename.c (main): Likewise.
39900         * tests/test-renameat.c (main): Likewise.
39901         * tests/test-rmdir.c (main): Likewise.
39902         * tests/test-sha1.c (main): Likewise.
39903         * tests/test-signal.c (main): Likewise.
39904         * tests/test-sigaction.c (main): Likewise.
39905         * tests/test-stat.c (main): Likewise.
39906         * tests/test-stat-time.c (main): Likewise.
39907         * tests/test-stddef.c (main): Likewise.
39908         * tests/test-stdint.c (main): Likewise.
39909         * tests/test-stdio.c (main): Likewise.
39910         * tests/test-stdlib.c (main): Likewise.
39911         * tests/test-strchrnul.c (main): Likewise.
39912         * tests/test-strerror.c (main): Likewise.
39913         * tests/test-string.c (main): Likewise.
39914         * tests/test-strtod.c (main): Likewise.
39915         * tests/test-strverscmp.c (main): Likewise.
39916         * tests/test-symlink.c (main): Likewise.
39917         * tests/test-symlinkat.c (main): Likewise.
39918         * tests/test-sys_stat.c (main): Likewise.
39919         * tests/test-sys_time.c (main): Likewise.
39920         * tests/test-time.c (main): Likewise.
39921         * tests/test-unistd.c (main): Likewise.
39922         * tests/test-unlink.c (main): Likewise.
39923         * tests/test-unlinkat.c (main): Likewise.
39924         * tests/test-utimens.c (main): Likewise.
39925         * tests/test-utimensat.c (main): Likewise.
39926         * tests/test-version-etc.c (main): Likewise.
39927         * tests/test-wchar.c (main): Likewise.
39928         * tests/test-wctype.c (main): Likewise.
39929         * tests/test-xprintf-posix.c (main): Likewise.
39930         * tests/test-posixtm.c (main): Likewise.
39931         (STREQ): Delete unused macro.
39932         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39933         shadowed variables.
39934         * tests/test-memchr.c (main): Likewise.
39935
39936 2009-10-21  Eric Blake  <ebb9@byu.net>
39937
39938         areadlinkat: avoid failure on older glibc
39939         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39940         rather than mis-comparing 0 against FUNC_RESULT of char*.
39941
39942 2009-10-21  Bruno Haible  <bruno@clisp.org>
39943
39944         * modules/stpncpy (License): Relicense under LGPLv2+.
39945         Reported by David Lutterkort <lutter@redhat.com>.
39946
39947 2009-10-20  Eric Blake  <ebb9@byu.net>
39948
39949         utimensat: work around Solaris 9 bug
39950         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39951         has trailing slash bugs.
39952         * tests/test-lutimens.h (test_lutimens): Enhance test.
39953         * tests/test-utimens.h (test_utimens): Likewise.
39954         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39955         * doc/posix-functions/utimes.texi (utimes): Likewise.
39956         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39957         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39958         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39959         * doc/posix-functions/futimens.texi (futimens): Likewise.
39960
39961         fdutimensat: new module
39962         * modules/fdutimensat: New file.
39963         * lib/fdutimensat.c (fdutimensat): Likewise.
39964         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39965         * MODULES.html.sh (File system functions): Mention module.
39966         * modules/fdutimensat-tests: New test.
39967         * tests/test-fdutimensat.c: Likewise.
39968
39969         doc: regenerate INSTALL
39970         * doc/INSTALL: Reflect recent autoconf update.
39971         * doc/INSTALL.ISO: Likewise.
39972         * doc/INSTALL.UTF-8: Likewise.
39973
39974 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39975
39976         acl: warn if ACL support is not detected
39977         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39978
39979 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39980
39981         * lib/nproc.h: Add extern "C" block for C++.
39982
39983 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39984             Bruno Haible  <bruno@clisp.org>
39985
39986         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39987         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39988         * doc/posix-functions/isalpha.texi: Likewise.
39989         * doc/posix-functions/isblank.texi: Likewise.
39990         * doc/posix-functions/iscntrl.texi: Likewise.
39991         * doc/posix-functions/isdigit.texi: Likewise.
39992         * doc/posix-functions/isgraph.texi: Likewise.
39993         * doc/posix-functions/islower.texi: Likewise.
39994         * doc/posix-functions/isprint.texi: Likewise.
39995         * doc/posix-functions/ispunct.texi: Likewise.
39996         * doc/posix-functions/isspace.texi: Likewise.
39997         * doc/posix-functions/isupper.texi: Likewise.
39998         * doc/posix-functions/isxdigit.texi: Likewise.
39999
40000 2009-10-18  Bruno Haible  <bruno@clisp.org>
40001
40002         Tests for module 'isblank'.
40003         * modules/isblank-tests: New file.
40004         * tests/test-isblank.c: New file.
40005
40006         New module 'isblank'.
40007         * lib/isblank.c: New file.
40008         * m4/isblank.m4: New file.
40009         * modules/isblank: New file.
40010         * doc/posix-functions/isblank.texi: Mention the new module.
40011
40012 2009-10-18  Bruno Haible  <bruno@clisp.org>
40013
40014         New module 'ctype'.
40015         * lib/ctype.in.h: New file.
40016         * m4/ctype.m4: New file.
40017         * modules/ctype: New file.
40018         * doc/posix-headers/ctype.texi: Mention the new module.
40019
40020 2009-10-18  Jim Meyering  <meyering@redhat.com>
40021
40022         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40023         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40024         right after its initialization, rather than farther down.
40025         Keeping these in close proximity makes it easier to ensure
40026         that each such variable is initialized.  E.g.,
40027
40028             LIB_CLOCK_GETTIME=
40029             AC_SUBST([LIB_CLOCK_GETTIME])
40030
40031         This change also increments these serial numbers.
40032         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40033         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40035
40036 2009-10-18  Bruno Haible  <bruno@clisp.org>
40037
40038         Don't let environment variables perturb build.
40039         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40040         (gl_PREREQ_GETHRXTIME): ... not here.
40041
40042 2009-10-18  Bruno Haible  <bruno@clisp.org>
40043
40044         Avoid symlink attack in localcharset module.
40045         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40046         (O_NOFOLLOW): Define fallback.
40047         (get_charset_aliases): Don't open the file if it is a symbolic link.
40048         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40049         gl_FCNTL_H.
40050         (gl_FCNTL_H): Require it.
40051         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40052         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40053         Reported by Fergal Glynn <fglynn@veracode.com>.
40054
40055 2009-10-18  Bruno Haible  <bruno@clisp.org>
40056
40057         Implement nproc for mingw.
40058         * lib/nproc.c: Include <windows.h>
40059         (num_processors): On native Windows platforms, try GetSystemInfo.
40060
40061 2009-10-18  Bruno Haible  <bruno@clisp.org>
40062
40063         Implement nproc for IRIX.
40064         * lib/nproc.c: Include <sys/sysmp.h>.
40065         (num_processors): On IRIX systems, try sysmp.
40066         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40067
40068 2009-10-18  Bruno Haible  <bruno@clisp.org>
40069
40070         Implement nproc for HP-UX.
40071         * lib/nproc.c: Include <sys/pstat.h>
40072         (num_processors): On HP-UX systems, try pstat_getdynamic.
40073         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40074         pstat_getdynamic.
40075
40076 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40077             Bruno Haible  <bruno@clisp.org>
40078
40079         Implement nproc for NetBSD, OpenBSD.
40080         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40081         (ARRAY_SIZE): New macro.
40082         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40083         * m4/nproc.m4: New file.
40084         * modules/nproc (Files): Add m4/nproc.m4.
40085         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40086         (Makefile.am): Instead, augment lib_SOURCES.
40087
40088 2009-10-18  Bruno Haible  <bruno@clisp.org>
40089
40090         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40091         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40092         sys/param.h.
40093
40094 2009-10-16  Eric Blake  <ebb9@byu.net>
40095
40096         utimensat: new module
40097         * modules/utimensat: New file.
40098         * lib/utimensat.c (utimensat): Likewise.
40099         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40100         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40101         so we can work around Linux bugs.
40102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40103         * modules/sys_stat (Makefile.am): Substitute them.
40104         * lib/sys_stat.in.h (utimensat): Declare it.
40105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40107         * modules/utimensat-tests: New test.
40108         * tests/test-utimensat.c: Likewise.
40109
40110         utimens: let lutimens work on non-symlinks
40111         * lib/utimens.c (lutimens): Fall back to utimens rather than
40112         failing with ENOSYS, when file is not a symlink.
40113         (utimens): Reduce redirection.
40114         * tests/test-lutimens.h (test_lutimens): Update test to cover
40115         non-symlinks.
40116         * tests/test-utimens.h (test_utimens): Update test to cover
40117         symlinks.
40118         * tests/test-utimens.c (main): Update caller.
40119
40120         utimens: cache whether utimensat syscall works
40121         * lib/utimens.c (utimensat_works_really): New cache variable.
40122         (fdutimens, lutimens): Use it to avoid failing syscall.
40123
40124         test-stat-time, test-utimens: improve portability
40125         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40126         ext4 on alpha, and for cygwin.
40127         * tests/test-utimens-common.h: New file.
40128         (nap): Factor delays into single function.
40129         * tests/test-lutimens.h (test_lutimens): Use new header.
40130         * tests/test-futimens.h (test_futimens): Likewise.
40131         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40132         timestamps to occur from same machine, as was done previously for
40133         test_utimens.
40134         * modules/utimens-tests (Files): Ship new file.
40135         * modules/futimens-tests (Files): Likewise.
40136         Reported in part by Jim Meyering.
40137
40138         sys_stat: sort replacement declarations
40139         * lib/sys_stat.in.h: Sort declarations.
40140         * lib/futimens.c (futimens): Fix typo.
40141
40142 2009-10-15  Jim Meyering  <meyering@redhat.com>
40143
40144         don't let environment settings perturb build
40145         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40146         could cause a configure-time and/or build-time malfunction.
40147         Typically, a configure-time function-in-library test is performed
40148         via code like this:
40149
40150           LIB_VAR=
40151           AC_SUBST([LIB_VAR])
40152           prefix_saved_LIBS=$LIBS
40153             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40154                        [test "$ac_cv_search_FUNC" = "none required" ||
40155                         LIB_VAR=$ac_cv_search_FUNC])
40156           LIBS=$prefix_saved_LIBS
40157
40158         However, in each of the files affected by this change, the LIB_VAR=
40159         initialization was omitted.  Thus, when set in the environment, its
40160         value would propagate into generated Makefiles when FUNC is not found
40161         in LIB_NAME.
40162         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40163         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40165
40166 2009-10-14  Eric Blake  <ebb9@byu.net>
40167
40168         fchdir: avoid infinite recursion in mingw
40169         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40170         recursing.
40171
40172         test-stat-time: port to mingw
40173         * tests/test-stat-time.c (force_unlink): Return a value.
40174         (test_ctime) [W32]: Fix compilation error.
40175         (nap): Don't call usleep with too large an argument.  Use
40176         force_unlink.
40177         * doc/pastposix-functions/usleep.texi (usleep): Document the
40178         portability issue.
40179
40180 2009-10-13  Jim Meyering  <meyering@redhat.com>
40181
40182         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40183         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40184         * modules/pipe-filter-ii: Likewise.
40185         * modules/sys_socket-tests: Likewise.
40186         * modules/tsearch-tests: Likewise.
40187         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40188         (check): Depend on it.
40189
40190 2009-10-12  Eric Blake  <ebb9@byu.net>
40191
40192         utimens-tests: port to NFS file systems
40193         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40194         comparisons to avoid spurious failures from timestamp drift
40195         between NFS machines.
40196
40197 2009-10-12  Eric Blake  <ebb9@byu.net>
40198
40199         stat-time-tests: minor cleanups
40200         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40201         * tests/test-stat-time.c (nap): Separate assignment from call.
40202         Suggested by Paolo Bonzini and Bruno Haible.
40203
40204         sys_stat: guarantee struct timespec
40205         * lib/sys_stat.in.h (includes): Always include <time.h>
40206         * modules/sys_stat (Depends-on): Add time.
40207         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40208         mode_t permission values.
40209         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40210         get at subsecond timestamps.
40211
40212 2009-10-10  Eric Blake  <ebb9@byu.net>
40213
40214         futimens: new module
40215         * modules/futimens: New file.
40216         * lib/futimens.c (futimens): Likewise.
40217         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40218         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40219         we can work around Linux bugs.
40220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40221         * modules/sys_stat (Makefile.am): Substitute them.
40222         * lib/sys_stat.in.h (futimens): Declare it.
40223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40224         * doc/posix-functions/futimens.texi (futimens): Likewise.
40225         * modules/futimens-tests: New test.
40226         * tests/test-futimens.c: Likewise.
40227
40228         utimens: introduce fdutimens
40229         * lib/utimens.h (fdutimens): New prototype.
40230         * lib/utimens.c (gl_futimens): Move guts...
40231         (fdutimens): ...to new interface.
40232         * tests/test-utimens.c (do_fdutimens): Use it.
40233
40234         utimens: add UTIME_NOW and UTIME_OMIT support
40235         * lib/utimens.c (validate_timespec, update_timespec): New helper
40236         functions.
40237         (gl_futimens, lutimens): Use them.
40238         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40239         stdbool, sys_stat.
40240         (Link): Mention resulting library dependency.
40241         * modules/utimecmp (Link): Likewise.
40242         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40243         (Makefile.am): Pick up library dependency.
40244         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40245         definition.
40246         * tests/test-sys_stat.c: Test the definitions.
40247         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40248         * NEWS: Document library dependency.
40249
40250         utimecmp: support symlink timestamps
40251         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40252         hashing when possible.  Use pathconf when available.
40253         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40254         * modules/utimecmp (Depends-on): Add lstat.
40255
40256         utimens: add lutimens interface
40257         * lib/utimens.c (lutimens): New function.
40258         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40259         * lib/utimens.h (lutimens): Declare new interface.
40260         * tests/test-utimens.c (main): Enhance test.
40261         * tests/test-lutimens.h (test_lutimens): New file.
40262         * modules/utimens-tests (Files): Distribute it.
40263         (Depends-on): Add symlink.
40264         (configure.ac): Check for usleep.
40265
40266         utimens: validate futimens usage
40267         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40268         fewer syscalls on failure later on.  Avoid compiler warning on
40269         mingw.
40270         * modules/utimens (Depends-on): Add dup2.
40271
40272         utimens: add test
40273         * modules/utimens-tests: New test.
40274         * tests/test-utimens.h: New file.
40275         * tests/test-futimens.h: Likewise.
40276         * tests/test-utimens.c: Likewise.
40277
40278         doc: mention timestamp portability issues
40279         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40280         instead.
40281         * doc/posix-functions/utime.texi (utime): Likewise.
40282         * doc/posix-functions/utimes.texi (utimes): Likewise.
40283         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40284         instead.
40285         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40286         module.
40287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40288         Mention weakness with symlink timestamps.
40289         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40290         to utimensat/futimens instead.
40291         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40292
40293         test-dup2: enhance test
40294         * tests/test-dup2.c (main): Also check AT_FDCWD.
40295
40296         test-stat-time: avoid more spurious failures
40297         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40298         xfs; and avoid race if the two timestamps cross quantization edge.
40299
40300         relocatable: prefer 'file system' over 'filesystem'
40301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40302         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40303         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40304         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40305         * lib/relocatable.c (compute_curr_prefix): Likewise.
40306
40307 2009-10-10  Jim Meyering  <meyering@redhat.com>
40308
40309         stat-time-tests: check for the usleep function
40310         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40311
40312 2009-10-10  Bruno Haible  <bruno@clisp.org>
40313
40314         * modules/xnanosleep: Put the Link section after the Include section.
40315
40316 2009-10-09  Eric Blake  <ebb9@byu.net>
40317
40318         dup2: work around FreeBSD 6.1 bug
40319         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40320         * doc/posix-functions/dup2.texi (dup2): Document it.
40321         Reported by Nelson H. F. Beebe and Jim Meyering.
40322
40323         test-stat-time: port to buggy NFS clients
40324         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40325         (test_ctime): Also skip test if mtime and ctime are skewed.
40326
40327         maint: prefer 'file system' over 'filesystem'
40328         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40329         * doc/posix-functions/lstat.texi (lstat): Likewise.
40330         * lib/file-has-acl.c (file_has_acl): Likewise.
40331         * lib/fwriteerror.c [TEST]: Likewise.
40332         * tests/test-areadlink.h (test_areadlink): Likewise.
40333         * tests/test-areadlinkat-with-size.c (main): Likewise.
40334         * tests/test-areadlinkat.c (main): Likewise.
40335         * tests/test-canonicalize-lgpl.c (main): Likewise.
40336         * tests/test-canonicalize.c (main): Likewise.
40337         * tests/test-fstatat.c (main): Likewise.
40338         * tests/test-linkat.c (main): Likewise.
40339         * tests/test-lstat.h (test_lstat_func): Likewise.
40340         * tests/test-mkdir.h (test_mkdir): Likewise.
40341         * tests/test-readlink.h (test_readlink): Likewise.
40342         * tests/test-remove.c (main): Likewise.
40343         * tests/test-rename.h (test_rename): Likewise.
40344         * tests/test-renameat.c (main): Likewise.
40345         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40346         * tests/test-symlink.h (test_symlink): Likewise.
40347         * tests/test-symlinkat.c (main): Likewise.
40348         * tests/test-unlink.h (test_unlink_func): Likewise.
40349         * tests/test-unlinkat.c (main): Likewise.
40350
40351         maint: make realtime library usage explicit
40352         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40353         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40354         * modules/settime (Link): Likewise.
40355         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40356
40357         test-stat-time: speed up execution
40358         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40359         warning on mingw.
40360         (nap): New helper function.
40361         (prepare_test): Use it to reduce sleep time.
40362         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40363         execution.
40364         * modules/stat-time-tests (configure.ac): Check for usleep.
40365
40366 2009-10-09  Jim Meyering  <meyering@redhat.com>
40367
40368         selinux-h: always use getfilecon wrappers
40369         * lib/getfilecon.c: New file.
40370         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40371         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40372         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40373         (fgetfilecon): Provide a stub.
40374         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40375         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40376         file unconditionally.
40377         When <selinux/selinux.h> is found, arrange to use wrappers.
40378         * modules/selinux-h (Files): Add getfilecon.c.
40379         (Makefile.am): Substitute include-next-related bits
40380         into the now-always-generated selinux/selinux.h file.
40381         * doc/glibc-functions/lgetfilecon.texi: New file.
40382         * doc/glibc-functions/fgetfilecon.texi: New file.
40383         * doc/glibc-functions/getfilecon.texi: New file.
40384         * doc/glibc-functions/getfilecon-desc.texi: New file.
40385         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40386         which to pull in the new files.
40387         * MODULES.html.sh (Misc): Add selinux-h.
40388
40389 2009-10-08  Jim Meyering  <meyering@redhat.com>
40390
40391         unistd: fix comment typo
40392         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40393
40394 2009-10-08  Eric Blake  <ebb9@byu.net>
40395
40396         areadlink: use SIZE_MAX consistently
40397         * modules/areadlink (Depends-on): Add stdint.
40398         * modules/areadlink-with-size (Depends-on): Likewise.
40399         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40400         gives NULL; drop sys/types, since unistd gives size_t; and add
40401         stdint for SIZE_MAX.
40402         (SIZE_MAX): Rely on headers.
40403         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40404         and add stdint.
40405         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40406         (SIZE_MAX): Likewise.
40407         (INITIAL_BUF_SIZE): Turn into enum.
40408         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40409
40410 2009-10-08  Jim Meyering  <meyering@redhat.com>
40411
40412         areadlinkat: avoid compilation failure
40413         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40414         Fix typo in comment.
40415
40416 2009-10-07  Eric Blake  <ebb9@byu.net>
40417
40418         areadlinkat-with-size: new module
40419         * modules/areadlinkat-with-size: New module.
40420         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40421         * lib/areadlink.h (areadlinkat): Declare it.
40422         * MODULES.html.sh (File system functions): Mention it.
40423         * modules/areadlinkat-with-size-tests: New test.
40424         * tests/test-areadlinkat-with-size.c: New file.
40425
40426         xreadlinkat: new module
40427         * modules/xreadlinkat: New module.
40428         * lib/xreadlinkat.c (xreadlinkat): New file.
40429         * lib/xreadlink.h (xreadlinkat): Declare it.
40430         * MODULES.html.sh (File system functions): Mention it.
40431
40432         areadlinkat: new module
40433         * lib/at-func.c (FUNC_FAIL): New define.
40434         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40435         * modules/areadlinkat: New module.
40436         * lib/linkat.c (areadlinkat): Move...
40437         * lib/areadlinkat.c (areadlinkat): ...to new file.
40438         * lib/areadlink.h (areadlinkat): Declare it.
40439         * modules/linkat (Depends-on): Add areadlinkat.
40440         * MODULES.html.sh (File system functions): Mention it.
40441         * modules/areadlinkat-tests: New test.
40442         * tests/test-areadlinkat.c: New file.
40443
40444         areadlink, areadlink-with-size: add tests
40445         * modules/areadlink-tests: New test.
40446         * modules/areadlink-with-size-tests: Likewise.
40447         * tests/test-areadlink.h: New file.
40448         * tests/test-areadlink.c: Likewise.
40449         * tests/test-areadlink-with-size.c: Likewise.
40450
40451         maint: minor cleanups
40452         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40453         _UNUSED_PARAMETER_ instead.
40454         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40455         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40456         * modules/linkat-tests (Files): Distribute test-link.h.
40457
40458         openat, utimens: whitespace cleanup
40459         * lib/openat.c: Prefer space throughout, rather than mix of 8
40460         spaces vs. tabs.
40461         * lib/at-func.c: Likewise.
40462         * lib/utimens.c: Likewise.
40463
40464         openat: avoid using wrong fd
40465         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40466         working directory chooses same fd.
40467         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40468
40469         mkdir, mkdirat: fix cygwin 1.5.x bug
40470         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40471         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40472         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40473         bug.
40474         (gl_PREREQ_MKDIR): Delete unused macro.
40475         * modules/mkdir (Files): Track file rename.
40476         (configure.ac): Update macro name.
40477         * modules/openat (Depends-on): Add mkdir.
40478         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40479
40480         mkdir, mkdirat: add tests
40481         * modules/mkdir-tests: New test.
40482         * tests/test-mkdir.h: New file.
40483         * tests/test-mkdir.c: Likewise.
40484         * tests/test-mkdirat.c: Likewise.
40485         * modules/openat-tests (Files): Add new files.
40486         (Makefile.am): Run new test.
40487
40488 2009-10-06  Eric Blake  <ebb9@byu.net>
40489
40490         doc: tweak *at function documentation
40491         * doc/posix-functions/faccessat.texi (faccessat): Mention
40492         known issue with replacement.
40493         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40494         * doc/posix-functions/linkat.texi (linkat): Likewise.
40495         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40496         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40497         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40498         * doc/posix-functions/renameat.texi (renameat): Likewise.
40499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40500
40501         openat: fix GNU/Hurd bug in unlinkat
40502         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40503         broken.
40504         * doc/posix-functions/unlink.texi (unlink): Document this.
40505         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40506
40507         fdopendir: fix GNU/Hurd bug
40508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40509         allowing non-directory fds.
40510         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40511         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40512         * modules/dirent (Makefile.am): Substitute it.
40513         * lib/dirent.in.h (fdopendir): Declare replacement.
40514         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40515         * tests/test-fdopendir.c (main): Test something other than
40516         /dev/null, since on Hurd that behaves like a directory.
40517
40518         test-symlink: port to GNU/Hurd
40519         * tests/test-symlink.h (test_symlink): Relax expected errno.
40520
40521         doc: tweak more cygwin information
40522         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40523         now compatible with glibc.
40524         * doc/posix-functions/getopt.texi (getopt): Likewise.
40525
40526         getopt-gnu: add another test
40527         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40528         guarantee behavior relied on by m4.
40529         * tests/test-getopt.c (main): Use it.
40530         * modules/getopt-posix-tests (Depends-on): Add setenv.
40531         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40532
40533         getopt: fix compilation on darwin
40534         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40535         include.
40536         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40537         Reported by Ludovic Courtès.
40538
40539 2009-10-06  Bruno Haible  <bruno@clisp.org>
40540
40541         * modules/size_max (Description): Discourage its use.
40542         Reported by Simon Josefsson.
40543
40544 2009-10-06  Jim Meyering  <meyering@redhat.com>
40545
40546         linkat: avoid compilation failure
40547         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40548
40549 2009-10-05  Eric Blake  <ebb9@byu.net>
40550
40551         linkat: support Linux 2.6.17
40552         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40553         linkat on Linux, but allow cache variable override.
40554         * lib/linkat.c (rpl_linkat): Define override.
40555         * modules/linkat (Depends-on): Add symlinkat.
40556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40557         * modules/unistd (Makefile.am): Substitute it.
40558         * lib/unistd.in.h (linkat): Declare replacement.
40559         Reported by Pádraig Brady.
40560
40561         quotearg: port test to systems with C.UTF-8 locale
40562         * tests/test-quotearg.c (struct result_strings): Add another
40563         member, differentiating between C.ASCII and C.UTF-8 handling.
40564         (compare_strings): Add parameter.
40565         (main): Adjust all callers.
40566
40567         getopt: avoid clash with FreeBSD _getopt_internal
40568         * lib/getopt.in.h (_getopt_internal): Override the name.
40569         * lib/getopt_int.h (includes): Pick up any overrides.
40570         Reported by Reuben Thomas.
40571
40572         hash: allow C89 compilation
40573         * lib/hash.c (check_tuning): Move declaration before statement.
40574         Reported by Reuben Thomas.
40575
40576 2009-10-05  Karl Berry  <karl@gnu.org>
40577
40578         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40579
40580 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40581             Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/uname.c (uname): Use a table-driven algorithm to compute
40584         Windows NT versions.
40585
40586 2009-10-04  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40589         program_invocation_short_name.
40590         * modules/progname (configure.ac): Test for presence of
40591         program_invocation_short_name.
40592         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40593
40594 2009-10-04  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/progname.c (set_program_name): Fix comment.
40597         Reported by Jim Meyering.
40598
40599 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40600             Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/uname.c: Include <string.h>.
40603         (uname): Do only one call to GetVersionEx in the common case.
40604
40605 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40606             Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40609         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40610         (uname): Add support for Windows CE and various non-x86 CPU types.
40611
40612 2009-10-03  Bruno Haible  <bruno@clisp.org>
40613
40614         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40615         invocation to tests/configure.ac.
40616         Reported by Ian Beckwith <ianb@erislabs.net>.
40617
40618 2009-10-02  Eric Blake  <ebb9@byu.net>
40619
40620         fchdir: avoid compiler warning
40621         * lib/fchdir.c (canonicalize_file_name)
40622         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40623
40624         test-open: support mingw errno values
40625         * tests/test-open.h (test_open): Relax test.
40626         * tests/test-fopen.h (test_fopen): Likewise.
40627         * tests/test-openat-safer.c (main): Likewise.
40628
40629         open: fix opening directory on mingw
40630         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40631
40632         test-open: on GNU/Hurd, /dev/null is a directory
40633         * tests/test-fopen.h (main): Rename...
40634         (test_fopen): ...to this.  Use a guaranteed non-directory when
40635         confirming open behavior on trailing slash.
40636         * tests/test-openat-safer.c (main): Likewise.
40637         * tests/test-open.h (main): Likewise....
40638         (test_open): ...to this.
40639         * tests/test-fopen.c (main): Adjust caller.
40640         * tests/test-fopen-safer.c (main): Likewise.
40641         * tests/test-open.c (main): Likewise.
40642         * tests/test-fcntl-safer.c (main): Likewise.
40643         Reported by Samuel Thibault.
40644
40645         rename, fchdir: don't ignore chdir failure
40646         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40647         * lib/rename.c (rpl_rename) [W32]: Likewise.
40648         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40649         an empty destination directory if source cannot be renamed,
40650         although there is still possibility for failure.
40651         * doc/posix-functions/rename.texi (rename): Document the race.
40652         Reported by Jim Meyering.
40653
40654         maint: cleanup whitespace in recent commits
40655         * lib/rename.c (rpl_rename): Remove tabs.
40656         * tests/test-link.h (test_link): Likewise.
40657         * lib/fchdir.c (get_name): Likewise.
40658         Reported by Jim Meyering.
40659
40660 2009-10-02  Ben Pfaff  <blp@gnu.org>
40661
40662         relocatable-prog-wrapper: Add missing dependency on
40663         double-slash-root.
40664         * modules/relocatable-prog-wrapper: Add dependency.
40665         Reported by Ian Beckwith <ianb@erislabs.net>.
40666
40667 2009-10-02  Eric Blake  <ebb9@byu.net>
40668
40669         renameat: fix Solaris bugs
40670         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40671         needed fixing.
40672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40673         * modules/stdio (Makefile.am): Substitute it.
40674         * lib/stdio.in.h (renameat): Declare replacement.
40675         * lib/renameat.c (rpl_renameat): Implement fix.
40676
40677         renameat: new module
40678         * modules/renameat: New file.
40679         * lib/renameat.c (renameat): Likewise.
40680         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40682         * modules/stdio (Makefile.am): Substitute them.
40683         * lib/stdio.in.h (renameat): Declare it.
40684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40685         * doc/posix-functions/renameat.texi (renameat): Likewise.
40686         * modules/renameat-tests: New test.
40687         * tests/test-renameat.c: Likewise.
40688
40689         rename: fix mingw bugs
40690         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40691         directory overwrite bugs.
40692
40693         rename: fix another cygwin 1.5 bug
40694         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40695         checks.
40696         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40697         unnecessary cygwin workarounds.  Also work around bug with moving
40698         full directory onto an empty one.
40699         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40700
40701         rename-dest-slash: merge into rename module
40702         * modules/rename-dest-slash (Status): Mark obsolete.
40703         (Depends-on): Add rename.
40704         (Files): Let rename do it all.
40705         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40706         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40707         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40708         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40709         * lib/rename.c (rpl_rename): Update comments.
40710
40711         rename: fix cygwin 1.5.x bugs
40712         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40713         * lib/rename.c (rpl_rename): Work around them.
40714         * modules/rename (Depends-on): Add same-inode.
40715
40716         rename: fix Solaris 10 bug
40717         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40718         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40719         was the only bug.
40720
40721         rename: fix Solaris 9 bug
40722         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40723         on non-directory.  Avoid calling exit.
40724         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40725         strdup.
40726         * modules/rename-tests (Depends-on): Drop lstat.
40727         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40728         (gl_PREREQ_RENAME): Delete unused macro.
40729
40730         rename-dest-slash: fix NetBSD bug
40731         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40732         links.
40733         * modules/rename-dest-slash (Depends-on): Add same-inode.
40734
40735         rename-tests: new test, exposes several platform bugs
40736         * modules/rename-tests: New file.
40737         * tests/test-rename.h: Likewise.
40738         * tests/test-rename.c: Likewise.
40739         * doc/posix-functions/rename.texi (rename): Improve documentation,
40740         including bugs that will eventually be fixed in gnulib.
40741
40742 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40743
40744         * lib/uname.c: Include <stdlib.h>
40745         (uname): Assume version info is available.
40746
40747 2009-10-02  Jim Meyering  <meyering@redhat.com>
40748
40749         gnu-web-doc-update: correct --help output
40750         * build-aux/gnu-web-doc-update: Make --help output relevant.
40751
40752         gnu-web-doc-update: add standard options
40753         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40754
40755         gnu-web-doc-update: New module.
40756         Use this script to automatically update the on-line web documentation
40757         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40758         * modules/gnu-web-doc-update: New file, from coreutils.
40759         * build-aux/gnu-web-doc-update: New script.
40760
40761 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40762
40763         link: LoadLibrary is not needed.
40764         * lib/link.c: Use GetModuleHandle.
40765
40766 2009-10-01  Eric Blake  <ebb9@byu.net>
40767
40768         getopt: bump serial number
40769         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40770         change.
40771
40772         tests: tighten link, rmdir, and remove tests
40773         * tests/test-link.h (includes): No need to use <config.h> here.
40774         Clean up if directory hard link was created, otherwise test for
40775         trailing '.'.
40776         * tests/test-linkat.c (main): Simplify.
40777         * tests/test-remove.c (main): Enhance test for trailing '.'.
40778         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40779
40780 2009-10-01  Jim Meyering  <meyering@redhat.com>
40781
40782         maint.mk: requiring "make major" was annoying, for a "minor" release.
40783         What is intended is "stable", to contrast with alpha and beta,
40784         so require "make stable", not "make major".
40785         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40786         (get_tool_versions): Likewise.
40787         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40788
40789 2009-09-30  Ben Pfaff  <blp@gnu.org>
40790
40791         Fix broken build of replacement for Windows tmpfile().
40792         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40793         flags argument added along with the 'mkostemp' module.
40794
40795 2009-09-28  Bruno Haible  <bruno@clisp.org>
40796
40797         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40798         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40799         to 'remove_elt'.
40800         (gl_list_remove): Update.
40801         * lib/gl_list.c (gl_list_remove): Update.
40802         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40803         to 'remove_elt'.
40804         (gl_oset_remove): Update.
40805         * lib/gl_list.c (gl_oset_remove): Update.
40806         Reported by Eric Blake.
40807
40808 2009-09-28  Eric Blake  <ebb9@byu.net>
40809
40810         doc: mention yet more cygwin 1.7 status
40811         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40812         cygwin.
40813         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40814         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40815
40816         argp: fix test failure
40817         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40818         that are not upper-case.  Pass correct range to tolower.
40819
40820 2009-09-27  Jim Meyering  <meyering@redhat.com>
40821
40822         test-yesno: work around sparc-dash here-document infelicity
40823         Without this change, the literal \177 byte in a here document
40824         would make dash 0.5.5.1-3 access uninitialized memory.
40825         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40826         Instead, use a marker, "@", and filter through tr to create the desired
40827         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40828
40829 2009-09-27  Bruno Haible  <bruno@clisp.org>
40830
40831         Disable untested support for new flavours of ACLs on AIX.
40832         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40833         progress.
40834         * lib/set-mode-acl.c (qset_acl): Likewise.
40835
40836 2008-12-07  Bruno Haible  <bruno@clisp.org>
40837
40838         Add support for new flavours of ACLs on AIX. (Untested.)
40839         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40840         (file_has_acl): Add support for newer AIX.
40841         * lib/set-mode-acl.c (qset_acl): Likewise.
40842         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40843         Rainer Tammer <tammer@tammer.net>.
40844
40845 2009-09-26  Eric Blake  <ebb9@byu.net>
40846
40847         argp: fix compilation of getopt
40848         * lib/getopt.in.h (includes): Use different guard than glibc.
40849         Reported by Sergey Poznyakoff.
40850
40851         doc: mention more cygwin 1.7 status
40852         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40853         bug.
40854         * doc/posix-functions/execl.texi (execl): Likewise.
40855         * doc/posix-functions/execle.texi (execle): Likewise.
40856         * doc/posix-functions/execlp.texi (execlp): Likewise.
40857         * doc/posix-functions/execv.texi (execv): Likewise.
40858         * doc/posix-functions/execve.texi (execve): Likewise.
40859         * doc/posix-functions/execvp.texi (execvp): Likewise.
40860         * doc/glibc-functions/canonicalize_file_name.texi
40861         (canonicalize_file_name): Cygwin 1.7 now provides this.
40862         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40863         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40864         on AT_SYMLINK_NOFOLLOW.
40865
40866 2009-09-24  Eric Blake  <ebb9@byu.net>
40867
40868         test-linkat: make test more robust
40869         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40870
40871         getopt: fix inclusion guards for cygwin
40872         * modules/getopt-posix (Depends-on): Add include-next.
40873         (Makefile.am): Substitute more items in replacement header.
40874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40875         <getopt.h>.
40876         * lib/getopt.in.h (includes): Use split inclusion guard, and
40877         prefer <getopt.h> over include <unistd.h> when one is present.
40878         (option): Also override name of 'struct option'.
40879
40880         same-inode: revert prior change; it is not yet ready
40881         * NEWS: Undo mention of this change.
40882         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40883         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40884         * lib/cycle-check.c (cycle_check): Likewise.
40885         * lib/same.c (same_name): Likewise.
40886         * lib/at-func2.c (at_func2): Likewise.
40887
40888 2009-09-23  Eric Blake  <ebb9@byu.net>
40889
40890         linkat: new module
40891         * modules/linkat: New file.
40892         * lib/at-func2.c (at_func2): Likewise.
40893         * lib/linkat.c (linkat): Likewise.
40894         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40895         * lib/openat-priv.h (at_func2): Add declaration.
40896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40897         * modules/unistd (Makefile.am): Substitute them.
40898         * lib/unistd.in.h (linkat): Declare it.
40899         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40900         * doc/posix-functions/linkat.texi (linkat): Likewise.
40901         * doc/posix-functions/link.texi (link): Tweak wording.
40902         * tests/test-link.c (main): Move guts...
40903         * tests/test-link.h (test_link): ...into new file.
40904         * modules/linkat-tests: New test.
40905         * tests/test-linkat.c: Likewise.
40906         * modules/link-tests (Files): Ship new file.
40907         (Depends-on): Add stdbool.
40908
40909         dirname: add library-safe mdir_name
40910         * lib/dirname.h (mdir_name): New prototype.
40911         * lib/dirname.c (dir_name): Move guts...
40912         (mdir_name): ...to new function that avoids xalloc_die.
40913
40914         fchdir: another mingw fix
40915         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40916         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40917         on mingw (where it has not yet been ported), and make it optional
40918         elsewhere.
40919         (_gl_register_fd): Use it.
40920
40921         same-inode: make SAME_INODE tri-state, to port to mingw
40922         * NEWS: Mention this change.
40923         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40924         st_ino always being 0.
40925         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40926         * lib/cycle-check.c (cycle_check): Likewise.
40927         * lib/same.c (same_name): Likewise.
40928
40929         lstat: avoid mingw compilation error
40930         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40931         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40932         lstat ourselves.
40933         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40934         was adequate.
40935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40936         the checks for lstat.
40937         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40938
40939         link: fix test failure on Solaris 9
40940         * lib/link.c (rpl_link): Don't assume link will catch bogus
40941         trailing slash on source.
40942
40943         test-symlinkat: enhance test
40944         * tests/test-readlink.c (main): Move guts...
40945         * tests/test-readlink.h (test_readlink): ...into new file.
40946         * tests/test-symlink.c (main): Move guts...
40947         * tests/test-symlink.h (test_symlink): ...into new file.
40948         * tests/test-symlinkat.c (main): Use new files for further
40949         coverage.
40950         (do_symlink, do_readlink): New helper functions.
40951         * modules/symlink-tests (Files): Ship new file.
40952         (Depends-on): Add stdbool.
40953         * modules/readlink-tests (Files): Ship new file.
40954         (Depends-on): Add stdbool.
40955         * modules/symlinkat-tests (Files): Use new files.
40956
40957 2009-09-23  Eric Blake  <ebb9@byu.net>
40958
40959         readlink: document portability issue with symlink length
40960         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40961         systems have bogus st_size on symlinks, and mention the
40962         areadlink-with-size module.
40963         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40964         * doc/posix-functions/readlink.texi (readlink): Mention the
40965         areadlink module, and ERANGE failure.
40966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40967         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40968
40969         readlink: fix Solaris 9 bug with trailing slash
40970         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40971         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40972         * doc/posix-functions/readlink.texi (readlink): Document this.
40973         * modules/readlink-tests: New test.
40974         * tests/test-readlink.c: Likewise.
40975
40976         readlink: fix cygwin 1.5.x bug with return type
40977         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40978         * lib/unistd.in.h (readlink): Use ssize_t.
40979         * lib/readlink.c (readlink): Likewise.
40980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40981         * modules/unistd (Makefile.am): Substitute it.
40982         * lib/unistd.in.h (readlink): Declare replacement.
40983         * doc/posix-functions/readlink.texi (readlink): Document this.
40984
40985         symlink: use throughout gnulib
40986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40987         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40988         symlink is not used.
40989         * modules/symlinkat (Depends-on): Add symlink.
40990         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40991         * modules/canonicalize-tests (Depends-on): Likewise.
40992         * modules/lstat-tests (Depends-on): Likewise.
40993         * modules/openat-tests (Depends-on): Likewise.
40994         * modules/remove-tests (Depends-on): Likewise.
40995         * modules/rmdir-tests (Depends-on): Likewise.
40996         * modules/unlink-tests (Depends-on): Likewise.
40997         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40998         * tests/test-canonicalize.c (symlink): Likewise.
40999         * tests/test-fstatat.c (symlink): Likewise.
41000         * tests/test-lstat.c (symlink): Likewise.
41001         * tests/test-remove.c (symlink): Likewise.
41002         * tests/test-rmdir.c (symlink): Likewise.
41003         * tests/test-unlink.c (symlink): Likewise.
41004         * tests/test-unlinkat.c (symlink): Likewise.
41005
41006         symlink: new module, for Solaris 9 bug
41007         * modules/symlink: New file.
41008         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41009         * lib/symlink.c: Likewise.
41010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41011         * modules/unistd (Makefile.am): Substitute them.
41012         * lib/unistd.in.h (symlink): Declare replacement.
41013         * MODULES.html.sh (File system functions): Mention it.
41014         * doc/posix-functions/symlink.texi (symlink): Likewise.
41015         * modules/symlink-tests: New test.
41016         * tests/test-symlink.c: Likewise.
41017
41018 2009-09-23  Bruno Haible  <bruno@clisp.org>
41019
41020         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41021         when needed.
41022         Test case: gnulib-tool --import --with-tests atexit inttypes.
41023         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41024
41025 2009-09-23  Bruno Haible  <bruno@clisp.org>
41026
41027         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41028         subcommand, not in a subshell.
41029
41030 2009-09-22  Eric Blake  <ebb9@byu.net>
41031
41032         unistd: sort replacement declarations
41033         * lib/unistd.in.h: Sort declarations.
41034
41035         open, openat: minor optimization
41036         * lib/open.c (open): If open succeeded, len is non-zero.
41037         * lib/openat.c (rpl_openat): Likewise.
41038
41039         link-follow: ensure correct result
41040         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41042         distinguish between possible failures.
41043
41044 2009-09-21  Eric Blake  <ebb9@byu.net>
41045
41046         fts: avoid compiler warning
41047         * lib/fts.c (dirent_inode_sort_may_be_useful)
41048         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41049
41050 2009-09-19  Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/progreloc.c (canonicalize_file_name): New declaration.
41053
41054 2009-09-19  Eric Blake  <ebb9@byu.net>
41055
41056         link: fix quoting
41057         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41058
41059         openat: fix openat bugs on Solaris 9
41060         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41061         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41062         * modules/openat (Depends-on): Add open.
41063         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41064         * modules/fcntl-h (Makefile.am): Substitute it.
41065         * lib/fcntl.in.h (openat): Declare replacement.
41066         * doc/posix-functions/openat.texi (openat): Document this.
41067
41068         openat: move fstatat and unlinkat into correct files
41069         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41070         compiled.
41071         * lib/openat.c (fstatat, unlinkat): Move...
41072         * lib/fstatat.c (fstatat): ...into correct files.
41073         * lib/unlinkat.c (unlinkat): Likewise.
41074
41075         openat: fix unlinkat bugs on Solaris 9
41076         * lib/unlinkat.c (unlinkat): New file.
41077         * modules/openat (Depends-on): Add unlink.
41078         (Files): Distribute it.
41079         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41080         trailing slash behavior is broken.
41081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41082         * modules/unistd (Makefile.am): Substitute it.
41083         * lib/unistd.in.h (unlinkat): Declare replacement.
41084         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41085
41086         openat: fix fstatat bugs on Solaris 9
41087         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41088         stat.
41089         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41090
41091         test-unlinkat: enhance test, to expose Solaris 9 bug
41092         * tests/test-unlink.c (main): Factor guts...
41093         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41094         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41095         * tests/test-rmdir.c (main): Adjust caller.
41096         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41097         (unlinker): New helper function.
41098         (rmdirat): Enhance check.
41099         * modules/rmdir-tests (Depends-on): Add stdbool.
41100         * modules/unlink-tests (Depends-on): Likewise.
41101         (Files): Add test-unlink.h.
41102         * modules/openat-tests (Files): Likewise.
41103         (Depends-on): Add unlinkdir.
41104
41105         test-fstatat: new test, to expose Solaris 9 bugs
41106         * tests/test-stat.c (main): Factor guts...
41107         * tests/test-stat.h (test_stat_func): ...into new file.
41108         * tests/test-lstat.c (main): Factor guts...
41109         * tests/test-lstat.h (test_lstat_func): ...into new file.
41110         * tests/test-fstatat.c: New file.
41111         * modules/stat-tests (Files): Add test-stat.h.
41112         * modules/lstat-tests (Files): Add test-lstat.h.
41113         (Depends-on): Add stdbool.
41114         * modules/openat-tests (Depends-on): Add pathmax.
41115         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41116         (Makefile.am): Run new test.
41117
41118         remove: new module, for mingw and Solaris 9 bugs
41119         * modules/remove: New file.
41120         * lib/remove.c: Likewise.
41121         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41123         * modules/stdio (Makefile.am): Use them.
41124         * lib/stdio.in.h (remove): Declare replacement.
41125         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41126         * doc/posix-functions/remove.texi (remove): Likewise.
41127         * modules/remove-tests: New test.
41128         * tests/test-remove.c: Likewise.
41129
41130         unlink: new module, for Solaris 9 bug
41131         * modules/unlink: New file.
41132         * lib/unlink.c: Likewise.
41133         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41135         * modules/unistd (Makefile.am): Use them.
41136         * lib/unistd.in.h (stat): Declare replacement.
41137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41138         * doc/posix-functions/unlink.texi (unlink): Likewise.
41139         * modules/unlink-tests: New test.
41140         * tests/test-unlink.c: Likewise.
41141
41142         lstat: fix Solaris 9 bug
41143         * lib/lstat.c (lstat): Also check for trailing slash on
41144         non-symlink, non-directories.  Use stat module to simplify logic.
41145         * doc/posix-functions/lstat.texi (lstat): Document it.
41146         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41147         (configure.ac): Check for symlink.
41148         * tests/test-lstat.c (main): Add more tests.
41149
41150         stat: add as dependency to other modules
41151         * modules/chown (Depends-on): Add stat.
41152         * modules/euidaccess (Depends-on): Likewise.
41153         * modules/fchdir (Depends-on): Likewise.
41154         * modules/isdir (Depends-on): Likewise.
41155         * modules/link (Depends-on): Likewise.
41156         * modules/lstat (Depends-on): Likewise.
41157         * modules/mkdir-p (Depends-on): Likewise.
41158         * modules/modechange (Depends-on): Likewise.
41159         * modules/open (Depends-on): Likewise.
41160         * modules/readlink (Depends-on): Likewise.
41161         * modules/same (Depends-on): Likewise.
41162
41163         stat: fix Solaris 9 bug
41164         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41165         slash.
41166         * lib/stat.c (rpl_stat): Work around it.
41167         * doc/posix-functions/stat.texi (stat): Update documentation.
41168
41169         stat: new module, for mingw bug
41170         * modules/stat: New file.
41171         * lib/stat.c: Likewise.
41172         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41174         * modules/sys_stat (Makefile.am): Use them.
41175         * lib/sys_stat.in.h (stat): Declare replacement.
41176         * lib/openat.c (fstatat): Deal with lstat and stat being function
41177         macros.
41178         * modules/openat (Depends-on): Add inline.
41179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41180         * doc/posix-functions/stat.texi (stat): Likewise.
41181         * modules/stat-tests: New test.
41182         * tests/test-stat.c: Likewise.
41183
41184 2009-09-19  Jim Meyering  <meyering@redhat.com>
41185
41186         syntax-check: detect unnecessary inclusion of canonicalize.h
41187         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41188
41189 2009-09-19  Eric Blake  <ebb9@byu.net>
41190
41191         canonicalize-lgpl: adjust clients to use correct header
41192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41193         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41194         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41195         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41196         * lib/progreloc.c (includes): Likewise.
41197
41198 2009-09-19  Jim Meyering  <meyering@redhat.com>
41199
41200         test-posixtm.c: correct a comment
41201         * tests/test-posixtm.c: Correct first-line comment.
41202         Spotted by Eric Blake.
41203
41204 2009-09-16  Jim Meyering  <meyering@redhat.com>
41205
41206         posixtm-tests: make T const-correct; add a test case
41207         * tests/test-posixtm.c (T): Declare const.
41208         Add a test for -(2^31+1).
41209         Remove useless can-succeed-only-in-2002 test.
41210
41211         posixtm-tests: adjust the sole failing test
41212         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41213         expected output matches what mktime now produces.  Cross-checked via
41214         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41215
41216         posixtm: move #ifdef'd tests into a new module
41217         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41218         * tests/test-posixtm.c: ... this new file.
41219         * modules/posixtm-tests: New module.
41220
41221 2009-09-19  Eric Blake  <ebb9@byu.net>
41222
41223         openat: simplify use of at-func.c
41224         * lib/at-func.c (includes): Include prerequisites here, to
41225         simplify requirements on client files.
41226         * lib/openat-priv.h: Add double-inclusion guard.
41227         * lib/faccessat.c (includes): Simplify.
41228         * lib/fchmodat.c (includes): Likewise.
41229         * lib/fchownat.c (includes): Likewise.
41230         * lib/mkdirat.c (includes): Likewise.
41231         * lib/mkfifoat.c (includes): Likewise.
41232         * lib/symlinkat.c (includes): Likewise.
41233
41234         openat: allow return of fd 0
41235         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41236         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41237         unistd-safer.
41238         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41239         <fcntl.h>; this module does not leak fds.
41240         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41241         must be allowed to return 0, leaving openat_safer to add the
41242         safety.
41243         (openat_permissive): Avoid writing to just-opened fd 2 if
41244         restoring the current directory fails.
41245         * lib/openat-die.c (openat_restore_fail): Add comment.
41246         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41247         (save_cwd): Guarantee safe fd, but without use of open_safer.
41248         * tests/test-openat.c: New test.
41249         * modules/openat-tests (Files, Makefile.am): Distribute and build
41250         new file.
41251
41252         relocatable-prog-wrapper: fix build
41253         * modules/relocatable-prog-wrapper (Files): Update name of
41254         canonicalize m4 file, broken on 2009-09-17.
41255         Reported by emad hajjar <aleppos@hotmail.com>.
41256
41257 2009-09-19  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41260         * lib/safe-alloc.c: Likewise.
41261         Reported by Ian Beckwith <ianb@erislabs.net>.
41262
41263 2009-09-18  Bruno Haible  <bruno@clisp.org>
41264
41265         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41266         Reported by <erobles@sensacd.com.mx>.
41267
41268 2009-09-17  Eric Blake  <ebb9@byu.net>
41269
41270         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41271         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41272         slashes when checking if last component is missing.
41273         * tests/test-canonicalize.c (main): Test this.
41274
41275         canonicalize, canonicalize-lgpl: honor // if distinct from /
41276         * modules/canonicalize (Files): Add double-slash-root.m4.
41277         * modules/canonicalize-lgpl (Files): Likewise.
41278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41279         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41280         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41281         fallback definition.
41282         (canonicalize_filename_mode): Use it to protect //.
41283         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41284         (__realpath): Likewise.
41285         * tests/test-canonicalize.c (main): Test this.
41286         * tests/test-canonicalize-lgpl.c (main): Likewise.
41287         * modules/canonicalize-tests (Depends-on): Add same-inode.
41288         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41289
41290         canonicalize-lgpl: fix glibc bug with trailing slash
41291         * m4/canonicalize-lgpl.m4: Move contents...
41292         * m4/canonicalize.m4: ...here.
41293         (gl_CANONICALIZE_LGPL): Factor realpath check...
41294         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41295         glibc 2.3.5 bug, fixed 2005-04-27.
41296         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41297         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41298         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41299         * modules/canonicalize-lgpl (Files): Manage file rename.
41300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41301         * modules/stdlib (Makefile.am): Substitute witness.
41302         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41303         is needed.
41304         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41305         replacement is required.
41306         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41307         * doc/glibc-functions/canonicalize_file_name.texi
41308         (canonicalize_file_name): Document this.
41309         * doc/posix-functions/realpath.texi (realpath): Likewise.
41310
41311         canonicalize-lgpl: reject non-directory with trailing slash
41312         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41313         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41314         catches failures in glibc 2.3.5.
41315         * tests/test-canonicalize.c (main): Likewise.
41316
41317         canonicalize-lgpl: use native realpath if it works
41318         * lib/canonicalize-lgpl.c (realpath): Guard with
41319         FUNC_REALPATH_WORKS.
41320         * lib/stdlib.in.h (realpath): Make declaration optional based on
41321         HAVE_REALPATH.
41322         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41323         native realpath works.
41324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41325         * modules/stdlib (Makefile.am): Substitute witness.
41326
41327         canonicalize, canonicalize-lgpl: use <stdlib.h>
41328         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41329         (Include): Mention <stdlib.h>.
41330         (configure.ac): Mention functions we provide.
41331         * modules/canonicalize (configure.ac): Likewise.
41332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41333         realpath if canonicalize_file_name is missing.
41334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41335         * modules/stdlib (Makefile.am): Substitute witnesses.
41336         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41337         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41338         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41339         * NEWS: Document this.
41340         * doc/glibc-functions/canonicalize_file_name.texi
41341         (canonicalize_file_name): Likewise.
41342         * doc/posix-functions/realpath.texi (realpath): Likewise.
41343         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41344
41345         test-canonicalize: consolidate into single C program
41346         * tests/test-canonicalize.sh: Delete; move setup into...
41347         * tests/test-canonicalize.c (main): ...the program, making it
41348         easier to run in debugger.  Add some tests.
41349         * modules/canonicalize-tests (Files): Remove unused file.
41350         (Depends-on): Add progname.
41351         (configure.ac, Makefile.am): Simplify.
41352
41353         test-canonicalize-lgpl: consolidate into single C program
41354         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41355         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41356         easier to run in debugger.  Add some tests.
41357         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41358         (configure.ac, Makefile.am): Simplify.
41359
41360         canonicalize: avoid resolvepath
41361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41362         unnecessary checks.
41363         * lib/canonicalize.c (includes): Simplify.
41364         (canonicalize_file_name): Drop resolvepath implementation.
41365         * modules/canonicalize (Depends-on): Drop filenamecat.
41366
41367         canonicalize: don't lose errno
41368         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41369         over calls to free.
41370
41371         canonicalize: simplify errno handling
41372         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41373         assignment.
41374
41375         canonicalize, canonicalize-lgpl: update module dependencies
41376         * modules/canonicalize (Depends-on): Add extensions, lstat,
41377         pathmax, stdlib.
41378         (Files): Drop pathmax.h.
41379         (configure.ac): Adjust macro name.
41380         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41381         lstat, stdlib, sys_stat.
41382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41383         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41384         extensions.
41385         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41386         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41387         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41388         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41389         declaration, if available.
41390         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41391         we can rely on the readlink module.
41392         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41393         (includes): Use <unistd.h> unconditionally.
41394
41395 2009-09-17  Eric Blake  <ebb9@byu.net>
41396
41397         maint: make Include sections of modules consistent
41398         * modules/alloca: Use only header name; no need to list #include.
41399         * modules/alloca-opt: Likewise.
41400         * modules/arpa_inet: Likewise.
41401         * modules/canon-host: Likewise.
41402         * modules/configmake: Likewise.
41403         * modules/dirent: Likewise.
41404         * modules/eealloc: Likewise.
41405         * modules/environ: Likewise.
41406         * modules/fchdir: Likewise.
41407         * modules/fcntl: Likewise.
41408         * modules/fcntl-h: Likewise.
41409         * modules/gethrxtime: Likewise.
41410         * modules/gettime: Likewise.
41411         * modules/ignore-value: Likewise.
41412         * modules/inet_ntop: Likewise.
41413         * modules/inet_pton: Likewise.
41414         * modules/inttypes: Likewise.
41415         * modules/isnand-nolibm: Likewise.
41416         * modules/isnanf-nolibm: Likewise.
41417         * modules/mbchar: Likewise.
41418         * modules/mbfile: Likewise.
41419         * modules/mbiter: Likewise.
41420         * modules/mbuiter: Likewise.
41421         * modules/netdb: Likewise.
41422         * modules/netinet_in: Likewise.
41423         * modules/nproc: Likewise.
41424         * modules/pagealign_alloc: Likewise.
41425         * modules/poll: Likewise.
41426         * modules/printf-frexp: Likewise.
41427         * modules/pthread: Likewise.
41428         * modules/putenv: Likewise.
41429         * modules/random_r: Likewise.
41430         * modules/relocatable-prog: Likewise.
41431         * modules/search: Likewise.
41432         * modules/select: Likewise.
41433         * modules/selinux-h: Likewise.
41434         * modules/settime: Likewise.
41435         * modules/signal: Likewise.
41436         * modules/size_max: Likewise.
41437         * modules/socklen: Likewise.
41438         * modules/ssize_t: Likewise.
41439         * modules/stdarg: Likewise.
41440         * modules/stdbool: Likewise.
41441         * modules/stddef: Likewise.
41442         * modules/stdint: Likewise.
41443         * modules/stdio: Likewise.
41444         * modules/stdlib: Likewise.
41445         * modules/string: Likewise.
41446         * modules/strings: Likewise.
41447         * modules/sys_file: Likewise.
41448         * modules/sys_ioctl: Likewise.
41449         * modules/sys_select: Likewise.
41450         * modules/sys_socket: Likewise.
41451         * modules/sys_stat: Likewise.
41452         * modules/sys_time: Likewise.
41453         * modules/sys_times: Likewise.
41454         * modules/sys_utsname: Likewise.
41455         * modules/sys_wait: Likewise.
41456         * modules/sysexits: Likewise.
41457         * modules/time: Likewise.
41458         * modules/times: Likewise.
41459         * modules/tmpfile: Likewise.
41460         * modules/trim: Likewise.
41461         * modules/unistd: Likewise.
41462         * modules/wchar: Likewise.
41463         * modules/wctype: Likewise.
41464
41465 2009-09-17  Bruno Haible  <bruno@clisp.org>
41466
41467         Make getdate.y compile on QNX and NetBSD 5 / i386.
41468         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41469         TIME_T_FITS_IN_LONG_INT.
41470         * lib/getdate.y (long_time_t): New type.
41471         (relative_time): Change type of 'seconds' field to long_time_t.
41472         (get_date): Update types of local variables. Check against overflow
41473         during conversion from long_time_t to time_t.
41474         Reported by Matt Kraai <kraai@ftbfs.org>
41475         and Hasso Tepper <hasso@netbsd.org>.
41476
41477 2009-09-17  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/COPYING: Update copyright years.
41480         * modules/README: Likeiwse.
41481         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41482         Reported by Ian Beckwith <ianb@erislabs.net>.
41483
41484 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41485
41486         * users.txt: Update references for gnuit package.
41487
41488 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41489
41490         * m4/getdelim.m4: Fix typo in copyright line.
41491
41492 2009-09-17  Bruno Haible  <bruno@clisp.org>
41493
41494         * lib/atoll.c: Use the standard header with GPL copyright.
41495         * lib/argz.in.h: Likewise.
41496         * lib/glob.c: Likewise.
41497         * lib/glob-libc.h: Likewise.
41498         * lib/random_r.c: Likewise.
41499         * lib/siglist.h: Likewise.
41500         * lib/strsignal.c: Likewise.
41501         Reported by Ian Beckwith <ianb@erislabs.net>.
41502
41503 2009-09-17  Eric Blake  <ebb9@byu.net>
41504
41505         rmdir: ensure correct dependency order
41506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41507
41508 2009-09-17  Bruno Haible  <bruno@clisp.org>
41509
41510         Disable assertion that fails on NetBSD 5 / i386.
41511         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41512         Reported by Sam Steingold <sds@gnu.org>
41513         and Hasso Tepper <hasso@netbsd.org>.
41514
41515 2009-09-16  Eric Blake  <ebb9@byu.net>
41516
41517         unlinkdir: port to mingw
41518         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41519         on which no one can unlink a directory.
41520
41521         stdlib: sort witness names
41522         * modules/stdlib (Makefile.am): Sort replacements.
41523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41524         * lib/stdlib.in.h: Likewise.
41525
41526         parse-duration-tests: avoid link failure
41527         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41528         LIBINTL.
41529         Reported by Tom G. Christensen.
41530
41531         openat-tests: ensure unlinkat behaves like rmdir
41532         * tests/test-rmdir.c (main): Factor guts...
41533         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41534         * modules/rmdir-tests (Files): Ship new file.
41535         * modules/openat-tests: New test.
41536         * tests/test-unlinkat.c: Likewise.
41537
41538         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41539         * modules/rmdir-errno (Status, Notice): Now obsolete.
41540
41541         rmdir: work around cygwin 1.5.x and mingw bugs
41542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41543         * lib/rmdir.c (rmdir): Work around it.
41544         * modules/rmdir (Status, Notice): No longer obsolete.
41545         (Files): Add dos.m4.
41546         (Depends-on): Add unistd.
41547         (configure.ac): Set witnesses.
41548         (License): Relax to LGPLv2+.
41549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41550         * modules/unistd (Makefile.am): Substitute witnesses.
41551         * lib/unistd.in.h (rmdir): Declare replacement.
41552         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41553         * modules/rmdir-tests: New tests.
41554         * tests/test-rmdir.c: Likewise.
41555
41556 2009-09-15  Eric Blake  <ebb9@byu.net>
41557
41558         fchdir: improve use of replacement functions
41559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41561         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41562         REPLACE_CLOSEDIR.
41563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41564         * modules/sys_stat (Makefile.am): Substitute correct witness.
41565         * modules/dirent (Makefile.am): Likewise.
41566         * modules/unistd (Makefile.am): Likewise.
41567         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41568         * lib/unistd.in.h (dup): Likewise.
41569         * lib/sys_stat.in.h (fstat): Likewise.
41570
41571         maint: ignore gnulib-tool temp files
41572         * .gitignore: Ignore files created during gnulib-tool --test.
41573
41574 2009-09-13  Jim Meyering  <meyering@redhat.com>
41575
41576         posixtm: don't reject a time that specify "60" as the number of seconds
41577         * lib/posixtm.c (posixtime): The code to reject invalid dates
41578         would also reject a time specified with the .60 suffix.
41579         But POSIX allows that, in order to accommodate leap seconds.
41580         So don't reject it.
41581         (main): Adjust tests accordingly.
41582         * modules/posixtm (Depends-on): Add stpcpy.
41583
41584 2009-09-11  Jim Meyering  <meyering@redhat.com>
41585
41586         announce-gen: include [$release_type] in emitted Subject:
41587         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41588         e.g., [stable] in the emitted Subject: line.
41589
41590 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41591
41592         Remove obsolete macros from several modules.
41593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41594         obsolete Autoconf macros with their modern counterparts.
41595         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41596         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41598         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41600         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41603         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41604         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41605         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41607         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41608         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41609         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41612         * m4/time_r.m4 (gl_TIME_R): Likewise.
41613         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41614         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41616
41617         Fix copyright header in build-aux scripts.
41618         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41619         recommendation.
41620         * build-aux/ncftpput-ftp: Likewise.
41621         * build-aux/update-copyright: Likewise.
41622
41623 2009-09-09  Eric Blake  <ebb9@byu.net>
41624
41625         test-link: allow Linux choice of errno
41626         * tests/test-link.c (main): Relax test for alternate error.
41627
41628         strndup: fix improper m4 caching
41629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41630         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41631         (gl_PREREQ_STRNDUP): Delete.
41632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41633         * modules/string (Makefile.am): Substitute it.
41634         * lib/string.in.h (strndup): Modernize prototype.
41635
41636         getcwd: port to mingw
41637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41638         different from the POSIX assumptions made throughout the getcwd
41639         module; fortunately, the mingw getcwd does not need replacement.
41640         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41641         * modules/getcwd-tests: New test.
41642         * tests/test-getcwd.c: Likewise.
41643
41644         link: fix platform bugs
41645         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41646         * lib/link.c (link): Work around them.  Fix related mingw bug.
41647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41648         * modules/unistd (Makefile.am): Substitute it.
41649         * lib/unistd.in.h (link): Declare replacement.
41650         * doc/posix-functions/link.texi (link): Document this.
41651         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41652
41653         test-link: consolidate into single C program, test more cases
41654         * tests/test-link.sh: Delete.
41655         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41656         at least Cygwin and Solaris.
41657         * modules/link-tests (Files): Remove unused file.
41658         (Depends-on): Add errno, sys_stat.
41659         (Makefile.am): Simplify.
41660
41661 2009-09-08  Bruno Haible  <bruno@clisp.org>
41662
41663         Work around towlower, towupper bug on mingw.
41664         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41665         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41666         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41667         * doc/posix-functions/towupper.texi: Likewise.
41668         Reported by Eric Blake.
41669
41670 2009-09-08  Jim Meyering  <meyering@redhat.com>
41671
41672         build: don't try to run autoheader if we don't use it
41673         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41674         is not used in configure.ac.
41675
41676 2009-09-08  Eric Blake  <ebb9@byu.net>
41677
41678         euidaccess: fix compilation error
41679         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41680
41681         rawmemchr: relax license
41682         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41683         okay.
41684         Reported by Jim Meyering.
41685
41686         mkfifoat: new module
41687         * modules/mkfifoat: New file.
41688         * lib/mkfifoat.c: Likewise.
41689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41691         * modules/sys_stat (Makefile.am): Use them.
41692         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41693         * MODULES.html.sh (File system functions): Mention module.
41694         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41695         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41696         * modules/mkfifoat-tests: New test.
41697         * tests/test-mkfifoat.c: Likewise.
41698
41699         strchrnul: relax license
41700         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41701         okay.
41702         Reported by Jim Meyering.
41703
41704 2009-09-08  Eric Blake  <ebb9@byu.net>
41705
41706         fstatat: fix compilation on Solaris
41707         * lib/fstatat.c (includes): Add fcntl.h.
41708         Reported by Pádraig Brady.
41709
41710 2009-09-07  Eric Blake  <ebb9@byu.net>
41711
41712         rename: modernize replacement
41713         * modules/rename (Depends-on): Add stdio.
41714         (configure.ac): Declare witness.
41715         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41716         stdio take care of replacement.
41717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41718         * modules/stdio (Makefile.am): Substitute them.
41719         * lib/stdio.in.h (rename): Declare replacement.
41720         * lib/rename.c (includes): Allow cross-compilation to non-windows
41721         machines.
41722         * doc/posix-functions/rename.texi (rename): Improve
41723         documentation.
41724
41725         stdio: sort witness names
41726         * modules/stdio (Makefile.am): Sort replacements.
41727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41728         * lib/stdio.in.h: Likewise.
41729
41730         getcwd: minor cleanups
41731         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41732         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41733
41734         openat: provide more convenience names
41735         * modules/faccessat (configure.ac): Add C witness.
41736         * lib/unistd.in.h (readlinkat): Fix typo.
41737         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41738         convenience wrappers.
41739         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41740         wrappers in syntax checks.
41741
41742 2009-09-06  Eric Blake  <ebb9@byu.net>
41743
41744         doc: fix comments in recent patches
41745         * lib/faccessat.c: Mention correct function.
41746         * lib/fchmodat.c: Likewise.
41747         * lib/fchownat.c: Likewise.
41748         * lib/symlinkat.c: Likewise.
41749         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41750         constants.
41751
41752         faccessat, symlinkat: continue cleanup of previous patch
41753         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41754         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41755         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41757         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41758         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41759         set.
41760
41761 2009-09-06  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41764         (fstatat): Declare if GNULIB_FSTATAT is set.
41765         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41766         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41767         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41768         * modules/fcntl-h (Files): Remove m4/openat.m4.
41769         * modules/sys_stat (Files): Remove m4/openat.m4.
41770         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41771         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41772         * modules/unistd (Files): Remove m4/openat.m4.
41773         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41774         GNULIB_OPENAT.
41775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41776         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41778         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41779         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41780         gl_OPENAT_DEFAULTS.
41781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41782         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41783         Don't require gl_OPENAT_DEFAULTS.
41784         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41785         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41786         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41787         (gl_OPENAT_DEFAULTS): Remove macro.
41788
41789 2009-09-06  Bruno Haible  <bruno@clisp.org>
41790
41791         * modules/openat (configure.ac): Remove unneeded witness.
41792
41793 2009-09-06  Bruno Haible  <bruno@clisp.org>
41794
41795         Set errno to ENOSYS when a function is entirely unsupported.
41796         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41797         EOPNOTSUPP.
41798         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41799         * modules/chown (Depends-on): Remove errno.
41800
41801 2009-09-06  Bruno Haible  <bruno@clisp.org>
41802
41803         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41804
41805 2009-09-06  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41808
41809 2009-09-06  Ben Pfaff  <blp@gnu.org>
41810             Bruno Haible  <bruno@clisp.org>
41811
41812         Work around a glibc bug in strtok_r.
41813         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41814         Undefine if UNDEFINE_STRTOK_R is set.
41815         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41817         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41819         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41820         UNDEFINE_STRTOK_R.
41821         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41822
41823 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41824
41825         exclude: minor fix
41826         * lib/exclude.c: Include wctype.h
41827
41828 2009-09-06  Akim Demaille  <demaille@gostai.com>
41829
41830         bootstrap: improve error message
41831         * build-aux/bootstrap (find_tool): Upon failure, report the list
41832         of candidates.
41833         Honor the initial value of the envvar.
41834
41835 2009-09-05  Eric Blake  <ebb9@byu.net>
41836
41837         symlinkat: new module
41838         * modules/symlinkat: New file.
41839         * lib/symlinkat.c: Likewise.
41840         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41842         * modules/unistd (Makefile.am): Use them.
41843         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41844         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41845         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41846         * MODULES.html.sh (File system functions): Mention module.
41847         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41848         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41849         * modules/symlinkat-tests: New test.
41850         * tests/test-symlinkat.c: Likewise.
41851
41852         test-openat-safer: add more checks
41853         * tests/test-openat-safer.c (main): Check more code paths.
41854
41855 2009-09-05  Jim Meyering  <meyering@redhat.com>
41856
41857         syntax-check: detect unnecessary inclusion of openat.h
41858         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41859
41860 2009-09-05  Bruno Haible  <bruno@clisp.org>
41861
41862         Support towlower, towupper.
41863         * doc/posix-functions/towlower.texi: Mention module wctype.
41864         * doc/posix-functions/towupper.texi: Likewise.
41865         * lib/wctype.in.h (towlower, towupper): New functions.
41866         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41867         (ASSERT): New macro.
41868         (e): New variable.
41869         (main): Test also towlower, towupper. Test WEOF argument.
41870         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41871
41872 2009-09-05  Bruno Haible  <bruno@clisp.org>
41873
41874         Fix conversion behaviour when the input is invalid.
41875         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41876         mark occurring in first pass of indirect conversion.
41877         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41878         input.
41879         Found by clang's static analyzer.
41880
41881 2009-09-05  Bruno Haible  <bruno@clisp.org>
41882
41883         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41884         where direct conversion is possible.
41885
41886 2009-09-04  Eric Blake  <ebb9@byu.net>
41887
41888         openat: fail with ENOENT on empty name
41889         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41890         buffer.
41891
41892         link-follow: fix logic bug in prior patch
41893         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41894         reversed sense of yes and no in prior patch.  Avoid confusing
41895         compilation failure with desired semantics.
41896
41897         link-follow: accomodate mingw and cross-compilation
41898         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41899         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41900         cross-compilation results to -1, to make linkat easier to
41901         implement when cross-compiling.  Trivially support mingw.
41902         * modules/link-follow (configure.ac): Call new name.
41903         * NEWS: Mention this.
41904
41905 2009-09-03  Eric Blake  <ebb9@byu.net>
41906
41907         faccessat: compile replacement
41908         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41909         needed.
41910
41911         fts: fix compilation error
41912         * lib/fts.c (includes): Re-add "openat.h", for
41913         openat_needs_fchdir.
41914
41915         faccessat: new module
41916         * modules/faccessat: New file.
41917         * lib/faccessat.c: Likewise.
41918         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41920         * modules/unistd (Makefile.am): Use it.
41921         * lib/unistd.in.h (faccessat): Declare it.
41922         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41923         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41924         * MODULES.html.sh (File system functions): Mention it.
41925         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41926         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41927
41928         euidaccess: prefer POSIX over non-standard implementation
41929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41930         * lib/euidaccess.c (euidaccess): Use it if available.
41931
41932         openat: make template easier to use
41933         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41934         AT_FUNC_F2 to be undefined.
41935         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41936         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41937         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41938         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41939         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41940         Likewise.
41941         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41942         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41943         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41944         Likewise.
41945
41946         openat: declare in POSIX headers
41947         * NEWS: Mention this.
41948         * modules/openat (configure.ac): Declare witnesses.
41949         (Depends-on): Add fcntl-h, sys_stat, unistd.
41950         (Include): Mention correct headers.
41951         * modules/fcntl-h (Depends-on): Add link-warning.
41952         (Files): Add openat.m4.
41953         (Makefile.am): Substitute witnesses.
41954         * modules/sys_stat (Files, Makefile.am): Likewise.
41955         * modules/unistd (Files, Makefile.am): Likewise.
41956         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41957         (gl_OPENAT_DEFAULTS): New macro.
41958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41961         (SYS_STAT_H): Remove unused variable.
41962         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41963         * lib/fcntl--.h (includes): Remove unneeded header.
41964         * lib/openat-safer.c (includes): Likewise.
41965         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41966         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41967         appropriate headers.
41968         (__OPENAT_PREFIX): Delete.
41969         * lib/fcntl.in.h (openat): Provide declaration.
41970         (AT_FDCWD): Fix Solaris bug.
41971         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41972         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41973         * lib/fchmodat.c (includes):  Adjust to find declaration.
41974         * lib/fchownat.c (includes): Likewise.
41975         * lib/mkdirat.c (includes): Likewise.
41976         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41977         still visible.
41978
41979 2009-09-02  Eric Blake  <ebb9@byu.net>
41980
41981         errno: use consistently
41982         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41983         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41984         * lib/canonicalize.c (ELOOP): Likewise.
41985         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41986         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41987         * lib/lchown.c (EOPNOTSUPP): Likewise.
41988         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41989         * lib/savewd.c (ESTALE): Likewise.
41990         * lib/settime.c (ENOSYS): Likewise.
41991         * lib/utimens.c (ENOSYS): Likewise.
41992         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41993         * lib/chdir-safer.c (ELOOP): Likewise.
41994         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41995         * modules/c-stack (Depends-on): Add errno.
41996         * modules/canonicalize (Depends-on): Likewise.
41997         * modules/chdir-safer (Depends-on): Likewise.
41998         * modules/fdopendir (Depends-on): Likewise.
41999         * modules/inet_ntop (Depends-on): Likewise.
42000         * modules/inet_pton (Depends-on): Likewise.
42001         * modules/lchown (Depends-on): Likewise.
42002         * modules/openat (Depends-on): Likewise.
42003         * modules/savewd (Depends-on): Likewise.
42004         * modules/settime (Depends-on): Likewise.
42005         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42006
42007         fts: avoid leaking fds
42008         * modules/fts (Depends-on): Add cloexec.
42009         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42010         flag.
42011
42012         fts: make directory fds more robust
42013         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42014         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42015
42016         backupfile, chdir-long, fts, savedir: make safer
42017         * lib/backupfile.c (includes): Use "dirent--.h", since
42018         numbered_backup can write to stderr during readdir.
42019         * lib/savedir.c (includes): Likewise.
42020         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42021         emulation can write to stderr on failure.
42022         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42023         * lib/getcwd.c: Document why opendir_safer is unused.
42024         * lib/glob.c: Likewise.
42025         * lib/scandir.c: Likewise.
42026         * lib/openat-proc.c: Likewise, for open_safer.
42027         * modules/backupfile (Depends-on): Add dirent-safer.
42028         * modules/savedir (Depends-on): Likewise.
42029         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42030         * modules/chdir-long (Depends-on): Add openat-safer.
42031
42032         openat-safer: new module
42033         * modules/openat-safer: New file.
42034         * lib/openat-safer.c: Likewise.
42035         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42036         * lib/fcntl-safer.h (openat_safer): Declare.
42037         * lib/fcntl--.h (openat): Override.
42038         * MODULES.html.sh (File descriptor based I/O): Mention it.
42039         * lib/openat.h: Add double-inclusion guards.
42040         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42041         "fcntl--.h", so we can implement openat.
42042         * modules/openat-safer-tests: New test.
42043         * tests/test-openat-safer.c: New file.
42044
42045         dirent-safer: new module
42046         * modules/dirent-safer: New file.
42047         * lib/dirent--.h: Likewise.
42048         * lib/dirent-safer.h: Likewise.
42049         * lib/opendir-safer.c: Likewise.
42050         * m4/dirent-safer.m4: Likewise.
42051         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42052         * modules/dirent-safer-tests: New test.
42053         * tests/test-dirent-safer.c: New file.
42054         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42055
42056         fdopendir: optimize on mingw
42057         * lib/unistd.in.h (_gl_directory_name): New prototype.
42058         * lib/fchdir.c (_gl_directory_name): Implement it.
42059         (fchdir): Use it to simplify implementation.
42060         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42061         fchdir, when available, to avoid calling [f]chdir().
42062
42063         fdopendir: split into its own module
42064         * lib/openat.c (fdopendir): Move...
42065         * lib/fdopendir.c: ...into new file.
42066         * modules/fdopendir: New module.
42067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42068         * modules/openat (Depends-on): Add fdopendir.
42069         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42070         fdopendir here.
42071         * modules/savedir (Depends-on): Only need fdopendir, not full
42072         openat.
42073         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42074         * lib/openat.h (fdopendir): Drop prototype.
42075         * lib/dirent.in.h (fdopendir): Provide prototype.
42076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42077         * modules/dirent (Makefile.am): Substitute them.
42078         * MODULES.html.sh (File system functions): Mention it.
42079         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42080         * modules/fdopendir-tests: New file.
42081         * tests/test-fdopendir.c: Likewise.
42082
42083         fchdir: use more consistent macro convention
42084         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42085         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42086         REPLACE_FCHDIR, rather than relying on config.h macros.
42087         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42088         inside a single make-time REPLACE_FCHDIR block, rather than using
42089         the config.h FCHDIR_REPLACEMENT.
42090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42091         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42092         Manage fstat replacement.
42093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42094         REPLACE_FCHDIR.
42095         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42096         (Makefile.am): Substitute REPLACE_FCHDIR.
42097         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42098         FCHDIR_REPLACEMENT.
42099         * lib/dup-safer.c (dup_safer): Likewise.
42100         * lib/dup2.c (rpl_dup2): Likewise.
42101         * lib/dup3.c (rpl_dup3): Likewise.
42102         * lib/open.c (rpl_open): Likewise.
42103
42104         fchdir: simplify error handling, and support dup3
42105         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42106         stdbool, malloc-posix, realloc-posix.
42107         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42108         (ensure_dirs_slot): Return false on allocation failure.
42109         (rpl_dup2): Delete.
42110         (_gl_register_dup): New function.
42111         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42112         (_gl_register_fd): Close fd on allocation failure.
42113         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42114         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42115         prototype.
42116         (rpl_dup2_fchdir): Delete prototype.
42117         * lib/open.c (open): Update caller.
42118         * lib/dup2.c (dup2): Track fchdir metadata.
42119         * lib/dup3.c (dup3): Likewise.
42120         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42122
42123 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42124
42125         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42126         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42127         don't pass arguments to AC_OUTPUT.
42128
42129 2009-09-02  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/mkdtemp (License): Relicense under LGPLv2+.
42132         Reported by Paolo Bonzini.
42133
42134 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42135
42136         Replace uses of obsolete autoconf macros in Jim's modules.
42137         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42138         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42139         can evoke a warning from autoconf when run with -Wobsolete
42140         enabled.  They were declared obsolete for good reasons (see
42141         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42142         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42143         should not continue using the deprecated macros.
42144         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42145         obsolete Autoconf macros with modern counterparts.
42146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42147         * m4/dos.m4 (gl_AC_DOS): Likewise.
42148         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42150         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42151         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42152         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42155         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42156         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42157         Likewise.
42158         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42160         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42161         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42162         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42163         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42164
42165 2009-09-01  Eric Blake  <ebb9@byu.net>
42166
42167         fchdir: fix off-by-one bug in previous patch
42168         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42169         (_gl_unregister_fd): Delete useless if.
42170
42171 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42172
42173         maint.mk: sort the list of syntax-check rules
42174         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42175         easier to get a sense of progress when the rules are run sequentially
42176         and take a long time.
42177
42178 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42179
42180         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42181         * modules/netinet_in: Likewise.
42182         * modules/sys_file: Likewise.
42183         * modules/sys_ioctl: Likewise.
42184         * modules/sys_select: Likewise.
42185         * modules/sys_socket: Likewise.
42186         * modules/sys_stat: Likewise.
42187         * modules/sys_time: Likewise.
42188         * modules/sys_times: Likewise.
42189         * modules/sys_utsname: Likewise.
42190         * modules/sys_wait: Likewise.
42191
42192 2009-09-01  Jim Meyering  <meyering@redhat.com>
42193
42194         fts: help ensure that return values are not ignored
42195         * lib/fts_.h (__GNUC_PREREQ): Define.
42196         (__attribute_warn_unused_result__): Define.
42197         (fts_children, fts_close, fts_open, fts_read): Declare with
42198         __attribute_warn_unused_result__.
42199
42200         fts: fts_close now fails also when closing a dir file descriptor fails
42201         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42202         and propagate to caller, along with errno.
42203
42204         announce-gen: correct formatting in --help output
42205         * build-aux/announce-gen (usage): Move the one-line description in
42206         --help output "up", to where it belongs, just after Usage:.
42207
42208 2009-08-31  Eric Blake  <ebb9@byu.net>
42209
42210         fchdir: port to mingw
42211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42212         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42213         opened, then use a substitute.
42214         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42215         replacement.
42216         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42217         (_gl_register_fd): No need to check stat if open already filters
42218         all directories.
42219         (fchdir): Fix error condition to match POSIX.
42220         * modules/fchdir (Depends-on): Add sys_stat.
42221         * doc/posix-functions/open.texi (open): Document the limitation.
42222         * modules/fchdir-tests: New file.
42223         * tests/test-fchdir.c: Likewise.
42224
42225         canonicalize: allow cross-testing from cygwin to mingw
42226         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42227         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42228         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42229         Likewise.
42230         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42231         target does not support symlinks.
42232         * tests/test-canonicalize-lgpl.sh: Likewise.
42233
42234         chown: avoid compilation warning on mingw
42235         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42236         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42237         mingw.
42238         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42239         * modules/chown (Depends-on): Add errno.
42240
42241 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42242
42243         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42244         command.
42245
42246 2009-08-31  Jim Meyering  <meyering@redhat.com>
42247
42248         canonicalize: remove useless initialization
42249         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42250         initialization of local, "end".
42251
42252 2009-08-30  Bruno Haible  <bruno@clisp.org>
42253
42254         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42255         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42256         ENOSYS.
42257
42258 2009-08-30  Bruno Haible  <bruno@clisp.org>
42259
42260         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42261         /usr/xpg4/bin/tr when it exists.
42262         * tests/test-pipe-filter-gi1.sh: Likewise.
42263
42264 2009-08-30  Bruno Haible  <bruno@clisp.org>
42265
42266         Work around deficient /usr/bin/id program on Solaris.
42267         * tests/test-file-has-acl.sh (ID): New variable.
42268         * tests/test-set-mode-acl.sh (ID): Likewise.
42269         * tests/test-copy-acl.sh (ID): Likewise.
42270         * tests/test-copy-file.sh (ID): Likewise.
42271
42272 2009-08-30  Bruno Haible  <bruno@clisp.org>
42273
42274         New module 'xstriconveh'.
42275         * lib/xstriconveh.h: New file.
42276         * lib/xstriconveh.c: New file.
42277         * modules/xstriconveh: New file.
42278
42279 2009-08-30  Bruno Haible  <bruno@clisp.org>
42280
42281         Make it easier to use mem_cd_iconveh.
42282         * lib/striconveh.h (iconveh_t): New type.
42283         (iconveh_open, iconveh_close): New declarations.
42284         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42285         with a single 'const iconveh_t *' argument.
42286         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42287         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42288         with a single 'const iconveh_t *' argument.
42289         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42290         * tests/test-striconveh.c (main): Update.
42291         * NEWS: Mention the change.
42292
42293 2009-08-30  Bruno Haible  <bruno@clisp.org>
42294
42295         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42296         problem.
42297
42298 2009-08-30  Bruno Haible  <bruno@clisp.org>
42299
42300         Work around iconv_open problem on Solaris.
42301         * lib/iconv_open-solaris.gperf: New file.
42302         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42304         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42305         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42306         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42307         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42308
42309 2009-08-29  Jim Meyering  <meyering@redhat.com>
42310
42311         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42312         * top/maint.mk (cvs-check): Remove target; it was just an alias
42313         to the better-named vc-diff-check.
42314         (maintainer-distcheck): Remove rule.  It was used only from
42315         the (alpha/beta/major) target, and all of its commands but one
42316         were coreutils-specific.
42317         (vc-dist): Remove rule.
42318         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42319         Run vc-diff-check, not vc-dist.
42320         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42321
42322 2009-08-27  Bruno Haible  <bruno@clisp.org>
42323
42324         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42325         of 0.
42326
42327 2009-08-27  Bruno Haible  <bruno@clisp.org>
42328
42329         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42330         compilers.
42331         * doc/func.texi: Document the SunPRO C bug.
42332
42333 2009-08-27  Bruno Haible  <bruno@clisp.org>
42334
42335         Fix link error on Solaris.
42336         * tests/test-parse-duration.c (xstrdup): Remove function.
42337
42338 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42339
42340         ignore-value: handle pointer types, too
42341         * lib/ignore-value.h (__attribute__): Remove definition.
42342         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42343         of a more concise and more-often effective "(void) i" statement.
42344         (ignore_ptr): New function to suppress warnings from functions that
42345         return pointers, and to make it explicit that one function doesn't
42346         handle all cases.
42347
42348 2009-08-25  Bruno Haible  <bruno@clisp.org>
42349
42350         dup2: work around a Linux bug.
42351         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42352         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42353         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42354         Reported by Simon Josefsson.
42355
42356 2009-08-25  Jim Meyering  <meyering@redhat.com>
42357
42358         libguestfs uses gnulib
42359         * users.txt: Add libguestfs.
42360
42361 2009-08-24  Eric Blake  <ebb9@byu.net>
42362
42363         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42364         * lib/pipe2.c (includes): Add binary-io.h.
42365         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42366
42367 2009-08-24  Bruno Haible  <bruno@clisp.org>
42368
42369         Tolerate declared but missing accept4 syscall.
42370         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42371         available.
42372         * lib/sys_socket.in.h (accept4): If the function is already present,
42373         override it.
42374         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42375         * modules/accept4 (Makefile.am): Compile accept4.c always.
42376         Reported by Paolo Bonzini and Eric Blake.
42377
42378 2009-08-23  Bruno Haible  <bruno@clisp.org>
42379
42380         New module 'accept4'.
42381         * lib/sys_socket.in.h (accept4): New declaration.
42382         * lib/accept4.c: New file.
42383         * m4/accept4.m4: New file.
42384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42385         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42386         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42387         HAVE_ACCEPT4.
42388         * modules/accept4: New file.
42389         * doc/glibc-functions/accept4.texi: Mention the new module.
42390
42391 2009-08-24  Jim Meyering  <meyering@redhat.com>
42392
42393         progname: also set global program_invocation_name, when possible
42394         Before this change, a libtool-enabled program that calls glibc's
42395         error function would report the program name as
42396         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42397         * modules/progname (configure.ac): Check for a declaration of
42398         program_invocation_name.
42399         * lib/progname.c:  Include <errno.h>.
42400         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42401         Set program_invocation_name.
42402
42403 2009-08-23  Bruno Haible  <bruno@clisp.org>
42404
42405         * lib/dup3.c: Include <string.h>.
42406
42407 2009-08-23  Bruno Haible  <bruno@clisp.org>
42408
42409         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42410         * lib/pipe2.c (pipe2): Likewise.
42411         Suggested by Eric Blake.
42412
42413 2009-08-23  Bruno Haible  <bruno@clisp.org>
42414
42415         Tolerate declared but missing dup3 syscall.
42416         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42417         * lib/unistd.in.h (dup3): If the function is already present,
42418         override it.
42419         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42420         * modules/dup3 (Makefile.am): Compile dup3.c always.
42421         Reported by Paolo Bonzini.
42422
42423 2009-08-23  Bruno Haible  <bruno@clisp.org>
42424
42425         Tolerate declared but missing pipe2 syscall.
42426         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42427         available.
42428         * lib/unistd.in.h (pipe2): If the function is already present,
42429         override it.
42430         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42431         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42432         Reported by Paolo Bonzini.
42433
42434 2009-08-23  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/pipe2.c (pipe2): Move #ifs inside function.
42437
42438 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42439
42440         quotearg: document limitations of quote_these_too
42441         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42442         those limitations are created.
42443         * lib/quotearg.h (set_char_quoting): Document that digits and
42444         letters that are special after backslash are not permitted.
42445         (quotearg_char): Cross-reference set_char_quoting documentation.
42446
42447 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42448
42449         quotearg: implement custom_quoting_style
42450         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42451         right_quote fields.
42452         (set_custom_quoting): New public function.
42453         (quotearg_buffer_restyled): Add left_quote and right_quote
42454         arguments, handle them very much like locale quoting, and update
42455         all uses.
42456         (quotearg_n_custom): New public function.
42457         (quotearg_n_custom_mem): New public function.
42458         (quotearg_custom): New public function.
42459         (quotearg_custom_mem): New public function.
42460         * lib/quotearg.h: Prototype and document new public functions.
42461         (enum quoting_style): For escape_quoting_style and
42462         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42463         ignored even though they're otherwise like c_quoting_style.
42464         Add custom_quoting_style member and document with comparison to
42465         clocale_quoting_style.
42466         * tests/test-quotearg.c (custom_quotes): New array.
42467         (custom_results): New array.
42468         (main): Extend to test custom quoting.
42469
42470 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42471
42472         quotearg: fix right quote escaping when it's in quote_these_too
42473         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42474         quote, be sure to prepend only one backslash.
42475         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42476         (main): Test it.
42477
42478 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42479
42480         quotearg-tests: test escaping of embedded locale quotes
42481         * tests/test-quotearg.c (struct result_strings): Add member for
42482         new input.
42483         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42484         (inputs): Add new input.
42485         (results_g): Add expected results.
42486         (flag_results): Likewise.
42487         (locale_results): Likewise.
42488         (compare_strings): Check those.
42489
42490 2009-08-23  Bruno Haible  <bruno@clisp.org>
42491
42492         Tests for module 'dup3'.
42493         * modules/dup3-tests: New file.
42494         * tests/test-dup3.c: New file.
42495
42496         New module 'dup3'.
42497         * lib/unistd.in.h (dup3): New declaration.
42498         * lib/dup3.c: New file.
42499         * m4/dup3.m4: New file.
42500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42501         HAVE_DUP3.
42502         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42503         * modules/dup3: New file.
42504         * doc/glibc-functions/dup3.texi: Mention the new module.
42505
42506 2009-08-23  Bruno Haible  <bruno@clisp.org>
42507
42508         Tweak the dup2 test.
42509         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42510         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42511         the test file is still empty. Fix argument order of lseek.
42512
42513 2009-08-23  Bruno Haible  <bruno@clisp.org>
42514
42515         Avoid test link errors when the modules getopt-gnu, gettext are used.
42516         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42518
42519 2009-08-23  Bruno Haible  <bruno@clisp.org>
42520
42521         Fix getdtablesize() on mingw.
42522         * lib/getdtablesize.c (getdtablesize): Implement differently.
42523         * lib/unistd.in.h (getdtablesize): Improve comment.
42524
42525 2009-08-23  Bruno Haible  <bruno@clisp.org>
42526
42527         New module 'mkostemp'.
42528         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42529         * lib/stdlib.in.h (mksotemp): New declaration.
42530         * lib/mkostemp.c: New file, from glibc with modifications.
42531         * lib/tempname.h (GT_FILE): Remove outdated comment.
42532         (gen_tempname): Add flags argument.
42533         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42534         (__GT_FILE): Map to 1.
42535         (small_open, large_open): Remove macros.
42536         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42537         * lib/mkstemp.c (mkstemp): Update.
42538         * lib/mkdtemp.c (mkdtemp): Likewise.
42539         * m4/mkostemp.m4: New file.
42540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42541         HAVE_MKOSTEMP.
42542         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42543         HAVE_MKOSTEMP.
42544         * modules/mkostemp: New file, based on modules/mkstemp.
42545         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42546         * NEWS: Mention the change.
42547
42548 2009-08-23  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42551         Reported by Eric Blake.
42552
42553 2009-08-23  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42556         Reported by Eric Blake.
42557
42558 2009-08-23  Bruno Haible  <bruno@clisp.org>
42559
42560         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42561         * modules/pipe2 (Depends-on): Likewise.
42562
42563 2009-08-23  Eric Blake  <ebb9@byu.net>
42564
42565         fcntl-h: add O_TTY_INIT support
42566         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42567         * tests/test-fcntl-h.c (o): Test it.
42568         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42569
42570         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42571         * modules/fcntl: Move <fcntl.h> header replacement...
42572         * modules/fcntl-h: ...to new name, so as not to collide with
42573         like-named function.
42574         * tests/test-fcntl.c: Rename...
42575         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42576         * modules/fcntl-tests: Rename...
42577         * modules/fcntl-h-tests: ...to this.  Update test file name.
42578         * modules/chdir-long (Depends-on): Update clients.
42579         * modules/chdir-safer (Depends-on): Likewise.
42580         * modules/fcntl-safer (Depends-on): Likewise.
42581         * modules/fts (Depends-on): Likewise.
42582         * modules/mkancesdirs (Depends-on): Likewise.
42583         * modules/mkdir-p (Depends-on): Likewise.
42584         * modules/open (Depends-on): Likewise.
42585         * modules/savewd (Depends-on): Likewise.
42586         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42587         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42588
42589 2009-08-22  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/binary-io (License): Relicense under LGPL.
42592         * modules/pipe2 (License): Likewise.
42593
42594 2009-08-22  Bruno Haible  <bruno@clisp.org>
42595
42596         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42597         return value.
42598         * lib/pipe-filter-gi.c (filter_init): Likewise.
42599         Reported by Eric Blake.
42600
42601 2009-08-22  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42604         * modules/pipe (Depends-on): Add pipe2.
42605
42606 2009-08-22  Bruno Haible  <bruno@clisp.org>
42607
42608         Tests for module 'pipe2'.
42609         * modules/pipe2-tests: New file.
42610         * tests/test-pipe2.c: New file.
42611
42612         New module 'pipe2'.
42613         * lib/unistd.in.h (pipe2): New declaration.
42614         * lib/pipe2.c: New file.
42615         * m4/pipe2.m4: New file.
42616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42617         HAVE_PIPE2.
42618         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42619         * modules/pipe2: New file.
42620         * doc/glibc-functions/pipe2.texi: Mention the new module.
42621
42622 2009-08-22  Bruno Haible  <bruno@clisp.org>
42623
42624         Reference some new glibc functions.
42625         * doc/glibc-functions/accept4.texi: New file.
42626         * doc/glibc-functions/dup3.texi: New file.
42627         * doc/glibc-functions/mkostemp.texi: New file.
42628         * doc/glibc-functions/pipe2.texi: New file.
42629         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42630         (Glibc sys/socket.h): Refer to accept4.
42631         (Glibc unistd.h): Refer to dup3, pipe2.
42632         Reported by Eric Blake.
42633
42634 2009-08-22  Jim Meyering  <meyering@redhat.com>
42635             Bruno Haible  <bruno@clisp.org>
42636
42637         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42638         This makes it so packages using automake-1.11's silent-rules option
42639         can print e.g., a single "GEN    configmake.h" line, rather than
42640         the 30+ statements that perform the job.  If you want to see the
42641         actual commands, you can still run "make V=1".
42642         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42643         so that make output is abbreviated when those variables are defined
42644         appropriately.
42645         * modules/argz: Likewise.
42646         * modules/arpa_inet: Likewise.
42647         * modules/byteswap: Likewise.
42648         * modules/configmake: Likewise.
42649         * modules/dirent: Likewise.
42650         * modules/errno: Likewise.
42651         * modules/fcntl: Likewise.
42652         * modules/float: Likewise.
42653         * modules/fnmatch: Likewise.
42654         * modules/getopt-posix: Likewise.
42655         * modules/glob: Likewise.
42656         * modules/iconv_open: Likewise.
42657         * modules/inttypes: Likewise.
42658         * modules/localcharset: Likewise.
42659         * modules/locale: Likewise.
42660         * modules/math: Likewise.
42661         * modules/netdb: Likewise.
42662         * modules/netinet_in: Likewise.
42663         * modules/poll: Likewise.
42664         * modules/posix_spawnp-tests: Likewise.
42665         * modules/sched: Likewise.
42666         * modules/search: Likewise.
42667         * modules/selinux-h: Likewise.
42668         * modules/signal: Likewise.
42669         * modules/spawn: Likewise.
42670         * modules/stdarg: Likewise.
42671         * modules/stdbool: Likewise.
42672         * modules/stddef: Likewise.
42673         * modules/stdint: Likewise.
42674         * modules/stdio: Likewise.
42675         * modules/stdlib: Likewise.
42676         * modules/string: Likewise.
42677         * modules/strings: Likewise.
42678         * modules/sys_file: Likewise.
42679         * modules/sys_ioctl: Likewise.
42680         * modules/sys_select: Likewise.
42681         * modules/sys_socket: Likewise.
42682         * modules/sys_stat: Likewise.
42683         * modules/sys_time: Likewise.
42684         * modules/sys_times: Likewise.
42685         * modules/sys_utsname: Likewise.
42686         * modules/sys_wait: Likewise.
42687         * modules/sysexits: Likewise.
42688         * modules/time: Likewise.
42689         * modules/unistd: Likewise.
42690         * modules/wchar: Likewise.
42691         * modules/wctype: Likewise.
42692
42693 2009-08-22  Jim Meyering  <meyering@redhat.com>
42694
42695         announce-gen: detect write failure
42696         * build-aux/announce-gen: Add Coda at end.
42697         Remove equivalent-but-more-verbose block at top.
42698
42699 2009-08-19  Akim Demaille  <demaille@gostai.com>
42700
42701         bootstrap: --help to stdout.
42702         * bootstrap (usage): Don't send --help to stderr.
42703         Use a here doc instead of a long string.
42704
42705 2009-08-21  Eric Blake  <ebb9@byu.net>
42706
42707         test-popen-safer: split from test-popen
42708         * tests/test-popen.c (main): Move...
42709         * tests/test-popen.h: ...into new file.
42710         * tests/test-popen-safer2.c: New file.
42711         * modules/popen-tests (Files): Add test-popen.h.
42712         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42713         Suggested by Bruno Haible.
42714
42715         test-fcntl-safer: split from test-open
42716         * tests/test-open.c (main): Move...
42717         * tests/test-open.h: ...into new file.
42718         * tests/test-fcntl-safer.c: New file.
42719         * modules/open-tests (Files): Add test-open.h.
42720         * modules/fcntl-safer-tests: New file.
42721         Suggested by Bruno Haible.
42722
42723         test-fopen-safer: split from test-fopen
42724         * tests/test-fopen.c (main): Move...
42725         * tests/test-fopen.h: ...into new file.
42726         * tests/test-fopen-safer.c: New file.
42727         * modules/fopen-tests (Files): Add test-fopen.h.
42728         * modules/fopen-safer-tests: New file.
42729         Suggested by Bruno Haible.
42730
42731 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42732
42733         popen-safer: test O_CLOEXEC at run-time.
42734         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42735
42736 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42737
42738         fcntl: move more flags to the header
42739         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42740         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42741         * lib/fcntl.in.h: Do both things here.
42742
42743 2009-08-21  Jim Meyering  <meyering@redhat.com>
42744
42745         consistently remove $@-t before redirecting to it
42746         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42747         * modules/alloca-opt: Likewise.
42748         * modules/byteswap: Likewise.
42749         * modules/fnmatch: Likewise.
42750         * modules/getopt-posix: Likewise.
42751         * modules/glob: Likewise.
42752         * modules/poll: Likewise.
42753         * modules/posix_spawnp-tests: Likewise.
42754         * modules/sys_socket: Likewise.
42755         * modules/sysexits: Likewise.
42756
42757 2009-08-21  Eric Blake  <ebb9@byu.net>
42758
42759         popen: simplify access to original popen
42760         * lib/popen.c (rpl_popen): No need to worry about popen being a
42761         macro.
42762         Reported by Bruno Haible.
42763
42764 2009-08-20  Eric Blake  <ebb9@byu.net>
42765
42766         build: avoid some compiler warnings
42767         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42768         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42769         type.
42770         (new_exclude_segment, excluded_file_pattern_p)
42771         (excluded_file_name_p): Reduce scope.
42772         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42773         old-style declaration.
42774
42775 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42776
42777         * tests/test-exclude1.sh: Handle Windows EOL.
42778         * tests/test-exclude2.sh: Likewise.
42779         * tests/test-exclude3.sh: Likewise.
42780         * tests/test-exclude4.sh: Likewise.
42781         * tests/test-exclude5.sh: Likewise.
42782         * tests/test-exclude6.sh: Likewise.
42783         * tests/test-exclude7.sh: Likewise.
42784
42785 2009-08-19  Akim Demaille  <demaille@gostai.com>
42786
42787         bootstrap: find sha1sum when named gsha1sum.
42788         * bootstrap (find_tool): New.
42789         ($SHA1SUM): New.
42790         Use it.
42791
42792 2009-08-20  Jim Meyering  <meyering@redhat.com>
42793
42794         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42795         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42796         expression that converts "." in a file name to "\." in the resulting
42797         regexp.  Start with a dummy statement, so that prior shell variable
42798         definitions are expanded portably.  Reported by Simon Josefsson.
42799
42800 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42801
42802         Fix polling for writeability of a screen buffer.
42803         * lib/poll.c: Distinguish input and screen buffers for the
42804         Win32 implementation.
42805         * lib/select.c: Likewise.
42806
42807 2009-08-19  Eric Blake  <ebb9@byu.net>
42808
42809         popen-safer: prevent popen from clobbering std descriptors
42810         * modules/popen-safer: New file.
42811         * lib/popen-safer.c: Likewise.
42812         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42813         * lib/stdio--.h (popen): Provide override.
42814         * lib/stdio-safer.h (popen_safer): Provide declaration.
42815         * tests/test-popen.c (includes): Partially test this.
42816         * modules/popen-safer-tests: New file, for more tests.
42817         * tests/test-popen-safer.c: Likewise.
42818         * MODULES.html.sh (file stream based Input/Output): Mention it.
42819
42820         tests: test some of the *-safer modules
42821         * modules/fopen-safer (Depends-on): Add fopen.
42822         * modules/fcntl-safer (Depends-on): Add fcntl.
42823         * modules/stdlib-safer (Depends-on): Add stdlib.
42824         (configure.ac): Set indicator.
42825         * modules/unistd-safer (configure.ac): Likewise.
42826         * modules/tmpfile-safer (configure.ac): Likewise.
42827         (Depends-on): Add tmpfile.
42828         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42829         active.
42830         * tests/test-fopen.c (includes): Test safer versions when they are
42831         in use.
42832         * tests/test-open.c (includes): Likewise.
42833
42834         popen: fix cygwin 1.5 bug when stdin closed
42835         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42836         * modules/popen: New file.
42837         * modules/popen-tests: Likewise.
42838         * tests/test-popen.c: Likewise.
42839         * m4/popen.m4: Likewise.
42840         * lib/popen.c: Likewise.
42841         * lib/stdio.in.h (popen): New declaration.
42842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42843         * modules/stdio (Makefile.am): Likewise.
42844         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42845
42846 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42847
42848         maint.mk: give full control over update-copyright exclusions
42849         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42850         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42851         (update-copyright): Don't force inclusion of top-level
42852         ChangeLog.  Don't force exclusion of all COPYING files, but make
42853         them the default exclusion instead.
42854
42855 2009-08-16  Bruno Haible  <bruno@clisp.org>
42856
42857         Fix test failures on Solaris 10.
42858         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42859         tests when Solaris iconv() is used.
42860         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42861         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42862         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42863         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42864         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42865
42866 2009-08-16  Bruno Haible  <bruno@clisp.org>
42867
42868         Fix test failures on Solaris 10.
42869         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42870         'tr' program and pass it as first argument.
42871         * tests/test-pipe-filter-gi1.sh: Likewise.
42872         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42873         program as first argument.
42874         * tests/test-pipe-filter-gi1.c (main): Likewise.
42875
42876 2009-08-16  Eric Blake  <ebb9@byu.net>
42877
42878         fpurge: fix previous commits
42879         * modules/fpurge (Makefile.am): Make replacement conditional,
42880         partially reverting 2007-04-29 change; missed in previous
42881         attempt.
42882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42883         is missing.
42884
42885 2009-08-16  Bruno Haible  <bruno@clisp.org>
42886
42887         Clarify fpurge's effect on the file position.
42888         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42889         * tests/test-fpurge.c (main): Make a second pass for checking the file
42890         position.
42891
42892 2009-08-16  Bruno Haible  <bruno@clisp.org>
42893
42894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42895         declaration of fpurge is missing.
42896         * tests/test-fpurge.c (main): Check that the file has not more contents
42897         than expected. Close the file before removing it.
42898
42899 2009-08-15  Eric Blake  <ebb9@byu.net>
42900
42901         fpurge: don't wrap working cygwin implementation
42902         * lib/fpurge.c (fpurge): Fix comment typo.
42903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42904         1.7 to avoid replacement.
42905         * tests/test-fpurge.c (main): Enhance test.
42906
42907 2009-08-15  Eric Blake  <ebb9@byu.net>
42908         and Jim Meyering  <meyering@redhat.com>
42909
42910         test-update-copyright: skip if perl is insufficient
42911         * tests/test-update-copyright.sh: Failure to run maintainer tool
42912         should not cause testsuite failure on cygwin 1.5.
42913
42914 2009-08-14  Eric Blake  <ebb9@byu.net>
42915
42916         doc: mention more functions added in cygwin 1.7.0
42917         * doc/posix-headers/limits.texi (limits.h): Update for recent
42918         cygwin additions.
42919         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42920         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42921         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42922         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42923         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42924
42925 2009-08-14  Eric Blake  <ebb9@byu.net>
42926
42927         maint.mk: simplify update-copyright rule
42928         * top/maint.mk (update-copyright-local): Delete, and document how
42929         to do it in cfg.mk instead.
42930         (update-copyright-exclude-regexp): Delete, and document how to do
42931         it in .x-update-copyright instead.
42932         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42933         exclude ChangeLog.
42934
42935 2009-08-14  Bruno Haible  <bruno@clisp.org>
42936
42937         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42938
42939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42940
42941         maint.mk: support update-copyright-env
42942         * top/maint.mk (update-copyright-env): Define place-holder.
42943         (update-copyright): Expand $(update-copyright-env) before
42944         invoking update-copyright.
42945
42946 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42947
42948         update-copyright: implement forced reformatting
42949         * build-aux/update-copyright: Implement and document
42950         UPDATE_COPYRIGHT_FORCE.
42951         * tests/test-update-copyright.sh: Test it.
42952
42953 2009-08-14  Eric Blake  <ebb9@byu.net>
42954         and Bruno Haible  <bruno@clisp.org>
42955
42956         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42957         * tests/test-locale.c: Revert previous patch related to NULL.
42958         * tests/test-stdio.c: Likewise.
42959         * tests/test-stdlib.c: Likewise.
42960         * tests/test-string.c: Likewise.
42961         * tests/test-unistd.c: Likewise.
42962         * modules/time-tests (Depends-on): Add verify.
42963         * modules/wchar-tests (Depends-on): Likewise.
42964         * tests/test-time.c: Test for NULL compliance.
42965         * tests/test-wchar.c: Likewise.
42966         * modules/locale (Depends-on): Add stddef.
42967         * modules/stdio (Depends-on): Likewise.
42968         * modules/stdlib (Depends-on): Likewise.
42969         * modules/string (Depends-on): Likewise.
42970         * modules/time (Depends-on): Likewise.
42971         * modules/unistd (Depends-on): Likewise.
42972         * modules/wchar (Depends-on): Likewise.
42973         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42974         * lib/stdlib.in.h (includes): Likewise.
42975         * lib/string.in.h (includes): Likewise.
42976         * lib/time.in.h (includes): Likewise.
42977         * lib/unistd.in.h (includes): Likewise.
42978         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42979         replaced.
42980         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42981         * m4/stddef_h.m4: New file.
42982         * modules/stddef: Likewise.
42983         * lib/stddef.in.h: Likewise.
42984         * modules/stddef-tests: Likewise.
42985         * tests/test-stddef.c: Likewise.
42986         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42987         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42988         * doc/posix-headers/locale.texi (locale.h): Likewise.
42989         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42990         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42991         * doc/posix-headers/string.texi (string.h): Likewise.
42992         * doc/posix-headers/time.texi (time.h): Likewise.
42993         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42994         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42995
42996 2009-08-14  Eric Blake  <ebb9@byu.net>
42997
42998         doc: improve git diff of texinfo files
42999         * .gitattributes: Add rule for *.texi files, with hint on how to
43000         use it.
43001         Copied from m4, and based on a report by Bruno Haible.
43002
43003 2009-08-14  Bruno Haible  <bruno@clisp.org>
43004
43005         Disable multithread support by default on Cygwin 1.5.x for real.
43006         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43007
43008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43009
43010         update-copyright: much ado about intervals
43011         * build-aux/update-copyright: Implement and document
43012         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43013         of copyright year intervals.
43014         Also, document UPDATE_COPYRIGHT_YEAR.
43015         * tests/test-update-copyright.sh: Test it.
43016
43017         update-copyright: convert 2-digit to 4-digit years
43018         * build-aux/update-copyright: Implement and document.
43019         * tests/test-update-copyright.sh: Update.
43020
43021 2009-08-14  Jim Meyering  <meyering@redhat.com>
43022
43023         test-exclude: avoid coreutils "make check" failure
43024         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43025         just as in test-argmatch.c.
43026
43027 2009-08-13  Eric Blake  <ebb9@byu.net>
43028
43029         test-dup2: fix bad assumption
43030         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43031         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43032
43033         test-version-etc: fix CRLF portability issue
43034         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43035         recognize \r.
43036         * tests/test-argp-version-etc-1.sh: Likewise.
43037
43038         getopt: update client modules
43039         * modules/argp (Depends-on): Use getopt-gnu.
43040         * modules/git-merge-changelog (Depends-on): Likewise.
43041         * modules/long-options (Depends-on): Likewise.
43042         * modules/xstrtol (Depends-on): Likewise.
43043
43044 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43045
43046         * tests/test-version-etc.sh: Don't fail on different
43047         project/version.  Don't fail on CRLF differences.  Rewrite to use
43048         multiple -e instead of multiple sed forks, suggested by Eric Blake
43049         <ebb9@byu.net>.
43050         * tests/test-argp-version-etc-1.sh: Likewise.
43051
43052 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43053
43054         * tests/test-version-etc.sh: Don't fail on different
43055         project/version.
43056
43057 2009-08-12  Bruno Haible  <bruno@clisp.org>
43058
43059         Tests for modules 'getopt-posix', 'getopt-gnu'.
43060         * modules/getopt-posix-tests: New file.
43061         * tests/test-getopt.c: New file.
43062         * tests/test-getopt.h: New file.
43063         * tests/test-getopt_long.h: New file.
43064
43065         New modules 'getopt-posix', 'getopt-gnu'.
43066         * modules/getopt-gnu: New file, renamed from modules/getopt.
43067         * modules/getopt-posix: New file.
43068         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43070         (gl_GETOPT): Remove macro.
43071         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43072         Disable the test against BSD systems that declare optreset. Test
43073         against mingw bug. Test against lack of support of optional arguments
43074         on many platforms.
43075         * doc/glibc-headers/getopt.texi: Update module name and list of
43076         relevant platforms.
43077         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43078         'getopt-gnu' and more portability problems.
43079         * NEWS: Mention the changes.
43080
43081 2009-08-12  Bruno Haible  <bruno@clisp.org>
43082
43083         Ensure that optarg etc. get declared by <unistd.h>.
43084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43085         AC_USE_SYSTEM_EXTENSIONS.
43086         * modules/getopt (Depends-on): Add 'extensions'.
43087
43088 2009-08-12  Bruno Haible  <bruno@clisp.org>
43089
43090         Avoid test link errors.
43091         * modules/pipe-filter-ii-tests (Makefile.am): Define
43092         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43093         * modules/pipe-filter-gi-tests (Makefile.am): Define
43094         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43096
43097 2009-08-12  Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43100         gl_GETOPT_SUBSTITUTE before.
43101         (gl_GETOPT): Use it.
43102         * m4/argp.m4 (gl_ARGP): Update.
43103         Reported by Sergey Poznyakoff.
43104
43105         * m4/getopt.m4: Reorder macros.
43106         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43107         (gl_GETOPT_SUBSTITUTE): Remove macro.
43108
43109 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43110
43111         Minor improvement in gitlog-to-changelog
43112
43113         * build-aux/gitlog-to-changelog: New option `--format' makes
43114         output format string configurable.
43115
43116 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43117
43118         Optimize exclude: use hash tables for non-wildcard patterns.
43119
43120         * lib/exclude.c: Include hash.h and mbuiter.h
43121         (struct exclude_pattern, exclude_segment): New data types.
43122         (struct exclude): Rewrite.
43123         (fnmatch_pattern_has_wildcards): New function.
43124         (new_exclude_segment, free_exclude_segment): New functions.
43125         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43126         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43127         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43128         * modules/exclude: Depend on hash and mbuiter.
43129
43130         * modules/exclude-tests: New file.
43131         * tests/test-exclude.c: New file.
43132         * tests/test-exclude1.sh: New file.
43133         * tests/test-exclude2.sh: New file.
43134         * tests/test-exclude3.sh: New file.
43135         * tests/test-exclude4.sh: New file.
43136         * tests/test-exclude5.sh: New file.
43137         * tests/test-exclude6.sh: New file.
43138         * tests/test-exclude7.sh: New file.
43139
43140 2009-08-12  Bruno Haible  <bruno@clisp.org>
43141
43142         Ensure that getopt() gets declared by <unistd.h>.
43143         * lib/unistd.in.h: Conditionally include getopt.h.
43144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43145         Set GNULIB_UNISTD_H_GETOPT.
43146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43147         GNULIB_UNISTD_H_GETOPT.
43148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43149
43150 2009-08-12  Bruno Haible  <bruno@clisp.org>
43151
43152         Clarify logic.
43153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43154         gl_replace_getopt instead of GETOPT_H.
43155
43156 2009-08-12  Bruno Haible  <bruno@clisp.org>
43157
43158         * m4/getopt.m4: Add comments.
43159
43160 2009-08-12  Bruno Haible  <bruno@clisp.org>
43161
43162         Disable multithread support by default on Cygwin 1.5.x.
43163         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43164         set gl_use_threads=no if not specified otherwise.
43165
43166 2009-08-11  Bruno Haible  <bruno@clisp.org>
43167
43168         Avoid compilation error on NetBSD 5.0.
43169         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43170         * tests/test-stdio.c: Likewise.
43171         * tests/test-stdlib.c: Likewise.
43172         * tests/test-string.c: Likewise.
43173         * tests/test-unistd.c: Likewise.
43174         Reported by Greg Troxel <gdt@ir.bbn.com>
43175         at <https://savannah.gnu.org/support/?106973>.
43176
43177 2009-08-11  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/dup2-tests (Depends-on): Remove close.
43180
43181         Undo 2009-07-19 commit.
43182         * modules/acl-tests (Depends-on): Remove close.
43183         * modules/binary-io-tests (Depends-on): Likewise.
43184         * modules/closein-tests (Depends-on): Likewise.
43185         * modules/flock-tests (Depends-on): Likewise.
43186         * modules/fsync-tests (Depends-on): Likewise.
43187         * modules/lseek-tests (Depends-on): Likewise.
43188         * modules/pipe-tests (Depends-on): Likewise.
43189         * modules/posix_spawn-tests (Depends-on): Likewise.
43190         * modules/posix_spawnp-tests (Depends-on): Likewise.
43191         * modules/stat-time-tests (Depends-on): Likewise.
43192         * modules/yesno-tests (Depends-on): Likewise.
43193
43194 2009-08-10  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43197
43198 2009-08-10  Bruno Haible  <bruno@clisp.org>
43199
43200         Fix a gcc warning.
43201         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43202
43203 2009-08-10  Bruno Haible  <bruno@clisp.org>
43204
43205         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43206         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43207         not only the first time.
43208         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43209         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43210         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43211         is 1, not only the the first time.
43212
43213 2009-08-10  Bruno Haible  <bruno@clisp.org>
43214
43215         Make it possible to use module 'gethostname' without module 'close'.
43216         * lib/unistd.in.h (close): Evoke a link error only if
43217         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43220         * modules/unistd (Makefile.am): Substitute
43221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43222         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43223         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43226         * modules/sys_ioctl (Makefile.am): Substitute
43227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43228         * modules/socket (configure.ac): On native Windows, set
43229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43230         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43231         Reported by Sam Steingold <sds@gnu.org>.
43232
43233 2009-08-10  Bruno Haible  <bruno@clisp.org>
43234
43235         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43236         * modules/ioctl (configure.ac): Likewise.
43237
43238 2009-08-10  Bruno Haible  <bruno@clisp.org>
43239
43240         Avoid collision between gnulib wrapper and libintl wrapper.
43241         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43242         already defined in intl/printf.c.
43243         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43244         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43245
43246 2009-08-09  Bruno Haible  <bruno@clisp.org>
43247
43248         Make <sys/select.h> really self-contained, also on Solaris 10.
43249         * lib/sys_select.in.h: Include <string.h>.
43250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43251         Solaris 10 problem.
43252         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43253         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43254         Reported by Jim Meyering.
43255
43256 2009-08-09  Bruno Haible  <bruno@clisp.org>
43257
43258         Avoid warnings from 'aclocal' that are due to a use of macro name
43259         AM_XGETTEXT_OPTION that is not defined in automake.
43260         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43261         automake.
43262         * modules/error (configure.ac): Likewise.
43263         * modules/propername (configure.ac): Likewise.
43264         * modules/vasprintf (configure.ac): Likewise.
43265         * modules/verror (configure.ac): Likewise.
43266         * modules/xprintf (configure.ac): Likewise.
43267         * modules/xvasprintf (configure.ac): Likewise.
43268
43269 2009-08-08  Bruno Haible  <bruno@clisp.org>
43270
43271         Avoid compilation error in C++ mode.
43272         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43273         Reported by Sam Steingold <sds@gnu.org>.
43274
43275 2009-08-08  Bruno Haible  <bruno@clisp.org>
43276
43277         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43278         for the various Unix platforms.
43279         * doc/posix-headers/limits.texi: Update platforms list regarding
43280         HOST_NAME_MAX.
43281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43282
43283 2009-08-07  Jim Meyering  <meyering@redhat.com>
43284
43285         selinux-at: fix typo in a comment
43286         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43287         Spotted by Paolo Bonzini.
43288
43289         selinux-at: remove redundant m4 code, add documentation
43290         * modules/selinux-at (configure.ac): Remove redundant code.
43291         LIB_SELINUX is already set via the dependent module, selinux-h.
43292         (Include): Add quotes around selinux-at.h.
43293         * lib/selinux-at.h: Add documentation.
43294         Reported by Bruno Haible in
43295         http://marc.info/?l=gnulib-bug&m=124958988300749
43296
43297 2009-08-07  Bruno Haible  <bruno@clisp.org>
43298
43299         Avoid link error on MacOS X 10.3 and 10.4.
43300         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43301         on non-ELF systems.
43302         * lib/argp-pv.c (argp_program_version): Likewise.
43303         Reported by Simon Josefsson.
43304
43305 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43306
43307         * tests/test-version-etc.sh: Use $EXEEXT.
43308
43309 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43310
43311         update-copyright: update documentation to point to maint.mk
43312         * build-aux/update-copyright: Here.
43313
43314 2009-08-06  Jim Meyering  <meyering@redhat.com>
43315
43316         maint.mk: support update-copyright-local
43317         * top/maint.mk (update-copyright-local): Define place-holder.
43318         (update-copyright): Depend on $(update-copyright-local).
43319
43320 2009-08-06  Jim Meyering  <meyering@redhat.com>
43321
43322         selinux-at: new module
43323         Initially written for coreutils, this module will soon be
43324         used by findutils, too.
43325         * MODULES.html.sh [Misc]: Add selinux-at.
43326         * lib/selinux-at.h: New file, from coreutils.
43327         * lib/selinux-at.c: Likewise.
43328         * modules/selinux-at: Likewise.
43329         (License): Change from LGPL to GPL, since it depends
43330         on the GPL'd openat module.
43331
43332         doc: update README
43333         * README: Remove references to cogito.
43334         Remove cvs-repo-updating instructions from 2007.
43335         Don't imply that CVS is better if you have limited disk space.
43336
43337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43338
43339         update-copyright: support C-style comments
43340         * build-aux/update-copyright: Implement and document.
43341         * tests/test-update-copyright.sh: Test.
43342
43343 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43344
43345         update-copyright: support omitted "(C)"
43346         * build-aux/update-copyright: Implement and document.  Also,
43347         allow variable whitespace before "(C)".
43348         * tests/test-update-copyright.sh: Test.
43349
43350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43351
43352         update-copyright: don't trip on non-FSF copyright statements
43353         * build-aux/update-copyright: Fix so that the first correctly
43354         formatted FSF copyright statement is recognized no matter what
43355         appears before it.  Update documentation.
43356         * tests/test-update-copyright.sh: Test that.
43357
43358 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43359
43360         update-copyright: clean up code a little
43361         * build-aux/update-copyright: Append "_re" to the name of any
43362         variable holding a regular expression.
43363         Replace "old" and "new" with "stmt" in variable names.
43364         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43365         handled correctly.
43366         Format code more consistently.
43367
43368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43369
43370         update-copyright-tests: improve portability
43371         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43372         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43373
43374 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43375
43376         update-copyright: support @copyright{} and &copy;
43377         * build-aux/update-copyright: Implement and document.
43378         * tests/test-update-copyright.sh: Test.
43379
43380 2009-08-04  Jim Meyering  <meyering@redhat.com>
43381
43382         update-copyright-tests: correctly test EOL=\r\n handling
43383         * tests/test-update-copyright.sh: Put \r at the end of some lines
43384         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43385
43386         maint.mk: make update-copyright exclusion list more configurable
43387         * top/maint.mk (update-copyright): Default to excluding COPYING,
43388         but allow an override, in case someone does want to update that file.
43389
43390         maint.mk: don't update copyright date in COPYING
43391         * top/maint.mk (update-copyright): Exclude COPYING.
43392
43393         maint.mk: add a copyright-updating rule
43394         * top/maint.mk (update-copyright): New rule.
43395         Derived from coreutils/Makefile.am.
43396
43397         update-copyright: rename some variables
43398         * build-aux/update-copyright: Rename a few variables for clarity.
43399         Tweak syntax.  List Joel E. Denny as coauthor.
43400
43401 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43402
43403         update-copyright: fix bug for 2-digit last year and add tests
43404         * build-aux/update-copyright: Fix bug.
43405         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43406         specified.
43407         * modules/update-copyright-tests: New
43408         * tests/test-update-copyright.sh: New.
43409
43410 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43411
43412         update-copyright: handle leading tabs in line prefix
43413         * build-aux/update-copyright: Count leading tabs as 8 spaces
43414         when computing margin.  This helps with the formatting of
43415         ChangeLogs, for example.
43416         Fix documentation a little.
43417
43418 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43419
43420         update-copyright: support EOL=\r\n
43421         * build-aux/update-copyright: Implement that.
43422
43423 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43424
43425         update-copyright: automatically format copyright statements
43426         * build-aux/update-copyright: Implement that.
43427         Also, be a little more predictable and safer by always failing
43428         when the full copyright format is not perfectly recognized as an
43429         unbroken whole.  Discussed at
43430         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43431         Rewrite documentation.
43432
43433 2009-08-03  Bruno Haible  <bruno@clisp.org>
43434
43435         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43436
43437 2009-08-02  Bruno Haible  <bruno@clisp.org>
43438
43439         Tests for module 'uname'.
43440         * modules/uname-tests: New file.
43441         * tests/test-uname.c: New file.
43442
43443         New module 'uname'.
43444         * lib/uname.c: New file.
43445         * m4/uname.m4: New file.
43446         * modules/uname: New file.
43447         * doc/posix-functions/uname.texi: Mention the new module.
43448
43449 2009-08-02  Bruno Haible  <bruno@clisp.org>
43450
43451         Tests for module 'sys_utsname'.
43452         * modules/sys_utsname-tests: New file.
43453         * tests/test-sys_utsname.c: New file.
43454
43455         New module 'sys_utsname'.
43456         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43457         * m4/sys_utsname_h.m4: New file.
43458         * modules/sys_utsname: New file.
43459         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43460
43461 2009-08-02  Bruno Haible  <bruno@clisp.org>
43462
43463         Implicitly initialize the sockets library.
43464         * lib/gethostname.c: Include sockets.h.
43465         (rpl_gethostname): Invoke gl_sockets_startup.
43466         * lib/socket.c: Include sockets.h.
43467         (rpl_socket): Invoke gl_sockets_startup.
43468         * modules/gethostname (Depends-on): Add sockets.
43469         * modules/socket (Depends-on): Likewise.
43470         * tests/test-poll.c: Don't include sockets.h.
43471         (main): Don't invoke gl_sockets_startup.
43472         * tests/test-select.c: Don't include sockets.h.
43473         (main): Don't invoke gl_sockets_startup.
43474
43475 2009-08-02  Bruno Haible  <bruno@clisp.org>
43476
43477         Allow multiple calls to gl_sockets_startup.
43478         * lib/sockets.c (initialized_sockets_version): New variable.
43479         (gl_sockets_startup): Do nothing if already called for this or a higher
43480         version.
43481         (gl_sockets_cleanup): Reset initialized_sockets_version.
43482
43483 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43484
43485         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43486         different project/version.
43487
43488 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43489             Bruno Haible  <bruno@clisp.org>
43490
43491         Tests for module 'pipe-filter-gi'.
43492         * modules/pipe-filter-gi-tests: New file.
43493         * tests/test-pipe-filter-gi1.sh: New file.
43494         * tests/test-pipe-filter-gi1.c: New file.
43495         * tests/test-pipe-filter-gi2.sh: New file.
43496         * tests/test-pipe-filter-gi2-main.c: New file.
43497         * tests/test-pipe-filter-gi2-child.c: New file.
43498
43499         New module 'pipe-filter-gi'.
43500         * lib/pipe-filter-gi.c: New file.
43501         * modules/pipe-filter-gi: New file.
43502
43503 2009-08-02  Bruno Haible  <bruno@clisp.org>
43504             Paolo Bonzini  <bonzini@gnu.org>
43505
43506         Tests for module 'pipe-filter-ii'.
43507         * modules/pipe-filter-ii-tests: New file.
43508         * tests/test-pipe-filter-ii1.sh: New file.
43509         * tests/test-pipe-filter-ii1.c: New file.
43510         * tests/test-pipe-filter-ii2.sh: New file.
43511         * tests/test-pipe-filter-ii2-main.c: New file.
43512         * tests/test-pipe-filter-ii2-child.c: New file.
43513
43514         New module 'pipe-filter-ii'.
43515         * lib/pipe-filter.h: New file.
43516         * lib/pipe-filter-ii.c: New file.
43517         * lib/pipe-filter-aux.h: New file.
43518         * modules/pipe-filter-ii: New file.
43519
43520 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43521
43522         * lib/gc-libgcrypt.c: Change copyright to FSF.
43523         * lib/gc-gnulib.c: Likewise.
43524
43525 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43526
43527         * lib/gethostname.c: Include limits.h.
43528
43529 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43530             Bruno Haible  <bruno@clisp.org>
43531
43532         Ensure HOST_NAME_MAX as part of the gethostname module.
43533         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43534         define also HOST_NAME_MAX.
43535         * tests/test-gethostname.c: Include <limits.h>.
43536         (main): Check also HOST_NAME_MAX.
43537         * doc/posix-headers/limits.texi: Document the mingw problem.
43538
43539 2009-08-02  Bruno Haible  <bruno@clisp.org>
43540
43541         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43542         Add comments.
43543
43544 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43545
43546         * lib/gethostname.c: Add Windows wrapper.
43547         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43548         * modules/gethostname: Depend on sys_socket & errno, for also
43549         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43550         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43551
43552 2009-07-31  Jim Meyering  <meyering@redhat.com>
43553
43554         getloadavg: fix symbol name in comment
43555         * lib/getloadavg.c: Correct a typo I introduced when adding
43556         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43557         Matt Kraai spotted the problem.
43558
43559 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43560
43561         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43562         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43563         code also if ! defined N_NAME_POINTER.
43564         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43565         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43566         but the n_name member is a 12-byte array.
43567
43568 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43569
43570         update-copyright: generalize comment handling
43571         * build-aux/update-copyright: Handle copyright statements
43572         within more comment styles.
43573         Document usage.
43574         Report any file with an external copyright holder or parse failure.
43575
43576 2009-07-29  Jim Meyering  <meyering@redhat.com>
43577
43578         mktime: correct setting of REPLACE_MKTIME
43579         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43580
43581         update-copyright: new module
43582         * modules/update-copyright: New file.
43583         * build-aux/update-copyright: New file.
43584         * MODULES.html.sh (maint+release support): Add update-copyright.
43585
43586 2009-07-27  Bruno Haible  <bruno@clisp.org>
43587
43588         Fix compilation error when <ctime> is used and mktime is replaced.
43589         * lib/time.in.h (mktime): New declaration.
43590         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43591         REPLACE_MKTIME instead of defining mktime in config.h.
43592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43593         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43594         Reported by Ross McFarland <rwmcfa1@neces.com>.
43595
43596 2009-07-27  Bruno Haible  <bruno@clisp.org>
43597
43598         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43599         Reported by Matt Kraai <mkraai@beckman.com>.
43600
43601 2009-07-25  Jim Meyering  <meyering@redhat.com>
43602
43603         maint.mk: avoid warnings about missing files
43604         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43605         diagnostic when .prev-version does not exist.
43606         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43607         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43608         nonexistent cfg.mk.
43609         Suggestions from Simon Josefsson.
43610
43611 2009-07-25  Bruno Haible  <bruno@clisp.org>
43612
43613         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43614         defined as macros. Needed on QNX 6.4.1.
43615         Reported by Matt Kraai <mkraai@beckman.com>.
43616
43617 2009-07-23  Jim Meyering  <meyering@redhat.com>
43618
43619         maint.mk: invoke "make dist" with a working value of XZ_OPT
43620         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43621
43622 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43623
43624         Make fseeko.c compile on QNX.
43625         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43626
43627 2009-07-22  Peter Simons  <simons@cryp.to>
43628
43629         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43630         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43631         * lib/md4.h: Likewise.
43632         * lib/md5.h: Likewise.
43633         * lib/sha1.h: Likewise.
43634         * lib/sha256.h: Likewise.
43635         * lib/sha512.h: Likewise.
43636
43637         tests-sha1: don't assign literal string to 'char *' variable
43638         * tests/test-sha1.c (main): Declare locals with "const" to match
43639         attributes of the right hand side.
43640
43641 2009-07-21  Eric Blake  <ebb9@byu.net>
43642
43643         dup2: fix more mingw problems
43644         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43645         fd to itself.
43646         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43647         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43648         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43649         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43650         care of mingw bugs.
43651
43652 2009-07-21  Jim Meyering  <meyering@redhat.com>
43653
43654         vc-list-files: avoid failure when /bin/sh is dash
43655         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43656         On some Debian based systems, /bin/sh is a symlink to dash, and running
43657         this command would omit the "/" following each 'tests' prefix:
43658           dash -x build-aux/vc-list-files -C . tests
43659         That is because bash and dash work differently:
43660           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43661           bash ok
43662           dash odd
43663
43664 2009-07-21  Eric Blake  <ebb9@byu.net>
43665
43666         dup2-tests: test previous patch
43667         * modules/dup2-tests: New file.
43668         * tests/test-dup2.c: Likewise.
43669         * tests/test-open.c (main): Avoid unspecified behavior.
43670         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43671         test.
43672
43673         dup2: work around mingw and cygwin 1.5 bug
43674         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43676         * modules/unistd (Makefile.am): Substitute it.
43677         * lib/unistd.in.h (dup2): Declare the replacement.
43678         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43679         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43680         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43681         * modules/execute (Depends-on): Add dup2.
43682         * modules/fseterr (Depends-on): Likewise.
43683         * modules/pipe (Depends-on): Likewise.
43684         * modules/posix_spawn-internal (Depends-on): Likewise.
43685
43686 2009-07-21  Bruno Haible  <bruno@clisp.org>
43687
43688         * modules/.gitattributes: New file.
43689
43690 2009-07-20  Bruno Haible  <bruno@clisp.org>
43691
43692         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43693         (main): Use it.
43694
43695 2009-07-20  Eric Blake  <ebb9@byu.net>
43696
43697         test-pipe: make a bit more robust.
43698         * tests/test-pipe.c (myerr): Allow error messages regardless of
43699         what we do to stderr.
43700         (test_pipe): Rearrange to avoid deadlock.
43701         (child_main): Try a larger read, to ensure we avoided deadlock.
43702         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43703         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43704         if misused.
43705
43706 2009-07-19  Jim Meyering  <meyering@redhat.com>
43707
43708         fts: avoid false-positive cycle-detection
43709         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43710         for each new command line argument.
43711
43712 2009-07-19  Bruno Haible  <bruno@clisp.org>
43713
43714         Fix build error on mingw with the modules sys_select and unistd.
43715         * modules/acl-tests (Depends-on): Add close.
43716         * modules/binary-io-tests (Depends-on): Likewise.
43717         * modules/closein-tests (Depends-on): Likewise.
43718         * modules/flock-tests (Depends-on): Likewise.
43719         * modules/fsync-tests (Depends-on): Likewise.
43720         * modules/lseek-tests (Depends-on): Likewise.
43721         * modules/pipe-tests (Depends-on): Likewise.
43722         * modules/posix_spawn-tests (Depends-on): Likewise.
43723         * modules/posix_spawnp-tests (Depends-on): Likewise.
43724         * modules/stat-time-tests (Depends-on): Likewise.
43725         * modules/yesno-tests (Depends-on): Likewise.
43726
43727 2009-07-19  Bruno Haible  <bruno@clisp.org>
43728
43729         Unify conditionals.
43730         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43731         macros, not at the compiler macros.
43732         * lib/pipe.c: Likewise.
43733         * lib/execute.c: Likewise.
43734         * lib/spawni.c: Likewise.
43735
43736 2009-07-19  Bruno Haible  <bruno@clisp.org>
43737
43738         Fix handling of closed stdin/stdout/stderr on mingw.
43739         * lib/w32spawn.h: Include unistd.h.
43740         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43741         file descriptor with O_NOINHERIT flag.
43742         (fd_safer_noinherit): New function, based on fd-safer.c.
43743         (dup_safer_noinherit): New function, based on dup-safer.c.
43744         (undup_safer_noinherit): New function.
43745         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43746         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43747         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43748         instead of fd_safer.
43749         * tests/test-pipe.c: Include <windows.h>.
43750         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43751         result.
43752
43753         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43754         from main.
43755         (test_pipe): Pass an extra argument for disambiguation.
43756         (main): Invoke parent_main or child_main.
43757
43758         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43759         consistently.
43760
43761 2009-07-18  Eric Blake  <ebb9@byu.net>
43762
43763         test-pipe: fix mingw build
43764         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43765
43766 2009-07-18  Bruno Haible  <bruno@clisp.org>
43767
43768         * modules/pipe-tests (Makefile.am): Fix typo.
43769
43770 2009-07-18  Eric Blake  <ebb9@byu.net>
43771
43772         error: fix mingw build
43773         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43774         Reported by Bruno Haible.
43775
43776         error: avoid undefined use of stdout
43777         * lib/error.c (error, error_at_line): Check that fd 1 is open
43778         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43779         is handling faults and the close_stdout module wants to report the
43780         detection of closed stdout as an error.
43781
43782 2009-07-17  Eric Blake  <ebb9@byu.net>
43783
43784         pipe: be robust in face of closed fds
43785         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43786         should cause child to misbehave.
43787         * modules/pipe-tests: New module.
43788         * tests/test-pipe.c: New file.
43789         * tests/test-pipe.sh: New file.
43790         Reported by Akim Demaille.
43791
43792 2009-07-14  Bruno Haible  <bruno@clisp.org>
43793
43794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43795         Reported by anonymous kc.
43796
43797 2009-07-07  Jim Meyering  <meyering@redhat.com>
43798
43799         maint.mk: don't look for translatable strings in *.m4 or *.mk
43800         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43801         when searching for translatable strings.
43802
43803 2009-07-05  Jim Meyering  <meyering@redhat.com>
43804
43805         remove superfluous parentheses in STREQ definition
43806         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43807         * lib/getugroups.c (STREQ): Likewise.
43808         * lib/fnmatch.c (STREQ): Likewise.
43809         Spotted by Bruno Haible.
43810
43811 2009-07-04  Jim Meyering  <meyering@redhat.com>
43812
43813         argv-iter: new module
43814         * MODULES.html.sh: Add argv-iter.
43815         * lib/argv-iter.c, lib/argv-iter.h: New files.
43816         * modules/argv-iter: New file.
43817         * modules/argv-iter-tests: New file.
43818         * tests/test-argv-iter.c: Test it.
43819
43820 2009-07-04  Bruno Haible  <bruno@clisp.org>
43821
43822         Fix assertion.
43823         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43824         contains more exact copies of a given entry than file2, leave the extra
43825         copies unpaired rather than aborting.
43826         Reported by Eric Blake.
43827
43828 2009-07-02  Bruno Haible  <bruno@clisp.org>
43829
43830         Speedup git-merge-changelog for git cherry-pick.
43831         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43832         (entries_mapping_get): New function, extracted from compute_mapping.
43833         (entries_mapping_reverse_get): New function.
43834         (compute_mapping): Add a 'full' argument. Return the result in a
43835         'struct entries_mapping'.
43836         (main): Update. Access the mappings through entries_mapping_get.
43837         Reported by Eric Blake.
43838
43839 2009-07-02  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43842         best_i.
43843
43844 2009-07-02  Bruno Haible  <bruno@clisp.org>
43845
43846         Speed up approximate search for matching ChangeLog entries.
43847         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43848         argument. Call fstrcmp_bounded instead of fstrcmp.
43849         (compute_mapping, try_split_merged_entry, main): Update callers.
43850
43851 2009-07-02  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43854
43855 2009-06-30  Bruno Haible  <bruno@clisp.org>
43856
43857         Reduce the number of uc_is_cased calls.
43858         * lib/unicase.h (casing_suffix_context_t): Add
43859         'first_char_except_ignorable' field.
43860         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43861         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43862         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43863         Update initializer.
43864         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43865         case-ignorable characters.
43866         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43867         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43868         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43869         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43870         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43871
43872 2009-06-30  Bruno Haible  <bruno@clisp.org>
43873
43874         Tests for module 'unicase/ignorable'.
43875         * modules/unicase/ignorable-tests: New file.
43876         * tests/unicase/test-ignorable.c: New file, generated by
43877         gen-uni-tables.
43878
43879         Tests for module 'unicase/cased'.
43880         * modules/unicase/cased-tests: New file.
43881         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43882         * tests/unicase/test-predicate-part1.h: New file, derived from
43883         tests/unictype/test-predicate-part1.h.
43884         * tests/unicase/test-predicate-part2.h: New file, same as
43885         tests/unictype/test-predicate-part2.h.
43886
43887         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43888         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43889         (output_casing_properties): New function.
43890         (main): Call it.
43891         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43892         * lib/unicase/cased.c: Include unictype/bitmap.h.
43893         (uc_is_cased): Define through a bitmap lookup.
43894         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43895         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43896         (uc_is_case_ignorable): Define through a bitmap lookup.
43897         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43898         lib/unictype/bitmap.h.
43899         (Depends-on): Add inline. Clean up.
43900         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43901         lib/unictype/bitmap.h.
43902         (Depends-on): Add inline. Clean up.
43903         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43904         recognition.
43905         * tests/unicase/test-u16-tolower.c (main): Likewise.
43906         * tests/unicase/test-u32-tolower.c (main): Likewise.
43907
43908 2009-06-30  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43911         * lib/unicase/u16-casemap.c: Likewise.
43912         * lib/unicase/u32-casemap.c: Likewise.
43913
43914 2009-06-29  Bruno Haible  <bruno@clisp.org>
43915
43916         Define u32_casefold as a wrapper around u32_ct_casefold.
43917         * lib/unicase/u32-casefold.c: Update.
43918         * modules/unicase/u32-casefold (Depends-on): Add
43919         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43920         unicase/empty-suffix-context. Clean up.
43921
43922         Define u16_casefold as a wrapper around u16_ct_casefold.
43923         * lib/unicase/u16-casefold.c: Update.
43924         * modules/unicase/u16-casefold (Depends-on): Add
43925         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43926         unicase/empty-suffix-context. Clean up.
43927
43928         Define u8_casefold as a wrapper around u8_ct_casefold.
43929         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43930         * lib/unicase/u8-casefold.c: Update.
43931         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43932         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43933
43934         Define u32_totitle as a wrapper around u32_ct_totitle.
43935         * lib/unicase/u32-totitle.c: Update.
43936         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43937         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43938
43939         Define u16_totitle as a wrapper around u16_ct_totitle.
43940         * lib/unicase/u16-totitle.c: Update.
43941         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43942         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43943
43944         Define u8_totitle as a wrapper around u8_ct_totitle.
43945         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43946         functions.
43947         (FUNC): Delegate to U_CT_TOTITLE.
43948         * lib/unicase/u8-totitle.c: Update.
43949         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43951
43952         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43953         invocation.
43954         * modules/unicase/u32-tolower (Depends-on): Add
43955         unicase/empty-prefix-context, unicase/empty-suffix-context.
43956
43957         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43958         invocation.
43959         * modules/unicase/u16-tolower (Depends-on): Add
43960         unicase/empty-prefix-context, unicase/empty-suffix-context.
43961
43962         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43963         * modules/unicase/u8-tolower (Depends-on): Add
43964         unicase/empty-prefix-context, unicase/empty-suffix-context.
43965
43966         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43967         invocation.
43968         * modules/unicase/u32-toupper (Depends-on): Add
43969         unicase/empty-prefix-context, unicase/empty-suffix-context.
43970
43971         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43972         invocation.
43973         * modules/unicase/u16-toupper (Depends-on): Add
43974         unicase/empty-prefix-context, unicase/empty-suffix-context.
43975
43976         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43977         * modules/unicase/u8-toupper (Depends-on): Add
43978         unicase/empty-prefix-context, unicase/empty-suffix-context.
43979
43980         New module 'unicase/u32-ct-casefold'.
43981         * lib/unicase/u32-ct-casefold.c: New file.
43982         * modules/unicase/u32-ct-casefold: New file.
43983
43984         New module 'unicase/u16-ct-casefold'.
43985         * lib/unicase/u16-ct-casefold.c: New file.
43986         * modules/unicase/u16-ct-casefold: New file.
43987
43988         New module 'unicase/u8-ct-casefold'.
43989         * lib/unicase/u8-ct-casefold.c: New file.
43990         * lib/unicase/u-ct-casefold.h: New file, derived from
43991         lib/unicase/u-casefold.h.
43992         * modules/unicase/u8-ct-casefold: New file.
43993
43994         New module 'unicase/u32-ct-totitle'.
43995         * lib/unicase/u32-ct-totitle.c: New file.
43996         * modules/unicase/u32-ct-totitle: New file.
43997
43998         New module 'unicase/u16-ct-totitle'.
43999         * lib/unicase/u16-ct-totitle.c: New file.
44000         * modules/unicase/u16-ct-totitle: New file.
44001
44002         New module 'unicase/u8-ct-totitle'.
44003         * lib/unicase/u8-ct-totitle.c: New file.
44004         * lib/unicase/u-ct-totitle.h: New file, derived from
44005         lib/unicase/u-totitle.h.
44006         * modules/unicase/u8-ct-totitle: New file.
44007
44008         New module 'unicase/u32-ct-tolower'.
44009         * lib/unicase/u32-ct-tolower.c: New file.
44010         * modules/unicase/u32-ct-tolower: New file.
44011
44012         New module 'unicase/u16-ct-tolower'.
44013         * lib/unicase/u16-ct-tolower.c: New file.
44014         * modules/unicase/u16-ct-tolower: New file.
44015
44016         New module 'unicase/u8-ct-tolower'.
44017         * lib/unicase/u8-ct-tolower.c: New file.
44018         * modules/unicase/u8-ct-tolower: New file.
44019
44020         New module 'unicase/u32-ct-toupper'.
44021         * lib/unicase/u32-ct-toupper.c: New file.
44022         * modules/unicase/u32-ct-toupper: New file.
44023
44024         New module 'unicase/u16-ct-toupper'.
44025         * lib/unicase/u16-ct-toupper.c: New file.
44026         * modules/unicase/u16-ct-toupper: New file.
44027
44028         New module 'unicase/u8-ct-toupper'.
44029         * lib/unicase/u8-ct-toupper.c: New file.
44030         * modules/unicase/u8-ct-toupper: New file.
44031
44032         Add context arguments to u*_casemap functions.
44033         * lib/unicase/unicasemap.h: Include unicase.h.
44034         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44035         suffix_context arguments.
44036         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44037         functions.
44038         (FUNC): Add prefix_context and suffix_context arguments. Use
44039         uc_is_cased and uc_is_case_ignorable.
44040         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44041         * lib/unicase/u16-casemap.c: Likewise.
44042         * lib/unicase/u32-casemap.c: Likewise.
44043         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44044         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44045         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44047         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44049
44050         New module 'unicase/u32-suffix-context'.
44051         * lib/unicase/u32-suffix-context.c: New file.
44052         * modules/unicase/u32-suffix-context: New file.
44053
44054         New module 'unicase/u16-suffix-context'.
44055         * lib/unicase/u16-suffix-context.c: New file.
44056         * modules/unicase/u16-suffix-context: New file.
44057
44058         New module 'unicase/u8-suffix-context'.
44059         * lib/unicase/u8-suffix-context.c: New file.
44060         * lib/unicase/u-suffix-context.h: New file.
44061         * modules/unicase/u8-suffix-context: New file.
44062
44063         New module 'unicase/empty-suffix-context'.
44064         * lib/unicase/empty-suffix-context.c: New file.
44065         * modules/unicase/empty-suffix-context: New file.
44066
44067         New module 'unicase/u32-prefix-context'.
44068         * lib/unicase/u32-prefix-context.c: New file.
44069         * modules/unicase/u32-prefix-context: New file.
44070
44071         New module 'unicase/u16-prefix-context'.
44072         * lib/unicase/u16-prefix-context.c: New file.
44073         * modules/unicase/u16-prefix-context: New file.
44074
44075         New module 'unicase/u8-prefix-context'.
44076         * lib/unicase/u8-prefix-context.c: New file.
44077         * lib/unicase/u-prefix-context.h: New file.
44078         * lib/unicase/context.h: New file.
44079         * modules/unicase/u8-prefix-context: New file.
44080
44081         New module 'unicase/empty-prefix-context'.
44082         * lib/unicase/empty-prefix-context.c: New file.
44083         * modules/unicase/empty-prefix-context: New file.
44084
44085         New module 'unicase/ignorable'.
44086         * lib/unicase/ignorable.c: New file.
44087         * modules/unicase/ignorable: New file.
44088
44089         New module 'unicase/cased'.
44090         * lib/unicase/caseprop.h: New file.
44091         * lib/unicase/cased.c: New file.
44092         * modules/unicase/cased: New file.
44093
44094         New functions for case mapping of substrings.
44095         * lib/unicase.h (casing_prefix_context_t): New type.
44096         (unicase_empty_prefix_context): New variable.
44097         (u8_casing_prefix_context, u16_casing_prefix_context,
44098         u32_casing_prefix_context, u8_casing_prefixes_context,
44099         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44100         declarations.
44101         (casing_suffix_context_t): New type.
44102         (unicase_empty_suffix_context): New variable.
44103         (u8_casing_suffix_context, u16_casing_suffix_context,
44104         u32_casing_suffix_context, u8_casing_suffixes_context,
44105         u16_casing_suffixes_context, u32_casing_suffixes_context,
44106         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44107         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44108         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44109         declarations.
44110
44111 2009-06-28  Jim Meyering  <meyering@redhat.com>
44112
44113         boostrap: indent only with spaces
44114         * build-aux/bootstrap: Indent only with spaces, never TABs.
44115
44116         bootstrap: split long lines
44117         * build-aux/bootstrap: Keep line length < 80.
44118
44119         bootstrap: sync from coreutils
44120         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44121         just as autoreconf does.  Verify a list of prerequisite
44122         package-name,version-number pairs if defined in bootstrap.conf.
44123         Refer to README-prereq, if prerequisites are not satisfied.
44124
44125 2009-06-27  Eric Blake  <ebb9@byu.net>
44126
44127         tests: add test for bogus NULL definition
44128         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44129         * tests/test-stdlib.c: Likewise.
44130         * tests/test-string.c: Likewise.
44131         * tests/test-locale.c: Likewise.
44132         * tests/test-unistd.c: Likewise.
44133         * modules/stdio-tests (Depends-on): Add verify.
44134         * modules/stdlib-tests (Depends-on): Likewise.
44135         * modules/string-tests (Depends-on): Likewise.
44136         * modules/locale-tests (Depends-on): Likewise.
44137         * modules/unistd-tests (Depends-on): Likewise.
44138
44139 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44140
44141         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44142         self-explaining comment.
44143         * m4/selinux-selinux-h: Update serial.
44144         (gl_LIBSELINUX): New macro, adding a warning for missing development
44145         packages to code extracted from...
44146         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44147         Add warning for missing development packages here, too.
44148
44149 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44150
44151         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44152
44153 2009-06-25  Eric Blake  <ebb9@byu.net>
44154
44155         version-etc: fix regression
44156         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44157         gcc.
44158         (version_etc): Use it, to catch bugs with trailing NULL.
44159         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44160         (version_etc_va): Fix logic bug.
44161         * modules/version-etc-tests: Add test.
44162         * tests/test-version-etc.c: New file.
44163         * tests/test-version-etc.sh: Likewise.
44164
44165 2009-06-25  Sam Steingold  <sds@gnu.org>
44166
44167         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44168         mbtowc declaration.
44169
44170 2009-06-25  Eric Blake  <ebb9@byu.net>
44171
44172         fpurge: migrate into <stdio.h>
44173         * lib/fpurge.h: Delete...
44174         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44175         * lib/fpurge.c (fpurge): Change declaring header.
44176         * modules/fpurge (Files): Drop deleted file.
44177         (Depends-on): Add stdio.
44178         (configure.ac): Set witness.
44179         * modules/stdio (Makefile.am): Support fpurge macros.
44180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44182         * lib/fflush.c: Update client.
44183         * tests/test-fpurge.c: Likewise.
44184         * NEWS: Mention the change.
44185
44186 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44187
44188         * lib/argp-version-etc.c (program_authors): Add const
44189         qualifier.
44190         * lib/version-etc.c: Fix typos in the comments.
44191         * modules/argp-version-etc: Depends on version-etc.
44192
44193 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44194
44195         argp-version-etc: new module.
44196
44197         * lib/argp-version-etc.c: New file.
44198         * lib/argp-version-etc.h: New file.
44199         * modules/argp-version-etc: New file.
44200         * modules/argp-version-etc-tests: New file.
44201         * tests/test-argp-version-etc.c: New test.
44202         * tests/test-argp-version-etc-1.sh: New test.
44203
44204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44205
44206         Provide additional interfaces and documentation for version-etc
44207         module.
44208
44209         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44210         interfaces.
44211         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44212         prototypes.
44213
44214 2009-06-24  Bruno Haible  <bruno@clisp.org>
44215
44216         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44217         HAVE_LIB${NAME} macro.
44218         Reported by Sam Steingold <sds@gnu.org>.
44219
44220 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44221
44222         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44223         needed.
44224
44225 2009-06-21  Bruno Haible  <bruno@clisp.org>
44226
44227         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44228         work.
44229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44230         together with LIB${NAME}, LTLIB${NAME}.
44231         Reported by Sam Steingold <sds@gnu.org>.
44232
44233 2009-06-20  Jim Meyering  <meyering@redhat.com>
44234
44235         tests: make sc_require_test_exit_idiom more generic
44236         * top/maint.mk (Exit_witness_file): New overridable variable.
44237         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44238         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44239
44240 2009-06-19  Jim Meyering  <meyering@redhat.com>
44241
44242         hash: reverse order of src/dst parameters in an internal interface
44243         * lib/hash.c (transfer_entries): Reverse order of parameters to
44244         put DST before SRC.  Adjust callers.
44245
44246         tests: test-hash: avoid wholesale duplication
44247         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44248         Instead, use a loop and add a single conditional.
44249
44250         tests: test-hash: allow seed selection via a command line argument
44251         * tests/test-hash.c (get_seed): New function.
44252         (main): Use it.
44253
44254 2009-06-19  Eric Blake  <ebb9@byu.net>
44255
44256         hash: avoid memory leak on allocation failure
44257         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44258         failure.  Factor repeated algorithm...
44259         (transfer_entries): ...into new helper routine.
44260         (hash_delete): React to hash_rehash return value.
44261
44262         hash: reduce memory pressure in hash_rehash no-op case
44263         * lib/hash.c (next_prime): Avoid overflow.
44264         (hash_initialize): Factor bucket size computation...
44265         (compute_bucket_size): ...into new helper function.
44266         (hash_rehash): Use new function and open coding to reduce memory
44267         pressure, and avoid a memory leak in USE_OBSTACK code.
44268         Reported by Jim Meyering.
44269
44270 2009-06-18  Eric Blake  <ebb9@byu.net>
44271
44272         hash: make rotation more obvious
44273         * modules/hash (Depends-on): Add bitrotate and stdint.
44274         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44275         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44276         (SIZE_MAX): Rely on headers for definition.
44277         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44278         (raw_hasher): Use rotr_sz.
44279         Suggested by Jim Meyering.
44280
44281         hash: fix memory leak in last patch
44282         * lib/hash.c (hash_rehash): Avoid memory leak.
44283
44284         hash: avoid no-op rehashing
44285         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44286
44287         hash: provide default callback functions
44288         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44289         (hash_initialize): Use them as defaults.
44290         * tests/test-hash.c (main): Test this.
44291
44292         hash: minor optimization
44293         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44294         when possible.
44295         (hash_initialize): Document this promise.
44296         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44297         * tests/test-hash.c (hash_compare_strings): Test this.
44298
44299 2009-06-18  Bruno Haible  <bruno@clisp.org>
44300
44301         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44302         going to be replaced anyway.
44303
44304 2009-06-18  Bruno Haible  <bruno@clisp.org>
44305
44306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44307         in one place.
44308         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44309         be replaced anyway.
44310
44311 2009-06-18  Eric Blake  <ebb9@byu.net>
44312
44313         hash: check for resize before insertion
44314         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44315         threshold before insertion, so that a pathological hash_rehash
44316         that fills every bucket can still trigger another rehash.
44317
44318 2009-06-18  Jim Meyering  <meyering@redhat.com>
44319
44320         hash-tests: add a loop around the small tests
44321         * tests/test-hash.c (main): Repeat small tests with selected
44322         small initial table sizes.
44323
44324 2009-06-17  Eric Blake  <ebb9@byu.net>
44325
44326         hash: minor cleanups
44327         * lib/hash.h (hash_entry): Make opaque, by moving...
44328         * lib/hash.c (hash_entry): ...here.
44329         (hash_insert): Clarify restrictions on what can be inserted.
44330         (hash_get_next): Clarify when it is safe to remove an element
44331         during traversal.
44332         (check_tuning): Skip verification when tuning is known safe.
44333         (hash_initialize): Clarify restrictions on tuning.
44334
44335 2009-06-17  Jim Meyering  <jim@meyering.net>
44336         and Eric Blake  <ebb9@byu.net>
44337
44338         hash-tests: new module
44339         * modules/hash-tests: New file.
44340         * tests/test-hash.c: New file.
44341
44342 2009-06-17  Eric Blake  <ebb9@byu.net>
44343
44344         strstr-simple: document new module
44345         * MODULES.html.sh: Document new module.
44346
44347         strstr, strcasestr: replace on platforms with broken memchr
44348         * modules/strstr: Split into...
44349         * modules/strstr-simple: ...new module that does not care about
44350         performance, but does care about glibc bug.
44351         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44352         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44353         if platform memchr is broken, per Debian bug 521737.
44354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44355         memchr.
44356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44357         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44358         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44359         * modules/mountlist (Depends-on): Add strstr-simple.
44360         * modules/gen-uni-tables (Depends-on): Likewise.
44361         * modules/argz (Depends-on): Add strstr.
44362
44363 2009-06-17  Bruno Haible  <bruno@clisp.org>
44364
44365         * modules/posix_spawn-internal (Depends-on): Add errno.
44366
44367 2009-06-17  Bruno Haible  <bruno@clisp.org>
44368
44369         Define missing ESTALE on Interix 3.5.
44370         * lib/errno.in.h (ESTALE): Assign a value if missing.
44371         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44373         missing.
44374         * doc/posix-headers/errno.texi: Mention the Interix bug.
44375         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44376
44377 2009-06-15  Eric Blake  <ebb9@byu.net>
44378
44379         memchr, memchr2: add valgrind exception
44380         * lib/memchr.valgrind: New file.
44381         * lib/memchr2.valgrind: New file.
44382         * modules/memchr (Files): Distribute valgrind file.
44383         * modules/memchr2 (Files): Likewise.
44384
44385         docs: memchr is no longer obsolete
44386         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44387         * lib/string.in.h (memchr): Simplify logic.
44388
44389 2009-06-14  Jim Meyering  <meyering@redhat.com>
44390
44391         link-follow: fix the "checking..." message to not mention trailing slash
44392         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44393         never considered trailing slashes.
44394
44395 2009-06-14  Bruno Haible  <bruno@clisp.org>
44396
44397         * m4/memchr.m4: Mention also the bug on IA-64.
44398         * doc/posix-functions/memchr.texi: Likewise.
44399
44400 2009-06-12  Eric Blake  <ebb9@byu.net>
44401
44402         memchr: detect broken x86_64 and alpha implementations
44403         * modules/memchr-tests (Depends-on): Move mmap detection...
44404         * modules/memchr (Depends-on): ...here.
44405         (configure.ac): Set indicator.
44406         * lib/string.in.h (memchr): Declare replacement.
44407         * modules/string (Makefile.am): Trigger replacement.
44408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44409         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44410         bugs.
44411         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44412         * modules/getpagesize (License): Relax license.
44413
44414 2009-06-11  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/idpriv.h: Add more references.
44417
44418 2009-06-08  Bruno Haible  <bruno@clisp.org>
44419
44420         Tests for module 'idpriv-droptemp'.
44421         * modules/idpriv-droptemp-tests: New file.
44422         * tests/test-idpriv-droptemp.sh: New file.
44423         * tests/test-idpriv-droptemp.su.sh: New file.
44424         * tests/test-idpriv-droptemp.c: New file.
44425
44426         New module 'idpriv-droptemp'.
44427         * lib/idpriv-droptemp.c: New file.
44428         * modules/idpriv-droptemp: New file.
44429
44430 2009-06-08  Bruno Haible  <bruno@clisp.org>
44431
44432         Tests for module 'idpriv-drop'.
44433         * modules/idpriv-drop-tests: New file.
44434         * tests/test-idpriv-drop.sh: New file.
44435         * tests/test-idpriv-drop.su.sh: New file.
44436         * tests/test-idpriv-drop.c: New file.
44437
44438         New module 'idpriv-drop'.
44439         * lib/idpriv.h: New file.
44440         * lib-idpriv-drop.c: New file.
44441         * m4/idpriv.m4: New file.
44442         * modules/idpriv-drop: New file.
44443
44444 2009-06-08  Bruno Haible  <bruno@clisp.org>
44445
44446         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44447         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44449         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44450         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44452         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44453
44454 2009-06-08  Eric Blake  <ebb9@byu.net>
44455
44456         test-strstr: use memory fence, when possible
44457         * tests/test-strstr.c (main): Use memory fence, in order to be
44458         more likely to trigger Debian bug 521737.
44459         * modules/strstr-tests (Files): Pull in additional files.
44460
44461         memchr: no longer obsolete, for wider field testing
44462         * modules/memchr (Status, Notice): Delete, this module is no
44463         longer obsolete.
44464         * modules/vasnprintf (Depends-on): Add memchr.
44465
44466 2009-06-07  Jim Meyering  <meyering@redhat.com>
44467
44468         hash: declare some functions with the warn_unused_result attribute
44469         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44470
44471 2009-06-07  Bruno Haible  <bruno@clisp.org>
44472
44473         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44474         Reported by Eric Blake.
44475
44476 2009-06-06  Eric Blake  <ebb9@byu.net>
44477
44478         test-alignof: fix typo with long double
44479         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44480         compiler error.
44481
44482 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44483
44484         Escape non-texinfo { and }s.
44485         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44486         markup error.
44487
44488 2009-06-04  Jim Meyering  <meyering@redhat.com>
44489
44490         gitlog-to-changelog: don't infloop on an empty commit log
44491         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44492         Reported by Boris Petersen <transacid@centerim.org>.
44493
44494 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44495
44496         version-etc: extend for packagers
44497         Add three new configure options, intended for packagers:
44498           --with-packager="packager name"
44499           --with-packager-version="packager-specific version"
44500           --with-packager-bug-reports="packager bug reporting"
44501         An example with coreutils:
44502           $ ./configure \
44503             --with-packager=Gentoo \
44504             --with-packager-bug-report=http://bugs.gentoo.org/ \
44505             --with-packager-version="patchset 1.6"
44506           $ ./src/ls --version | head -n2
44507           ls (GNU coreutils) 7.1-dirty
44508           Packaged by Gentoo (patchset 1.6)
44509         Note that the bug reporting info via --help doesn't show up because
44510         coreutils uses its own custom emit_bug_reporting_address() implementation
44511         in src/system.h.  If it didn't, it'd look like:
44512           $ ./src/ls --help | tail -n4
44513           Report bugs to <bug-coreutils@gnu.org>.
44514           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44515           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44516           General help using GNU software: <http://www.gnu.org/gethelp/>.
44517         * lib/version-etc.c: Print new information, if provided.
44518         * m4/version-etc.m4: New file.
44519         * modules/version-etc (Files): Add m4/version-etc.m4.
44520         (configure.ac): Add gl_VERSION_ETC.
44521
44522 2009-05-31  Bruno Haible  <bruno@clisp.org>
44523
44524         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44525         and 'int64_t'.
44526         * modules/alignof-tests (Dependencies): Add stdint.
44527         Reported by Eric Blake.
44528
44529 2009-05-31  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44532         restriction due to compiler bugs.
44533         Reported by Eric Blake.
44534
44535 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44536             Bruno Haible  <bruno@clisp.org>
44537
44538         Fix test-alignof failure.
44539         * lib/alignof.h (alignof_slot): New macro.
44540         (alignof_type): New macro, with the same semantics as the previous
44541         'alignof'.
44542         (alignof): Alias to alignof_slot.
44543         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44544         check that the results are usable as constant expressions.
44545
44546 2009-05-31  Bruno Haible  <bruno@clisp.org>
44547
44548         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44549         * tests/test-memchr.c (main): Check that memchr does not read past the
44550         first occurrence of the byte.
44551         * tests/test-strstr.c (main): Update comment.
44552         Suggested by Eric Blake.
44553
44554 2009-05-30  Bruno Haible  <bruno@clisp.org>
44555
44556         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44557         detail how to use dumpbin.
44558         Reported by David Byron <dbyron@dbyron.com>.
44559
44560 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44561
44562         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44563
44564 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44565
44566         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44567
44568 2009-05-28  Bruno Haible  <bruno@clisp.org>
44569
44570         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44571         build-aux/ files.
44572
44573 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44574
44575         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44576
44577 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44578
44579         * gnulib-tool (sed_transform_main_lib_file)
44580         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44581         regexps.
44582
44583 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44584
44585         * tests/test-strstr.c: Add another self-test.
44586         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44587         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44588
44589 2009-05-23  Bruno Haible  <bruno@clisp.org>
44590
44591         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44592         change.
44593
44594 2009-05-21  Bruno Haible  <bruno@clisp.org>
44595
44596         Simplify use of mode_t varargs.
44597         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44598         uses 'mode_t' or 'int'.
44599         * lib/openat.c (openat): Likewise.
44600         * lib/open-safer.c (open_safer): Likewise.
44601         * m4/mode_t.m4: New file.
44602         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44603         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44604         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44605         * modules/open (Files): Add m4/mode_t.m4.
44606         * modules/openat (Files): Likewise.
44607         * modules/fcntl-safer (Files): Likewise.
44608         Suggested by Eric Blake.
44609
44610 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44611
44612         * doc/glibc-functions/fallocate.texi: New file.
44613         * doc/gnulib.texi: Include it.
44614
44615 2009-05-21  Eric Blake  <ebb9@byu.net>
44616             Bruno Haible  <bruno@clisp.org>
44617
44618         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44619         invocations.
44620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44621
44622 2009-05-21  Eric Blake  <ebb9@byu.net>
44623             Bruno Haible  <bruno@clisp.org>
44624
44625         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44626         include_next. Fix of 2008-11-20 commit.
44627         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44628         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44629         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44630         NEXT_MATH_H.
44631         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44632         instead of NEXT_MATH_H.
44633
44634 2009-05-21  Bruno Haible  <bruno@clisp.org>
44635
44636         Avoid redefinition warnings for SIZE_MAX.
44637         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44638         Reported by Simon Josefsson.
44639
44640 2009-05-21  Bruno Haible  <bruno@clisp.org>
44641
44642         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44643         AC_CACHE_VAL.
44644
44645 2009-05-20  Bruno Haible  <bruno@clisp.org>
44646
44647         Make zeroptr.h work on mingw.
44648         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44649         mprotect.
44650         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44651         * modules/memchr2-tests (configure.ac): Likewise.
44652         * modules/memcmp-tests (configure.ac): Likewise.
44653         * modules/memmem-tests (configure.ac): Likewise.
44654         * modules/memrchr-tests (configure.ac): Likewise.
44655         Reported by Simon Josefsson.
44656
44657 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44658
44659         * tests/test-glob.c: Include string.h for strcmp prototype.
44660
44661 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44662
44663         * modules/getdelim (Depends-on): Add explicit stdint, although it
44664         was implicitly already pulled in via realloc-posix.
44665         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44666
44667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44668
44669         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44670         G. Christensen" <tgc@jupiterrise.com>.
44671         * m4/sys_socket_h.m4: Check for sa_family_t.
44672         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44673         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44674         * tests/test-sys_socket.c: Check that sa_family_t works.
44675
44676 2009-05-18  Eric Blake  <ebb9@byu.net>
44677
44678         maint.mk: allow gnulib_dir in VPATH build
44679         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44680
44681 2009-05-15  Jim Meyering  <meyering@redhat.com>
44682
44683         maint.mk: Give gnulib_dir a default definition.
44684         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44685         Thus, most packages no longer need to specify this variable in cfg.mk
44686
44687 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44688
44689         rename.m4: fix typos that would make non-mingw cross-configure fail
44690         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44691
44692 2009-05-13  Eric Blake  <ebb9@byu.net>
44693
44694         mmap-anon: avoid out-of-order autoconf expansion
44695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44696         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44697         * modules/memchr-tests (Depends-on): Add extensions.
44698         * modules/memchr2-tests (Depends-on): Add extensions.
44699         * modules/memcmp-tests (Depends-on): Add extensions.
44700         * modules/memmem-tests (Depends-on): Add extensions.
44701         * modules/memrchr-tests (Depends-on): Add extensions.
44702
44703 2009-05-13  Bruno Haible  <bruno@clisp.org>
44704
44705         Make some tests ISO C 99 compliant.
44706         * tests/zerosize-ptr.h: New file.
44707         * tests/test-memchr.c: Include zerosize-ptr.h.
44708         (main): Use a zero-size object pointer instead of NULL.
44709         * tests/test-memchr2.c: Include zerosize-ptr.h.
44710         (main): Use a zero-size object pointer instead of NULL.
44711         * tests/test-memcmp.c: Include zerosize-ptr.h.
44712         (main): Use a zero-size object pointer instead of NULL.
44713         * tests/test-memmem.c: Include zerosize-ptr.h.
44714         (main): Use a zero-size object pointer instead of NULL.
44715         * tests/test-memrchr.c: Include zerosize-ptr.h.
44716         (main): Use a zero-size object pointer instead of NULL.
44717         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44718         m4/mmap-anon.m4.
44719         (Depends-on): Add getpagesize.
44720         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44721         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44722         m4/mmap-anon.m4.
44723         (Depends-on): Add getpagesize.
44724         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44725         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44726         m4/mmap-anon.m4.
44727         (Depends-on): Add getpagesize.
44728         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44729         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44730         m4/mmap-anon.m4.
44731         (Depends-on): Add getpagesize.
44732         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44733         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44734         m4/mmap-anon.m4.
44735         (Depends-on): Add getpagesize.
44736         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44737
44738 2009-05-12  Bruno Haible  <bruno@clisp.org>
44739
44740         Tests for module 'alignof'.
44741         * modules/alignof-tests: New file.
44742         * tests/test-alignof.c: New file.
44743
44744 2009-05-12  Bruno Haible  <bruno@clisp.org>
44745
44746         Fix alignof macro.
44747         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44748         vendor compilers that are always correct.
44749
44750 2009-05-12  Bruno Haible  <bruno@clisp.org>
44751
44752         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44753         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44754         not whether its fully works.
44755
44756 2009-05-12  Bruno Haible  <bruno@clisp.org>
44757
44758         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44759
44760 2009-05-12  Jim Meyering  <meyering@redhat.com>
44761
44762         * top/maint.mk: Adjust backslash alignment.
44763
44764 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44765
44766         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44767
44768 2009-05-11  Eric Blake  <ebb9@byu.net>
44769
44770         argp: avoid undefined behavior
44771         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44772         macros.
44773
44774 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44775
44776         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44777         user.name to prevent git commit from complaining.
44778
44779 2009-05-10  Bruno Haible  <bruno@clisp.org>
44780
44781         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44782         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44783         it rewrites every file name only once.
44784         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44785
44786 2009-05-08  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44789         instead of 'max'.
44790
44791 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44792
44793         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44794         sockaddr_storage test.
44795
44796 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44797
44798         * modules/sys_socket (Makefile.am): Substitute
44799         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44800         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44801         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44802         * tests/test-sys_socket.c: Check sockaddr_storage.
44803
44804 2009-05-08  Bruno Haible  <bruno@clisp.org>
44805
44806         New module 'alignof'.
44807         * lib/alignof.h: New file.
44808         * modules/alignof: New file.
44809
44810 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44811             Bruno Haible  <bruno@clisp.org>
44812
44813         Fix test-file-has-acl on FreeBSD.
44814         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44815         mask is implicitly added.
44816         * tests/test-file-has-acl.c: Include <signal.h>.
44817         (main): Terminate the test after 5 seconds.
44818         * modules/acl-tests (configure.ac): Check for alarm function.
44819
44820 2009-05-04  Bruno Haible  <bruno@clisp.org>
44821
44822         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44824         * modules/errno (configure.ac): Drop AC_REQUIRE.
44825         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44826         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44827
44828 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44829
44830         * modules/glob-tests: New module.
44831         * tests/test-glob.c: Add.
44832
44833 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44834
44835         * modules/fnmatch-tests: New module.
44836         * tests/test-fnmatch.c: Add.
44837
44838 2009-05-04  Eric Blake  <ebb9@byu.net>
44839
44840         maint: make the new no-submodule-changes rule VPATH-safe
44841         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44842
44843 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44844             Bruno Haible  <bruno@clisp.org>
44845
44846         acl: Fix infinite loop on FreeBSD.
44847         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44848         of return value from acl_get_entry.
44849         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44850         Likewise.
44851
44852 2009-05-03  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/acl-internal.h (acl_entries): Clarify return value.
44855         * lib/acl_entries.c (acl_entries): Likewise.
44856
44857 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44858
44859         Bug fix in acl module.
44860         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44861
44862 2009-05-03  Bruno Haible  <bruno@clisp.org>
44863
44864         Create gperf-generated file in the source dir, not in the build dir.
44865         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44866         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44867         * modules/unicase/locale-language (unicase/locale-languages.h):
44868         Likewise.
44869         * modules/unicase/special-casing (unicase/special-casing-table.h):
44870         Likewise.
44871         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44872         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44873         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44874         Reported by Ralf Wildenhues.
44875
44876 2009-05-03  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/fnmatch (Description, configure.ac): Taken from
44879         fnmatch-posix.
44880         * modules/fnmatch-posix: Turn into a symbolic reference to the
44881         'fnmatch' module, and deprecate.
44882         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44883
44884 2009-05-03  Bruno Haible  <bruno@clisp.org>
44885
44886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44887         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44888         Reported by Ralf Wildenhues.
44889
44890 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44891
44892         * m4/fnmatch.m4: Fix fnmatch re-define.
44893
44894 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44895
44896         priv-set: new module and tests; adapt write-any-file
44897         * lib/priv-set.c: New file.
44898         * lib/priv-set.h: New file.
44899         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44900         * lib/write-any-file.c: Simplify by using priv-set module.
44901         * m4/priv-set.m4: New file.
44902         * modules/priv-set: New file.
44903         * modules/unlinkdir: Add dependency on priv-set module.
44904         * modules/write-any-file: Likewise.
44905
44906         Tests for module 'priv-set'.
44907         * modules/priv-set-tests: New file.
44908         * tests/test-priv-set.c: New file.
44909
44910 2009-05-03  Jim Meyering  <meyering@redhat.com>
44911             Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44914         use the converted UTF-8 variant of the name instead.
44915
44916 2009-05-03  Jim Meyering  <meyering@redhat.com>
44917
44918         tests: tighten some getdate tests
44919         * tests/test-getdate.c (main): Tighten tests: require equality,
44920         not just greater than.  Set TZ envvar to UTC0.
44921
44922 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44923
44924         getdate: correctly interpret "next monday" when run on a Monday
44925         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44926         that e.g., "next tues" (when run on a tuesday) results in a date
44927         that is one week in the future, and not today's date.
44928         I.e., add a week when the wday is the same as the current one.
44929         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44930         and earlier by Martin Bernreuther and Jan Minář.
44931         * tests/test-getdate.c (main): Check that "next DAY" is always in
44932         the future and that "last DAY" is always in the past.
44933
44934 2009-05-02  Jim Meyering  <meyering@redhat.com>
44935
44936         build: ensure that a release build fails when a submodule is unclean
44937         * top/maint.mk (no-submodule-changes): New rule.
44938         (alpha beta major): Depend on it.
44939
44940 2009-05-02  Bruno Haible  <bruno@clisp.org>
44941
44942         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44944         shell variable gl_fnmatch_required to detect which variant is
44945         requested.
44946         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44947         gl_FUNC_FNMATCH_POSIX.
44948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44949         exclude fnmatch-posix.
44950
44951 2009-05-02  Bruno Haible  <bruno@clisp.org>
44952
44953         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44954         * modules/mbsrtowcs (License): Change to LGPLv2+.
44955         * modules/strnlen1 (License): Likewise.
44956         Reported by Simon Josefsson.
44957
44958 2009-05-02  Bruno Haible  <bruno@clisp.org>
44959
44960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44961         "cross".
44962         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44963         gnulib-tool was called with option --source-base=lib.
44964
44965 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44966
44967         Use automake *-local hooks without commands, for extensibility.
44968         * modules/localcharset (Makefile.am): Rename install-exec-local
44969         rule to install-exec-localcharset, and make it a prerequisite of
44970         install-exec-local.  Likewise, rename the uninstall-local rule to
44971         uninstall-localcharset, and make it a prerequisite of the former.
44972
44973 2009-05-01  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44976         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44977         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44979         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44980         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44981         m4/locale-zh.m4, m4/codeset.m4.
44982
44983         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44984         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44985         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44986         m4/locale-zh.m4.
44987
44988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44989         REPLACE_WCRTOMB if mbstate_t must be replaced.
44990         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44991         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44992
44993 2009-05-01  Bruno Haible  <bruno@clisp.org>
44994
44995         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44996         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44997         dngettext, dcngettext, textdomain, bindtextdomain,
44998         bind_textdomain_codeset): Undefine before redefining.
44999
45000 2009-04-30  Bruno Haible  <bruno@clisp.org>
45001
45002         Fix bug introduced on 2009-04-25.
45003         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45004         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45005         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45006         is defined.
45007         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45008         is defined.
45009         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45010         is defined.
45011         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45012
45013 2009-04-28  Bruno Haible  <bruno@clisp.org>
45014
45015         Comment tweaks.
45016         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45017         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45018         * lib/unicase.h (u*_casexfrm): Likewise.
45019         Reported by Paolo Bonzini.
45020
45021 2009-04-28  Bruno Haible  <bruno@clisp.org>
45022
45023         Fix a compilation error.
45024         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45025         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45026         Reported by Jim Meyering.
45027
45028 2009-04-27  Bruno Haible  <bruno@clisp.org>
45029
45030         New module 'libunistring'.
45031         * modules/libunistring: New file.
45032         * m4/libunistring.m4: New file.
45033         * MODULES.html.sh (Unicode string functions): Add it.
45034
45035 2009-04-27  Eric Blake  <ebb9@byu.net>
45036
45037         maint.mk: allow package-specific header to provide <config.h>
45038         * top/maint.mk (sc_require_config_h): New variable.
45039         (sc_require_config_h, sc_require_config_h_first): Use it.
45040
45041 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45042
45043         * top/maint.mk (sc_avoid_if_before_free): Except
45044         useless-if-before-free script.
45045
45046 2009-04-27  Eric Blake  <ebb9@byu.net>
45047
45048         maintainer-makefile: depend on all required helper scripts
45049         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45050         useless-if-before-free.
45051         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45052         version, rather than assuming gnulib checkout is available.
45053         Reported by Simen Josefsson.
45054
45055 2009-04-26  Bruno Haible  <bruno@clisp.org>
45056
45057         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45058         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45059         "../" or "..".
45060
45061 2009-04-26  Bruno Haible  <bruno@clisp.org>
45062
45063         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45064         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45065         AC_LIB_HAVE_LINKFLAGS.
45066
45067 2009-04-26  Bruno Haible  <bruno@clisp.org>
45068
45069         Simplify calling convention of u*_conv_from_encoding.
45070         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45071         u32_conv_from_encoding): Expect a resultbuf argument and return the
45072         result directly as a pointer.
45073         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45074         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45075         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45076         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45077         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45078         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45079         Update.
45080         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45081         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45082         * lib/vasnprintf.c (VASNPRINTF): Update.
45083         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45084         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45085         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45086         * NEWS: Mention the change.
45087
45088 2009-04-26  Bruno Haible  <bruno@clisp.org>
45089
45090         Simplify calling convention of u*_conv_to_encoding.
45091         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45092         u32_conv_to_encoding): Expect a resultbuf argument and return the
45093         result directly as a pointer.
45094         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45095         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45096         freeing scaled_offsets if mem_iconveha failed.
45097         * lib/unicase/u-casexfrm.h (FUNC): Update.
45098         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45099         * lib/vasnprintf.c (VASNPRINTF): Update.
45100         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45101         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45102         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45103         * NEWS: Mention the change.
45104
45105 2009-04-26  Bruno Haible  <bruno@clisp.org>
45106
45107         Avoid test failures on AIX and OSF/1.
45108         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45109         malloc(0).
45110         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45111         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45112         Likewise.
45113         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45114         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45115         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45116         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45117         * doc/posix-functions/malloc.texi: Document the portability problem
45118         related to malloc(0).
45119
45120 2009-04-26  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45123         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45124         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45125
45126 2009-04-25  Bruno Haible  <bruno@clisp.org>
45127
45128         Avoid link error when creating a namespace clean library.
45129         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45130         as macro with arguments if already defined as an alias.
45131         * lib/signbitf.c (gl_signbitf): Don't undefine.
45132         * lib/signbitd.c (gl_signbitd): Don't undefine.
45133         * lib/signbitl.c (gl_signbitl): Don't undefine.
45134
45135 2009-04-25  Jim Meyering  <meyering@redhat.com>
45136
45137         vc-list-files: fix another quoting bug
45138         * build-aux/vc-list-files: Avoid sed backslash expansion
45139         of pathological directory names.
45140
45141 2009-04-25  Eric Blake  <ebb9@byu.net>
45142
45143         vc-list-files: fix shell quoting error
45144         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45145         timestamp.
45146
45147 2009-04-25  Jim Meyering  <meyering@redhat.com>
45148
45149         vc-list-files: restore lost functionality with subdir argument
45150         * build-aux/vc-list-files: When given a non-"." sub-directory
45151         argument, substitute the $dir/ prefix back onto each resulting name.
45152         Otherwise, coreutils' root_tests check would fail.
45153
45154 2009-04-24  Eric Blake  <ebb9@byu.net>
45155
45156         vc-list-files: ignore git symlinks
45157         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45158         than ls-files, to ignore git symlinks.
45159
45160         maint.mk: import improvements from m4
45161         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45162         (move_if_change): Delete unused macro.
45163         (news-date-check, vc-diff-check): Support VPATH builds.
45164         (announcement): Likewise.  Split --bootstrap-tools list...
45165         (boostrap-tools): ...into separate list, which can be overridden
45166         in cfg.mk.
45167         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45168         requiring dependency on useless-if-before-free module.
45169         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45170         Support VPATH builds.
45171
45172 2009-04-24  Jim Meyering  <meyering@redhat.com>
45173
45174         maint.mk: remove coreutils-specific rules and variables
45175         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45176         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45177         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45178
45179         maint.mk: remove obsolete rule
45180         * top/maint.mk (rel-check): Remove rule.
45181         (WGET, WGETFLAGS): Remove now-unused variables.
45182
45183 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45184
45185         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45186         consistency.
45187
45188         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45189         '$(PATH_SEPARATOR)' instead of ':'.
45190
45191 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45192
45193         * lib/getopt1.c (main): Use 'const' for static array.
45194
45195 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45196
45197         * top/maint.mk: Sync with coreutils.
45198         * NEWS: Explain incompatibilities.
45199
45200 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45201             Bruno Haible  <bruno@clisp.org>
45202
45203         Fix cross-compilation results.
45204         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45205         statement, as third argument of AC_TRY_RUN.
45206         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45207         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45208         Likewise.
45209         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45211         Likewise.
45212         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45214         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45215
45216 2009-04-20  Bruno Haible  <bruno@clisp.org>
45217
45218         Avoid test failure on mingw.
45219         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45220
45221 2009-04-20  Bruno Haible  <bruno@clisp.org>
45222
45223         Avoid compilation error on mingw.
45224         * modules/localename-tests (Depends-on): Add locale.
45225
45226 2009-04-19  Bruno Haible  <bruno@clisp.org>
45227
45228         Support for building a shared library on Windows platforms.
45229         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45230         (main): Test the presence of UNINORM_NFC here.
45231         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45232         (main): Test the presence of UNINORM_NFD here.
45233         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45234         (main): Test the presence of UNINORM_NFKC here.
45235         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45236         (main): Test the presence of UNINORM_NFKD here.
45237
45238 2009-04-19  Bruno Haible  <bruno@clisp.org>
45239
45240         Avoid a compiler warning.
45241         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45242         Change type of variable 'sequence'.
45243
45244 2009-04-19  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/configmake (Makefile.am): When the contents of configmake.h
45247         does not change, arrange to preserve its modification time.
45248
45249 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45250
45251         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45252         gettext domain.
45253
45254 2009-04-16  Jim Meyering  <meyering@redhat.com>
45255
45256         useless-if-before-free: improve conversion code
45257         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45258         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45259
45260 2009-04-14  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/fcntl (Depends-on): Add extensions.
45263         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45264
45265 2009-04-12  Ben Pfaff  <blp@gnu.org>
45266
45267         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45268         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45269
45270 2009-03-20  Ben Pfaff  <blp@gnu.org>
45271
45272         Make rename replace existing destinations on Windows.
45273         * m4/rename.m4: Add test for Mingw.
45274         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45275         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45276         * doc/posix-functions/rename.texi: Document.
45277
45278 2009-04-10  Bruno Haible  <bruno@clisp.org>
45279
45280         New include file "iconveh.h".
45281         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45282         * lib/striconveh.h: Include it.
45283         (enum iconv_ilseq_handler): Remove definition.
45284         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45285         striconveh.h.
45286         * lib/striconveha.c: Include striconveh.h.
45287         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45288         * modules/striconveh (Files): Add lib/iconveh.h.
45289         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45290         lib/striconveh.h.
45291
45292 2009-04-10  Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/uniconv.h: Update comment.
45295
45296 2009-04-10  Bruno Haible  <bruno@clisp.org>
45297
45298         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45299         always.
45300         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45301         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45302         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45303         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45304         "unistring-notinline.h", so that the function gets defined always.
45305         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45306         * lib/unistr/u8-uctomb.c: Likewise.
45307         * lib/unistr/u16-mbtouc.c: Likewise.
45308         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45309         * lib/unistr/u16-uctomb.c: Likewise.
45310         * lib/unistr/u32-mbtouc.c: Likewise.
45311         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45312         * lib/unistr/u32-uctomb.c: Likewise.
45313
45314 2009-04-10  Bruno Haible  <bruno@clisp.org>
45315
45316         Mark 'utime' obsolete.
45317         * modules/utime (Status, Notice): New sections.
45318         Suggested by Jim Meyering.
45319
45320         Fix cross-compile guess for utime test.
45321         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45322         autoconf.
45323         * doc/posix-functions/utime.texi: Give more precisions.
45324         Reported by Jan <ipif@ymail.com>.
45325
45326 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45327
45328         filevercmp: correct today's change
45329         * lib/filevercmp.c: Also handle coreutils' test inputs.
45330         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45331
45332         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45333         for reporting it.
45334         * lib/filevercmp.c: Special handle for "", "." and "..".
45335         * tests/test-filevercmp.c: Enlarge the set suite.
45336
45337 2009-04-07  Jim Meyering  <meyering@redhat.com>
45338
45339         useless-if-before-free: show how to remove braced useless free, too
45340         * build-aux/useless-if-before-free: still only in a comment, though.
45341
45342 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45343
45344         maint.mk: import changes to syntax-check macros from coreutils
45345         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45346         Use them in the relevant macros.
45347
45348 2009-04-06  Bruno Haible  <bruno@clisp.org>
45349
45350         Fix unportable use of bit-fields.
45351         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45352         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45353         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45354
45355 2009-04-06  Bruno Haible  <bruno@clisp.org>
45356
45357         Avoid test failures on AIX and OSF/1.
45358         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45359         that malloc(0) = NULL.
45360         * tests/unicase/test-u8-tolower.c (check): Likewise.
45361         * tests/unicase/test-u8-totitle.c (check): Likewise.
45362         * tests/unicase/test-u8-toupper.c (check): Likewise.
45363         * tests/unicase/test-u16-casefold.c (check): Likewise.
45364         * tests/unicase/test-u16-tolower.c (check): Likewise.
45365         * tests/unicase/test-u16-totitle.c (check): Likewise.
45366         * tests/unicase/test-u16-toupper.c (check): Likewise.
45367         * tests/unicase/test-u32-casefold.c (check): Likewise.
45368         * tests/unicase/test-u32-tolower.c (check): Likewise.
45369         * tests/unicase/test-u32-totitle.c (check): Likewise.
45370         * tests/unicase/test-u32-toupper.c (check): Likewise.
45371         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45372         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45373         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45374         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45375         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45376         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45377         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45378         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45379         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45380         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45381         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45382         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45383
45384 2009-04-05  Bruno Haible  <bruno@clisp.org>
45385
45386         Work around an autoconf limitation.
45387         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45388         comment line if it would be longer than 3 KB.
45389
45390 2009-04-05  Bruno Haible  <bruno@clisp.org>
45391
45392         Avoid test failure with libiconv-1.13.
45393         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45394         of the expected test results.
45395
45396 2009-04-05  Bruno Haible  <bruno@clisp.org>
45397
45398         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45399         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45400         that it should be installed.
45401
45402 2009-04-05  Bruno Haible  <bruno@clisp.org>
45403
45404         * gnulib-tool: New option --copy-file.
45405         (func_usage): Document it.
45406         (func_dest_tmpfilename): Moved out of func_import.
45407         (func_add_file, func_update_file): New functions, extracted from
45408         func_import.
45409         (func_import): Update.
45410
45411 2009-04-05  Karl Berry  <karl@gnu.org>
45412
45413         * README: prominently mention gnulib-tool.
45414         Rearrange sections so getting the code is near the top.
45415
45416 2009-04-05  Bruno Haible  <bruno@clisp.org>
45417
45418         * lib/unicase.h: Mention u*_cmp2.
45419         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45420         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45421         * lib/unicase/ulc-casecmp.c: Likewise.
45422         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45423         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45424         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45425         unistr/u8-cmp.
45426         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45427         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45428         unistr/u16-cmp.
45429         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45430         unistr/u32-cmp.
45431
45432         * lib/uninorm.h: Mention u*_cmp2.
45433         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45434         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45435         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45436         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45437         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45438         unistr/u8-cmp.
45439         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45440         unistr/u16-cmp.
45441         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45442         unistr/u32-cmp.
45443
45444         New module 'unistr/u32-cmp2'.
45445         * lib/unistr/u32-cmp2.c: New file.
45446         * modules/unistr/u32-cmp2: New file.
45447
45448         New module 'unistr/u16-cmp2'.
45449         * lib/unistr/u16-cmp2.c: New file.
45450         * modules/unistr/u16-cmp2: New file.
45451
45452         New module 'unistr/u8-cmp2'.
45453         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45454         * lib/unistr/u8-cmp2.c: New file.
45455         * lib/unistr/u-cmp2.h: New file.
45456         * modules/unistr/u8-cmp2: New file.
45457
45458 2009-04-05  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/unictype.h (uc_property_is_valid): New macro.
45461         * tests/unictype/test-pr_byname.c (main): Use it.
45462
45463         * lib/unistr.h: Doc fixes.
45464         * lib/uniconv.h: Doc fixes.
45465         * lib/unictype.h: Doc fixes.
45466
45467 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45468
45469         Port coreutils 7.2 to Solaris 8.
45470
45471         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45472         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45473         for Solaris 8.  This is a bit of a hack, as it means it's the
45474         caller's responsibility to add -lnsl if needed, but most likely it
45475         won't be needed since only getaddrinfo uses this and getaddrinfo
45476         isn't needed on Solaris 8.
45477
45478         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45479         problem to Solaris 8 encountered with coreutils 7.2, which
45480         resulted in a message "fnmatch.c:292: warning: passing argument 4
45481         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45482         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45483
45484 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45485
45486         * m4/ld-version-script.m4: Add FIXME comment.
45487
45488 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45489
45490         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45491         SOVERSION variable.
45492
45493 2009-04-02  Bruno Haible  <bruno@clisp.org>
45494
45495         * Makefile (info, html, dvi, pdf): Combine the rules.
45496         Suggested by Jim Meyering.
45497
45498 2009-04-01  Bruno Haible  <bruno@clisp.org>
45499
45500         * Makefile (info, html, dvi, pdf): New targets.
45501         Reported by Reuben Thomas <rrt@sc3d.org>.
45502
45503 2009-04-01  Bruno Haible  <bruno@clisp.org>
45504
45505         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45506         can be put into PATH.
45507         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45508
45509 2009-04-01  Bruno Haible  <bruno@clisp.org>
45510
45511         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45512
45513 2009-04-01  Bruno Haible  <bruno@clisp.org>
45514
45515         Rename module 'visibility'.
45516         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45517         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45518         * doc/gnulib.texi: Update.
45519         * MODULES.html.sh (Misc): Update.
45520         * NEWS: Mention the change.
45521
45522 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45523
45524         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45525         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45526         Eric Blake <ebb9@byu.net> for review.
45527         * MODULES.html.sh: Add lib-msvc-compat.
45528         * doc/gnulib.texi: Link to new section.
45529         * m4/ld-output-def.m4: New file.
45530         * doc/ld-output-def.texi: New file.
45531
45532 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45533
45534         Rename ld-version-script to lib-symbol-versions.  Suggested by
45535         Bruno Haible <bruno@clisp.org>.
45536         * modules/ld-version-script: Renamed to lib-symbol-versions.
45537         * doc/ld-version-script.texi: Fix module name.
45538         * MODULES.html.sh: Add lib-symbol-versions.
45539
45540 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45541
45542         * modules/u64-tests: New file.
45543         * tests/test-u64.c: New file.
45544
45545 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45546
45547         * MODULES.html.sh: Mention u64.
45548         * modules/u64: New module.
45549         * modules/crypto/sha512: Depend on u64 module instead of providing
45550         u64.h.
45551
45552 2009-03-27  Eric Blake  <ebb9@byu.net>
45553
45554         test-strerror: make debugging EAI_SYSTEM easier
45555         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45556         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45557         failure was EAI_SYSTEM.
45558
45559 2009-03-25  Bruno Haible  <bruno@clisp.org>
45560
45561         Fix a problem with --enable-relocatable on Solaris 7.
45562         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45563         since 2008-02-24.
45564
45565 2009-03-25  Eric Blake  <ebb9@byu.net>
45566
45567         test-sockets: avoid gcc warning
45568         * tests/test-sockets.c (main): Silence compiler warning.
45569
45570 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45571
45572         New modules nproc, pthread, contributed by Glen Lenker.
45573
45574         * MODULES.html.sh: Add pthread, nproc.
45575         * lib/nproc.c: New file.
45576         * lib/nproc.h: New file.
45577         * lib/pthread.in.h: New file.
45578         * m4/pthread.m4: New file.
45579         * modules/nproc: New file.
45580         * modules/pthread: New file.
45581
45582 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45583
45584         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45585         New variable.
45586
45587 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45588
45589         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45590         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45591         * tests/test-filevercmp.c: Add tests for backup suffixes.
45592
45593 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45594
45595         * modules/stdlib (Depends-on): Add stdint, needed when defining
45596         struct random_data on, for example, HP-UX 10.20.  Reported by
45597         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45598
45599 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45600
45601         * lib/readline.c (readline): Call fflush on stdout after printing
45602         prompt.
45603
45604 2009-03-20  Bruno Haible  <bruno@clisp.org>
45605
45606         Remove dependency from 'close' module to -lws2_32 on native Windows.
45607         * lib/close-hook.h: New file.
45608         * lib/close-hook.c: New file.
45609         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45610         w32sock.h.
45611         (_gl_close_fd_maybe_socket): Remove function.
45612         (rpl_close): Invoke execute_all_close_hooks instead of
45613         _gl_close_fd_maybe_socket.
45614         * lib/sockets.c: Include close-hook.h, w32sock.h.
45615         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45616         (close_sockets_hook): New variable.
45617         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45618         (gl_sockets_cleanup): Unregister it.
45619         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45620         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45621         * modules/close-hook: New file.
45622         * modules/close (Files): Remove lib/w32sock.h.
45623         (Depends-on): Add close-hook.
45624         (Link): Remove section.
45625         * modules/sockets (Files): Add lib/w32sock.h.
45626         (Depends-on): Add close-hook.
45627         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45628         invocation.
45629         * NEWS: Mention that LIB_CLOSE is gone.
45630
45631 2009-03-23  Eric Blake  <ebb9@byu.net>
45632
45633         signal-tests: test previous patch
45634         * tests/test-signal.c: New file.
45635         * modules/signal-tests: Likewise.
45636
45637         signal.h: always support 'volatile sig_atomic_t'
45638         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45639         (gl_SIGNAL_H_DEFAULTS): Add a default.
45640         * modules/signal (Makefile.am): Substitute if needed.
45641         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45642         users can blindly add volatile.
45643         * doc/posix-headers/signal.texi (signal.h): Document it.
45644         Reported by Matthew Woehlke.
45645
45646 2009-03-23  Jim Meyering  <meyering@redhat.com>
45647
45648         pathmax: PATH_MAX: use pathconf only when available
45649         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45650         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45651         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45652         This avoids a link failure in a PSP cross-compilation environment
45653         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45654
45655         * lib/vasnprintf.c (divide): Fix typo in comment.
45656
45657 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45658
45659         * gnulib-tool (func_filter_filelist): Fix comment.
45660
45661 2009-03-20  Bruno Haible  <bruno@clisp.org>
45662
45663         Make sockets.h self-contained.
45664         * lib/sockets.c: Include sockets.h first.
45665         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45666
45667 2009-03-19  Eric Blake  <ebb9@byu.net>
45668
45669         doc: mention more functions added in cygwin 1.7.0
45670         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45671         addition.
45672         * doc/posix-functions/log2f.texi: Likewise.
45673
45674 2009-03-19  Jim Meyering  <meyering@redhat.com>
45675
45676         fsusage: avoid syntax error due to statement-before-declaration
45677         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45678         after all declarations.  Reported by Matthew Woehlke in
45679         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45680
45681 2009-03-18  Eric Blake  <ebb9@byu.net>
45682
45683         build-aux/compile: sync from automake
45684         * build-aux/compile: New file, from automake.
45685         * config/srclist.txt: Mention build-aux/compile.
45686
45687 2009-03-17  Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/git-merge-changelog.c: Fix typo in comment.
45690         Reported by Reuben Thomas <rrt@sc3d.org>.
45691
45692 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45693
45694         * m4/regex.m4: update and improve help for
45695         --without-included-regex.
45696
45697 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45698
45699         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45700         failure on missing include files.
45701
45702 2009-03-17  Eric Blake  <ebb9@byu.net>
45703
45704         doc: mention more functions added in cygwin 1.7.0
45705         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45706         addition.
45707         * doc/posix-functions/fwscanf.texi: Likewise.
45708         * doc/posix-functions/swprintf.texi: Likewise.
45709         * doc/posix-functions/swscanf.texi: Likewise.
45710         * doc/posix-functions/vfwprintf.texi: Likewise.
45711         * doc/posix-functions/vfwscanf.texi: Likewise.
45712         * doc/posix-functions/vswprintf.texi: Likewise.
45713         * doc/posix-functions/vswscanf.texi: Likewise.
45714         * doc/posix-functions/vwprintf.texi: Likewise.
45715         * doc/posix-functions/vwscanf.texi: Likewise.
45716         * doc/posix-functions/wcscasecmp.texi: Likewise.
45717         * doc/posix-functions/wcsdup.texi: Likewise.
45718         * doc/posix-functions/wcsftime.texi: Likewise.
45719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45720         * doc/posix-functions/wprintf.texi: Likewise.
45721         * doc/posix-functions/wscanf.texi: Likewise.
45722         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45723
45724 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45725
45726         maint.mk: really add $(AM_MAKEFLAGS)
45727         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45728         was inadvertently omitted in the last commit.
45729         Spotted by Bruno Haible.
45730
45731         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45732         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45733         $(AM_MAKEFLAGS)' rather than plain `make'.
45734
45735         gnulib-tool: execute $MAKE not make
45736         * gnulib-tool: Default $MAKE to 'make'.
45737         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45738         than make.  Initialize $MAKE in the do-autobuild script.
45739
45740         gnulib-tool: use $MAKE not make in generated files
45741         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45742         make, in generated files.  Initialize $MAKE in the do-autobuild
45743         script.
45744
45745         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45746
45747         GNUmakefile: disable parallelism only for multiple, recursive targets
45748         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45749         additions in the Makefile.
45750         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45751         by Automake.
45752         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45753         are listed on the command line and at least one of them is
45754         listed in $(ALL_RECURSIVE_TARGETS).
45755
45756 2009-03-14  Bruno Haible  <bruno@clisp.org>
45757
45758         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45759         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45760         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45761         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45762         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45763         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45764         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45765         unistr/u8-uctomb.
45766         * modules/unistr/u8-strchr (Depends-on): Likewise.
45767         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45768         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45769         unistr/u16-uctomb.
45770         * modules/unistr/u16-strchr (Depends-on): Likewise.
45771         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45772
45773 2009-03-12  Bruno Haible  <bruno@clisp.org>
45774
45775         Work around select() bug on Interix 3.5.
45776         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45777         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45778         * m4/select.m4: New file.
45779         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45780         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45781         * modules/select (Files): Add m4/select.m4.
45782         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45783         * modules/nanosleep (Depends-on): Add select.
45784         * modules/poll (Depends-on): Likewise.
45785         * doc/posix-functions/select.texi: Mention the Interix bug.
45786         Reported by Markus Duft <mduft@gentoo.org>.
45787
45788         * lib/select.c: Renamed from lib/winsock-select.c.
45789         * modules/select (Files): Add lib/select.c, remove
45790         lib/winsock-select.c.
45791         (configure.ac): Update.
45792
45793 2009-03-12  Jim Meyering  <meyering@redhat.com>
45794
45795         avoid gcc warnings about unused macro definitions
45796         * lib/readtokens.c (STREQ): Remove unused definition.
45797         * lib/xmalloc.c (SIZE_MAX): Likewise.
45798         * lib/openat-die.c (N_): Likewise.
45799         * lib/mountlist.c (SIZE_MAX): Remove definition.
45800         Instead, include <stdint.h>.
45801         * lib/readutmp.c: Likewise.
45802         * modules/readutmp (Depends-on): Add stdint.
45803         * modules/mountlist (Depends-on): Add stdint.
45804         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45805
45806 2009-03-10  Bruno Haible  <bruno@clisp.org>
45807
45808         Tests for module 'mbmemcasecoll'.
45809         * modules/mbmemcasecoll-tests: New file.
45810         * tests/test-mbmemcasecoll1.sh: New file.
45811         * tests/test-mbmemcasecoll2.sh: New file.
45812         * tests/test-mbmemcasecoll3.sh: New file.
45813         * tests/test-mbmemcasecoll.c: New file.
45814
45815         New module 'mbmemcasecoll'.
45816         * lib/mbmemcasecoll.h: New file.
45817         * lib/mbmemcasecoll.c: New file.
45818         * modules/mbmemcasecoll: New file.
45819
45820         * tests/test-mbmemcasecmp.h: New file, extracted from
45821         tests/test-mbmemcasecmp.c.
45822         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45823         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45824         (main): Update.
45825         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45826
45827 2009-03-09  Bruno Haible  <bruno@clisp.org>
45828
45829         Tests for module 'mbmemcasecmp'.
45830         * modules/mbmemcasecmp-tests: New file.
45831         * tests/test-mbmemcasecmp1.sh: New file.
45832         * tests/test-mbmemcasecmp2.sh: New file.
45833         * tests/test-mbmemcasecmp3.sh: New file.
45834         * tests/test-mbmemcasecmp.c: New file.
45835
45836         New module 'mbmemcasecmp'.
45837         * lib/mbmemcasecmp.h: New file.
45838         * lib/mbmemcasecmp.c: New file.
45839         * modules/mbmemcasecmp: New file.
45840
45841 2009-03-09  Bruno Haible  <bruno@clisp.org>
45842
45843         Tests for module 'unicase/ulc-casecoll'.
45844         * modules/unicase/ulc-casecoll-tests: New file.
45845         * tests/unicase/test-ulc-casecoll1.sh: New file.
45846         * tests/unicase/test-ulc-casecoll2.sh: New file.
45847         * tests/unicase/test-ulc-casecoll.c: New file.
45848
45849         New module 'unicase/ulc-casecoll'.
45850         * lib/unicase.h (ulc_casecoll): New declaration.
45851         * lib/unicase/ulc-casecoll.c: New file.
45852         * modules/unicase/ulc-casecoll: New file.
45853
45854         New module 'unicase/ulc-casexfrm'.
45855         * lib/unicase.h (ulc_casexfrm): New declaration.
45856         * lib/unicase/ulc-casexfrm.c: New file.
45857         * modules/unicase/ulc-casexfrm: New file.
45858
45859 2009-03-09  Bruno Haible  <bruno@clisp.org>
45860
45861         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45862         invocations.
45863
45864         * m4/mbscasecmp.m4: Remove file.
45865         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45866         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45867
45868         * m4/mbscasestr.m4: Remove file.
45869         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45870         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45871
45872         * m4/mbschr.m4: Remove file.
45873         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45874         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45875
45876         * m4/mbscspn.m4: Remove file.
45877         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45878         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45879
45880         * m4/mbslen.m4: Remove file.
45881         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45882         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45883
45884         * m4/mbsncasecmp.m4: Remove file.
45885         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45886         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45887
45888         * m4/mbsnlen.m4: Remove file.
45889         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45890         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45891
45892         * m4/mbspbrk.m4: Remove file.
45893         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45894         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45895
45896         * m4/mbspcasecmp.m4: Remove file.
45897         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45898         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45899
45900         * m4/mbsrchr.m4: Remove file.
45901         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45902         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45903
45904         * m4/mbssep.m4: Remove file.
45905         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45906         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45907
45908         * m4/mbsspn.m4: Remove file.
45909         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45910         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45911
45912         * m4/mbsstr.m4: Remove file.
45913         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45914         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45915
45916         * m4/mbstok_r.m4: Remove file.
45917         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45918         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45919
45920         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45921
45922         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45923         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45924
45925         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45926
45927 2009-03-08  Bruno Haible  <bruno@clisp.org>
45928
45929         Tests for module 'unicase/ulc-casecmp'.
45930         * modules/unicase/ulc-casecmp-tests: New file.
45931         * tests/unicase/test-ulc-casecmp1.sh: New file.
45932         * tests/unicase/test-ulc-casecmp2.sh: New file.
45933         * tests/unicase/test-ulc-casecmp.c: New file.
45934
45935         New module 'unicase/ulc-casecmp'.
45936         * lib/unicase.h (ulc_casecmp): New declaration.
45937         * lib/unicase/ulc-casecmp.c: New file.
45938         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45939         'const SRC_UNIT *'.
45940         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45941         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45942         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45943         * modules/unicase/ulc-casecmp: New file.
45944
45945         Tests for module 'unicase/u32-is-cased'.
45946         * modules/unicase/u32-is-cased-tests: New file.
45947         * tests/unicase/test-u32-is-cased.c: New file.
45948
45949         Tests for module 'unicase/u16-is-cased'.
45950         * modules/unicase/u16-is-cased-tests: New file.
45951         * tests/unicase/test-u16-is-cased.c: New file.
45952
45953         Tests for module 'unicase/u8-is-cased'.
45954         * modules/unicase/u8-is-cased-tests: New file.
45955         * tests/unicase/test-u8-is-cased.c: New file.
45956         * tests/unicase/test-is-cased.h: New file.
45957
45958         New module 'unicase/u32-is-cased'.
45959         * lib/unicase/u32-is-cased.c: New file.
45960         * modules/unicase/u32-is-cased: New file.
45961
45962         New module 'unicase/u16-is-cased'.
45963         * lib/unicase/u16-is-cased.c: New file.
45964         * modules/unicase/u16-is-cased: New file.
45965
45966         New module 'unicase/u8-is-cased'.
45967         * lib/unicase/u8-is-cased.c: New file.
45968         * lib/unicase/u-is-cased.h: New file.
45969         * modules/unicase/u8-is-cased: New file.
45970
45971         Tests for module 'unicase/u32-is-casefolded'.
45972         * modules/unicase/u32-is-casefolded-tests: New file.
45973         * tests/unicase/test-u32-is-casefolded.c: New file.
45974
45975         Tests for module 'unicase/u16-is-casefolded'.
45976         * modules/unicase/u16-is-casefolded-tests: New file.
45977         * tests/unicase/test-u16-is-casefolded.c: New file.
45978
45979         Tests for module 'unicase/u8-is-casefolded'.
45980         * modules/unicase/u8-is-casefolded-tests: New file.
45981         * tests/unicase/test-u8-is-casefolded.c: New file.
45982         * tests/unicase/test-is-casefolded.h: New file.
45983
45984         New module 'unicase/u32-is-casefolded'.
45985         * lib/unicase/u32-is-casefolded.c: New file.
45986         * modules/unicase/u32-is-casefolded: New file.
45987
45988         New module 'unicase/u16-is-casefolded'.
45989         * lib/unicase/u16-is-casefolded.c: New file.
45990         * modules/unicase/u16-is-casefolded: New file.
45991
45992         New module 'unicase/u8-is-casefolded'.
45993         * lib/unicase/u8-is-casefolded.c: New file.
45994         * modules/unicase/u8-is-casefolded: New file.
45995
45996         Tests for module 'unicase/u32-is-titlecase'.
45997         * modules/unicase/u32-is-titlecase-tests: New file.
45998         * tests/unicase/test-u32-is-titlecase.c: New file.
45999
46000         Tests for module 'unicase/u16-is-titlecase'.
46001         * modules/unicase/u16-is-titlecase-tests: New file.
46002         * tests/unicase/test-u16-is-titlecase.c: New file.
46003
46004         Tests for module 'unicase/u8-is-titlecase'.
46005         * modules/unicase/u8-is-titlecase-tests: New file.
46006         * tests/unicase/test-u8-is-titlecase.c: New file.
46007         * tests/unicase/test-is-titlecase.h: New file.
46008
46009         New module 'unicase/u32-is-titlecase'.
46010         * lib/unicase/u32-is-titlecase.c: New file.
46011         * modules/unicase/u32-is-titlecase: New file.
46012
46013         New module 'unicase/u16-is-titlecase'.
46014         * lib/unicase/u16-is-titlecase.c: New file.
46015         * modules/unicase/u16-is-titlecase: New file.
46016
46017         New module 'unicase/u8-is-titlecase'.
46018         * lib/unicase/u8-is-titlecase.c: New file.
46019         * modules/unicase/u8-is-titlecase: New file.
46020
46021         Tests for module 'unicase/u32-is-lowercase'.
46022         * modules/unicase/u32-is-lowercase-tests: New file.
46023         * tests/unicase/test-u32-is-lowercase.c: New file.
46024
46025         Tests for module 'unicase/u16-is-lowercase'.
46026         * modules/unicase/u16-is-lowercase-tests: New file.
46027         * tests/unicase/test-u16-is-lowercase.c: New file.
46028
46029         Tests for module 'unicase/u8-is-lowercase'.
46030         * modules/unicase/u8-is-lowercase-tests: New file.
46031         * tests/unicase/test-u8-is-lowercase.c: New file.
46032         * tests/unicase/test-is-lowercase.h: New file.
46033
46034         New module 'unicase/u32-is-lowercase'.
46035         * lib/unicase/u32-is-lowercase.c: New file.
46036         * modules/unicase/u32-is-lowercase: New file.
46037
46038         New module 'unicase/u16-is-lowercase'.
46039         * lib/unicase/u16-is-lowercase.c: New file.
46040         * modules/unicase/u16-is-lowercase: New file.
46041
46042         New module 'unicase/u8-is-lowercase'.
46043         * lib/unicase/u8-is-lowercase.c: New file.
46044         * modules/unicase/u8-is-lowercase: New file.
46045
46046         Tests for module 'unicase/u32-is-uppercase'.
46047         * modules/unicase/u32-is-uppercase-tests: New file.
46048         * tests/unicase/test-u32-is-uppercase.c: New file.
46049
46050         Tests for module 'unicase/u16-is-uppercase'.
46051         * modules/unicase/u16-is-uppercase-tests: New file.
46052         * tests/unicase/test-u16-is-uppercase.c: New file.
46053
46054         Tests for module 'unicase/u8-is-uppercase'.
46055         * modules/unicase/u8-is-uppercase-tests: New file.
46056         * tests/unicase/test-u8-is-uppercase.c: New file.
46057         * tests/unicase/test-is-uppercase.h: New file.
46058
46059         New module 'unicase/u32-is-uppercase'.
46060         * lib/unicase/u32-is-uppercase.c: New file.
46061         * modules/unicase/u32-is-uppercase: New file.
46062
46063         New module 'unicase/u16-is-uppercase'.
46064         * lib/unicase/u16-is-uppercase.c: New file.
46065         * modules/unicase/u16-is-uppercase: New file.
46066
46067         New module 'unicase/u8-is-uppercase'.
46068         * lib/unicase/u8-is-uppercase.c: New file.
46069         * modules/unicase/u8-is-uppercase: New file.
46070
46071         New module 'unicase/u32-is-invariant'.
46072         * lib/unicase/u32-is-invariant.c: New file.
46073         * modules/unicase/u32-is-invariant: New file.
46074
46075         New module 'unicase/u16-is-invariant'.
46076         * lib/unicase/u16-is-invariant.c: New file.
46077         * modules/unicase/u16-is-invariant: New file.
46078
46079         New module 'unicase/u8-is-invariant'.
46080         * lib/unicase/u8-is-invariant.c: New file.
46081         * lib/unicase/invariant.h: New file.
46082         * lib/unicase/u-is-invariant.h: New file.
46083         * modules/unicase/u8-is-invariant: New file.
46084
46085         Tests for module 'unicase/u32-casecoll'.
46086         * modules/unicase/u32-casecoll-tests: New file.
46087         * tests/unicase/test-u32-casecoll.c: New file.
46088
46089         Tests for module 'unicase/u16-casecoll'.
46090         * modules/unicase/u16-casecoll-tests: New file.
46091         * tests/unicase/test-u16-casecoll.c: New file.
46092
46093         Tests for module 'unicase/u8-casecoll'.
46094         * modules/unicase/u8-casecoll-tests: New file.
46095         * tests/unicase/test-u8-casecoll.c: New file.
46096
46097         New module 'unicase/u32-casecoll'.
46098         * lib/unicase/u32-casecoll.c: New file.
46099         * modules/unicase/u32-casecoll: New file.
46100
46101         New module 'unicase/u16-casecoll'.
46102         * lib/unicase/u16-casecoll.c: New file.
46103         * modules/unicase/u16-casecoll: New file.
46104
46105         New module 'unicase/u8-casecoll'.
46106         * lib/unicase/u8-casecoll.c: New file.
46107         * lib/unicase/u-casecoll.h: New file.
46108         * modules/unicase/u8-casecoll: New file.
46109
46110         New module 'unicase/u32-casexfrm'.
46111         * lib/unicase/u32-casexfrm.c: New file.
46112         * modules/unicase/u32-casexfrm: New file.
46113
46114         New module 'unicase/u16-casexfrm'.
46115         * lib/unicase/u16-casexfrm.c: New file.
46116         * modules/unicase/u16-casexfrm: New file.
46117
46118         New module 'unicase/u8-casexfrm'.
46119         * lib/unicase/u8-casexfrm.c: New file.
46120         * lib/unicase/u-casexfrm.h: New file.
46121         * modules/unicase/u8-casexfrm: New file.
46122
46123         Tests for module 'unicase/u32-casecmp'.
46124         * modules/unicase/u32-casecmp-tests: New file.
46125         * tests/unicase/test-u32-casecmp.c: New file.
46126
46127         Tests for module 'unicase/u16-casecmp'.
46128         * modules/unicase/u16-casecmp-tests: New file.
46129         * tests/unicase/test-u16-casecmp.c: New file.
46130
46131         Tests for module 'unicase/u8-casecmp'.
46132         * modules/unicase/u8-casecmp-tests: New file.
46133         * tests/unicase/test-u8-casecmp.c: New file.
46134         * tests/unicase/test-casecmp.h: New file.
46135
46136         New module 'unicase/u32-casecmp'.
46137         * lib/unicase/u32-casecmp.c: New file.
46138         * modules/unicase/u32-casecmp: New file.
46139
46140         New module 'unicase/u16-casecmp'.
46141         * lib/unicase/u16-casecmp.c: New file.
46142         * modules/unicase/u16-casecmp: New file.
46143
46144         New module 'unicase/u8-casecmp'.
46145         * lib/unicase/u8-casecmp.c: New file.
46146         * lib/unicase/u-casecmp.h: New file.
46147         * modules/unicase/u8-casecmp: New file.
46148
46149         Tests for module 'unicase/u32-casefold'.
46150         * modules/unicase/u32-casefold-tests: New file.
46151         * tests/unicase/test-u32-casefold.c: New file.
46152
46153         Tests for module 'unicase/u16-casefold'.
46154         * modules/unicase/u16-casefold-tests: New file.
46155         * tests/unicase/test-u16-casefold.c: New file.
46156
46157         Tests for module 'unicase/u8-casefold'.
46158         * modules/unicase/u8-casefold-tests: New file.
46159         * tests/unicase/test-u8-casefold.c: New file.
46160
46161         New module 'unicase/u32-casefold'.
46162         * lib/unicase/u32-casefold.c: New file.
46163         * modules/unicase/u32-casefold: New file.
46164
46165         New module 'unicase/u16-casefold'.
46166         * lib/unicase/u16-casefold.c: New file.
46167         * modules/unicase/u16-casefold: New file.
46168
46169         New module 'unicase/u8-casefold'.
46170         * lib/unicase/u8-casefold.c: New file.
46171         * lib/unicase/u-casefold.h: New file.
46172         * modules/unicase/u8-casefold: New file.
46173
46174         New module 'unicase/tocasefold'.
46175         * lib/unicase/casefold.h: New file.
46176         * lib/unicase/tocasefold.c: New file.
46177         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46178         * modules/unicase/tocasefold: New file.
46179
46180         Tests for module 'unicase/u32-totitle'.
46181         * modules/unicase/u32-totitle-tests: New file.
46182         * tests/unicase/test-u32-totitle.c: New file.
46183
46184         Tests for module 'unicase/u16-totitle'.
46185         * modules/unicase/u16-totitle-tests: New file.
46186         * tests/unicase/test-u16-totitle.c: New file.
46187
46188         Tests for module 'unicase/u8-totitle'.
46189         * modules/unicase/u8-totitle-tests: New file.
46190         * tests/unicase/test-u8-totitle.c: New file.
46191
46192         New module 'unicase/u32-totitle'.
46193         * lib/unicase/u32-totitle.c: New file.
46194         * modules/unicase/u32-totitle: New file.
46195
46196         New module 'unicase/u16-totitle'.
46197         * lib/unicase/u16-totitle.c: New file.
46198         * modules/unicase/u16-totitle: New file.
46199
46200         New module 'unicase/u8-totitle'.
46201         * lib/unicase/u8-totitle.c: New file.
46202         * lib/unicase/u-totitle.h: New file.
46203         * modules/unicase/u8-totitle: New file.
46204
46205         Tests for module 'unicase/u32-tolower'.
46206         * modules/unicase/u32-tolower-tests: New file.
46207         * tests/unicase/test-u32-tolower.c: New file.
46208
46209         Tests for module 'unicase/u16-tolower'.
46210         * modules/unicase/u16-tolower-tests: New file.
46211         * tests/unicase/test-u16-tolower.c: New file.
46212
46213         Tests for module 'unicase/u8-tolower'.
46214         * modules/unicase/u8-tolower-tests: New file.
46215         * tests/unicase/test-u8-tolower.c: New file.
46216
46217         New module 'unicase/u32-tolower'.
46218         * lib/unicase/u32-tolower.c: New file.
46219         * modules/unicase/u32-tolower: New file.
46220
46221         New module 'unicase/u16-tolower'.
46222         * lib/unicase/u16-tolower.c: New file.
46223         * modules/unicase/u16-tolower: New file.
46224
46225         New module 'unicase/u8-tolower'.
46226         * lib/unicase/u8-tolower.c: New file.
46227         * modules/unicase/u8-tolower: New file.
46228
46229         Tests for module 'unicase/u32-toupper'.
46230         * modules/unicase/u32-toupper-tests: New file.
46231         * tests/unicase/test-u32-toupper.c: New file.
46232
46233         Tests for module 'unicase/u16-toupper'.
46234         * modules/unicase/u16-toupper-tests: New file.
46235         * tests/unicase/test-u16-toupper.c: New file.
46236
46237         Tests for module 'unicase/u8-toupper'.
46238         * modules/unicase/u8-toupper-tests: New file.
46239         * tests/unicase/test-u8-toupper.c: New file.
46240
46241         New module 'unicase/u32-toupper'.
46242         * lib/unicase/u32-toupper.c: New file.
46243         * modules/unicase/u32-toupper: New file.
46244
46245         New module 'unicase/u16-toupper'.
46246         * lib/unicase/u16-toupper.c: New file.
46247         * modules/unicase/u16-toupper: New file.
46248
46249         New module 'unicase/u8-toupper'.
46250         * lib/unicase/u8-toupper.c: New file.
46251         * modules/unicase/u8-toupper: New file.
46252
46253         New module 'unicase/u32-casemap'.
46254         * lib/unicase/u32-casemap.c: New file.
46255         * modules/unicase/u32-casemap: New file.
46256
46257         New module 'unicase/u16-casemap'.
46258         * lib/unicase/u16-casemap.c: New file.
46259         * modules/unicase/u16-casemap: New file.
46260
46261         New module 'unicase/u8-casemap'.
46262         * lib/unicase/unicasemap.h: New file.
46263         * lib/unicase/u8-casemap.c: New file.
46264         * lib/unicase/u-casemap.h: New file.
46265         * modules/unicase/u8-casemap: New file.
46266
46267         New module 'unicase/special-casing'.
46268         * lib/unicase/special-casing.h: New file.
46269         * lib/unicase/special-casing.c: New file.
46270         * lib/unicase/special-casing-table.gperf: New file, generated by
46271         gen-uni-tables.c.
46272         * modules/unicase/special-casing: New file.
46273
46274         Tests for module 'unicase/locale-language'.
46275         * modules/unicase/locale-language-tests: New file.
46276         * tests/unicase/test-locale-language.sh: New file.
46277         * tests/unicase/test-locale-language.c: New file.
46278
46279         New module 'unicase/locale-language'.
46280         * lib/unicase/locale-language.c: New file.
46281         * lib/unicase/locale-languages.gperf: New file.
46282         * modules/unicase/locale-language: New file.
46283
46284         Generate more tables for case conversion and case folding.
46285         * lib/gen-uni-tables.c (SCC_*): New enum items.
46286         (struct special_casing_rule): New type.
46287         (casing_rules, num_casing_rules, allocated_casing_rules): New
46288         variables.
46289         (add_casing_rule, fill_casing_rules): New functions.
46290         (struct casefold_rule): New type.
46291         (casefolding_rules, num_casefolding_rules,
46292         allocated_casefolding_rules): New variables.
46293         (fill_casefolding_rules): New function.
46294         (unicode_casefold): New variable.
46295         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46296         sort_casing_rules, output_casing_rules): New functions.
46297         (main): Accept to more arguments: SpecialCasing.txt and
46298         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46299         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46300         Output mapping for casefolding.
46301
46302         * lib/unicase.h: Include stdbool.h, uninorm.h.
46303         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46304         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46305         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46306         arguments.
46307         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46308         resultp arguments.
46309         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46310         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46311         resultp arguments.
46312         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46313         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46314         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46315         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46316         declarations.
46317         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46318
46319 2009-03-08  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46322         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46323         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46324         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46325
46326 2009-03-07  Bruno Haible  <bruno@clisp.org>
46327
46328         Adjust u*_normcmp, u*_normcoll API.
46329         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46330         u16_normcoll, u32_normcoll): Change failure conventions.
46331         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46332         errno and return -1.
46333         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46334
46335 2009-03-07  Bruno Haible  <bruno@clisp.org>
46336
46337         Tests for module 'uninorm/u32-normcoll'.
46338         * modules/uninorm/u32-normcoll-tests: New file.
46339         * tests/uninorm/test-u32-normcoll.c: New file.
46340
46341         Tests for module 'uninorm/u16-normcoll'.
46342         * modules/uninorm/u16-normcoll-tests: New file.
46343         * tests/uninorm/test-u16-normcoll.c: New file.
46344
46345         Tests for module 'uninorm/u8-normcoll'.
46346         * modules/uninorm/u8-normcoll-tests: New file.
46347         * tests/uninorm/test-u8-normcoll.c: New file.
46348
46349 2009-03-07  Bruno Haible  <bruno@clisp.org>
46350
46351         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46352         tests/uninorm/test-u32-normcmp.c.
46353         * tests/uninorm/test-u32-normcmp.c: Include it.
46354         (test_nonascii): New function, extracted from main. Add some more
46355         tests.
46356         (main): Invoke test_ascii and test_nonascii.
46357         * modules/uninorm/u32-normcmp-tests (Files): Add
46358         tests/uninorm/test-u32-normcmp.h.
46359         (Depends-on): Remove uninorm/u32-normcmp.
46360
46361         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46362         tests/uninorm/test-u16-normcmp.c.
46363         * tests/uninorm/test-u16-normcmp.c: Include it.
46364         (test_nonascii): New function, extracted from main. Add some more
46365         tests.
46366         (main): Invoke test_ascii and test_nonascii.
46367         * modules/uninorm/u16-normcmp-tests (Files): Add
46368         tests/uninorm/test-u16-normcmp.h.
46369         (Depends-on): Remove uninorm/u16-normcmp.
46370
46371         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46372         tests/uninorm/test-u8-normcmp.c.
46373         * tests/uninorm/test-u8-normcmp.c: Include it.
46374         (test_nonascii): New function, extracted from main. Add some more
46375         tests.
46376         (main): Invoke test_ascii and test_nonascii.
46377         * modules/uninorm/u8-normcmp-tests (Files): Add
46378         tests/uninorm/test-u8-normcmp.h.
46379         (Depends-on): Remove uninorm/u8-normcmp.
46380
46381 2009-03-07  Bruno Haible  <bruno@clisp.org>
46382
46383         New module 'uninorm/u32-normcoll'.
46384         * lib/uninorm/u32-normcoll.c: New file.
46385         * modules/uninorm/u32-normcoll: New file.
46386
46387         New module 'uninorm/u16-normcoll'.
46388         * lib/uninorm/u16-normcoll.c: New file.
46389         * modules/uninorm/u16-normcoll: New file.
46390
46391         New module 'uninorm/u8-normcoll'.
46392         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46393         declarations.
46394         * lib/uninorm/u8-normcoll.c: New file.
46395         * lib/uninorm/u-normcoll.h: New file.
46396         * modules/uninorm/u8-normcoll: New file.
46397
46398         New module 'uninorm/u32-normxfrm'.
46399         * lib/uninorm/u32-normxfrm.c: New file.
46400         * modules/uninorm/u32-normxfrm: New file.
46401
46402         New module 'uninorm/u16-normxfrm'.
46403         * lib/uninorm/u16-normxfrm.c: New file.
46404         * modules/uninorm/u16-normxfrm: New file.
46405
46406         New module 'uninorm/u8-normxfrm'.
46407         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46408         declarations.
46409         * lib/uninorm/u8-normxfrm.c: New file.
46410         * lib/uninorm/u-normxfrm.h: New file.
46411         * modules/uninorm/u8-normxfrm: New file.
46412
46413 2009-03-07  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46416         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46417         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46418
46419 2009-03-07  Bruno Haible  <bruno@clisp.org>
46420
46421         New module 'memxfrm'.
46422         * lib/memxfrm.h: New file.
46423         * lib/memxfrm.c: New file.
46424         * modules/memxfrm: New file.
46425
46426 2009-03-07  Bruno Haible  <bruno@clisp.org>
46427
46428         New module 'memcmp2'.
46429         * lib/memcmp2.h: New file.
46430         * lib/memcmp2.c: New file.
46431         * modules/memcmp2: New file.
46432
46433 2009-03-07  Bruno Haible  <bruno@clisp.org>
46434
46435         Tests for module 'uninorm/decomposing-form'.
46436         * modules/uninorm/decomposing-form-tests: New file.
46437         * tests/uninorm/test-decomposing-form.c: New file.
46438
46439         New module 'uninorm/decomposing-form'.
46440         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46441         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46442         Add 'decomposing_variant' field.
46443         * lib/uninorm/decomposing-form.c: New file.
46444         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46445         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46446         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46447         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46448         * modules/uninorm/decomposing-form: New file.
46449         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46450         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46451
46452 2009-03-07  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46455         strings.
46456
46457 2009-03-06  Bruno Haible  <bruno@clisp.org>
46458
46459         Tests for module 'uninorm/u32-normcmp'.
46460         * tests/uninorm/test-u32-normcmp.c: New file.
46461         * modules/uninorm/u32-normcmp-tests: New file.
46462
46463         Tests for module 'uninorm/u16-normcmp'.
46464         * tests/uninorm/test-u16-normcmp.c: New file.
46465         * modules/uninorm/u16-normcmp-tests: New file.
46466
46467         Tests for module 'uninorm/u8-normcmp'.
46468         * tests/uninorm/test-u8-normcmp.c: New file.
46469         * modules/uninorm/u8-normcmp-tests: New file.
46470
46471         New module 'uninorm/u32-normcmp'.
46472         * lib/uninorm/u32-normcmp.c: New file.
46473         * modules/uninorm/u32-normcmp: New file.
46474
46475         New module 'uninorm/u16-normcmp'.
46476         * lib/uninorm/u16-normcmp.c: New file.
46477         * modules/uninorm/u16-normcmp: New file.
46478
46479         New module 'uninorm/u8-normcmp'.
46480         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46481         declarations.
46482         * lib/uninorm/u8-normcmp.c: New file.
46483         * lib/uninorm/u-normcmp.h: New file.
46484         * modules/uninorm/u8-normcmp: New file.
46485
46486 2009-03-06  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46489         Reported by Eric Blake.
46490
46491 2009-03-06  Eric Blake  <ebb9@byu.net>
46492             Bruno Haible  <bruno@clisp.org>
46493
46494         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46495         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46496         condition.
46497         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46498         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46499         condition.
46500         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46501
46502 2009-03-06  Eric Blake  <ebb9@byu.net>
46503
46504         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46505         to avoid compiler warnings.
46506         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46507
46508 2009-03-05  Bruno Haible  <bruno@clisp.org>
46509
46510         * tests/test-ftell.c (main): Disable test beyond end of file on
46511         FreeMiNT.
46512         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46513
46514 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46515
46516         * lib/filevercmp.c: Move hidden files up in ordering.
46517         * tests/test-filevercmp.c: Add tests for hidden files.
46518
46519 2009-03-04  Bruno Haible  <bruno@clisp.org>
46520
46521         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46522         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46523         AM_CFLAGS.
46524         Reported by Simon Josefsson.
46525
46526 2009-03-03  Bruno Haible  <bruno@clisp.org>
46527
46528         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46529         Reported by Simon Josefsson.
46530
46531         * doc/ld-version-script.texi: Update node reference.
46532
46533 2009-03-03  Bruno Haible  <bruno@clisp.org>
46534
46535         * modules/visibility (License): Change to 'unlimited'.
46536         Suggested by Simon Josefsson.
46537
46538 2009-03-03  Jim Meyering  <meyering@redhat.com>
46539
46540         unlinkdir: cannot_unlink_dir may modify process state
46541         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46542         it's neither thread-safe nor appropriate for use in a library.
46543
46544 2009-03-03  Eric Blake  <ebb9@byu.net>
46545
46546         test-closein: silence test under Darwin
46547         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46548         care if it dies from EPIPE or EBADF.
46549
46550 2009-03-03  Bruno Haible  <bruno@clisp.org>
46551
46552         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46553         earlier.
46554         * doc/visibility.texi: Fix @node and @section.
46555
46556 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46557
46558         * doc/gnulib.texi: Link to sections for ld version script and
46559         visibility.
46560         * doc/visibility.texi: Add @node and @section.
46561         * modules/ld-version-script: New module.
46562         * m4/ld-version-script.m4: New file.
46563         * doc/ld-version-script.texi: New file.
46564
46565 2009-03-02  David Lutterkort  <lutter@redhat.com>
46566
46567         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46569
46570 2009-03-02  Bruno Haible  <bruno@clisp.org>
46571
46572         * doc/visibility.texi: Mention libtool's -export-symbols option.
46573
46574 2009-03-02  Jim Meyering  <meyering@redhat.com>
46575
46576         announce-gen: new option: --no-print-checksums
46577         * build-aux/announce-gen (usage): Describe it.
46578         (print_checksums): Print a newline here, not in the [*] footnote.
46579         (main): Honor it.
46580
46581 2009-03-01  Bruno Haible  <bruno@clisp.org>
46582
46583         Use socklen_t in the native Windows replacements prototypes.
46584         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46585         instead of 'int'.
46586         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46587         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46588         * modules/getsockopt (Depends-on): Add socklen.
46589         * modules/setsockopt (Depends-on): Add socklen.
46590
46591 2009-03-01  Bruno Haible  <bruno@clisp.org>
46592
46593         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46594         least 4.2.
46595
46596 2009-03-01  Eric Blake  <ebb9@byu.net>
46597             Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46600         error messages.
46601         * lib/wait-process.c (wait_subprocess): Omit error message about
46602         deadly signal sent to the child of termsigp != NULL.
46603
46604 2009-03-01  Eric Blake  <ebb9@byu.net>
46605
46606         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46607
46608 2009-03-01  Bruno Haible  <bruno@clisp.org>
46609
46610         Avoid a gcc warning.
46611         * tests/test-sched.c (b): Make global.
46612         Reported by Eric Blake.
46613
46614 2009-01-19  Martin Lambers  <marlam@marlam.de>
46615
46616         Provide POSIX semantics for socket timeout options on W32.
46617         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46618         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46619         * modules/setsockopt: Depend on sys_time module for struct timeval.
46620         * modules/getsockopt: Depend on sys_time module for struct timeval.
46621
46622 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46623
46624         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46625         __USE_GNU, for consistency with netdb.in.h.
46626         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46627
46628 2009-03-01  Bruno Haible  <bruno@clisp.org>
46629
46630         More support for FreeMiNT.
46631         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46633
46634 2009-03-01  Bruno Haible  <bruno@clisp.org>
46635
46636         More support for FreeMiNT.
46637         * lib/fpurge.c (fpurge): Correct last commit.
46638         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46639
46640 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46641
46642         Fix unportable awk script in vc-list-files.
46643         * build-aux/vc-list-files: In the replacement awk script, use
46644         substr with a second argument of 1, not zero.
46645         Report by Simon Josefsson.
46646
46647 2009-02-28  Bruno Haible  <bruno@clisp.org>
46648
46649         More support for FreeMiNT.
46650         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46651         to FreeMiNT today.
46652         * lib/fwriting.c (fwriting): Likewise.
46653         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46654
46655 2009-02-28  Bruno Haible  <bruno@clisp.org>
46656
46657         * tests/test-freadseek.c (main): Disable test beyond end of file on
46658         FreeMiNT.
46659         * tests/test-ftello.c (main): Likewise.
46660         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46661
46662 2009-02-28  Bruno Haible  <bruno@clisp.org>
46663
46664         Add tentative support for FreeMiNT.
46665         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46666         * lib/fpurge.c (fpurge): Likewise.
46667         * lib/freadable.c (freadable): Likewise.
46668         * lib/freading.c (freading): Likewise.
46669         * lib/freadptr.c (freadptr): Likewise.
46670         * lib/freadseek.c (freadptrinc): Likewise.
46671         * lib/fseeko.c (rpl_fseeko): Likewise.
46672         * lib/fseterr.c (fseterr): Likewise.
46673         * lib/fwritable.c (fwritable): Likewise.
46674         * lib/fwriting.c (fwriting): Likewise.
46675         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46676         Hourihane.
46677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46678
46679 2009-02-28  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46682         SIGCHLD.
46683         Reported by Jim Meyering.
46684
46685 2009-02-28  Bruno Haible  <bruno@clisp.org>
46686
46687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46688         Mention the results of these tests on various platforms.
46689         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46690         order.
46691         * doc/posix-functions/printf.texi: Likewise.
46692         * doc/posix-functions/snprintf.texi: Likewise.
46693         * doc/posix-functions/sprintf.texi: Likewise.
46694         * doc/posix-functions/vfprintf.texi: Likewise.
46695         * doc/posix-functions/vprintf.texi: Likewise.
46696         * doc/posix-functions/vsnprintf.texi: Likewise.
46697         * doc/posix-functions/vsprintf.texi: Likewise.
46698         * doc/glibc-functions/obstack_printf.texi: Likewise.
46699         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46700
46701 2009-02-28  Bruno Haible  <bruno@clisp.org>
46702
46703         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46704         Reported by Loïc Minier <lool@dooz.org>.
46705
46706 2009-02-27  Bruno Haible  <bruno@clisp.org>
46707
46708         * gnulib-tool (func_import): Make the sed expression used to create the
46709         sed script for updating the .gitignore file POSIX compliant.
46710         Reported by Eric Blake.
46711
46712 2009-02-27  Bruno Haible  <bruno@clisp.org>
46713
46714         * gnulib-tool (sed): Don't alias as "sed --posix".
46715         Reported by Eric Blake.
46716
46717 2009-02-27  Bruno Haible  <bruno@clisp.org>
46718
46719         Avoid test link errors.
46720         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46721         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46722         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46723         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46725
46726 2009-02-27  Bruno Haible  <bruno@clisp.org>
46727
46728         Avoid spurious "(cached)" in configure output.
46729         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46730         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46731         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46734         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46735         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46736         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46737         Reported by Eric Blake.
46738
46739 2009-02-27  Eric Blake  <ebb9@byu.net>
46740
46741         printf: fix regression in previous patch
46742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46743
46744 2009-02-27  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46747         value.
46748         * lib/stdint.in.h: Likewise.
46749         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46750
46751 2009-02-27  Eric Blake  <ebb9@byu.net>
46752
46753         doc: mention more functions added in cygwin 1.7.0
46754         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46755         addition.
46756         * doc/posix-functions/open_wmemstream.texi: Likewise.
46757         * doc/posix-functions/wcsnlen.texi: Likewise.
46758         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46759         * doc/posix-functions/wcstod.texi: Likewise.
46760         * doc/posix-functions/wcstof.texi: Likewise.
46761         * doc/posix-functions/wcstoimax.texi: Likewise.
46762         * doc/posix-functions/wcstok.texi: Likewise.
46763         * doc/posix-functions/wcstoumax.texi: Likewise.
46764
46765         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46767         * doc/posix-functions/fprintf.texi: Update.
46768         * doc/posix-functions/printf.texi: Update.
46769         * doc/posix-functions/snprintf.texi: Update.
46770         * doc/posix-functions/sprintf.texi: Update.
46771         * doc/posix-functions/vfprintf.texi: Update.
46772         * doc/posix-functions/vprintf.texi: Update.
46773         * doc/posix-functions/vsnprintf.texi: Update.
46774         * doc/posix-functions/vsprintf.texi: Update.
46775         * doc/glibc-functions/obstack_printf.texi: Update.
46776         * doc/glibc-functions/obstack_vprintf.texi: Update.
46777
46778 2009-02-26  Eric Blake  <ebb9@byu.net>
46779
46780         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46781         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46782         compilation bug by using runtime conversion.
46783         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46785         * modules/ceill-tests (Files): Use nan.h.
46786         * modules/floorl-tests (Files): Likewise.
46787         * modules/frexpl-tests (Files): Likewise.
46788         * modules/isnanl-tests (Files): Likewise.
46789         * modules/ldexpl-tests (Files): Likewise.
46790         * modules/roundl-tests (Files): Likewise.
46791         * modules/truncl-tests (Files): Likewise.
46792         * tests/test-ceill.c (main): Use a working NaN.
46793         * tests/test-floorl.c (main): Likewise.
46794         * tests/test-frexpl.c (main): Likewise.
46795         * tests/test-isnan.c (test_long_double): Likewise.
46796         * tests/test-isnanl.h (main): Likewise.
46797         * tests/test-ldexpl.h (main): Likewise.
46798         * tests/test-roundl.h (main): Likewise.
46799         * tests/test-truncl.h (main): Likewise.
46800         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46801
46802 2009-02-26  Eric Blake  <ebb9@byu.net>
46803             Bruno Haible  <bruno@clisp.org>
46804
46805         Work around a *printf bug with %ls on Solaris.
46806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46807         precision is specified, sprintf stops converting the wide string
46808         argument when the number of bytes that have been produced by this
46809         conversion equals or exceeds the precision.
46810         * doc/posix-functions/fprintf.texi: Update.
46811         * doc/posix-functions/printf.texi: Update.
46812         * doc/posix-functions/snprintf.texi: Update.
46813         * doc/posix-functions/sprintf.texi: Update.
46814         * doc/posix-functions/vfprintf.texi: Update.
46815         * doc/posix-functions/vprintf.texi: Update.
46816         * doc/posix-functions/vsnprintf.texi: Update.
46817         * doc/posix-functions/vsprintf.texi: Update.
46818         * doc/glibc-functions/obstack_printf.texi: Update.
46819         * doc/glibc-functions/obstack_vprintf.texi: Update.
46820
46821 2009-02-26  Eric Blake  <ebb9@byu.net>
46822
46823         stdlib: favor compiler check of random.h
46824         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46825         to avoid an ObjC random.h installed by Swarm.
46826
46827 2009-02-26  Bruno Haible  <bruno@clisp.org>
46828
46829         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46830         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46831         Reported by Gary V. Vaughan <gary@gnu.org>.
46832
46833 2009-02-26  Bruno Haible  <bruno@clisp.org>
46834
46835         Fix *printf behaviour regarding the %ls directive.
46836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46837         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46838         NEED_PRINTF_DIRECTIVE_LS.
46839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46840         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46842         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46843         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46844         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46845         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46850         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46854         * doc/posix-functions/fprintf.texi: Update.
46855         * doc/posix-functions/printf.texi: Update.
46856         * doc/posix-functions/snprintf.texi: Update.
46857         * doc/posix-functions/sprintf.texi: Update.
46858         * doc/posix-functions/vfprintf.texi: Update.
46859         * doc/posix-functions/vprintf.texi: Update.
46860         * doc/posix-functions/vsnprintf.texi: Update.
46861         * doc/posix-functions/vsprintf.texi: Update.
46862         * doc/glibc-functions/obstack_printf.texi: Update.
46863         * doc/glibc-functions/obstack_vprintf.texi: Update.
46864         Reported by Eric Blake.
46865
46866 2009-02-25  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46869         with known value.
46870         Reported by Gary V. Vaughan <gary@gnu.org>.
46871
46872 2009-02-25  Bruno Haible  <bruno@clisp.org>
46873
46874         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46875         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46876         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46877         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46878         Reported by Gary V. Vaughan <gary@gnu.org>.
46879
46880 2009-02-25  Bruno Haible  <bruno@clisp.org>
46881
46882         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46883         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46884         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46885         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46886         Reported by Gary V. Vaughan <gary@gnu.org>.
46887
46888 2009-02-25  Eric Blake  <ebb9@byu.net>
46889
46890         tests: skip fseek/ftell tests if ungetc is broken
46891         * m4/ungetc.m4: New file.
46892         * modules/fseek-tests: Split test, so ungetc dependency is
46893         separate from rest of test.
46894         * modules/fseeko-tests: Likewise.
46895         * modules/ftell-tests: Likewise.
46896         * modules/ftello-tests: Likewise.
46897         * tests/test-fseek.c (main): Isolate ungetc dependency.
46898         * tests/test-fseeko.c (main): Likewise.
46899         * tests/test-ftell.c (main): Likewise.
46900         * tests/test-ftello.c (main): Likewise.
46901         * tests/test-fseek2.sh: New file.
46902         * tests/test-fseeko2.sh: Likewise.
46903         * tests/test-ftell2.sh: Likewise.
46904         * tests/test-ftello2.sh: Likewise.
46905
46906 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46907
46908         test-getaddrinfo: fix usage of skip return code 77
46909         * tests/test-gettaddrinfo.c: Return skip code 77 only
46910         for first occurance of skip (4x77 is not 77)
46911
46912 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46913
46914         strtod: avoid C99 decl-after-statement
46915         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46916
46917 2009-02-24  Eric Blake  <ebb9@byu.net>
46918
46919         strtod: detect HP-UX 11.31 bug
46920         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46921         Reported by Gary V. Vaughan.
46922
46923 2009-02-23  Bruno Haible  <bruno@clisp.org>
46924
46925         Fix invalid read past end of memory block.
46926         * lib/vasnprintf.c (DCHAR_SET): Define.
46927         (local_wcslen): Define only when needed.
46928         (local_strnlen, local_wcsnlen): New functions.
46929         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46930         directives that involve a conversion ourselves.
46931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46932         wcsnlen, mbrtowc, wcrtomb.
46933         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46934         * tests/test-vasprintf-posix.c (test_function): Likewise.
46935         * tests/test-snprintf-posix.h (test_function): Likewise.
46936         * tests/test-sprintf-posix.h (test_function): Likewise.
46937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46938
46939 2009-02-22  Bruno Haible  <bruno@clisp.org>
46940
46941         Implement new clarified decomposition of Hangul syllables.
46942         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46943         of type LTV, return only a pairwise decomposition.
46944         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46945         Likewise.
46946         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46947         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46948         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46949
46950 2009-02-22  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46953         zero-length results and shrink excess allocated memory.
46954         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46955         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46956         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46957         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46958         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46959         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46960         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46961         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46962         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46963         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46964         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46965         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46966
46967 2009-02-21  Bruno Haible  <bruno@clisp.org>
46968
46969         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46970         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46971         spaces after a period. Put a space between a macro name and its
46972         argument list. Trivial rewordings.
46973         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46974         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46975         (main): Return 0 explicitly.
46976
46977 2009-02-21  Bruno Haible  <bruno@clisp.org>
46978
46979         Tests for module 'uninorm/filter'.
46980         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46981         * modules/uninorm/filter-tests: New file.
46982
46983         New module 'uninorm/filter'.
46984         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46985         uninorm_filter_flush, uninorm_filter_free): New declarations.
46986         * lib/uninorm/uninorm-filter.c: New file.
46987         * modules/uninorm/filter: New file.
46988
46989 2009-02-21  Bruno Haible  <bruno@clisp.org>
46990
46991         Tests for module 'uninorm/nfkc'.
46992         * tests/uninorm/test-nfkc.c: New file.
46993         * tests/uninorm/test-u8-nfkc.c: New file.
46994         * tests/uninorm/test-u16-nfkc.c: New file.
46995         * tests/uninorm/test-u32-nfkc.c: New file.
46996         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46997         * tests/uninorm/test-u32-nfkc-big.c: New file.
46998         * modules/uninorm/nfkc-tests: New file.
46999
47000         New module 'uninorm/nfkc'.
47001         * lib/uninorm/nfkc.c: New file.
47002         * modules/uninorm/nfkc: New file.
47003
47004         Tests for module 'uninorm/nfkd'.
47005         * tests/uninorm/test-nfkd.c: New file.
47006         * tests/uninorm/test-u8-nfkd.c: New file.
47007         * tests/uninorm/test-u16-nfkd.c: New file.
47008         * tests/uninorm/test-u32-nfkd.c: New file.
47009         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47010         * tests/uninorm/test-u32-nfkd-big.c: New file.
47011         * modules/uninorm/nfkd-tests: New file.
47012
47013         New module 'uninorm/nfkd'.
47014         * lib/uninorm/nfkd.c: New file.
47015         * modules/uninorm/nfkd: New file.
47016
47017         Tests for module 'uninorm/nfc'.
47018         * tests/uninorm/test-nfc.c: New file.
47019         * tests/uninorm/test-u8-nfc.c: New file.
47020         * tests/uninorm/test-u16-nfc.c: New file.
47021         * tests/uninorm/test-u32-nfc.c: New file.
47022         * tests/uninorm/test-u32-nfc-big.sh: New file.
47023         * tests/uninorm/test-u32-nfc-big.c: New file.
47024         * modules/uninorm/nfc-tests: New file.
47025
47026         New module 'uninorm/nfc'.
47027         * lib/uninorm/nfc.c: New file.
47028         * modules/uninorm/nfc: New file.
47029
47030         Tests for module 'uninorm/nfd'.
47031         * tests/uninorm/test-nfd.c: New file.
47032         * tests/uninorm/test-u8-nfd.c: New file.
47033         * tests/uninorm/test-u16-nfd.c: New file.
47034         * tests/uninorm/test-u32-nfd.c: New file.
47035         * tests/uninorm/test-u32-nfd-big.sh: New file.
47036         * tests/uninorm/test-u32-nfd-big.c: New file.
47037         * tests/uninorm/test-u32-normalize-big.h: New file.
47038         * tests/uninorm/test-u32-normalize-big.c: New file.
47039         * tests/uninorm/NormalizationTest.txt: New file, created from
47040         Unicode 5.1.0 NormalizationTest.txt.
47041         * modules/uninorm/nfd-tests: New file.
47042
47043         New module 'uninorm/nfd'.
47044         * lib/uninorm/nfd.c: New file.
47045         * modules/uninorm/nfd: New file.
47046
47047         New module 'uninorm/u32-normalize'.
47048         * lib/uninorm/u32-normalize.c: New file.
47049         * modules/uninorm/u32-normalize: New file.
47050
47051         New module 'uninorm/u16-normalize'.
47052         * lib/uninorm/u16-normalize.c: New file.
47053         * modules/uninorm/u16-normalize: New file.
47054
47055         New module 'uninorm/u8-normalize'.
47056         * lib/uninorm/u8-normalize.c: New file.
47057         * lib/uninorm/normalize-internal.h: New file.
47058         * lib/uninorm/u-normalize-internal.h: New file.
47059         * modules/uninorm/u8-normalize: New file.
47060
47061         New module 'uninorm/decompose-internal'.
47062         * lib/uninorm/decompose-internal.c: New file.
47063         * modules/uninorm/decompose-internal: New file.
47064
47065         Tests for module 'uninorm/composition'.
47066         * tests/uninorm/test-composition.c: New file.
47067         * modules/uninorm/composition-tests: New file.
47068
47069         New module 'uninorm/composition'.
47070         * lib/uninorm/composition.c: New file.
47071         * lib/uninorm/composition-table.gperf: New file, generated by
47072         gen-uni-tables.
47073         * modules/uninorm/composition: New file.
47074
47075         Tests for module 'uninorm/compat-decomposition'.
47076         * tests/uninorm/test-compat-decomposition.c: New file.
47077         * modules/uninorm/compat-decomposition-tests: New file.
47078
47079         New module 'uninorm/compat-decomposition'.
47080         * lib/uninorm/decompose-internal.h: New file.
47081         * lib/uninorm/compat-decomposition.c: New file.
47082         * modules/uninorm/compat-decomposition: New file.
47083
47084         Tests for module 'uninorm/canonical-decomposition'.
47085         * tests/uninorm/test-canonical-decomposition.c: New file.
47086         * modules/uninorm/canonical-decomposition-tests: New file.
47087
47088         New module 'uninorm/canonical-decomposition'.
47089         * lib/uninorm/canonical-decomposition.c: New file.
47090         * modules/uninorm/canonical-decomposition: New file.
47091
47092         Tests for module 'uninorm/decomposition'.
47093         * tests/uninorm/test-decomposition.c: New file.
47094         * modules/uninorm/decomposition-tests: New file.
47095
47096         New module 'uninorm/decomposition'.
47097         * lib/uninorm/decomposition.c: New file.
47098         * modules/uninorm/decomposition: New file.
47099
47100         New module 'uninorm/decomposition-table'.
47101         * lib/uninorm/decomposition-table.h: New file.
47102         * lib/uninorm/decomposition-table.c: New file.
47103         * lib/uninorm/decomposition-table1.h: New file, generated by
47104         gen-uni-tables.
47105         * lib/uninorm/decomposition-table2.h: New file, generated by
47106         gen-uni-tables.
47107         * modules/uninorm/decomposition-table: New file.
47108
47109         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47110         (UC_DECOMP_*): New enumeration items.
47111         (get_decomposition): New function.
47112         (struct decomp_table): New type.
47113         (output_decomposition, output_decomposition_tables): New functions.
47114         (unicode_composition_exclusions): New variable.
47115         (fill_composition_exclusions, debug_output_composition_tables): New
47116         functions.
47117         (main): Accept one more argument. Invoke fill_composition_exclusions.
47118         Output decomposition and composition tables.
47119
47120         New module 'uninorm/base'.
47121         * lib/uninorm.h: New file.
47122         * lib/unictype.h: Update comment.
47123         * modules/uninorm/base: New file.
47124
47125 2009-02-21  David Lutterkort  <lutter@redhat.com>
47126
47127         Tests for module 'safe-alloc'.
47128         * tests/test-safe-alloc.c: New file.
47129         * modules/safe-alloc-tests: New file.
47130
47131         New module 'safe-alloc'.
47132         * lib/safe-alloc.h: New file.
47133         * lib/safe-alloc.c: New file.
47134         * m4/safe-alloc.m4: New file.
47135         * modules/safe-alloc: New file.
47136         * doc/safe-alloc.texi: New file.
47137         * doc/gnulib.texi: Include it.
47138         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47139         safe-alloc.
47140
47141 2009-02-18  Bruno Haible  <bruno@clisp.org>
47142
47143         Fix link error on non-glibc systems.
47144         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47145         variable.
47146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47147
47148 2009-02-18  Jim Meyering  <meyering@redhat.com>
47149
47150         fts: avoid used-uninitialized error due to recent change
47151         * lib/fts.c (fts_read): Guard uses of the new member,
47152         parent->fts_n_dirs_remaining, since it's not relevant for
47153         the parent of a directory specified on the command-line.
47154
47155 2009-02-17  James Youngman  <jay@gnu.org>
47156             Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/include_next.m4: Reformulate comment.
47159
47160 2009-02-16  Jim Meyering  <meyering@redhat.com>
47161
47162         fts: add #if guards so that the fts_lgpl module still builds
47163         * lib/fts.c: Guard just-added hash-table-using parts with
47164         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47165         Reported by Simon Josefsson.
47166
47167 2009-02-15  Bruno Haible  <bruno@clisp.org>
47168
47169         * modules/array-mergesort-tests: New file.
47170         * tests/test-array-mergesort.c: New file.
47171
47172         New module 'array-mergesort'.
47173         * modules/array-mergesort: New file.
47174         * lib/array-mergesort.h: New file.
47175
47176 2009-02-15  Bruno Haible  <bruno@clisp.org>
47177
47178         Fix 2009-02-07 commit.
47179         * lib/gen-uni-tables.c (output_predicate, output_category,
47180         output_combclass, output_bidi_category, output_decimal_digit,
47181         output_digit, output_numeric, output_mirror, output_scripts,
47182         output_ident_category, output_simple_mapping): Fix format directives.
47183         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47184
47185 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47186
47187         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47188         fixes are available from IBM.
47189
47190 2009-02-13  Jim Meyering  <meyering@redhat.com>
47191
47192         fts: arrange not to stat non-directories in more cases
47193         This makes GNU find (when it doesn't need to stat each file)
47194         *much* more efficient at traversing reiserfs file systems.
47195         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47196         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47197         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47198         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47199         (leaf_optimization_applies): New function.
47200         (LCO_hash, LCO_compare): New helper functions.
47201         (link_count_optimize_ok): New function.
47202         (fts_stat): Initialize new member (if dir).
47203         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47204         we've just stat'ed a directory.  Skip the stat call when possible.
47205         ---
47206         Note this AFS-related exchange:
47207         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47208         and note find's pioctl call in find/fstype.c.
47209         But that is necessary only if you want to enable the
47210         optimization for AFS, and for now, I don't.
47211
47212         fts: move a function definition "up" (no semantic change)
47213         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47214         "up" to precede upcoming use of a related function.
47215
47216 2009-02-11  Jim Meyering  <meyering@redhat.com>
47217
47218         fts: correct internal computation of nlinks (optimization-related)
47219         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47220         whether the current entry is a directory, so don't test it.
47221
47222 2009-02-10  Bruno Haible  <bruno@clisp.org>
47223
47224         Tests for module 'uniwbrk/ulc-wordbreaks'.
47225         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47226         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47227         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47228
47229         Tests for module 'uniwbrk/u32-wordbreaks'.
47230         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47231         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47232
47233         Tests for module 'uniwbrk/u16-wordbreaks'.
47234         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47235         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47236
47237         Tests for module 'uniwbrk/u8-wordbreaks'.
47238         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47239         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47240
47241 2009-02-10  Bruno Haible  <bruno@clisp.org>
47242
47243         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47244         property.
47245         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47246         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47247         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47248
47249 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47250
47251         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47252         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47253
47254 2009-02-10  Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47257         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47258         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47259         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47260         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47261         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47262
47263 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47264
47265         * lib/sockets.h (gl_fd_to_handle): New function.
47266
47267         * tests/test-sockets.c: Call gl_fd_to_handle.
47268
47269 2009-02-09  Bruno Haible  <bruno@clisp.org>
47270
47271         * doc/havelib.texi: Document the conventions on bi-arch systems.
47272
47273 2009-02-08  Bruno Haible  <bruno@clisp.org>
47274
47275         Document the AC_LIB_LINKFLAGS macro.
47276         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47277         * doc/gnulib.texi: Include it.
47278
47279 2009-02-08  Bruno Haible  <bruno@clisp.org>
47280
47281         Fix wrong order of sections, compared to TOC.
47282         * doc/gnulib.texi: Include relocatable-maint.texi after the
47283         "Regular expressions" node, not before.
47284
47285 2009-02-08  Bruno Haible  <bruno@clisp.org>
47286
47287         Tests for module 'unicase/totitle'.
47288         * modules/unicase/totitle-tests: New file.
47289
47290         Tests for module 'unicase/tolower'.
47291         * modules/unicase/tolower-tests: New file.
47292
47293         Tests for module 'unicase/toupper'.
47294         * modules/unicase/toupper-tests: New file.
47295         * tests/unicase/test-mapping-part1.h: New file.
47296         * tests/unicase/test-mapping-part2.h: New file.
47297
47298         New module 'unicase/totitle'.
47299         * modules/unicase/totitle: New file.
47300         * lib/unicase/totitle.c: New file.
47301
47302         New module 'unicase/tolower'.
47303         * modules/unicase/tolower: New file.
47304         * lib/unicase/tolower.c: New file.
47305
47306         New module 'unicase/toupper'.
47307         * modules/unicase/toupper: New file.
47308         * lib/unicase/toupper.c: New file.
47309         * lib/unicase/simple-mapping.h: New file.
47310
47311         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47312         (mapping_table): New structure.
47313         (output_simple_mapping): New function.
47314         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47315         * modules/gen-uni-tables (Description): Update.
47316         * lib/unicase/toupper.h: New file, automatically generated by
47317         gen-uni-tables.
47318         * lib/unicase/tolower.h: New file, automatically generated by
47319         gen-uni-tables.
47320         * lib/unicase/totitle.h: New file, automatically generated by
47321         gen-uni-tables.
47322         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47323         gen-uni-tables.
47324         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47325         gen-uni-tables.
47326         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47327         gen-uni-tables.
47328
47329         New module 'unicase/base'.
47330         * modules/unicase/base: New file.
47331         * lib/unicase.h: New file.
47332
47333 2009-02-08  Bruno Haible  <bruno@clisp.org>
47334
47335         New module 'uniwbrk/ulc-wordbreaks'.
47336         * modules/uniwbrk/ulc-wordbreaks: New file.
47337         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47338
47339         New module 'uniwbrk/u32-wordbreaks'.
47340         * modules/uniwbrk/u32-wordbreaks: New file.
47341         * lib/uniwbrk/u32-wordbreaks.c: New file.
47342
47343         New module 'uniwbrk/u16-wordbreaks'.
47344         * modules/uniwbrk/u16-wordbreaks: New file.
47345         * lib/uniwbrk/u16-wordbreaks.c: New file.
47346
47347         New module 'uniwbrk/u8-wordbreaks'.
47348         * modules/uniwbrk/u8-wordbreaks: New file.
47349         * lib/uniwbrk/u8-wordbreaks.c: New file.
47350         * lib/uniwbrk/u-wordbreaks.h: New file.
47351
47352         New module 'uniwbrk/table'.
47353         * modules/uniwbrk/table: New file.
47354         * lib/uniwbrk/wbrktable.h: New file.
47355         * lib/uniwbrk/wbrktable.c: New file.
47356
47357         New module 'uniwbrk/wordbreak-property'.
47358         * modules/uniwbrk/wordbreak-property: New file.
47359         * lib/uniwbrk/wordbreak-property.c: New file.
47360
47361         * lib/gen-uni-tables.c (WBP_*): New enum items.
47362         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47363         (unicode_org_wbp): New variable.
47364         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47365         New functions.
47366         (wbp_table): New structure.
47367         (output_wbp, output_wbrk_tables): New functions.
47368         (main): Accept additional argument. Invoke fill_org_wbp,
47369         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47370         output_wbrk_tables.
47371         * modules/gen-uni-tables (Description): Update.
47372         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47373         gen-uni-tables.
47374
47375         New module 'uniwbrk/base'.
47376         * modules/uniwbrk/base: New file.
47377         * lib/uniwbrk.h: New file.
47378
47379 2009-02-08  Bruno Haible  <bruno@clisp.org>
47380
47381         Update to Unicode 5.1.0.
47382         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47383         U+2185..U+2188.
47384         (is_property_default_ignorable_code_point): Don't include characters
47385         of category Cc or Cs and not-a-characters.
47386         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47387         U+0D79, U+109E, U+109F, U+A60C.
47388         * lib/unictype/bidi_of.h: Regenerated.
47389         * lib/unictype/blocks.h: Regenerated.
47390         * lib/unictype/categ_C.h: Regenerated.
47391         * lib/unictype/categ_Cf.h: Regenerated.
47392         * lib/unictype/categ_Cn.h: Regenerated.
47393         * lib/unictype/categ_L.h: Regenerated.
47394         * lib/unictype/categ_Ll.h: Regenerated.
47395         * lib/unictype/categ_Lm.h: Regenerated.
47396         * lib/unictype/categ_Lo.h: Regenerated.
47397         * lib/unictype/categ_Lu.h: Regenerated.
47398         * lib/unictype/categ_M.h: Regenerated.
47399         * lib/unictype/categ_Mc.h: Regenerated.
47400         * lib/unictype/categ_Me.h: Regenerated.
47401         * lib/unictype/categ_Mn.h: Regenerated.
47402         * lib/unictype/categ_N.h: Regenerated.
47403         * lib/unictype/categ_Nd.h: Regenerated.
47404         * lib/unictype/categ_Nl.h: Regenerated.
47405         * lib/unictype/categ_No.h: Regenerated.
47406         * lib/unictype/categ_P.h: Regenerated.
47407         * lib/unictype/categ_Pd.h: Regenerated.
47408         * lib/unictype/categ_Pe.h: Regenerated.
47409         * lib/unictype/categ_Pf.h: Regenerated.
47410         * lib/unictype/categ_Pi.h: Regenerated.
47411         * lib/unictype/categ_Po.h: Regenerated.
47412         * lib/unictype/categ_Ps.h: Regenerated.
47413         * lib/unictype/categ_S.h: Regenerated.
47414         * lib/unictype/categ_Sk.h: Regenerated.
47415         * lib/unictype/categ_Sm.h: Regenerated.
47416         * lib/unictype/categ_So.h: Regenerated.
47417         * lib/unictype/categ_of.h: Regenerated.
47418         * lib/unictype/combining.h: Regenerated.
47419         * lib/unictype/ctype_alnum.h: Regenerated.
47420         * lib/unictype/ctype_alpha.h: Regenerated.
47421         * lib/unictype/ctype_graph.h: Regenerated.
47422         * lib/unictype/ctype_lower.h: Regenerated.
47423         * lib/unictype/ctype_print.h: Regenerated.
47424         * lib/unictype/ctype_punct.h: Regenerated.
47425         * lib/unictype/ctype_upper.h: Regenerated.
47426         * lib/unictype/decdigit.h: Regenerated.
47427         * lib/unictype/digit.h: Regenerated.
47428         * lib/unictype/mirror.h: Regenerated.
47429         * lib/unictype/numeric.h: Regenerated.
47430         * lib/unictype/pr_alphabetic.h: Regenerated.
47431         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47432         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47433         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47434         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47435         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47436         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47437         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47438         * lib/unictype/pr_combining.h: Regenerated.
47439         * lib/unictype/pr_dash.h: Regenerated.
47440         * lib/unictype/pr_decimal_digit.h: Regenerated.
47441         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47442         * lib/unictype/pr_deprecated.h: Regenerated.
47443         * lib/unictype/pr_diacritic.h: Regenerated.
47444         * lib/unictype/pr_extender.h: Regenerated.
47445         * lib/unictype/pr_format_control.h: Regenerated.
47446         * lib/unictype/pr_grapheme_base.h: Regenerated.
47447         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47448         * lib/unictype/pr_grapheme_link.h: Regenerated.
47449         * lib/unictype/pr_id_continue.h: Regenerated.
47450         * lib/unictype/pr_id_start.h: Regenerated.
47451         * lib/unictype/pr_ideographic.h: Regenerated.
47452         * lib/unictype/pr_ignorable_control.h: Regenerated.
47453         * lib/unictype/pr_lowercase.h: Regenerated.
47454         * lib/unictype/pr_math.h: Regenerated.
47455         * lib/unictype/pr_numeric.h: Regenerated.
47456         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47457         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47458         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47459         * lib/unictype/pr_other_id_continue.h: Regenerated.
47460         * lib/unictype/pr_other_lowercase.h: Regenerated.
47461         * lib/unictype/pr_other_math.h: Regenerated.
47462         * lib/unictype/pr_punctuation.h: Regenerated.
47463         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47464         * lib/unictype/pr_soft_dotted.h: Regenerated.
47465         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47466         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47467         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47468         * lib/unictype/pr_uppercase.h: Regenerated.
47469         * lib/unictype/pr_xid_continue.h: Regenerated.
47470         * lib/unictype/pr_xid_start.h: Regenerated.
47471         * lib/unictype/pr_zero_width.h: Regenerated.
47472         * lib/unictype/scripts.h: Regenerated.
47473         * lib/unictype/scripts_byname.gperf: Regenerated.
47474         * lib/unictype/sy_java_ident.h: Regenerated.
47475         * lib/unilbrk/lbrkprop1.h: Regenerated.
47476         * lib/unilbrk/lbrkprop2.h: Regenerated.
47477         * tests/unictype/test-categ_C.c: Regenerated.
47478         * tests/unictype/test-categ_Cf.c: Regenerated.
47479         * tests/unictype/test-categ_Cn.c: Regenerated.
47480         * tests/unictype/test-categ_L.c: Regenerated.
47481         * tests/unictype/test-categ_Ll.c: Regenerated.
47482         * tests/unictype/test-categ_Lm.c: Regenerated.
47483         * tests/unictype/test-categ_Lo.c: Regenerated.
47484         * tests/unictype/test-categ_Lu.c: Regenerated.
47485         * tests/unictype/test-categ_M.c: Regenerated.
47486         * tests/unictype/test-categ_Mc.c: Regenerated.
47487         * tests/unictype/test-categ_Me.c: Regenerated.
47488         * tests/unictype/test-categ_Mn.c: Regenerated.
47489         * tests/unictype/test-categ_N.c: Regenerated.
47490         * tests/unictype/test-categ_Nd.c: Regenerated.
47491         * tests/unictype/test-categ_Nl.c: Regenerated.
47492         * tests/unictype/test-categ_No.c: Regenerated.
47493         * tests/unictype/test-categ_P.c: Regenerated.
47494         * tests/unictype/test-categ_Pd.c: Regenerated.
47495         * tests/unictype/test-categ_Pe.c: Regenerated.
47496         * tests/unictype/test-categ_Pf.c: Regenerated.
47497         * tests/unictype/test-categ_Pi.c: Regenerated.
47498         * tests/unictype/test-categ_Po.c: Regenerated.
47499         * tests/unictype/test-categ_Ps.c: Regenerated.
47500         * tests/unictype/test-categ_S.c: Regenerated.
47501         * tests/unictype/test-categ_Sk.c: Regenerated.
47502         * tests/unictype/test-categ_Sm.c: Regenerated.
47503         * tests/unictype/test-categ_So.c: Regenerated.
47504         * tests/unictype/test-ctype_alnum.c: Regenerated.
47505         * tests/unictype/test-ctype_alpha.c: Regenerated.
47506         * tests/unictype/test-ctype_graph.c: Regenerated.
47507         * tests/unictype/test-ctype_lower.c: Regenerated.
47508         * tests/unictype/test-ctype_print.c: Regenerated.
47509         * tests/unictype/test-ctype_punct.c: Regenerated.
47510         * tests/unictype/test-ctype_upper.c: Regenerated.
47511         * tests/unictype/test-decdigit.h: Regenerated.
47512         * tests/unictype/test-digit.h: Regenerated.
47513         * tests/unictype/test-numeric.h: Regenerated.
47514         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47515         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47516         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47517         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47518         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47519         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47520         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47521         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47522         * tests/unictype/test-pr_combining.c: Regenerated.
47523         * tests/unictype/test-pr_dash.c: Regenerated.
47524         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47525         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47526         * tests/unictype/test-pr_deprecated.c: Regenerated.
47527         * tests/unictype/test-pr_diacritic.c: Regenerated.
47528         * tests/unictype/test-pr_extender.c: Regenerated.
47529         * tests/unictype/test-pr_format_control.c: Regenerated.
47530         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47531         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47532         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47533         * tests/unictype/test-pr_id_continue.c: Regenerated.
47534         * tests/unictype/test-pr_id_start.c: Regenerated.
47535         * tests/unictype/test-pr_ideographic.c: Regenerated.
47536         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47537         * tests/unictype/test-pr_lowercase.c: Regenerated.
47538         * tests/unictype/test-pr_math.c: Regenerated.
47539         * tests/unictype/test-pr_numeric.c: Regenerated.
47540         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47541         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47542         Regenerated.
47543         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47544         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47545         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47546         * tests/unictype/test-pr_other_math.c: Regenerated.
47547         * tests/unictype/test-pr_punctuation.c: Regenerated.
47548         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47549         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47550         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47551         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47552         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47553         * tests/unictype/test-pr_uppercase.c: Regenerated.
47554         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47555         * tests/unictype/test-pr_xid_start.c: Regenerated.
47556         * tests/unictype/test-pr_zero_width.c: Regenerated.
47557
47558         Update to Unicode 5.1.0.
47559         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47560         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47561         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47562         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47563         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47564         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47565         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47566         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47567         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47568         (nonspacing_table_ind): Update.
47569         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47570
47571         Update to Unicode 5.1.0.
47572         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47573         code transform.
47574         * lib/uniname/uniname.c (unicode_character_name,
47575         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47576         * lib/uniname/uninames.h: Regenerated.
47577         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47578
47579 2009-02-07  Bruno Haible  <bruno@clisp.org>
47580
47581         Merge gen-ctype and gen-lbrk into a single program.
47582         * lib/gen-uni-tables.c: New file, incorporating
47583         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47584         Add directory prefixes to the names of the generated files.
47585         * lib/unictype/gen-ctype.c: Remove file.
47586         * lib/unilbrk/gen-lbrk.c: Remove file.
47587         * modules/gen-uni-tables: New file.
47588         * modules/unictype/gen-ctype: Remove file.
47589         * modules/unilbrk/gen-lbrk: Remove file.
47590
47591 2009-02-07  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47594
47595         New module 'unistr/u32-strcoll'.
47596         * modules/unistr/u32-strcoll: New file.
47597         * lib/unistr/u32-strcoll.c: New file.
47598
47599         New module 'unistr/u16-strcoll'.
47600         * modules/unistr/u16-strcoll: New file.
47601         * lib/unistr/u16-strcoll.c: New file.
47602
47603         New module 'unistr/u8-strcoll'.
47604         * modules/unistr/u8-strcoll: New file.
47605         * lib/unistr/u8-strcoll.c: New file.
47606         * lib/unistr/u-strcoll.h: New file.
47607
47608 2009-02-07  Bruno Haible  <bruno@clisp.org>
47609
47610         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47611         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47612         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47613         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47614         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47615         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47616
47617 2009-02-07  Bruno Haible  <bruno@clisp.org>
47618
47619         Make 64-bit clean.
47620         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47621         output_combclass, output_bidi_category, output_decimal_digit,
47622         output_digit, output_numeric, output_mirror, output_scripts,
47623         output_ident_category): Use proper width specifier in format strings.
47624
47625 2009-02-07  Bruno Haible  <bruno@clisp.org>
47626
47627         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47628         failure behaviour.
47629
47630 2009-02-07  Jim Meyering  <meyering@redhat.com>
47631
47632         regex: avoid compilation failure with upcoming gcc-4.4
47633         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47634         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47635         "... error: integer overflow in preprocessor expression".
47636
47637 2009-02-05  Ben Pfaff  <blp@gnu.org>
47638
47639         Fix link errors on Windows when close module is used.
47640         * modules/close: Add $(LIB_CLOSE) to Link section.
47641         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47642         $(LIB_CLOSE) on Windows.
47643
47644 2009-02-05  Jim Meyering  <meyering@redhat.com>
47645
47646         still avoid unused-parameter warnings, but do it cleanly
47647         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47648         (get_fs_usage): Cast to void instead.
47649         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47650         (dev_from_mount_options, read_file_system_list): Cast to void.
47651         Prompted by Bruno Haible.
47652
47653 2009-02-04  Jim Meyering  <meyering@redhat.com>
47654
47655         fsusage.c: correct copyright year
47656         * lib/fsusage.c: Reflect year in which the change is pushed into
47657
47658         avoid misc. warnings
47659         * lib/fsusage.c (UNUSED_PARAM): Define.
47660         (get_fs_usage): Mark parameter "disk" as unused.
47661         * lib/getugroups.c (getgrent): Use "void" in prototype.
47662         * lib/mountlist.c: Mark unused parameters.
47663         (read_file_system_list): Declare a local with "const".
47664         * lib/nanosleep.c (getnow): Declare static.
47665         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47666
47667         dirfd: set errno upon failure
47668         * lib/dirfd.c: Include <errno.h>.
47669         Set errno to ENOTSUP when returning -1.
47670         * modules/dirfd (Depends-on): Add errno.
47671         Suggested by John Kodis <kodis@comcast.net>.
47672
47673 2009-02-01  Bruno Haible  <bruno@clisp.org>
47674
47675         Don't assume sizeof (long) >= sizeof (void *).
47676         * lib/memcmp.c: Include stdint.h.
47677         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47678         srcp2 to 'const byte *'.
47679         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47680         types to uintptr_t.
47681         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47682         * modules/memcmp (Depends-on): Add stdint.
47683         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47684
47685 2009-01-30  Eric Blake  <ebb9@byu.net>
47686
47687         fix more require-before-expand issues
47688         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47689         expand, AC_PROG_AWK.
47690         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47691
47692 2009-01-28  Eric Blake  <ebb9@byu.net>
47693
47694         version-etc: use consistent URL formatting
47695         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47696         Improve formatting.  Use fputs for string without %.
47697
47698 2009-01-28  Jim Meyering  <meyering@redhat.com>
47699
47700         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47701         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47702         "underquoted definition of NAME" from autoconf-2.59.
47703
47704 2009-01-28  Bruno Haible  <bruno@clisp.org>
47705
47706         * doc/gnulib.texi: Add "Obsolete modules" to index.
47707
47708 2009-01-28  Jim Meyering  <meyering@redhat.com>
47709
47710         useless-if-before-free: recognize more variants
47711         * build-aux/useless-if-before-free: Also recognize e.g.,
47712         if (NULL != p) free (p);
47713
47714 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47715
47716         test-getaddrinfo: skip (don't fail) this test when there's no network
47717         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47718         on the presumption that it means you lack network access.
47719
47720 2009-01-26  Jim Meyering  <meyering@redhat.com>
47721
47722         fflush: avoid warnings on modern systems
47723         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47724         pos and result, into scopes where they're used.
47725
47726 2009-01-26  Eric Blake  <ebb9@byu.net>
47727
47728         Silence warning reintroduced by recent extensions patch.
47729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47730         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47731         autoconf.
47732
47733         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47734         * m4/00gnulib.m4: New file.
47735         * gnulib-tool (func_get_filelist): Always use it.
47736         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47737         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47738
47739 2009-01-25  Bruno Haible  <bruno@clisp.org>
47740
47741         Make test-quotearg work on MacOS X and AIX.
47742         * tests/test-quotearg.sh: New file.
47743         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47744         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47745         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47746         include <libintl.h>.
47747         (fake_locale): Remove variable.
47748         (gettext, dgettext, dcgettext): Remove functions.
47749         (main): Instead of setting a fake locale, set a real locale. Call
47750         textdomain and bindtextdomain.
47751         * modules/quotearg-tests (Files): Add the new files.
47752         (Depends-on): Add gettext, setenv, unsetenv.
47753         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47754         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47755         Augment TESTS_ENVIRONMENT.
47756
47757 2009-01-25  Bruno Haible  <bruno@clisp.org>
47758
47759         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47760         fr_FR.ISO8859-1 locale on MacOS X.
47761         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47762         ja_JP.eucJP locale on MacOS X.
47763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47764         zh_CN.GB18030 locale on MacOS X.
47765
47766 2009-01-25  Bruno Haible  <bruno@clisp.org>
47767
47768         Avoid link errors on MacOS X 10.3.
47769         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47770         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47771
47772 2009-01-25  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47775         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47776         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47777         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47778         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47779         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47780         posix_spawnattr_init, posix_spawnattr_setsigmask,
47781         posix_spawnattr_setflags, posix_spawnattr_destroy.
47782
47783         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47784         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47785         * modules/execute (Files): Remove m4/posix_spawn.m4.
47786         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47787         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47788         posix_spawnattr_init, posix_spawnattr_setsigmask,
47789         posix_spawnattr_setflags, posix_spawnattr_destroy.
47790
47791 2009-01-25  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/glthread/threadlib.c: Include <stdlib.h>.
47794
47795 2009-01-25  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/glthread/threadlib.c (dummy): New declaration.
47798
47799 2009-01-25  Bruno Haible  <bruno@clisp.org>
47800
47801         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47802         multibyte characters also for the GB18030 encoding. Don't crash when
47803         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47804
47805 2009-01-25  Bruno Haible  <bruno@clisp.org>
47806
47807         Avoid redefining 'struct random_data' on OSF/1 5.1.
47808         * lib/stdlib.in.h: Include <random.h> if it exists.
47809         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47810         HAVE_RANDOM_H. Include <random.h> when testing whether
47811         'struct random_data' exists.
47812         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47813
47814 2009-01-25  Bruno Haible  <bruno@clisp.org>
47815
47816         Don't install charset.alias on MacOS X >= 10.3.
47817         * lib/localcharset.c (DARWIN7): New macro.
47818         (get_charset_aliases): Hardcode the result for Darwin7.
47819         * modules/localcharset (install-exec-local): Don't install
47820         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47821
47822 2009-01-25  Bruno Haible  <bruno@clisp.org>
47823
47824         Don't install charset.alias on mingw and Cygwin.
47825         * modules/localcharset (install-exec-local): Don't install
47826         charset.alias on mingw and Cygwin, if the file does not yet exist.
47827         The result for these platforms is hardcoded in localcharset.c.
47828
47829 2009-01-25  Bruno Haible  <bruno@clisp.org>
47830
47831         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47833         before requiring AC_USE_SYSTEM_EXTENSIONS.
47834
47835 2009-01-25  Jim Meyering  <meyering@redhat.com>
47836
47837         c-strtod: avoid warnings
47838         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47839         "assignment discards qualifiers from pointer target type" warnings.
47840
47841 2009-01-24  Bruno Haible  <bruno@clisp.org>
47842
47843         Add support for non-UTF-8 locales on MacOS X.
47844         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47845         canonical encodings. For Darwin 7 and newer, don't map traditional
47846         encodings to UTF-8.
47847         Reported by Vincent Lefevre <vincent@vinc17.org>
47848         at <http://savannah.gnu.org/bugs/?25235>.
47849
47850 2009-01-24  Bruno Haible  <bruno@clisp.org>
47851
47852         * doc/gnulib.texi (Obsolete modules): New section.
47853         Reported by Mike Frysinger <vapier@gentoo.org>.
47854
47855 2009-01-24  Bruno Haible  <bruno@clisp.org>
47856
47857         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47858         (%.dvi): New rule.
47859
47860 2009-01-24  Bruno Haible  <bruno@clisp.org>
47861
47862         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47863         Reported by Eric Blake.
47864
47865 2009-01-24  Bruno Haible  <bruno@clisp.org>
47866
47867         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47868         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47869         Reported by Gary V. Vaughan <gary@gnu.org>.
47870
47871 2009-01-24  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47874
47875 2009-01-23  Bruno Haible  <bruno@clisp.org>
47876
47877         Make c-strtod, c-strtold usable in libraries.
47878         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47879         (C_STRTOD): Call strdup instead of xstrdup.
47880         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47881         * modules/c-strtold (Depends-on): Likewise.
47882         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47883         * NEWS: Mention the change.
47884         Reported by Michael Gold <mgold@ncf.ca>.
47885
47886 2009-01-23  Jim Meyering  <meyering@redhat.com>
47887
47888         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47889         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47890         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47891
47892 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47893
47894         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47895         GNU CoreUtils.
47896         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47897         * modules/version-etc (Description): Update.
47898
47899 2009-01-22  Bruno Haible  <bruno@clisp.org>
47900
47901         Cache the C locale object.
47902         * lib/c-strtod.c (c_locale_cache): New variable.
47903         (c_locale): New function.
47904         (C_STRTOD): Use it, and don't call freelocale.
47905         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47906         Suggested by Paolo Bonzini.
47907
47908 2009-01-21  Bruno Haible  <bruno@clisp.org>
47909
47910         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47911         conditions other than overflow.
47912
47913 2009-01-21  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/c-strtod.c: Include errno.h.
47916         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47917         value from STRTOD_L and STRTOD.
47918
47919 2009-01-21  Bruno Haible  <bruno@clisp.org>
47920         and Jim Meyering  <meyering@redhat.com>
47921
47922         nanosleep: skip configure test (fail it) for apple universal builds
47923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47924         universal builds, assume that nanosleep does not work.
47925         * modules/nanosleep (Depends-on): Add multiarch.
47926
47927         mktime: skip configure test (fail it) for apple universal builds
47928         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47929         universal builds, assume that mktime does not work.
47930         * modules/mktime (Depends-on): Add multiarch.
47931
47932 2009-01-21  Eric Blake  <ebb9@byu.net>
47933
47934         multiarch: avoid expand-before-require warning
47935         * modules/multiarch (configure.ac): Require, rather than expand,
47936         gl_MULTIARCH.
47937         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47938         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47939         enforce that all clients require it.  Partial reversion of
47940         2008-12-29 patch.
47941
47942         error: avoid expand-before-require warning
47943         * modules/errno (configure.ac): Require, rather than expand,
47944         gl_HEADER_ERRNO_H.
47945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47946         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47947         enforce that all clients require it.
47948
47949         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47950         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47951         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47952         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47953
47954 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47955
47956         Revert:
47957         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47958
47959         regex: do not depend on obsolete modules.
47960         * modules/regex: Remove memcmp and memmove.
47961
47962 2009-01-20  Bruno Haible  <bruno@clisp.org>
47963
47964         Make the 'link' module link on Windows NT 4.
47965         * lib/link.c (_WIN32_WINNT): Don't define.
47966         (CreateHardLinkFuncType): New type.
47967         (CreateHardLinkFunc, initialized): New variables.
47968         (initialize): New function.
47969         (link): Invoke CreateHardLink indirectly through the function pointer.
47970
47971 2009-01-20  Bruno Haible  <bruno@clisp.org>
47972
47973         Fix compilation failure on mingw.
47974         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47975
47976 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47977
47978         * doc/c-strtod.texi: Mention a couple of restrictions.
47979
47980 2009-01-20  Jim Meyering  <meyering@redhat.com>
47981
47982         gettimeofday: move more declarations out of functions
47983         * lib/gettimeofday.c: Move extern declarations of tzset and
47984         gmtime out of containing functions.  Prompted by Bruno Haible.
47985
47986 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47987
47988         regex: do not depend on obsolete modules.
47989         * modules/regex: Remove memcmp and memmove.
47990
47991 2009-01-19  Bruno Haible  <bruno@clisp.org>
47992
47993         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47994         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47995         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47996         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47997         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47998
47999 2009-01-19  Bruno Haible  <bruno@clisp.org>
48000
48001         * tests/test-link.c: Include <errno.h>.
48002         (main): Exit with code 77 when a hard link cannot be created due to
48003         the file system.
48004         * tests/test-link.sh: Skip test when a hard link cannot be created due
48005         to the file system.
48006         Suggested by Eric Blake.
48007
48008 2009-01-19  Martin Lambers  <marlam@marlam.de>
48009
48010         * modules/link-tests: New file.
48011         * tests/test-link.sh: New file.
48012         * tests/test-link.c: New file.
48013
48014 2009-01-19  Eric Blake  <ebb9@byu.net>
48015
48016         doc: mention another function added in cygwin 1.7.0
48017         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48018         Another new function in cygwin 1.7.
48019
48020 2009-01-19  Bruno Haible  <bruno@clisp.org>
48021
48022         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48023         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48024         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48025         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48027         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48029         * m4/md4.m4 (gl_MD4): Likewise.
48030         * m4/md5.m4 (gl_MD5): Likewise.
48031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48032         * m4/sha1.m4 (gl_SHA1): Likewise.
48033         * m4/sha256.m4 (gl_SHA256): Likewise.
48034         * m4/sha512.m4 (gl_SHA512): Likewise.
48035
48036 2009-01-19  Bruno Haible  <bruno@clisp.org>
48037
48038         * modules/uniname/uniname-tests (Depends-on): Add progname.
48039         * tests/uniname/test-uninames.c: Include progname.h.
48040         (main): Call set_program_name.
48041
48042         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48043         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48044         (main): Call set_program_name.
48045
48046         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48047         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48048         (main): Call set_program_name.
48049
48050         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48051         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48052         (main): Call set_program_name.
48053
48054         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48055         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48056         (main): Call set_program_name.
48057
48058         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48059         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48060         (main): Call set_program_name.
48061
48062         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48063         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48064         (main): Call set_program_name.
48065
48066         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48067         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48068         (main): Call set_program_name.
48069
48070         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48071         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48072         (main): Call set_program_name.
48073
48074 2009-01-19  Eric Blake  <ebb9@byu.net>
48075
48076         test-unistd: test previous patch
48077         * tests/test-unistd.c: Test *_FILENO macros.
48078
48079         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48080         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48081         Guarantee a definition.
48082         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48083         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48084         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48085         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48086         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48087         Likewise.
48088         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48089         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48090         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48091         Likewise.
48092         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48093         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48094         (STDERR_FILENO): Likewise.
48095         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48096         (STDERR_FILENO): Likewise.
48097         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48098         (STDERR_FILENO): Likewise.
48099         Reported by Elbert Pol.
48100
48101 2009-01-19  Eric Blake  <ebb9@byu.net>
48102
48103         doc: mention more functions added in cygwin 1.7.0
48104         * doc/posix-functions/abort.texi (abort): Update wording related
48105         to cygwin.
48106         * doc/posix-functions/daylight.texi (daylight): Likewise.
48107         * doc/posix-functions/optarg.texi (optarg): Likewise.
48108         * doc/posix-functions/optarg.texi (opterr): Likewise.
48109         * doc/posix-functions/optarg.texi (optind): Likewise.
48110         * doc/posix-functions/optarg.texi (optopt): Likewise.
48111         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48112         worked in 1.5.x, and was withdrawn in 1.7.
48113         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48114         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48115         cygwin versions.
48116         * doc/posix-functions/perror.texi (perror): Likewise.
48117         * doc/posix-functions/printf.texi (printf): Likewise.
48118         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48119         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48120         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48121         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48122         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48123         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48124         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48125         Likewise.
48126         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48127         Likewise.
48128         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48129         this function.
48130         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48131         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48132         Likewise.
48133         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48134         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48135         * doc/posix-functions/confstr.texi (confstr): Likewise.
48136         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48137         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48138         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48139         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48140         * doc/posix-functions/fputws.texi (fputws): Likewise.
48141         * doc/posix-functions/fwide.texi (fwide): Likewise.
48142         * doc/posix-functions/getwc.texi (getwc): Likewise.
48143         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48144         * doc/posix-functions/putwc.texi (putwc): Likewise.
48145         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48146         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48147         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48148         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48149         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48150         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48151         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48152         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48153         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48154         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48155         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48156
48157 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48158
48159         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48160         * lib/ioctl.c: Include <sys/ioctl.h>.
48161
48162 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48163
48164         * modules/getdate-tests (Depends-on): Add progname.
48165         * tests/test-getdate.c: Use progname module, to avoid link errors
48166         on non-glibc systems.
48167
48168 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48169
48170         * modules/filenamecat-tests (Depends-on): Add progname.
48171         * modules/fstrcmp-tests (Depends-on): Likewise.
48172
48173         * tests/test-filenamecat.c: Use progname module, to avoid link
48174         errors on non-glibc systems.
48175         * tests/test-fstrcmp.c: Likewise.
48176
48177 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48178
48179         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48180         * lib/gettimeofday.c: Move extern declaration out of function.
48181
48182 2009-01-18  Bruno Haible  <bruno@clisp.org>
48183
48184         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48185         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48186         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48187
48188 2009-01-18  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/strftime.c (MEMPCPY): Remove unused macro.
48191         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48192
48193 2009-01-18  Martin Lambers  <marlam@marlam.de>
48194
48195         New module 'link'.
48196         * lib/unistd.in.h (link): New declaration.
48197         * lib/link.c: New file.
48198         * m4/link.m4: New file.
48199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48200         HAVE_LINK.
48201         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48202         * modules/link: New file.
48203         * doc/posix-functions/link.texi: Mention the new module.
48204
48205 2009-01-18  Bruno Haible  <bruno@clisp.org>
48206
48207         * tests/test-avltree_list.c (main): Call set_program_name.
48208         * tests/test-avltree_oset.c (main): Likewise.
48209         * tests/test-obstack-printf.c: Include progname.h.
48210         (main): Call set_program_name.
48211         * tests/test-quotearg.c: Include progname.h.
48212         (main): Call set_program_name.
48213         * tests/test-xmemdup0.c: Include progname.h.
48214         (main): Call set_program_name.
48215
48216 2009-01-18  Bruno Haible  <bruno@clisp.org>
48217
48218         New module 'alphasort'.
48219         * lib/dirent.in.h (alphasort): New declaration.
48220         * lib/alphasort.c: New file, from glibc with modifications.
48221         * m4/alphasort.m4: New file.
48222         * modules/alphasort: New file.
48223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48224         HAVE_ALPHASORT.
48225         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48226         HAVE_ALPHASORT.
48227         * doc/posix-functions/alphasort.texi: Mention the new module and the
48228         portability problems.
48229
48230 2009-01-18  Bruno Haible  <bruno@clisp.org>
48231
48232         New module 'scandir'.
48233         * lib/dirent.in.h (scandir): New declaration.
48234         * lib/scandir.c: New file, from glibc with modifications.
48235         * m4/scandir.m4: New file.
48236         * modules/scandir: New file.
48237         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48238         HAVE_SCANDIR.
48239         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48240         HAVE_SCANDIR.
48241         * doc/posix-functions/scandir.texi: Mention the new module and the
48242         portability problems.
48243
48244 2009-01-17  Bruno Haible  <bruno@clisp.org>
48245
48246         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48247         Update documentation.
48248         (func_remove_suffix): Escape all dots in the suffix. Update
48249         documentation.
48250         (func_filter_filelist): Update documentation.
48251         Reported by Ralf Wildenhues.
48252
48253 2009-01-17  Bruno Haible  <bruno@clisp.org>
48254
48255         * modules/dprintf-posix-tests: New file.
48256         * tests/test-dprintf-posix.sh: New file.
48257         * tests/test-dprintf-posix.c: New file.
48258
48259         New modules 'dprintf', 'dprintf-posix'.
48260         * lib/stdio.in.h (dprintf): New declaration.
48261         * lib/dprintf.c: New file.
48262         * m4/dprintf.m4: New file.
48263         * m4/dprintf-posix.m4: New file.
48264         * modules/dprintf: New file.
48265         * modules/dprintf-posix: New file.
48266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48267         HAVE_DPRINTF, REPLACE_DPRINTF.
48268         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48269         HAVE_DPRINTF, REPLACE_DPRINTF.
48270         * doc/posix-functions/dprintf.texi: Mention the new modules.
48271
48272 2009-01-17  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/vdprintf-posix-tests: New file.
48275         * tests/test-vdprintf-posix.sh: New file.
48276         * tests/test-vdprintf-posix.c: New file.
48277
48278         New modules 'vdprintf', 'vdprintf-posix'.
48279         * lib/stdio.in.h (vdprintf): New declaration.
48280         * lib/vdprintf.c: New file.
48281         * m4/vdprintf.m4: New file.
48282         * m4/vdprintf-posix.m4: New file.
48283         * modules/vdprintf: New file.
48284         * modules/vdprintf-posix: New file.
48285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48286         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48287         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48288         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48289         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48290
48291 2009-01-17  Bruno Haible  <bruno@clisp.org>
48292
48293         Fix replacement of fopen on mingw.
48294         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48295         mingw.
48296
48297 2009-01-17  Bruno Haible  <bruno@clisp.org>
48298
48299         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48300         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48301
48302 2009-01-17  Bruno Haible  <bruno@clisp.org>
48303
48304         Avoid test-fflush2.sh failure on mingw.
48305         * tests/test-fflush2.c: Include binary-io.h.
48306         (main): Put standard input into binary mode.
48307         * modules/fflush-tests (Depends-on): Add binary-io.
48308
48309 2009-01-17  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/wchar.in.h: In another particular situation, include only the
48312         system's <wchar.h> file.
48313         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48314         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48315         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48316
48317 2009-01-17  Bruno Haible  <bruno@clisp.org>
48318
48319         Support for stripping executables in --enable-relocatable.
48320         * build-aux/install-reloc: Expect one more argument, or an environment
48321         variable RELOC_STRIP_PROG. If set, strip the destination program and
48322         its wrapper.
48323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48324         RELOC_STRIP_PROG.
48325         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48326         to set RELOCATABLE_STRIP.
48327         * NEWS: Mention the new Makefile requirement.
48328
48329 2009-01-17  Bruno Haible  <bruno@clisp.org>
48330
48331         * build-aux/install-reloc: Remove debugging information left over by
48332         C compiler on MacOS X.
48333
48334 2009-01-17  Bruno Haible  <bruno@clisp.org>
48335
48336         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48337         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48338         _NSGetExecutablePath.
48339
48340 2009-01-16  Jim Meyering  <meyering@redhat.com>
48341
48342         strerror: avoid warnings about discarding "const"
48343         * lib/strerror.c (rpl_strerror): Instead of returning a const
48344         string from each and every "case", use a variable, and add a single
48345         cast after the switch.
48346
48347 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48348
48349         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48350
48351 2009-01-16  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48354         array initializer syntax that also works in C++ mode.
48355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48356
48357 2009-01-16  Jim Meyering  <meyering@redhat.com>
48358
48359         poll: suppress a warning
48360         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48361         to ignore "...unsigned expression < 0 is always false" warnings.
48362
48363 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48364
48365         poll: remove declarations of unused variables
48366         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48367         sockbuf and optlen.
48368
48369 2009-01-15  Bruno Haible  <bruno@clisp.org>
48370
48371         Make fflush-after-ungetc POSIX compliant on BSD systems.
48372         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48373         (clear_ungetc_buffer): Implement also for other systems.
48374         (rpl_fflush): On glibc systems, invoke
48375         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48376         clear_ungetc_buffer after fetching the stream's position, not before.
48377
48378 2009-01-15  Bruno Haible  <bruno@clisp.org>
48379
48380         Make fflush-after-ungetc POSIX compliant on glibc systems.
48381         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48382         after ungetc.
48383         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48384         (rpl_fflush): On glibc systems, simply call the system's fflush
48385         function after clearing the ungetc buffer.
48386         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48387         Instead, lseek only to the end of file, then use the system's fseeko
48388         for the rest. On glibc systems, reset the EOF indicator bit.
48389
48390 2009-01-15  Jim Meyering  <meyering@redhat.com>
48391
48392         openmp.m4: revert quote-adding change, for portability to older autoconf
48393         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48394         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48395         Simon Josefsson noticed the problem when using autoconf-2.61.
48396
48397 2009-01-15  Bruno Haible  <bruno@clisp.org>
48398
48399         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48400         * tests/test-fflush2.c (ASSERT): Always fail.
48401         (main): Add two tests for fflush() after ungetc(), taking into account
48402         the Austin Group's clarification.
48403         Suggested by Eric Blake.
48404
48405 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48406
48407         mktime.m4: remove K&R-style function prototypes
48408         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48409         for the Sun C++ compiler.
48410
48411 2009-01-14  Bruno Haible  <bruno@clisp.org>
48412
48413         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48414         while including <wchar.h>.
48415         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48416         the system's <wchar.h> file.
48417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48418
48419 2009-01-14  Bruno Haible  <bruno@clisp.org>
48420
48421         * m4/csharp.m4: Don't mention gettext on the serial number line.
48422         * m4/csharpexec.m4: Likewise.
48423         * m4/eaccess.m4: Likewise.
48424         * m4/javaexec.m4: Likewise.
48425         * m4/sig_atomic_t.m4: Likewise.
48426         * m4/tmpdir.m4: Likewise.
48427         * m4/intldir.m4: Bump gettext version.
48428         * m4/lib-ld.m4: Likewise.
48429
48430 2009-01-14  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/progname.c (set_program_name): Add more comments.
48433         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48434
48435 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48436
48437         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48438         were sys/stat.h does not define it.
48439
48440 2009-01-14  Jim Meyering  <meyering@redhat.com>
48441
48442         many *.m4 files: improve m4 quoting
48443         99% of this change was performed by running the following commands:
48444         git ls-files | grep '\.m4$' | xargs perl -pi \
48445           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48446           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48449         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48450         The remainder were to add Copyright dates, increment serial numbers,
48451         undo some changes in comments, exclude m4/intl.m4, and add quotes
48452         around the "1" in ",1" where the unusual spacing prohibited the
48453         above regexps from doing the job.  For more details, see
48454         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48455         * m4/acl.m4: Modified.
48456         * m4/afs.m4: Likewise.
48457         * m4/alloca.m4: Likewise.
48458         * m4/argp.m4: Likewise.
48459         * m4/argz.m4: Likewise.
48460         * m4/atexit.m4: Likewise.
48461         * m4/bison-i18n.m4: Likewise.
48462         * m4/bison.m4: Likewise.
48463         * m4/byteswap.m4: Likewise.
48464         * m4/c-stack.m4: Likewise.
48465         * m4/c-strtod.m4: Likewise.
48466         * m4/calloc.m4: Likewise.
48467         * m4/canonicalize-lgpl.m4: Likewise.
48468         * m4/chown.m4: Likewise.
48469         * m4/clock_time.m4: Likewise.
48470         * m4/codeset.m4: Likewise.
48471         * m4/copy-file.m4: Likewise.
48472         * m4/csharp.m4: Likewise.
48473         * m4/csharpcomp.m4: Likewise.
48474         * m4/csharpexec.m4: Likewise.
48475         * m4/d-ino.m4: Likewise.
48476         * m4/d-type.m4: Likewise.
48477         * m4/dirfd.m4: Likewise.
48478         * m4/double-slash-root.m4: Likewise.
48479         * m4/eaccess.m4: Likewise.
48480         * m4/eealloc.m4: Likewise.
48481         * m4/environ.m4: Likewise.
48482         * m4/errno_h.m4: Likewise.
48483         * m4/euidaccess.m4: Likewise.
48484         * m4/execute.m4: Likewise.
48485         * m4/fatal-signal.m4: Likewise.
48486         * m4/fchdir.m4: Likewise.
48487         * m4/fcntl_h.m4: Likewise.
48488         * m4/fileblocks.m4: Likewise.
48489         * m4/filenamecat.m4: Likewise.
48490         * m4/findprog.m4: Likewise.
48491         * m4/flexmember.m4: Likewise.
48492         * m4/fnmatch.m4: Likewise.
48493         * m4/fopen.m4: Likewise.
48494         * m4/fpending.m4: Likewise.
48495         * m4/fprintf-posix.m4: Likewise.
48496         * m4/free.m4: Likewise.
48497         * m4/frexp.m4: Likewise.
48498         * m4/frexpl.m4: Likewise.
48499         * m4/fsusage.m4: Likewise.
48500         * m4/ftruncate.m4: Likewise.
48501         * m4/gc-camellia.m4: Likewise.
48502         * m4/gc-random.m4: Likewise.
48503         * m4/gc.m4: Likewise.
48504         * m4/getaddrinfo.m4: Likewise.
48505         * m4/getcwd-abort-bug.m4: Likewise.
48506         * m4/getcwd-path-max.m4: Likewise.
48507         * m4/getdate.m4: Likewise.
48508         * m4/getdomainname.m4: Likewise.
48509         * m4/getgroups.m4: Likewise.
48510         * m4/gethostname.m4: Likewise.
48511         * m4/gethrxtime.m4: Likewise.
48512         * m4/getline.m4: Likewise.
48513         * m4/getloadavg.m4: Likewise.
48514         * m4/getndelim2.m4: Likewise.
48515         * m4/getpass.m4: Likewise.
48516         * m4/gettext.m4: Likewise.
48517         * m4/gettime.m4: Likewise.
48518         * m4/gettimeofday.m4: Likewise.
48519         * m4/gnulib-common.m4: Likewise.
48520         * m4/group-member.m4: Likewise.
48521         * m4/host-os.m4: Likewise.
48522         * m4/iconv.m4: Likewise.
48523         * m4/iconv_open.m4: Likewise.
48524         * m4/inet_ntop.m4: Likewise.
48525         * m4/inet_pton.m4: Likewise.
48526         * m4/inline.m4: Likewise.
48527         * m4/intldir.m4: Likewise.
48528         * m4/intlmacosx.m4: Likewise.
48529         * m4/intmax.m4: Likewise.
48530         * m4/intmax_t.m4: Likewise.
48531         * m4/inttypes.m4: Likewise.
48532         * m4/inttypes_h.m4: Likewise.
48533         * m4/inttypes-pri.m4: Likewise.
48534         * m4/isapipe.m4: Likewise.
48535         * m4/isnand.m4: Likewise.
48536         * m4/isnanf.m4: Likewise.
48537         * m4/isnanl.m4: Likewise.
48538         * m4/javacomp.m4: Likewise.
48539         * m4/javaexec.m4: Likewise.
48540         * m4/jm-winsz1.m4: Likewise.
48541         * m4/jm-winsz2.m4: Likewise.
48542         * m4/lchown.m4: Likewise.
48543         * m4/lcmessage.m4: Likewise.
48544         * m4/ldexpl.m4: Likewise.
48545         * m4/lib-ld.m4: Likewise.
48546         * m4/lib-link.m4: Likewise.
48547         * m4/libsigsegv.m4: Likewise.
48548         * m4/link-follow.m4: Likewise.
48549         * m4/localcharset.m4: Likewise.
48550         * m4/locale-fr.m4: Likewise.
48551         * m4/locale-ja.m4: Likewise.
48552         * m4/locale-tr.m4: Likewise.
48553         * m4/locale-zh.m4: Likewise.
48554         * m4/lock.m4: Likewise.
48555         * m4/longlong.m4: Likewise.
48556         * m4/ls-mntd-fs.m4: Likewise.
48557         * m4/lstat.m4: Likewise.
48558         * m4/malloc.m4: Likewise.
48559         * m4/mathl.m4: Likewise.
48560         * m4/mbrtowc.m4: Likewise.
48561         * m4/mbstate_t.m4: Likewise.
48562         * m4/mbswidth.m4: Likewise.
48563         * m4/memchr.m4: Likewise.
48564         * m4/memcmp.m4: Likewise.
48565         * m4/memcpy.m4: Likewise.
48566         * m4/memmem.m4: Likewise.
48567         * m4/memmove.m4: Likewise.
48568         * m4/mempcpy.m4: Likewise.
48569         * m4/memrchr.m4: Likewise.
48570         * m4/memset.m4: Likewise.
48571         * m4/minmax.m4: Likewise.
48572         * m4/mkdir-slash.m4: Likewise.
48573         * m4/mkdtemp.m4: Likewise.
48574         * m4/mktime.m4: Likewise.
48575         * m4/mmap-anon.m4: Likewise.
48576         * m4/mountlist.m4: Likewise.
48577         * m4/nanosleep.m4: Likewise.
48578         * m4/nls.m4: Likewise.
48579         * m4/nocrash.m4: Likewise.
48580         * m4/open.m4: Likewise.
48581         * m4/openat.m4: Likewise.
48582         * m4/openmp.m4: Likewise.
48583         * m4/pathmax.m4: Likewise.
48584         * m4/perl.m4: Likewise.
48585         * m4/physmem.m4: Likewise.
48586         * m4/pipe.m4: Likewise.
48587         * m4/po.m4: Likewise.
48588         * m4/poll.m4: Likewise.
48589         * m4/posixtm.m4: Likewise.
48590         * m4/posixver.m4: Likewise.
48591         * m4/printf-frexp.m4: Likewise.
48592         * m4/printf-frexpl.m4: Likewise.
48593         * m4/printf-posix.m4: Likewise.
48594         * m4/printf-posix-rpl.m4: Likewise.
48595         * m4/printf.m4: Likewise.
48596         * m4/progtest.m4: Likewise.
48597         * m4/putenv.m4: Likewise.
48598         * m4/readline.m4: Likewise.
48599         * m4/readlink.m4: Likewise.
48600         * m4/readutmp.m4: Likewise.
48601         * m4/realloc.m4: Likewise.
48602         * m4/regex.m4: Likewise.
48603         * m4/relocatable.m4: Likewise.
48604         * m4/relocatable-lib.m4: Likewise.
48605         * m4/rename-dest-slash.m4: Likewise.
48606         * m4/rename.m4: Likewise.
48607         * m4/rmdir-errno.m4: Likewise.
48608         * m4/rmdir.m4: Likewise.
48609         * m4/roundf.m4: Likewise.
48610         * m4/roundl.m4: Likewise.
48611         * m4/rpmatch.m4: Likewise.
48612         * m4/save-cwd.m4: Likewise.
48613         * m4/selinux-selinux-h.m4: Likewise.
48614         * m4/setenv.m4: Likewise.
48615         * m4/settime.m4: Likewise.
48616         * m4/sig2str.m4: Likewise.
48617         * m4/sig_atomic_t.m4: Likewise.
48618         * m4/signalblocking.m4: Likewise.
48619         * m4/signbit.m4: Likewise.
48620         * m4/sigpipe.m4: Likewise.
48621         * m4/sockets.m4: Likewise.
48622         * m4/sockpfaf.m4: Likewise.
48623         * m4/st_dm_mode.m4: Likewise.
48624         * m4/stat-time.m4: Likewise.
48625         * m4/stdbool.m4: Likewise.
48626         * m4/stdint.m4: Likewise.
48627         * m4/stdint_h.m4: Likewise.
48628         * m4/stpcpy.m4: Likewise.
48629         * m4/stpncpy.m4: Likewise.
48630         * m4/strcase.m4: Likewise.
48631         * m4/strchrnul.m4: Likewise.
48632         * m4/strcspn.m4: Likewise.
48633         * m4/strdup.m4: Likewise.
48634         * m4/strftime.m4: Likewise.
48635         * m4/strndup.m4: Likewise.
48636         * m4/strnlen.m4: Likewise.
48637         * m4/strpbrk.m4: Likewise.
48638         * m4/strptime.m4: Likewise.
48639         * m4/strsep.m4: Likewise.
48640         * m4/strtod.m4: Likewise.
48641         * m4/strtoimax.m4: Likewise.
48642         * m4/strtok_r.m4: Likewise.
48643         * m4/strtol.m4: Likewise.
48644         * m4/strtoll.m4: Likewise.
48645         * m4/strtoul.m4: Likewise.
48646         * m4/strtoull.m4: Likewise.
48647         * m4/strtoumax.m4: Likewise.
48648         * m4/strverscmp.m4: Likewise.
48649         * m4/threadlib.m4: Likewise.
48650         * m4/timegm.m4: Likewise.
48651         * m4/tm_gmtoff.m4: Likewise.
48652         * m4/tmpdir.m4: Likewise.
48653         * m4/tmpfile.m4: Likewise.
48654         * m4/tzset.m4: Likewise.
48655         * m4/uintmax_t.m4: Likewise.
48656         * m4/unlinkdir.m4: Likewise.
48657         * m4/unlocked-io.m4: Likewise.
48658         * m4/uptime.m4: Likewise.
48659         * m4/userspec.m4: Likewise.
48660         * m4/utimbuf.m4: Likewise.
48661         * m4/utime.m4: Likewise.
48662         * m4/utimes-null.m4: Likewise.
48663         * m4/utimes.m4: Likewise.
48664         * m4/vararrays.m4: Likewise.
48665         * m4/vasnprintf.m4: Likewise.
48666         * m4/vfprintf-posix.m4: Likewise.
48667         * m4/vprintf-posix.m4: Likewise.
48668         * m4/wait-process.m4: Likewise.
48669         * m4/wchar_t.m4: Likewise.
48670         * m4/wint_t.m4: Likewise.
48671         * m4/write-any-file.m4: Likewise.
48672         * m4/yield.m4: Likewise.
48673
48674 2009-01-13  Bruno Haible  <bruno@clisp.org>
48675
48676         Avoid test-copy-file.sh failures when ACL support insufficient.
48677         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48678         TESTS_ENVIRONMENT.
48679         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48680         Reported by Jim Meyering.
48681
48682 2009-01-13  Bruno Haible  <bruno@clisp.org>
48683
48684         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48685         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48686         * modules/unistdio/u8-printf-parse (Files): Likewise.
48687         * modules/unistdio/u32-printf-parse (Files): Likewise.
48688         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48689
48690 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48691
48692         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48693         and m4/inttypes_h.m4 too.
48694
48695 2009-01-12  Eric Blake  <ebb9@byu.net>
48696
48697         tests: IRIX 6.2 cc can't compile -0.0 into .data
48698         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48699         rather than at compile-time.
48700         * tests/test-floorl.c (minus_zero): Likewise.
48701         * tests/test-frexpl.c (minus_zero): Likewise.
48702         * tests/test-isnan.c (minus_zerol): Likewise.
48703         * tests/test-isnanl.h (minus_zero): Likewise.
48704         * tests/test-ldexpl.c (minus_zero): Likewise.
48705         * tests/test-roundl.c (minus_zero): Likewise.
48706         * tests/test-signbit.c (minus_zerol): Likewise.
48707         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48708         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48709         * tests/test-truncl.c (minus_zero): Likewise.
48710         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48711         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48712         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48713
48714 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48715
48716         regex: fix glibc bug 9697
48717         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48718         handling.
48719
48720 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48721
48722         regex: fix glibc bug 697
48723         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48724         being NULL also if there are no backreferences.
48725
48726 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48727
48728         regex: merge glibc changes
48729         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48730         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48731         re_string_skip_chars, re_string_reconstruct): Likewise.
48732         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48733
48734 2009-01-07  Jim Meyering  <meyering@redhat.com>
48735
48736         poll: filter through cppi
48737         * lib/poll.c: Indent cpp directives to reflect nesting.
48738
48739 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48740
48741         poll: don't return uninitialized
48742         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48743
48744 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48745
48746         avoid compile failure on AIX 6.1
48747         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48748         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48749
48750 2009-01-04  Jim Meyering  <meyering@redhat.com>
48751
48752         remove duplicate inclusion of <stdio.h>
48753         * tests/test-fprintf-posix.c: Likewise.
48754         * tests/test-printf-posix.c: Likewise.
48755         * tests/test-snprintf-posix.c: Likewise.
48756         * tests/test-sprintf-posix.c: Likewise.
48757         * tests/test-vasprintf-posix.c: Likewise.
48758         * tests/test-vfprintf-posix.c: Likewise.
48759         * tests/test-vprintf-posix.c: Likewise.
48760         * tests/test-vsnprintf-posix.c: Likewise.
48761         * tests/test-vsprintf-posix.c: Likewise.
48762
48763 2009-01-03  Jim Meyering  <meyering@redhat.com>
48764
48765         gnulib-tool: fix sed-based filtering
48766         * gnulib-tool (func_filter_filelist): Remove extra backslash
48767         in sed_fff_filter definition.
48768
48769 2009-01-02  Jim Meyering  <meyering@redhat.com>
48770
48771         strftime: avoid compilation failure on Solaris 2.6
48772         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48773         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48774         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48775         be available.  Reported by Tom G. Christensen.  Details in
48776         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48777
48778 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48779             Bruno Haible  <bruno@clisp.org>
48780
48781         Speed up gnulib-tool by doing more string processing through shell
48782         built-ins.
48783         * gnulib-tool (fast_func_append): New variable.
48784         (func_remove_prefix, func_remove_suffix): New functions.
48785         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48786         (func_filter_filelist): New function.
48787         (func_get_dependencies): Use func_remove_suffix instead of sed.
48788         (func_get_automake_snippet): Use func_filter_filelist instead of a
48789         subshell and sed invocation.
48790
48791 2009-01-01  Bruno Haible  <bruno@clisp.org>
48792
48793         Fix a security bug.
48794         * gnulib-tool (func_import, import, update): Don't allow the characters
48795         '"', '$', '`', '\' in macro arguments that become part of commands that
48796         are evaluated.
48797
48798 2009-01-01  Bruno Haible  <bruno@clisp.org>
48799
48800         * gnulib-tool (func_reset_sigpipe): Add more comments.
48801
48802 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48803
48804         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48805         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48806         already know the answer.
48807
48808 2009-01-01  Jim Meyering  <meyering@redhat.com>
48809
48810         * lib/version-etc.c (version_etc_va): Update copyright year.
48811
48812 2008-12-30  Bruno Haible  <bruno@clisp.org>
48813
48814         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48815         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48816         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48817
48818 2008-12-29  Eric Blake  <ebb9@byu.net>
48819
48820         multiarch: avoid autoconf AC_REQUIRE bug
48821         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48822         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48823         2.63 and older.
48824         Reported by Bruno Haible, and analyzed in
48825         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48826
48827 2008-12-29  Bruno Haible  <bruno@clisp.org>
48828
48829         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48830         files in subdirectories correctly.
48831         Reported by Ralf Wildenhues.
48832
48833 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48834
48835         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48836         rather than 'join FILE -', for Solaris join.
48837
48838 2008-12-29  Bruno Haible  <bruno@clisp.org>
48839
48840         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48841         quoting.
48842         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48843         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48844         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48845         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48846         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48847         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48848         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48849         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48850         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48851         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48852         * m4/nls.m4 (AM_NLS): Likewise.
48853         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48854         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48856         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48857         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48858         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48859         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48860         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48861         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48863         * m4/xsize.m4 (gl_XSIZE): Likewise.
48864         Suggested by Jim Meyering.
48865
48866 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48867
48868         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48869         * lib/parse-duration.c: use a switch instead of cascading if's.
48870
48871 2008-12-29  Eric Blake  <ebb9@byu.net>
48872
48873         wchar.h: supply WEOF on Irix 5.3
48874         * lib/wchar.in.h (wint_t): Also supply WEOF.
48875         * lib/wctype.in.h (wint_t): Likewise.
48876         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48877         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48878         Reported by Tom G. Christensen.
48879
48880 2008-12-26  Bruno Haible  <bruno@clisp.org>
48881
48882         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48883         i486, i586, i686.
48884
48885 2008-12-26  Bruno Haible  <bruno@clisp.org>
48886
48887         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48888
48889 2008-12-26  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48892         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48893         not __STDC_CONSTANT_MACROS.
48894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48895
48896 2008-12-25  Bruno Haible  <bruno@clisp.org>
48897
48898         Add support for universal builds to vasnprintf.
48899         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48900         universal builds, guess no.
48901         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48902         * modules/vasprintf-posix (Depends-on): Likewise.
48903         * modules/fprintf-posix (Depends-on): Likewise.
48904         * modules/vfprintf-posix (Depends-on): Likewise.
48905         * modules/snprintf-posix (Depends-on): Likewise.
48906         * modules/vsnprintf-posix (Depends-on): Likewise.
48907         * modules/sprintf-posix (Depends-on): Likewise.
48908         * modules/vsprintf-posix (Depends-on): Likewise.
48909         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48910         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48912         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48915         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48916
48917         Add support for universal builds to <inttypes.h>.
48918         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48919         _SCNu64_PREFIX): In Apple
48920         universal builds, define directly, using _LP64.
48921         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48922         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48923         * modules/inttypes (Depends-on): Add multiarch.
48924         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48925
48926         Add support for universal builds to <stdint.h>.
48927         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48928         universal builds, define directly, using _LP64.
48929         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48930         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48931         and size_t.
48932         * modules/stdint (Depends-on): Add multiarch.
48933         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48934
48935         New module 'multiarch'.
48936         * modules/multiarch: New file.
48937         * m4/multiarch.m4: New file.
48938
48939 2008-12-25  Bruno Haible  <bruno@clisp.org>
48940
48941         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48942
48943 2008-12-25  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/btowc (License): Relicense under LGPLv2+.
48946         * modules/mbsinit (License): Likewise.
48947         * modules/mbrtowc (License): Likewise.
48948         * modules/wcrtomb (License): Likewise.
48949         * modules/streq (License): Likewise.
48950         Reported by David Lutterkort <lutter@redhat.com>.
48951
48952 2008-12-23  Bruno Haible  <bruno@clisp.org>
48953
48954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48955
48956 2008-12-23  Bruno Haible  <bruno@clisp.org>
48957
48958         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48960         GETADDRINFO_LIB, not in LIBS.
48961         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48962         * modules/canon-host (Link): Likewise.
48963         * NEWS: Mention the change.
48964         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48965         GETADDRINFO_LIB.
48966
48967 2008-12-22  Bruno Haible  <bruno@clisp.org>
48968
48969         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48970         * doc/posix-functions/iswalpha_l.texi: Likewise.
48971         * doc/posix-functions/iswblank_l.texi: Likewise.
48972         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48973         * doc/posix-functions/iswctype_l.texi: Likewise.
48974         * doc/posix-functions/iswdigit_l.texi: Likewise.
48975         * doc/posix-functions/iswgraph_l.texi: Likewise.
48976         * doc/posix-functions/iswlower_l.texi: Likewise.
48977         * doc/posix-functions/iswprint_l.texi: Likewise.
48978         * doc/posix-functions/iswpunct_l.texi: Likewise.
48979         * doc/posix-functions/iswspace_l.texi: Likewise.
48980         * doc/posix-functions/iswupper_l.texi: Likewise.
48981         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48982         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48983         * doc/posix-functions/open_wmemstream.texi: Likewise.
48984         * doc/posix-functions/swscanf.texi: Likewise.
48985         * doc/posix-functions/towctrans_l.texi: Likewise.
48986         * doc/posix-functions/towlower.texi: Likewise.
48987         * doc/posix-functions/towlower_l.texi: Likewise.
48988         * doc/posix-functions/towupper.texi: Likewise.
48989         * doc/posix-functions/towupper_l.texi: Likewise.
48990         * doc/posix-functions/vfwprintf.texi: Likewise.
48991         * doc/posix-functions/vfwscanf.texi: Likewise.
48992         * doc/posix-functions/vswscanf.texi: Likewise.
48993         * doc/posix-functions/vwprintf.texi: Likewise.
48994         * doc/posix-functions/vwscanf.texi: Likewise.
48995         * doc/posix-functions/wcpcpy.texi: Likewise.
48996         * doc/posix-functions/wcpncpy.texi: Likewise.
48997         * doc/posix-functions/wcscasecmp.texi: Likewise.
48998         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48999         * doc/posix-functions/wcscoll_l.texi: Likewise.
49000         * doc/posix-functions/wcsdup.texi: Likewise.
49001         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49002         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49003         * doc/posix-functions/wcsnlen.texi: Likewise.
49004         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49005         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49006         * doc/posix-functions/wctrans_l.texi: Likewise.
49007         * doc/posix-functions/wctype_l.texi: Likewise.
49008         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49009         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49010         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49011         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49012         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49013         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49014         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49015         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49016         * doc/glibc-functions/wcschrnul.texi: Likewise.
49017         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49018         * doc/glibc-functions/wcstod_l.texi: Likewise.
49019         * doc/glibc-functions/wcstof_l.texi: Likewise.
49020         * doc/glibc-functions/wcstol_l.texi: Likewise.
49021         * doc/glibc-functions/wcstold_l.texi: Likewise.
49022         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49023         * doc/glibc-functions/wcstoq.texi: Likewise.
49024         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49025         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49026         * doc/glibc-functions/wcstouq.texi: Likewise.
49027         * doc/glibc-functions/wmempcpy.texi: Likewise.
49028
49029 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49030             Eric Blake  <ebb9@byu.net>
49031             Paolo Bonzini  <bonzini@gnu.org>
49032             Bruno Haible  <bruno@clisp.org>
49033
49034         Make c-stack work on Haiku.
49035         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49036         (c_stack_action): Use SA_ONSTACK flag.
49037
49038 2008-12-22  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49041
49042 2008-12-22  Bruno Haible  <bruno@clisp.org>
49043
49044         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49045         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49046         being overridden.
49047         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49048         New macros.
49049         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49051         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49052         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49053
49054 2008-12-22  Bruno Haible  <bruno@clisp.org>
49055
49056         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49057         from test code.
49058
49059 2008-12-22  Eric Blake  <ebb9@byu.net>
49060
49061         Avoid gcc warnings on cygwin.
49062         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49063         Avoid unused variable.
49064         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49065         Likewise.
49066
49067 2008-12-22  Bruno Haible  <bruno@clisp.org>
49068
49069         Remove HAVE_MBRTOWC conditionals.
49070         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49071         (mbscasecmp): Assume mbrtowc function.
49072         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49073         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49074         * lib/mbschr.c: Include mbuiter.h unconditionally.
49075         (mbschr): Assume mbrtowc function.
49076         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49077         (mbscspn): Assume mbrtowc function.
49078         * lib/mbslen.c: Include mbuiter.h unconditionally.
49079         (mbslen): Assume mbrtowc function.
49080         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49081         (mbsncasecmp): Assume mbrtowc function.
49082         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49083         (mbsnlen): Assume mbrtowc function.
49084         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49085         (mbspbrk): Assume mbrtowc function.
49086         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49087         (mbspcasecmp): Assume mbrtowc function.
49088         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49089         (mbsrchr): Assume mbrtowc function.
49090         * lib/mbssep.c: Include mbuiter.h unconditionally.
49091         (mbssep): Assume mbrtowc function.
49092         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49093         (mbsspn): Assume mbrtowc function.
49094         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49095         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49096         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49097         (mbstok_r): Assume mbrtowc function.
49098         * lib/propername.c: Include mbuiter.h unconditionally.
49099         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49100         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49101         (trim2): Assume mbrtowc function.
49102         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49103         (mbsnwidth): Assume mbrtowc function.
49104         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49105         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49106         fallback definitions.
49107         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49108
49109 2008-12-22  Bruno Haible  <bruno@clisp.org>
49110
49111         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49112
49113 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49114
49115         * modules/regex: Request emulations for the mb*/wc* functions we need.
49116         * m4/regex.m4: Don't look for those functions here.
49117         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49118
49119 2008-12-22  Bruno Haible  <bruno@clisp.org>
49120
49121         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49122
49123 2008-12-21  Bruno Haible  <bruno@clisp.org>
49124
49125         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49126         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49127         (Include): Remove conditionalization.
49128         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49129         (Include): Remove conditionalization.
49130         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49131         (Include): Remove conditionalization.
49132         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49133         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49134         * NEWS: Mention the change.
49135         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49136         via Sergey Poznyakoff <gray@gnu.org.ua>.
49137
49138 2008-12-21  Bruno Haible  <bruno@clisp.org>
49139
49140         * MODULES.html.sh (Extended multibyte and wide character utilities
49141         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49142         wcrtomb, wcsrtombs.
49143         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49144         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49145         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49146         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49147
49148 2008-12-21  Bruno Haible  <bruno@clisp.org>
49149
49150         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49151
49152 2008-12-21  Bruno Haible  <bruno@clisp.org>
49153
49154         * modules/wcsnrtombs-tests: New file.
49155         * tests/test-wcsnrtombs1.sh: New file.
49156         * tests/test-wcsnrtombs2.sh: New file.
49157         * tests/test-wcsnrtombs3.sh: New file.
49158         * tests/test-wcsnrtombs4.sh: New file.
49159         * tests/test-wcsnrtombs.c: New file.
49160
49161         New module 'wcsnrtombs'.
49162         * lib/wchar.in.h (wcsnrtombs): New declaration.
49163         * lib/wcsnrtombs.c: New file.
49164         * lib/wcsrtombs-state.c: New file.
49165         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49166         (internal_state): Remove variable.
49167         * m4/wcsnrtombs.m4: New file.
49168         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49169         compilation units.
49170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49171         HAVE_WCSNRTOMBS.
49172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49173         HAVE_WCSNRTOMBS.
49174         * modules/wcsnrtombs: New file.
49175         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49176         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49177
49178 2008-12-21  Bruno Haible  <bruno@clisp.org>
49179
49180         * modules/wcsrtombs-tests: New file.
49181         * tests/test-wcsrtombs1.sh: New file.
49182         * tests/test-wcsrtombs2.sh: New file.
49183         * tests/test-wcsrtombs3.sh: New file.
49184         * tests/test-wcsrtombs4.sh: New file.
49185         * tests/test-wcsrtombs.c: New file.
49186
49187         New module 'wcsrtombs'.
49188         * lib/wchar.in.h (wcsrtombs): New declaration.
49189         * lib/wcsrtombs.c: New file.
49190         * m4/wcsrtombs.m4: New file.
49191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49192         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49194         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49195         * modules/wcsrtombs: New file.
49196         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49197         bugs.
49198
49199 2008-12-21  Bruno Haible  <bruno@clisp.org>
49200
49201         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49202         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49203         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49204         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49205         if not correct.
49206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49207         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49208         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49209         m4/locale-zh.m4, m4/codeset.m4.
49210         * doc/posix-functions/wcrtomb.texi: Document the bug.
49211
49212 2008-12-21  Bruno Haible  <bruno@clisp.org>
49213
49214         Work around a btowc() bug on IRIX 6.5.
49215         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49216         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49217         REPLACE_WTOBC if not.
49218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49219         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49220         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49221
49222 2008-12-21  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/wcrtomb-tests: New file.
49225         * tests/test-wcrtomb.sh: New file.
49226         * tests/test-wcrtomb.c: New file.
49227
49228         New module 'wcrtomb'.
49229         * lib/wchar.in.h (wcrtomb): New declaration.
49230         * lib/wcrtomb.c: New file.
49231         * m4/wcrtomb.m4: New file.
49232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49233         HAVE_WCRTOMB.
49234         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49235         HAVE_WCRTOMB.
49236         * modules/wcrtomb: New file.
49237         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49238
49239 2008-12-21  Bruno Haible  <bruno@clisp.org>
49240
49241         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49242         * modules/mbsrtowcs (Files): Likewise.
49243         * modules/wctob (Files): Likewise.
49244         * modules/c-strcase-tests (Files): Likewise.
49245         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49246         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49247         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49248         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49249         * modules/vasnprintf-posix-tests (Files): Likewise.
49250
49251 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49252
49253         gitlog-to-changelog: pass all command-line arguments to git-log
49254         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49255         it is sometimes convenient to filter the commits in various ways.
49256         gitlog-to-changelog only allows --since to specify a start date,
49257         but git-log itself supports many other filtering mechanisms.
49258         At the moment, I want to filter by branch name.  Rather than
49259         adding a --branch option to gitlog-to-changelog, it seems more
49260         flexible to simply pass all options directly to git-log and let
49261         git do the work.  Notice that this effectively makes --since a
49262         redundant option for gitlog-to-changelog, but removing it would
49263         require current usage to change since calls would then require
49264         an additional '--'.
49265
49266 2008-12-21  Bruno Haible  <bruno@clisp.org>
49267
49268         * modules/mbsnrtowcs-tests: New file.
49269         * tests/test-mbsnrtowcs1.sh: New file.
49270         * tests/test-mbsnrtowcs2.sh: New file.
49271         * tests/test-mbsnrtowcs3.sh: New file.
49272         * tests/test-mbsnrtowcs4.sh: New file.
49273         * tests/test-mbsnrtowcs.c: New file.
49274
49275         New module 'mbsnrtowcs'.
49276         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49277         * lib/mbsnrtowcs.c: New file.
49278         * lib/mbsrtowcs-state.c: New file.
49279         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49280         (internal_state): Remove variable.
49281         * m4/mbsnrtowcs.m4: New file.
49282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49283         compilation units.
49284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49285         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49287         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49288         * modules/mbsnrtowcs: New file.
49289         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49290         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49291         portability problem.
49292
49293 2008-12-21  Bruno Haible  <bruno@clisp.org>
49294
49295         Work around mbsrtowcs bug.
49296         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49297         (gl_FUNC_MBSRTOWCS): Invoke it.
49298         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49299         m4/locale-zh.m4.
49300         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49301
49302 2008-12-21  Bruno Haible  <bruno@clisp.org>
49303
49304         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49305
49306 2008-12-21  Bruno Haible  <bruno@clisp.org>
49307
49308         Update doc for AIX.
49309         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49310         16-bit wchar_t type.
49311         * doc/posix-functions/btowc.texi: Likewise.
49312         * doc/posix-functions/fgetwc.texi: Likewise.
49313         * doc/posix-functions/fgetws.texi: Likewise.
49314         * doc/posix-functions/fputwc.texi: Likewise.
49315         * doc/posix-functions/fputws.texi: Likewise.
49316         * doc/posix-functions/fwide.texi: Likewise.
49317         * doc/posix-functions/fwprintf.texi: Likewise.
49318         * doc/posix-functions/fwscanf.texi: Likewise.
49319         * doc/posix-functions/getwchar.texi: Likewise.
49320         * doc/posix-functions/getwc.texi: Likewise.
49321         * doc/posix-functions/iswalnum.texi: Likewise.
49322         * doc/posix-functions/iswalpha.texi: Likewise.
49323         * doc/posix-functions/iswblank.texi: Likewise.
49324         * doc/posix-functions/iswcntrl.texi: Likewise.
49325         * doc/posix-functions/iswctype.texi: Likewise.
49326         * doc/posix-functions/iswdigit.texi: Likewise.
49327         * doc/posix-functions/iswgraph.texi: Likewise.
49328         * doc/posix-functions/iswlower.texi: Likewise.
49329         * doc/posix-functions/iswprint.texi: Likewise.
49330         * doc/posix-functions/iswpunct.texi: Likewise.
49331         * doc/posix-functions/iswspace.texi: Likewise.
49332         * doc/posix-functions/iswupper.texi: Likewise.
49333         * doc/posix-functions/iswxdigit.texi: Likewise.
49334         * doc/posix-functions/mbrtowc.texi: Likewise.
49335         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49336         * doc/posix-functions/mbstowcs.texi: Likewise.
49337         * doc/posix-functions/mbtowc.texi: Likewise.
49338         * doc/posix-functions/putwchar.texi: Likewise.
49339         * doc/posix-functions/putwc.texi: Likewise.
49340         * doc/posix-functions/swprintf.texi: Likewise.
49341         * doc/posix-functions/tolower.texi: Likewise.
49342         * doc/posix-functions/toupper.texi: Likewise.
49343         * doc/posix-functions/towctrans.texi: Likewise.
49344         * doc/posix-functions/ungetwc.texi: Likewise.
49345         * doc/posix-functions/vswprintf.texi: Likewise.
49346         * doc/posix-functions/wcrtomb.texi: Likewise.
49347         * doc/posix-functions/wcscat.texi: Likewise.
49348         * doc/posix-functions/wcschr.texi: Likewise.
49349         * doc/posix-functions/wcscmp.texi: Likewise.
49350         * doc/posix-functions/wcscoll.texi: Likewise.
49351         * doc/posix-functions/wcscpy.texi: Likewise.
49352         * doc/posix-functions/wcscspn.texi: Likewise.
49353         * doc/posix-functions/wcsftime.texi: Likewise.
49354         * doc/posix-functions/wcslen.texi: Likewise.
49355         * doc/posix-functions/wcsncat.texi: Likewise.
49356         * doc/posix-functions/wcsncmp.texi: Likewise.
49357         * doc/posix-functions/wcsncpy.texi: Likewise.
49358         * doc/posix-functions/wcspbrk.texi: Likewise.
49359         * doc/posix-functions/wcsrchr.texi: Likewise.
49360         * doc/posix-functions/wcsrtombs.texi: Likewise.
49361         * doc/posix-functions/wcsspn.texi: Likewise.
49362         * doc/posix-functions/wcsstr.texi: Likewise.
49363         * doc/posix-functions/wcstod.texi: Likewise.
49364         * doc/posix-functions/wcstof.texi: Likewise.
49365         * doc/posix-functions/wcstoimax.texi: Likewise.
49366         * doc/posix-functions/wcstok.texi: Likewise.
49367         * doc/posix-functions/wcstold.texi: Likewise.
49368         * doc/posix-functions/wcstoll.texi: Likewise.
49369         * doc/posix-functions/wcstol.texi: Likewise.
49370         * doc/posix-functions/wcstombs.texi: Likewise.
49371         * doc/posix-functions/wcstoull.texi: Likewise.
49372         * doc/posix-functions/wcstoul.texi: Likewise.
49373         * doc/posix-functions/wcstoumax.texi: Likewise.
49374         * doc/posix-functions/wcswidth.texi: Likewise.
49375         * doc/posix-functions/wcsxfrm.texi: Likewise.
49376         * doc/posix-functions/wctob.texi: Likewise.
49377         * doc/posix-functions/wctomb.texi: Likewise.
49378         * doc/posix-functions/wctrans.texi: Likewise.
49379         * doc/posix-functions/wctype.texi: Likewise.
49380         * doc/posix-functions/wcwidth.texi: Likewise.
49381         * doc/posix-functions/wmemchr.texi: Likewise.
49382         * doc/posix-functions/wmemcmp.texi: Likewise.
49383         * doc/posix-functions/wmemcpy.texi: Likewise.
49384         * doc/posix-functions/wmemmove.texi: Likewise.
49385         * doc/posix-functions/wmemset.texi: Likewise.
49386         * doc/posix-functions/wprintf.texi: Likewise.
49387         * doc/posix-functions/wscanf.texi: Likewise.
49388
49389 2008-12-21  Bruno Haible  <bruno@clisp.org>
49390
49391         Update doc for HP-UX 11.11.
49392         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49393         in HP-UX version 11.00, not in all versions of HP-UX 11.
49394         * doc/posix-functions/fwide.texi: Likewise.
49395         * doc/posix-functions/fwprintf.texi: Likewise.
49396         * doc/posix-functions/fwscanf.texi: Likewise.
49397         * doc/posix-functions/inet_ntop.texi: Likewise.
49398         * doc/posix-functions/inet_pton.texi: Likewise.
49399         * doc/posix-functions/mbrlen.texi: Likewise.
49400         * doc/posix-functions/mbrtowc.texi: Likewise.
49401         * doc/posix-functions/mbsinit.texi: Likewise.
49402         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49403         * doc/posix-functions/swprintf.texi: Likewise.
49404         * doc/posix-functions/swscanf.texi: Likewise.
49405         * doc/posix-functions/towctrans.texi: Likewise.
49406         * doc/posix-functions/vfwprintf.texi: Likewise.
49407         * doc/posix-functions/vswprintf.texi: Likewise.
49408         * doc/posix-functions/vwprintf.texi: Likewise.
49409         * doc/posix-functions/wcrtomb.texi: Likewise.
49410         * doc/posix-functions/wcsrtombs.texi: Likewise.
49411         * doc/posix-functions/wcsstr.texi: Likewise.
49412         * doc/posix-functions/wctob.texi: Likewise.
49413         * doc/posix-functions/wctrans.texi: Likewise.
49414         * doc/posix-functions/wmemchr.texi: Likewise.
49415         * doc/posix-functions/wmemcmp.texi: Likewise.
49416         * doc/posix-functions/wmemcpy.texi: Likewise.
49417         * doc/posix-functions/wmemmove.texi: Likewise.
49418         * doc/posix-functions/wmemset.texi: Likewise.
49419         * doc/posix-functions/wprintf.texi: Likewise.
49420         * doc/posix-functions/wscanf.texi: Likewise.
49421
49422 2008-12-21  Bruno Haible  <bruno@clisp.org>
49423
49424         Work around a portability problem.
49425         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49426         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49427
49428 2008-12-20  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49431         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49432         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49434         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49435
49436         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49437         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49438         set.
49439         (GNULIB_defined_mbstate_t): New macro.
49440         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49441         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49442         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49443         reuses the system's mbrtowc function but works around the bugs.
49444         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49445         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49446         macros.
49447         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49448         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49449         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49450         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49451         REPLACE_MBSINIT if mbsinit needs to be overridden.
49452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49453         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49454         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49455         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49456         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49457         m4/locale-zh.m4.
49458         (Depends): Add mbsinit.
49459         * modules/mbsinit (Depends): Add mbrtowc.
49460         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49461
49462 2008-12-20  Bruno Haible  <bruno@clisp.org>
49463
49464         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49465         so that there are no conversion errors on AIX.
49466         * tests/test-mbsrtowcs.c (main): LIkewise.
49467
49468 2008-12-20  Bruno Haible  <bruno@clisp.org>
49469
49470         Work around wctob bug on Solaris <= 9.
49471         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49472         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49474         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49475         * modules/wctob (Files): Add m4/locale-fr.m4.
49476         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49477
49478 2008-12-20  Bruno Haible  <bruno@clisp.org>
49479
49480         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49481         /dev/null.
49482         * tests/test-select-in.sh: Likewise.
49483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49484
49485 2008-12-20  Bruno Haible  <bruno@clisp.org>
49486
49487         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49488         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49489         Cygwin 1.5.x.
49490
49491 2008-12-20  Bruno Haible  <bruno@clisp.org>
49492
49493         Ensure mbstate_t is defined on HP-UX 11.11.
49494         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49495         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49496         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49497         AC_USE_SYSTEM_EXTENSIONS.
49498         * modules/fnmatch (Depends-on): Add extensions.
49499         * modules/mbrlen (Depends-on): Likewise.
49500         * modules/mbrtowc (Depends-on): Likewise.
49501         * modules/mbsinit (Depends-on): Likewise.
49502         * modules/mbsrtowcs (Depends-on): Likewise.
49503         * modules/mbswidth (Depends-on): Likewise.
49504         * modules/quotearg (Depends-on): Likewise.
49505         * modules/strftime (Depends-on): Likewise.
49506
49507 2008-12-20  Bruno Haible  <bruno@clisp.org>
49508
49509         Ensure wctob is declared on IRIX 6.5.
49510         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49511         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49512         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49514         of HAVE_WCTOB.
49515         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49516         HAVE_WCTOB.
49517         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49518
49519 2008-12-19  Bruno Haible  <bruno@clisp.org>
49520
49521         * modules/mbsrtowcs-tests: New file.
49522         * tests/test-mbsrtowcs1.sh: New file.
49523         * tests/test-mbsrtowcs2.sh: New file.
49524         * tests/test-mbsrtowcs3.sh: New file.
49525         * tests/test-mbsrtowcs4.sh: New file.
49526         * tests/test-mbsrtowcs.c: New file.
49527
49528         New module 'mbsrtowcs'.
49529         * lib/wchar.in.h (mbsrtowcs): New declaration.
49530         * lib/mbsrtowcs.c: New file.
49531         * m4/mbsrtowcs.m4: New file.
49532         * modules/mbsrtowcs: New file.
49533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49534         HAVE_MBSRTOWCS.
49535         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49536         HAVE_MBSRTOWCS.
49537         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49538
49539 2008-12-19  Bruno Haible  <bruno@clisp.org>
49540
49541         New module 'mbrlen'.
49542         * lib/wchar.in.h (mbrlen): New declaration.
49543         * lib/mbrlen.c: New file.
49544         * m4/mbrlen.m4: New file.
49545         * modules/mbrlen: New file.
49546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49547         HAVE_MBRLEN.
49548         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49549         HAVE_MBRLEN.
49550         * doc/posix-functions/mbrlen.texi: Document the new module.
49551
49552 2008-12-19  Bruno Haible  <bruno@clisp.org>
49553
49554         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49555         * modules/mbrtowc (Depends-on): Add verify.
49556         Suggested by Paul Eggert.
49557
49558 2008-12-18  Bruno Haible  <bruno@clisp.org>
49559
49560         * modules/mbsinit-tests: New file.
49561         * tests/test-mbsinit.sh: New file.
49562         * tests/test-mbsinit.c: New file.
49563
49564 2008-12-18  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/mbrtowc-tests: New file.
49567         * tests/test-mbrtowc1.sh: New file.
49568         * tests/test-mbrtowc2.sh: New file.
49569         * tests/test-mbrtowc3.sh: New file.
49570         * tests/test-mbrtowc4.sh: New file.
49571         * tests/test-mbrtowc.c: New file.
49572
49573         New module 'mbrtowc'.
49574         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49575         mbsinit and mbrtowc.
49576         (mbrtowc): New declaration.
49577         * lib/mbrtowc.c: New file.
49578         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49579         * modules/mbrtowc: New file.
49580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49581         HAVE_MBRTOWC.
49582         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49583         HAVE_MBRTOWC.
49584         * doc/posix-functions/mbrtowc.texi: Document the new module.
49585
49586 2008-12-18  Bruno Haible  <bruno@clisp.org>
49587
49588         New module 'wctob'.
49589         * lib/wchar.in.h (wctob): New declaration.
49590         * lib/wctob.c: New file.
49591         * m4/wctob.m4: New file.
49592         * modules/wctob: New file.
49593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49594         HAVE_WCTOB.
49595         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49596         * doc/posix-functions/wctob.texi: Document the new module.
49597
49598 2008-12-18  Bruno Haible  <bruno@clisp.org>
49599
49600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49601         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49602
49603 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49604
49605         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49606         G. Christensen" <tgc@jupiterrise.com>.
49607
49608         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49609         G. Christensen" <tgc@jupiterrise.com>.
49610
49611         * lib/flock.c: Need to include string.h.  Reported by "Tom
49612         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49613         <ebb9@byu.net>.
49614
49615 2008-12-18  Bruno Haible  <bruno@clisp.org>
49616
49617         * m4/locale-ja.m4: New file, from GNU gettext.
49618
49619 2008-12-17  Bruno Haible  <bruno@clisp.org>
49620
49621         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49622         Suggested by Eric Blake.
49623
49624 2008-12-17  Bruno Haible  <bruno@clisp.org>
49625
49626         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49627
49628 2008-12-17  Bruno Haible  <bruno@clisp.org>
49629
49630         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49631         * modules/mbsinit (Depends-on): Add verify.
49632         Suggested by Paul Eggert.
49633
49634 2008-12-17  Bruno Haible  <bruno@clisp.org>
49635
49636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49637         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49638         gl_FUNC_MBRTOWC.
49639         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49640         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49641         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49642         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49643         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49644         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49645         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49646         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49647         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49648         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49649         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49650         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49651         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49652         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49653         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49654         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49655         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49656         * modules/trim (configure.ac): Likewise.
49657
49658 2008-12-17  Bruno Haible  <bruno@clisp.org>
49659
49660         * modules/btowc-tests: New file.
49661         * tests/test-btowc1.sh: New file.
49662         * tests/test-btowc2.sh: New file.
49663         * tests/test-btowc.c: New file.
49664
49665         New module 'btowc'.
49666         * lib/wchar.in.h (btowc): New declaration.
49667         * lib/btowc.c: New file.
49668         * m4/btowc.m4: New file.
49669         * modules/btowc: New file.
49670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49671         HAVE_BTOWC.
49672         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49673         * doc/posix-functions/btowc.texi: Document the new module.
49674
49675 2008-12-17  Bruno Haible  <bruno@clisp.org>
49676
49677         New module 'mbsinit'.
49678         * lib/wchar.in.h (mbsinit): New declaration.
49679         * lib/mbsinit.c: New file.
49680         * m4/mbsinit.m4: New file.
49681         * modules/mbsinit: New file.
49682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49683         HAVE_MBSINIT.
49684         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49685         HAVE_MBSINIT.
49686         * doc/posix-functions/mbsinit.texi: Document the new module.
49687
49688 2008-12-16  Bruno Haible  <bruno@clisp.org>
49689
49690         * lib/unistd.in.h: Add comment.
49691         * tests/test-environ.c: Don't include <stdlib.h>.
49692
49693 2008-12-16  Bruno Haible  <bruno@clisp.org>
49694
49695         * lib/parse-duration.h (parse_duration): Document return value
49696         convention.
49697         * lib/parse-duration.c: Include specification header first. Add
49698         comments.
49699         (_): Remove macro.
49700         (parse_year_month_day, parse_hour_minute_second): Move side effects
49701         outside of strchr call.
49702         (parse_non_iso8601): Move side effects outside of isspace call.
49703         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49704         call.
49705
49706 2008-12-16  Bruno Haible  <bruno@clisp.org>
49707
49708         * tests/test-parse-duration.sh: Produce no output when the test
49709         succeeds.
49710
49711 2008-12-16  Bruno Haible  <bruno@clisp.org>
49712
49713         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49714         expressions.
49715
49716 2008-12-15  Bruno Haible  <bruno@clisp.org>
49717
49718         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49719         * doc/glibc-functions/flistxattr.texi: Likewise.
49720         * doc/glibc-functions/fopencookie.texi: Likewise.
49721         * doc/glibc-functions/fremovexattr.texi: Likewise.
49722         * doc/glibc-functions/fsetxattr.texi: Likewise.
49723         * doc/glibc-functions/getxattr.texi: Likewise.
49724         * doc/glibc-functions/lgetxattr.texi: Likewise.
49725         * doc/glibc-functions/listxattr.texi: Likewise.
49726         * doc/glibc-functions/llistxattr.texi: Likewise.
49727         * doc/glibc-functions/lremovexattr.texi: Likewise.
49728         * doc/glibc-functions/lsetxattr.texi: Likewise.
49729         * doc/glibc-functions/removexattr.texi: Likewise.
49730         * doc/glibc-functions/setxattr.texi: Likewise.
49731         * doc/posix-functions/open_memstream.texi: Likewise.
49732
49733 2008-12-15  Eric Blake  <ebb9@byu.net>
49734
49735         Update doc for cygwin 1.7.
49736         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49737         functions.
49738         * doc/posix-functions/fchmodat.texi: Likewise.
49739         * doc/posix-functions/fchownat.texi: Likewise.
49740         * doc/posix-functions/fdopendir.texi: Likewise.
49741         * doc/posix-functions/fmemopen.texi: Likewise.
49742         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49743         * doc/posix-functions/fstatat.texi: Likewise.
49744         * doc/posix-functions/futimens.texi: Likewise.
49745         * doc/posix-functions/gai_strerror.texi: Likewise.
49746         * doc/posix-functions/getaddrinfo.texi: Likewise.
49747         * doc/posix-functions/getnameinfo.texi: Likewise.
49748         * doc/posix-functions/if_freenameindex.texi: Likewise.
49749         * doc/posix-functions/if_indextoname.texi: Likewise.
49750         * doc/posix-functions/if_nameindex.texi: Likewise.
49751         * doc/posix-functions/if_nametoindex.texi: Likewise.
49752         * doc/posix-functions/insque.texi: Likewise.
49753         * doc/posix-functions/linkat.texi: Likewise.
49754         * doc/posix-functions/llrint.texi: Likewise.
49755         * doc/posix-functions/llrintf.texi: Likewise.
49756         * doc/posix-functions/llrintl.texi: Likewise.
49757         * doc/posix-functions/lockf.texi: Likewise.
49758         * doc/posix-functions/lrintl.texi: Likewise.
49759         * doc/posix-functions/mkdirat.texi: Likewise.
49760         * doc/posix-functions/mkfifoat.texi: Likewise.
49761         * doc/posix-functions/mknodat.texi: Likewise.
49762         * doc/posix-functions/mq_close.texi: Likewise.
49763         * doc/posix-functions/mq_getattr.texi: Likewise.
49764         * doc/posix-functions/mq_notify.texi: Likewise.
49765         * doc/posix-functions/mq_open.texi: Likewise.
49766         * doc/posix-functions/mq_receive.texi: Likewise.
49767         * doc/posix-functions/mq_send.texi: Likewise.
49768         * doc/posix-functions/mq_setattr.texi: Likewise.
49769         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49770         * doc/posix-functions/mq_timedsend.texi: Likewise.
49771         * doc/posix-functions/mq_unlink.texi: Likewise.
49772         * doc/posix-functions/open_memstream.texi: Likewise.
49773         * doc/posix-functions/openat.texi: Likewise.
49774         * doc/posix-functions/posix_fadvise.texi: Likewise.
49775         * doc/posix-functions/posix_fallocate.texi: Likewise.
49776         * doc/posix-functions/posix_madvise.texi: Likewise.
49777         * doc/posix-functions/posix_memalign.texi: Likewise.
49778         * doc/posix-functions/posix_openpt.texi: Likewise.
49779         * doc/posix-functions/readlinkat.texi: Likewise.
49780         * doc/posix-functions/remque.texi: Likewise.
49781         * doc/posix-functions/renameat.texi: Likewise.
49782         * doc/posix-functions/rintl.texi: Likewise.
49783         * doc/posix-functions/sem_unlink.texi: Likewise.
49784         * doc/posix-functions/shm_open.texi: Likewise.
49785         * doc/posix-functions/shm_unlink.texi: Likewise.
49786         * doc/posix-functions/signgam.texi: Likewise.
49787         * doc/posix-functions/sigset.texi: Likewise.
49788         * doc/posix-functions/stpcpy.texi: Likewise.
49789         * doc/posix-functions/stpncpy.texi: Likewise.
49790         * doc/posix-functions/strerror.texi: Likewise.
49791         * doc/posix-functions/strtod.texi: Likewise.
49792         * doc/posix-functions/symlinkat.texi: Likewise.
49793         * doc/posix-functions/unlinkat.texi: Likewise.
49794         * doc/posix-functions/utimensat.texi: Likewise.
49795         * doc/glibc-functions/bindresvport.texi: Likewise.
49796         * doc/glibc-functions/dn_expand.texi: Likewise.
49797         * doc/glibc-functions/exp10.texi: Likewise.
49798         * doc/glibc-functions/exp10f.texi: Likewise.
49799         * doc/glibc-functions/fgetxattr.texi: Likewise.
49800         * doc/glibc-functions/flistxattr.texi: Likewise.
49801         * doc/glibc-functions/fopencookie.texi: Likewise.
49802         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49803         * doc/glibc-functions/fremovexattr.texi: Likewise.
49804         * doc/glibc-functions/fsetxattr.texi: Likewise.
49805         * doc/glibc-functions/getifaddrs.texi: Likewise.
49806         * doc/glibc-functions/getxattr.texi: Likewise.
49807         * doc/glibc-functions/lgetxattr.texi: Likewise.
49808         * doc/glibc-functions/listxattr.texi: Likewise.
49809         * doc/glibc-functions/llistxattr.texi: Likewise.
49810         * doc/glibc-functions/lremovexattr.texi: Likewise.
49811         * doc/glibc-functions/lsetxattr.texi: Likewise.
49812         * doc/glibc-functions/pow10.texi: Likewise.
49813         * doc/glibc-functions/pow10f.texi: Likewise.
49814         * doc/glibc-functions/rcmd_af.texi: Likewise.
49815         * doc/glibc-functions/removexattr.texi: Likewise.
49816         * doc/glibc-functions/res_init.texi: Likewise.
49817         * doc/glibc-functions/res_mkquery.texi: Likewise.
49818         * doc/glibc-functions/res_query.texi: Likewise.
49819         * doc/glibc-functions/res_querydomain.texi: Likewise.
49820         * doc/glibc-functions/res_send.texi: Likewise.
49821         * doc/glibc-functions/rresvport_af.texi: Likewise.
49822         * doc/glibc-functions/setxattr.texi: Likewise.
49823         * doc/glibc-functions/strcasestr.texi: Likewise.
49824
49825 2008-12-15  Bruno Haible  <bruno@clisp.org>
49826
49827         Fix compilation error on OSF/1 4.0.
49828         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49829         <sys/time.h>, simply delegate to the system header.
49830         Reported by Daniel Richard G. <oss@teragram.com>.
49831
49832 2008-12-15  Bruno Haible  <bruno@clisp.org>
49833
49834         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49835         * doc/posix-functions/fchmodat.texi: Likewise.
49836         * doc/posix-functions/fchownat.texi: Likewise.
49837         * doc/posix-functions/fdopendir.texi: Likewise.
49838         * doc/posix-functions/fstatat.texi: Likewise.
49839         * doc/posix-functions/mkdirat.texi: Likewise.
49840         * doc/posix-functions/unlinkat.texi: Likewise.
49841
49842 2008-12-14  Bruno Haible  <bruno@clisp.org>
49843
49844         Update doc for POSIX:2008.
49845         * doc/posix-functions/faccessat.texi: New file.
49846         * doc/posix-functions/fchmodat.texi: New file.
49847         * doc/posix-functions/fchownat.texi: New file.
49848         * doc/posix-functions/fdopendir.texi: New file.
49849         * doc/posix-functions/fstatat.texi: New file.
49850         * doc/posix-functions/futimens.texi: New file.
49851         * doc/posix-functions/linkat.texi: New file.
49852         * doc/posix-functions/mkdirat.texi: New file.
49853         * doc/posix-functions/mkfifoat.texi: New file.
49854         * doc/posix-functions/mknodat.texi: New file.
49855         * doc/posix-functions/open_wmemstream.texi: New file.
49856         * doc/posix-functions/openat.texi: New file.
49857         * doc/posix-functions/psiginfo.texi: New file.
49858         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49859         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49860         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49861         * doc/posix-functions/readlinkat.texi: New file.
49862         * doc/posix-functions/renameat.texi: New file.
49863         * doc/posix-functions/strerror_l.texi: New file.
49864         * doc/posix-functions/symlinkat.texi: New file.
49865         * doc/posix-functions/unlinkat.texi: New file.
49866         * doc/posix-functions/utimensat.texi: New file.
49867         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49868
49869 2008-12-14  Bruno Haible  <bruno@clisp.org>
49870
49871         Update doc for POSIX:2008.
49872         * doc/posix-functions/alphasort.texi: Renamed from
49873         doc/glibc-functions/alphasort.texi.
49874         * doc/posix-functions/dirfd.texi: Renamed from
49875         doc/glibc-functions/dirfd.texi.
49876         * doc/posix-functions/dprintf.texi: Renamed from
49877         doc/glibc-functions/dprintf.texi.
49878         * doc/posix-functions/duplocale.texi: Renamed from
49879         doc/glibc-functions/duplocale.texi.
49880         * doc/posix-functions/fexecve.texi: Renamed from
49881         doc/glibc-functions/fexecve.texi.
49882         * doc/posix-functions/fmemopen.texi: Renamed from
49883         doc/glibc-functions/fmemopen.texi.
49884         * doc/posix-functions/freelocale.texi: Renamed from
49885         doc/glibc-functions/freelocale.texi.
49886         * doc/posix-functions/getdate_err.texi: Renamed from
49887         doc/glibc-functions/getdate_err.texi.
49888         * doc/posix-functions/isalnum_l.texi: Renamed from
49889         doc/glibc-functions/isalnum_l.texi.
49890         * doc/posix-functions/isalpha_l.texi: Renamed from
49891         doc/glibc-functions/isalpha_l.texi.
49892         * doc/posix-functions/isblank_l.texi: Renamed from
49893         doc/glibc-functions/isblank_l.texi.
49894         * doc/posix-functions/iscntrl_l.texi: Renamed from
49895         doc/glibc-functions/iscntrl_l.texi.
49896         * doc/posix-functions/isdigit_l.texi: Renamed from
49897         doc/glibc-functions/isdigit_l.texi.
49898         * doc/posix-functions/isgraph_l.texi: Renamed from
49899         doc/glibc-functions/isgraph_l.texi.
49900         * doc/posix-functions/islower_l.texi: Renamed from
49901         doc/glibc-functions/islower_l.texi.
49902         * doc/posix-functions/isprint_l.texi: Renamed from
49903         doc/glibc-functions/isprint_l.texi.
49904         * doc/posix-functions/ispunct_l.texi: Renamed from
49905         doc/glibc-functions/ispunct_l.texi.
49906         * doc/posix-functions/isspace_l.texi: Renamed from
49907         doc/glibc-functions/isspace_l.texi.
49908         * doc/posix-functions/isupper_l.texi: Renamed from
49909         doc/glibc-functions/isupper_l.texi.
49910         * doc/posix-functions/iswalnum_l.texi: Renamed from
49911         doc/glibc-functions/iswalnum_l.texi.
49912         * doc/posix-functions/iswalpha_l.texi: Renamed from
49913         doc/glibc-functions/iswalpha_l.texi.
49914         * doc/posix-functions/iswblank_l.texi: Renamed from
49915         doc/glibc-functions/iswblank_l.texi.
49916         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49917         doc/glibc-functions/iswcntrl_l.texi.
49918         * doc/posix-functions/iswctype_l.texi: Renamed from
49919         doc/glibc-functions/iswctype_l.texi.
49920         * doc/posix-functions/iswdigit_l.texi: Renamed from
49921         doc/glibc-functions/iswdigit_l.texi.
49922         * doc/posix-functions/iswgraph_l.texi: Renamed from
49923         doc/glibc-functions/iswgraph_l.texi.
49924         * doc/posix-functions/iswlower_l.texi: Renamed from
49925         doc/glibc-functions/iswlower_l.texi.
49926         * doc/posix-functions/iswprint_l.texi: Renamed from
49927         doc/glibc-functions/iswprint_l.texi.
49928         * doc/posix-functions/iswpunct_l.texi: Renamed from
49929         doc/glibc-functions/iswpunct_l.texi.
49930         * doc/posix-functions/iswspace_l.texi: Renamed from
49931         doc/glibc-functions/iswspace_l.texi.
49932         * doc/posix-functions/iswupper_l.texi: Renamed from
49933         doc/glibc-functions/iswupper_l.texi.
49934         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49935         doc/glibc-functions/iswxdigit_l.texi.
49936         * doc/posix-functions/isxdigit_l.texi: Renamed from
49937         doc/glibc-functions/isxdigit_l.texi.
49938         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49939         doc/glibc-functions/mbsnrtowcs.texi.
49940         * doc/posix-functions/mkdtemp.texi: Renamed from
49941         doc/glibc-functions/mkdtemp.texi.
49942         * doc/posix-functions/newlocale.texi: Renamed from
49943         doc/glibc-functions/newlocale.texi.
49944         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49945         doc/glibc-functions/nl_langinfo_l.texi.
49946         * doc/posix-functions/open_memstream.texi: Renamed from
49947         doc/glibc-functions/open_memstream.texi.
49948         * doc/posix-functions/opterr.texi: Renamed from
49949         doc/glibc-functions/opterr.texi.
49950         * doc/posix-functions/optind.texi: Renamed from
49951         doc/glibc-functions/optind.texi.
49952         * doc/posix-functions/optopt.texi: Renamed from
49953         doc/glibc-functions/optopt.texi.
49954         * doc/posix-functions/psignal.texi: Renamed from
49955         doc/glibc-functions/psignal.texi.
49956         * doc/posix-functions/scandir.texi: Renamed from
49957         doc/glibc-functions/scandir.texi.
49958         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49959         doc/glibc-functions/sched_get_priority_min.texi.
49960         * doc/posix-functions/signgam.texi: Renamed from
49961         doc/glibc-functions/signgam.texi.
49962         * doc/posix-functions/stpcpy.texi: Renamed from
49963         doc/glibc-functions/stpcpy.texi.
49964         * doc/posix-functions/stpncpy.texi: Renamed from
49965         doc/glibc-functions/stpncpy.texi.
49966         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49967         doc/glibc-functions/strcasecmp_l.texi.
49968         * doc/posix-functions/strcoll_l.texi: Renamed from
49969         doc/glibc-functions/strcoll_l.texi.
49970         * doc/posix-functions/strfmon_l.texi: Renamed from
49971         doc/glibc-functions/strfmon_l.texi.
49972         * doc/posix-functions/strftime_l.texi: Renamed from
49973         doc/glibc-functions/strftime_l.texi.
49974         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49975         doc/glibc-functions/strncasecmp_l.texi.
49976         * doc/posix-functions/strndup.texi: Renamed from
49977         doc/glibc-functions/strndup.texi.
49978         * doc/posix-functions/strnlen.texi: Renamed from
49979         doc/glibc-functions/strnlen.texi.
49980         * doc/posix-functions/strsignal.texi: Renamed from
49981         doc/glibc-functions/strsignal.texi.
49982         * doc/posix-functions/strxfrm_l.texi: Renamed from
49983         doc/glibc-functions/strxfrm_l.texi.
49984         * doc/posix-functions/timer_gettime.texi: Renamed from
49985         doc/glibc-functions/timer_gettime.texi.
49986         * doc/posix-functions/tolower_l.texi: Renamed from
49987         doc/glibc-functions/tolower_l.texi.
49988         * doc/posix-functions/toupper_l.texi: Renamed from
49989         doc/glibc-functions/toupper_l.texi.
49990         * doc/posix-functions/towctrans_l.texi: Renamed from
49991         doc/glibc-functions/towctrans_l.texi.
49992         * doc/posix-functions/towlower_l.texi: Renamed from
49993         doc/glibc-functions/towlower_l.texi.
49994         * doc/posix-functions/towupper_l.texi: Renamed from
49995         doc/glibc-functions/towupper_l.texi.
49996         * doc/posix-functions/uselocale.texi: Renamed from
49997         doc/glibc-functions/uselocale.texi.
49998         * doc/posix-functions/vdprintf.texi: Renamed from
49999         doc/glibc-functions/vdprintf.texi.
50000         * doc/posix-functions/wcpcpy.texi:
50001         Renamed from doc/glibc-functions/wcpcpy.texi.
50002         * doc/posix-functions/wcpncpy.texi: Renamed from
50003         doc/glibc-functions/wcpncpy.texi.
50004         * doc/posix-functions/wcscasecmp.texi: Renamed from
50005         doc/glibc-functions/wcscasecmp.texi.
50006         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50007         doc/glibc-functions/wcscasecmp_l.texi.
50008         * doc/posix-functions/wcscoll_l.texi: Renamed from
50009         doc/glibc-functions/wcscoll_l.texi.
50010         * doc/posix-functions/wcsdup.texi: Renamed from
50011         doc/glibc-functions/wcsdup.texi.
50012         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50013         doc/glibc-functions/wcsncasecmp.texi.
50014         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50015         doc/glibc-functions/wcsncasecmp_l.texi.
50016         * doc/posix-functions/wcsnlen.texi: Renamed from
50017         doc/glibc-functions/wcsnlen.texi.
50018         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50019         doc/glibc-functions/wcsnrtombs.texi.
50020         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50021         doc/glibc-functions/wcsxfrm_l.texi.
50022         * doc/posix-functions/wctrans_l.texi: Renamed from
50023         doc/glibc-functions/wctrans_l.texi.
50024         * doc/posix-functions/wctype_l.texi: Renamed from
50025         doc/glibc-functions/wctype_l.texi.
50026         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50027         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50028         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50029         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50030         these subsections.
50031         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50032         Remove sections.
50033
50034 2008-12-14  Bruno Haible  <bruno@clisp.org>
50035
50036         Update doc for POSIX:2008.
50037         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50038
50039 2008-12-14  Bruno Haible  <bruno@clisp.org>
50040
50041         Update doc for POSIX:2008.
50042         * doc/pastposix-functions/bcmp.texi: Renamed from
50043         doc/posix-functions/bcmp.texi.
50044         * doc/pastposix-functions/bcopy.texi: Renamed from
50045         doc/posix-functions/bcopy.texi.
50046         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50047         doc/posix-functions/bsd_signal.texi.
50048         * doc/pastposix-functions/bzero.texi: Renamed from
50049         doc/posix-functions/bzero.texi.
50050         * doc/pastposix-functions/ecvt.texi: Renamed from
50051         doc/posix-functions/ecvt.texi.
50052         * doc/pastposix-functions/fcvt.texi: Renamed from
50053         doc/posix-functions/fcvt.texi.
50054         * doc/pastposix-functions/ftime.texi: Renamed from
50055         doc/posix-functions/ftime.texi.
50056         * doc/pastposix-functions/gcvt.texi: Renamed from
50057         doc/posix-functions/gcvt.texi.
50058         * doc/pastposix-functions/getcontext.texi: Renamed from
50059         doc/posix-functions/getcontext.texi.
50060         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50061         doc/posix-functions/gethostbyaddr.texi.
50062         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50063         doc/posix-functions/gethostbyname.texi.
50064         * doc/pastposix-functions/getwd.texi: Renamed from
50065         doc/posix-functions/getwd.texi.
50066         * doc/pastposix-functions/h_errno.texi: Renamed from
50067         doc/posix-functions/h_errno.texi.
50068         * doc/pastposix-functions/index.texi: Renamed from
50069         doc/posix-functions/index.texi.
50070         * doc/pastposix-functions/makecontext.texi: Renamed from
50071         doc/posix-functions/makecontext.texi.
50072         * doc/pastposix-functions/mktemp.texi: Renamed from
50073         doc/posix-functions/mktemp.texi.
50074         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50075         doc/posix-functions/pthread_attr_getstackaddr.texi.
50076         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50077         doc/posix-functions/pthread_attr_setstackaddr.texi.
50078         * doc/pastposix-functions/rindex.texi: Renamed from
50079         doc/posix-functions/rindex.texi.
50080         * doc/pastposix-functions/scalb.texi: Renamed from
50081         doc/posix-functions/scalb.texi.
50082         * doc/pastposix-functions/setcontext.texi: Renamed from
50083         doc/posix-functions/setcontext.texi.
50084         * doc/pastposix-functions/swapcontext.texi: Renamed from
50085         doc/posix-functions/swapcontext.texi.
50086         * doc/pastposix-functions/ualarm.texi: Renamed from
50087         doc/posix-functions/ualarm.texi.
50088         * doc/pastposix-functions/usleep.texi: Renamed from
50089         doc/posix-functions/usleep.texi.
50090         * doc/pastposix-functions/vfork.texi: Renamed from
50091         doc/posix-functions/vfork.texi.
50092         * doc/pastposix-functions/wcswcs.texi: Renamed from
50093         doc/posix-functions/wcswcs.texi.
50094         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50095         (Function Substitutes): Update.
50096
50097 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50098
50099         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50100         m4/strerror.m4.
50101
50102 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50103             Bruno Haible  <bruno@clisp.org>
50104
50105         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50106
50107 2008-12-13  Bruno Haible  <bruno@clisp.org>
50108
50109         * modules/strtoull (Depends-on): Remove unistd.
50110
50111 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50112
50113         * modules/strtoull (Depends-on): Add stdlib.
50114
50115 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50116
50117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50118
50119 2008-12-10  Jim Meyering  <meyering@redhat.com>
50120
50121         gl_ASSERT: don't say assertions are disabled when they're not
50122         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50123         "checking whether to enable assertions... no", when they are in
50124         fact enabled.  This is solely a bug in the output of configure.
50125         In spite of saying "no", NDEBUG was not defined in that case.
50126         Also, as noted by Eric Blake, leave assertions enabled upon
50127         --enable-assert=INVALID.
50128
50129 2008-12-10  Bruno Haible  <bruno@clisp.org>
50130
50131         Change MODULES.html to refer to POSIX:2008 where possible.
50132         * MODULES.html.sh (POSIX2008_URL): New variable.
50133         (posix_headers): Remove sys/timeb, ucontext.
50134         (posix2001_headers): New variable.
50135         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50136         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50137         index, makecontext, mktemp, pthread_attr_getstackaddr,
50138         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50139         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50140         (posix2001_functions): New variable.
50141         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50142         otherwise.
50143
50144 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50145
50146         add missing include to parse-duration.c
50147         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50148         * modules/parse-duration (Depends-on): Add xalloc.
50149
50150         fix sed script reading maint.mk
50151         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50152         (syntax-check-rules): Use it.
50153
50154 2008-12-09  Bruno Haible  <bruno@clisp.org>
50155
50156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50157         MacOS X 10.4/PowerPC.
50158         Reported by Simon Josefsson.
50159
50160 2008-12-08  Jim Meyering  <meyering@redhat.com>
50161
50162         work around mingw's lack of some S_IF definitions
50163         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50164         Reported by Simon Josefsson.
50165
50166 2008-12-08  Bruno Haible  <bruno@clisp.org>
50167
50168         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50169         applied to variables. Needed on MacOS X 10.4/PowerPC.
50170         Reported by Simon Josefsson.
50171
50172 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50173         and Eric Blake  <ebb9@byu.net>
50174
50175         assert: honor --enable-assert
50176         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50177         order to honor --enable-assert, rather than treating it as a
50178         synonym for --disable-assert.
50179
50180 2008-12-08  Jim Meyering  <meyering@redhat.com>
50181
50182         * lib/posixtm.c: Remove now-useless declaration of mktime.
50183
50184         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50185
50186 2008-12-07  Bruno Haible  <bruno@clisp.org>
50187
50188         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50189         test_once): Mark functions as static.
50190         * tests/test-tls.c (test_tls): Likewise.
50191
50192 2008-12-07  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50195         iconv_register_autodetect.
50196
50197 2008-12-07  Jim Meyering  <meyering@redhat.com>
50198
50199         posixtm.c: avoid a warning
50200         * lib/posixtm.c (posixtime): Don't initialize tm0.
50201         It's no longer needed to placate gcc4's -Wuninitialized,
50202         and the attempt to placate would elicit a new warning.
50203
50204         unicodeio.c: mark unused parameters
50205         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50206         (fallback_failure_callback): Likewise.
50207
50208 2008-12-07  Bruno Haible  <bruno@clisp.org>
50209
50210         * gnulib-tool (func_create_testdir): When building the tests
50211         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50212         Reported by Simon Josefsson.
50213
50214 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50215
50216         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50217
50218 2008-12-06  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50221         Suggested by Eric Blake.
50222
50223 2008-12-06  Bruno Haible  <bruno@clisp.org>
50224
50225         Fix a c-stack test failure on MacOS X.
50226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50227         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50228         handler for SIGBUS as well.
50229         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50230         install a signal handler for SIGBUS as well.
50231         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50232
50233 2008-12-06  Bruno Haible  <bruno@clisp.org>
50234
50235         Advocacy documentation.
50236         * doc/gnulib-intro.texi (Benefits): New section.
50237         * doc/gnulib.texi: Update.
50238
50239 2008-12-06  Bruno Haible  <bruno@clisp.org>
50240
50241         Document the 'manywarnings' module.
50242         * doc/manywarnings.texi: New file.
50243         * doc/gnulib.texi: Include it.
50244
50245 2008-12-05  Eric Blake  <ebb9@byu.net>
50246
50247         tests: silence some gcc warnings
50248         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50249         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50250         type mismatches.
50251
50252 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50253             Bruno Haible  <bruno@clisp.org>
50254
50255         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50256
50257 2008-11-29  Jim Meyering  <meyering@redhat.com>
50258
50259         unicodeio.c: mark unused parameters
50260         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50261         (fallback_failure_callback): Likewise.
50262
50263         fts: fix a thinko
50264         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50265         (set_stat_type): Return S_IF*-valued "type" directly.
50266         Prompted by James Youngman's spotting a related bug.
50267         Confirmed by further testing through find.
50268
50269         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50270         * lib/fts.c (D_TYPE): Define.
50271         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50272         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50273         (s_ifmt_shift_bits): New function.
50274         (set_stat_type): New function.
50275         (fts_build): When not calling fts_stat, call set_stat_type
50276         to propagate dirent.d_type info to fts_read caller.
50277         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50278         fts_statp->st_mode type information may be valid.
50279
50280 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50281
50282         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50283         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50284         <sds@gnu.org>.
50285
50286 2008-11-20  Bruno Haible  <bruno@clisp.org>
50287
50288         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50289         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50290         INCLUDE_NEXT.
50291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50292         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50293         * modules/math (Makefile.am): Substitute
50294         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50296
50297 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50298             Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/stdint.in.h: Define all type macros so that their expansion is
50301         a single typedef'ed token. Fixes a compilation failure in Boost which
50302         does "using ::int8_t;".
50303
50304 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50305
50306         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50307         gl_MANYWARN_ALL_GCC.
50308         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50309         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50310         * modules/manywarnings: New file.
50311         * MODULES.html.sh: Mention manywarnings module.
50312
50313 2008-11-18  Bruno Haible  <bruno@clisp.org>
50314
50315         * doc/gnulib-tool.texi (Unit tests): New section.
50316
50317 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50318
50319         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50320         paths like 'lib/po/foo.po'.
50321
50322 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50323
50324         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50325         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50326
50327 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50328
50329         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50330         parameter works.
50331
50332 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50333
50334         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50335
50336 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50337
50338         * modules/parse-duration-tests: New file.
50339         * tests/test-parse-duration.sh: New file.
50340         * tests/test-parse-duration.c: New file.
50341
50342         New module 'parse-duration'.
50343         * lib/parse-duration.h: New file.
50344         * lib/parse-duration.c: New file.
50345         * modules/parse-duration: New file.
50346
50347 2008-11-17  Bruno Haible  <bruno@clisp.org>
50348
50349         * tests/test-select-out.sh: Comment out the first pipe test.
50350         Reported by Simon Josefsson.
50351
50352 2008-11-17  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50356         gl_HOSTENT.
50357
50358 2008-11-17  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50361         -lnetwork and -lnet. Needed for Haiku and BeOS.
50362
50363 2008-11-16  Bruno Haible  <bruno@clisp.org>
50364
50365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50366
50367 2008-11-16  Bruno Haible  <bruno@clisp.org>
50368
50369         Avoid test failure on Haiku.
50370         * tests/test-fsync.c: Include <errno.h>.
50371         (main): Don't require that fsync (0) fails.
50372
50373 2008-11-15  Bruno Haible  <bruno@clisp.org>
50374
50375         New module 'hostent'.
50376         * modules/hostent: New file.
50377         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50378
50379 2008-11-15  Bruno Haible  <bruno@clisp.org>
50380
50381         New module 'servent'.
50382         * modules/servent: New file.
50383         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50384
50385 2008-11-15  Bruno Haible  <bruno@clisp.org>
50386
50387         Avoid generating same test program with two different rules.
50388         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50389         test-frexp to test-frexp-nolibm.
50390         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50391         test-frexpl to test-frexpl-nolibm.
50392
50393 2008-11-15  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50396         $(FREXPL_LIBM).
50397
50398 2008-11-15  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/netdb.in.h: Activate the definitions also when the system's
50401         <netdb.h> has 'struct addrinfo'.
50402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50403         EAI_OVERFLOW or AI_NUMERICSERV.
50404         * doc/posix-headers/netdb.texi: Document the problem.
50405
50406 2008-11-15  Bruno Haible  <bruno@clisp.org>
50407
50408         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50409
50410         Make the 'sched' module work on platforms where <sched.h> exists but
50411         is incomplete (such as Haiku).
50412         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50413         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50414         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50415         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50416         HAVE_STRUCT_SCHED_PARAM.
50417         * modules/sched (Depends-on): Add include_next.
50418         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50419         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50420         * doc/posix-headers/sched.texi: Document the issue.
50421
50422 2008-11-13  Jim Meyering  <meyering@redhat.com>
50423
50424         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50425         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50426         test would fail due to the difference in the Report bugs to ...
50427         line.  The expected address is empty, "<>", while the actual
50428         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50429
50430 2008-11-12  Bruno Haible  <bruno@clisp.org>
50431
50432         lstat: don't compile lstat.c on systems lacking lstat
50433         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50434         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50435         Reported by Daniel P. Berrange via Jim Meyering.
50436
50437 2008-11-12  Jim Meyering  <meyering@redhat.com>
50438
50439         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50440
50441 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50442
50443         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50444         instead.
50445
50446 2008-11-12  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/unicodeio.c: Include unistr.h.
50449         (utf8_wctomb): Remove function.
50450         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50451
50452 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50453
50454         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50455         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50456         <bruno@clisp.org>.
50457         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50458
50459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50460
50461         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50462         * doc/gnulib.texi: Add section for warnings.
50463
50464 2008-11-11  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/sockets.h: Add a comment.
50467
50468 2008-11-11  Karl Berry  <karl@gnu.org>
50469
50470         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50471
50472 2008-11-11  Eric Blake  <ebb9@byu.net>
50473
50474         fdl.texi: avoid git symlinks
50475         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50476
50477 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50478
50479         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50480
50481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50482
50483         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50484         (gl_WARN_ADD): Substitute $2 if literal.
50485
50486 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50487
50488         * m4/warning.m4: Remove.
50489
50490 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50491
50492         * m4/warnings.m4: Almost complete rewrite. :-)
50493
50494 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50495
50496         * modules/warnings: New module.
50497         * m4/warnings.m4: New file.
50498         * MODULES.html.sh: Mention warnings module.
50499         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50500         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50501
50502 2008-11-10  Eric Blake  <ebb9@byu.net>
50503
50504         fdl.texi: make a symlink to the latest version
50505         * doc/standards.texi: Revert today's earlier change.
50506         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50507         * doc/fdl.texi: ...and replace this with a symlink to the newer
50508         fdl-1.3.texi.
50509
50510 2008-11-10  Bruno Haible  <bruno@clisp.org>
50511
50512         * tests/test-select-fd.c (main): Accept the result file name as fourth
50513         argument.
50514         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50515         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50516
50517 2008-11-10  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50520         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50521         as autoconf-substituted macros.
50522         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50523         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50524         gl_NETDB_H_DEFAULTS. Set these variables.
50525         * modules/netdb (Makefile.am): Substitute these variables.
50526
50527 2008-11-10  Eric Blake  <ebb9@byu.net>
50528
50529         standards.texi: include correct file for FDL 1.3
50530         * doc/standards.texi (GNU Free Documentation License): Change
50531         include file to pull in FDL 1.3, not 1.2.
50532
50533         fdl.texi: revert accidental change to license
50534         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50535
50536 2008-11-10  Bruno Haible  <bruno@clisp.org>
50537
50538         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50539         cross-compiling guesses also when the native compile gives no result.
50540
50541 2008-11-10  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/spawni.c (__spawni): Force variable into the stack.
50544
50545 2008-11-10  Bruno Haible  <bruno@clisp.org>
50546
50547         Add support for Haiku.
50548         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50549         glibc and BeOS, but also on Haiku.
50550         * lib/fpurge.c (fpurge): Likewise.
50551         * lib/freadable.c (freadable): Likewise.
50552         * lib/freadahead.c (freadahead): Likewise.
50553         * lib/freading.c (freading): Likewise.
50554         * lib/freadptr.c (freadptr): Likewise.
50555         * lib/freadseek.c (freadptrinc): Likewise.
50556         * lib/fseeko.c (rpl_fseeko): Likewise.
50557         * lib/fseterr.c (fseterr): Likewise.
50558         * lib/fwritable.c (fwritable): Likewise.
50559         * lib/fwriting.c (fwriting): Likewise.
50560         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50561
50562 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50563
50564         * lib/config.charset: Treat Haiku like BeOS.
50565
50566 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50567
50568         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50569         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50570
50571 2008-11-08  Bruno Haible  <bruno@clisp.org>
50572
50573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50574         AC_CACHE_CHECK.
50575
50576 2008-11-08  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50579
50580 2008-11-08  Bruno Haible  <bruno@clisp.org>
50581
50582         * tests/test-select-fd.c: New file.
50583         * tests/test-select-in.sh: New file.
50584         * tests/test-select-out.sh: New file.
50585         * tests/test-select-stdin.c: New file.
50586         * modules/select-tests (Files): Add the new files.
50587         (Depends-on): Add gettimeofday.
50588         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50589         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50590         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50591
50592 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50593             Bruno Haible  <bruno@clisp.org>
50594
50595         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50596
50597 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50598
50599         * build-aux/pmccabe2html: Added support for C++ source files.
50600
50601 2008-11-05  Ben Pfaff  <blp@gnu.org>
50602
50603         Fix lib/close.c build on Windows.
50604         * modules/close (Files): Add lib/w32sock.h.
50605
50606 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50607
50608         Accept Bison's NEWS format.
50609         * build-aux/announce-gen (print_news_deltas): Tweak
50610         $re_prefix.
50611
50612 2008-11-04  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/random_r (Maintainer): Add glibc.
50615
50616 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50617
50618         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50619         by karl@freefriends.org (Karl Berry).
50620         * doc/alloca.texi: Likewise.
50621         * doc/c-ctype.texi: Likewise.
50622         * doc/c-strcase.texi: Likewise.
50623         * doc/c-strcaseeq.texi: Likewise.
50624         * doc/c-strcasestr.texi: Likewise.
50625         * doc/c-strstr.texi: Likewise.
50626         * doc/c-strtod.texi: Likewise.
50627         * doc/c-strtold.texi: Likewise.
50628         * doc/ctime.texi: Likewise.
50629         * doc/error.texi: Likewise.
50630         * doc/fdl.texi: Likewise.
50631         * doc/gcd.texi: Likewise.
50632         * doc/getdate.texi: Likewise.
50633         * doc/gnulib-intro.texi: Likewise.
50634         * doc/gnulib-tool.texi: Likewise.
50635         * doc/gnulib.texi: Likewise.
50636         * doc/inet_ntoa.texi: Likewise.
50637         * doc/maintain.texi: Likewise.
50638         * doc/make-stds.texi: Likewise.
50639         * doc/quote.texi: Likewise.
50640         * doc/regexprops-generic.texi: Likewise.
50641         * doc/standards.texi: Likewise.
50642         * doc/verify.texi: Likewise.
50643         * doc/visibility.texi: Likewise.
50644         * doc/gnulib.texi (GNU Free Documentation License): Include
50645         fdl-1.3.texi instead of fdl.texi.
50646
50647 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50648
50649         * doc/fdl-1.3.texi: New file, from
50650         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50651         * modules/fdl-1.3: Add.
50652         * MODULES.html.sh: Add fdl-1.3.
50653
50654 2008-11-03  Bruno Haible  <bruno@clisp.org>
50655
50656         Make determination of absolute name of header file work with AIX xlc.
50657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50658         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50659         preprocessing.
50660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50661         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50662
50663 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50664
50665         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50666         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50667         <ludo@gnu.org>.
50668
50669 2008-11-02  Bruno Haible  <bruno@clisp.org>
50670
50671         Mark 'strpbrk' obsolete.
50672         * modules/strpbrk (Status, Notice): New sections.
50673         * modules/strtok_r (Depends-on): Add strpbrk.
50674
50675 2008-11-02  Bruno Haible  <bruno@clisp.org>
50676
50677         Mark 'strdup' obsolete.
50678         * modules/strdup (Status, Notice): New sections.
50679         * modules/findprog (Depends-on): Add strdup.
50680         * modules/getaddrinfo (Depends-on): Likewise.
50681         * modules/localename (Depends-on): Likewise.
50682         * modules/relocatable-lib (Depends-on): Likewise.
50683         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50684         * modules/relocatable-prog (Depends-on): Likewise.
50685         * modules/trim (Depends-on): Likewise.
50686         * modules/unictype/gen-ctype (Depends-on): Likewise.
50687         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50688
50689 2008-11-02  Bruno Haible  <bruno@clisp.org>
50690
50691         Mark 'strcspn' obsolete.
50692         * modules/strcspn (Status, Notice): New sections.
50693
50694 2008-11-02  Bruno Haible  <bruno@clisp.org>
50695
50696         Mark 'rmdir' obsolete.
50697         * modules/rmdir (Status, Notice): New sections.
50698         * modules/clean-temp (Depends-on): Add rmdir.
50699         * modules/openat (Depends-on): Likewise.
50700
50701 2008-11-02  Bruno Haible  <bruno@clisp.org>
50702
50703         Mark 'raise' obsolete.
50704         * modules/raise (Status, Notice): New sections.
50705         (Include): Specify <signal.h>.
50706         * modules/stdio (Depends-on): Add raise.
50707         * modules/write (Depends-on): Likewise.
50708
50709 2008-11-02  Bruno Haible  <bruno@clisp.org>
50710
50711         Mark 'memset' obsolete.
50712         * modules/memset (Status, Notice): New sections.
50713
50714 2008-11-02  Bruno Haible  <bruno@clisp.org>
50715
50716         Mark 'memmove' obsolete.
50717         * modules/memmove (Status, Notice): New sections.
50718         * modules/argp (Depends-on): Add memmove.
50719         * modules/argz (Depends-on): Likewise.
50720         * modules/canonicalize (Depends-on): Likewise.
50721         * modules/canonicalize-lgpl (Depends-on): Likewise.
50722         * modules/fts (Depends-on): Likewise.
50723         * modules/getcwd (Depends-on): Likewise.
50724         * modules/human (Depends-on): Likewise.
50725         * modules/regex (Depends-on): Likewise.
50726         * modules/striconveh (Depends-on): Likewise.
50727         * modules/trim (Depends-on): Likewise.
50728         * modules/unistr/u8-move (Depends-on): Likewise.
50729         * modules/unistr/u16-move (Depends-on): Likewise.
50730         * modules/unistr/u32-move (Depends-on): Likewise.
50731
50732 2008-11-02  Bruno Haible  <bruno@clisp.org>
50733
50734         Mark 'memcpy' obsolete.
50735         * modules/memcpy (Status, Notice): New sections.
50736
50737 2008-11-02  Bruno Haible  <bruno@clisp.org>
50738
50739         Mark 'memcmp' obsolete.
50740         * modules/memcmp (Status, Notice): New sections.
50741         * modules/argmatch (Depends-on): Add memchr.
50742         * modules/backupfile (Depends-on): Likewise.
50743         * modules/c-strcasestr (Depends-on): Likewise.
50744         * modules/crypto/des (Depends-on): Likewise.
50745         * modules/csharpcomp (Depends-on): Likewise.
50746         * modules/fnmatch (Depends-on): Likewise.
50747         * modules/git-merge-changelog (Depends-on): Likewise.
50748         * modules/isnand (Depends-on): Likewise.
50749         * modules/isnand-nolibm (Depends-on): Likewise.
50750         * modules/isnanf (Depends-on): Likewise.
50751         * modules/isnanf-nolibm (Depends-on): Likewise.
50752         * modules/isnanl (Depends-on): Likewise.
50753         * modules/isnanl-nolibm (Depends-on): Likewise.
50754         * modules/mbchar (Depends-on): Likewise.
50755         * modules/memcoll (Depends-on): Likewise.
50756         * modules/quotearg (Depends-on): Likewise.
50757         * modules/regex (Depends-on): Likewise.
50758         * modules/relocatable-prog (Depends-on): Likewise.
50759         * modules/same (Depends-on): Likewise.
50760         * modules/signbit (Depends-on): Likewise.
50761         * modules/strcasestr-simple (Depends-on): Likewise.
50762         * modules/unictype/gen-ctype (Depends-on): Likewise.
50763         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50764         * modules/uniname/uniname (Depends-on): Likewise.
50765         * modules/unistr/u8-cmp (Depends-on): Likewise.
50766
50767 2008-11-02  Bruno Haible  <bruno@clisp.org>
50768
50769         Mark 'memchr' obsolete.
50770         * modules/memchr (Status, Notice): New sections.
50771         * modules/argp (Depends-on): Add memchr.
50772         * modules/base64 (Depends-on): Likewise.
50773         * modules/c-strcasestr (Depends-on): Likewise.
50774         * modules/chdir-long (Depends-on): Likewise.
50775         * modules/fnmatch (Depends-on): Likewise.
50776         * modules/getsubopt (Depends-on): Likewise.
50777         * modules/git-merge-changelog (Depends-on): Likewise.
50778         * modules/glob (Depends-on): Likewise.
50779         * modules/strcasestr-simple (Depends-on): Likewise.
50780         * modules/strnlen (Depends-on): Likewise.
50781
50782 2008-11-02  Bruno Haible  <bruno@clisp.org>
50783
50784         Mark 'atexit' obsolete.
50785         * modules/atexit (Status, Notice): New sections.
50786         * modules/chdir-long (Depends-on): Add atexit.
50787         * modules/wait-process (Depends-on): Likewise.
50788
50789 2008-11-02  Bruno Haible  <bruno@clisp.org>
50790
50791         * gnulib-tool: New option --with-obsolete.
50792         (func_usage): Document it.
50793         (func_modules_transitive_closure): Drop obsolete dependencies if
50794         incobsolete is not true.
50795         (func_import): Read and save the incobsolete variable to the cache.
50796
50797 2008-11-02  Bruno Haible  <bruno@clisp.org>
50798
50799         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50800         * gnulib-tool: New option --extract-status.
50801         (func_usage): Document it.
50802         (sed_extract_prog): Recognize it.
50803         (func_get_status): New function.
50804
50805 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50806
50807         * modules/sockets (License): Change from LGPL to LGPLv2+.
50808
50809 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50810
50811         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50812
50813 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50814
50815         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50816         Mention times and sys_times.
50817         * modules/sys_times, modules/sys_times-tests: New modules.
50818         * modules/times, modules/times-tests: Likewise
50819         * m4/sys_times_h.m4: New file.
50820         * lib/sys_times.in.h: Likewise
50821         * lib/times.c: Likewise.
50822         * tests/test-sys_times.c: Likewise.
50823         * tests/test-times.c: Likewise.
50824         * doc/posix-headers/sys_times.texi: Update.
50825         * doc/posix-functions/times.texi: Update.
50826
50827 2008-10-28  Jim Meyering  <meyering@redhat.com>
50828
50829         * modules/tempname (Depends-on): Add lstat.
50830
50831         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50832
50833 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50834
50835         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50836         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50837         using idiom used elsewhere in gnulib.
50838
50839 2008-10-27  Jim Meyering  <meyering@redhat.com>
50840
50841         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50842
50843 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50844
50845         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50846         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50847         programs.
50848         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50849
50850 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50851
50852         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50853
50854 2008-10-27  Bruno Haible  <bruno@clisp.org>
50855
50856         * tests/test-lstat.c: Include <stdio.h>.
50857
50858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50859
50860         * modules/lstat-tests: New module.
50861         * tests/test-lstat.c: New file.
50862
50863 2008-10-26  Jim Meyering  <meyering@redhat.com>
50864
50865         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50866
50867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50868             Bruno Haible  <bruno@clisp.org>
50869
50870         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50871         * modules/configmake (Include): Add a note that the include must come
50872         after all system headers.
50873         * lib/javaversion.c: Include configmake.h after all other includes.
50874
50875 2008-10-26  Bruno Haible  <bruno@clisp.org>
50876
50877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50878         HAVE_STRUCT_RANDOM_DATA to 1.
50879         (gl_STDLIB_H): Simplify.
50880
50881 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50882
50883         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50884         substitute HAVE_STRUCT_RANDOM_DATA.
50885         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50886         random_data.
50887         * modules/stdlib (Makefile.am): Substitute
50888         HAVE_STRUCT_RANDOM_DATA.
50889
50890 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50891
50892         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50893         * doc/gnulib-intro.texi (Copyright): Likewise.
50894
50895 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50896
50897         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50898         findings.
50899
50900 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50901             Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/unistd.in.h: Include <winsock2.h>.
50904         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50906         Provide dummy declarations.
50907         (gethostname): Override.
50908         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50909         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50910         gl_PREREQ_SYS_H_WINSOCK2.
50911         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50912         * doc/posix-functions/gethostname.texi: More details.
50913
50914 2008-10-25  Bruno Haible  <bruno@clisp.org>
50915
50916         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50917         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50918         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50919
50920         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50921         here ...
50922         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50924         gl_UNISTD_H_DEFAULTS.
50925
50926 2008-10-25  Eric Blake  <ebb9@byu.net>
50927
50928         signbit: avoid spurious compiler failure
50929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50930         declarations inside function.
50931
50932 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50933             Bruno Haible  <bruno@clisp.org>
50934
50935         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50936         * modules/random_r (Depends-on): Add stdint.
50937
50938 2008-10-24  Bruno Haible  <bruno@clisp.org>
50939
50940         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50941         Eggert.
50942         * modules/strerror (License): Likewise.
50943
50944 2008-10-24  Jim Meyering  <meyering@redhat.com>
50945
50946         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50947         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50948
50949 2008-10-24  Eric Blake  <ebb9@byu.net>
50950
50951         getgroups: fix compilation when getgroups is available
50952         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50953         but with <config.h> override of getgroups disabled.
50954
50955 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50956
50957         * doc/gnulib.texi (Header files): Add note about C++ problems.
50958         Explained by Bruno Haible <bruno@clisp.org>.
50959
50960 2008-10-23  Bruno Haible  <bruno@clisp.org>
50961
50962         Define a dummy SA_NODEFER macro on Interix.
50963         * lib/signal.in.h (SA_NODEFER): Define fallback.
50964         Reported by Aleksey Cheusov <cheusov@tut.by> via
50965         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50966
50967 2008-10-23  Bruno Haible  <bruno@clisp.org>
50968
50969         * modules/freadahead (License): Change to LGPLv2+.
50970         Suggested by Simon Josefsson.
50971
50972 2008-10-23  Jim Meyering  <meyering@redhat.com>
50973
50974         random_r: new module
50975         * modules/random_r: New file.
50976         * m4/random_r.m4: New file.
50977         * lib/random_r.c: New file, from glibc.
50978         * modules/random_r-tests: New file.
50979         * tests/test-random_r.c: New file.
50980         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50981          Declare.
50982         (RAND_MAX): Define.
50983         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50984         * modules/stdlib: Substitute them, too.
50985         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50986         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50987         * doc/glibc-functions/random_r.texi: Likewise.
50988         * doc/glibc-functions/setstate_r.texi: Likewise.
50989         * doc/glibc-functions/srandom_r.texi: Likewise.
50990         * config/srclist.txt: Mention it.
50991
50992 2008-10-23  David Lutterkort  <lutter@redhat.com>
50993
50994         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50995         link requirement
50996
50997 2008-10-23  Jim Meyering  <meyering@redhat.com>
50998
50999         selinux-h: mark parameters of stub functions as intentionally unused
51000         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51001         * lib/se-context.in.h: Likewise.
51002
51003 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51004
51005         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51006
51007 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51008
51009         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51010
51011 2008-10-22  Eric Blake  <ebb9@byu.net>
51012
51013         glthread/thread: avoid compiler warning
51014         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51015         Add unreachable abort to silence compiler.
51016
51017 2008-10-22  Eric Blake  <ebb9@byu.net>
51018
51019         netdb: also supply struct addrinfo for cygwin 1.5.x
51020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51021         older cygwin.
51022         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51023         cygwin.
51024         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51025
51026 2008-10-22  Bruno Haible  <bruno@clisp.org>
51027
51028         * users.txt: Update entry about pspp.
51029
51030 2008-10-21  Bruno Haible  <bruno@clisp.org>
51031
51032         Simplification.
51033         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51034         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51035
51036         Simplification.
51037         * lib/ioctl.c (ioctl): Don't undefine.
51038         * lib/socket.c (socket): Don't undefine.
51039
51040         Remove unused module indicator macros.
51041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51042         GNULIB_$1 as a C macro.
51043
51044         * doc/posix-functions/close.texi: Undo last change.
51045         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51046         Windows platforms.
51047
51048 2008-10-21  Bruno Haible  <bruno@clisp.org>
51049
51050         Add gethostname() declaration to <unistd.h>.
51051         * lib/unistd.in.h (gethostname): New declaration.
51052         * lib/gethostname.c: Include <unistd.h>.
51053         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51054         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51056         and HAVE_GETHOSTNAME.
51057         * modules/gethostname (Depends-on): Add unistd.
51058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51059         (Include): Specify <unistd.h>.
51060         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51061         HAVE_GETHOSTNAME.
51062         * tests/test-gethostname.c: Include <unistd.h> first.
51063
51064 2008-10-21  Bruno Haible  <bruno@clisp.org>
51065
51066         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51067         * modules/select-tests (Depends-on): Likewise.
51068         Reported by Simon Josefsson.
51069
51070 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51071
51072         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51073         * lib/accept.c: New file, based on winsock.c.
51074         * lib/bind.c: New file, based on winsock.c.
51075         * lib/connect.c: New file, based on winsock.c.
51076         * lib/getpeername.c: New file, based on winsock.c.
51077         * lib/getsockname.c: New file, based on winsock.c.
51078         * lib/getsockopt.c: New file, based on winsock.c.
51079         * lib/ioctl.c: New file, based on winsock.c.
51080         * lib/listen.c: New file, based on winsock.c.
51081         * lib/recv.c: New file, based on winsock.c.
51082         * lib/recvfrom.c: New file, based on winsock.c.
51083         * lib/send.c: New file, based on winsock.c.
51084         * lib/sendto.c: New file, based on winsock.c.
51085         * lib/setsockopt.c: New file, based on winsock.c.
51086         * lib/shutdown.c: New file, based on winsock.c.
51087         * lib/socket.c: New file, based on winsock.c.
51088         * lib/w32sock.h: New file, based on winsock.c.
51089         * lib/winsock.c: Remove file.
51090         * modules/accept: Likewise.
51091         * modules/bind: Likewise.
51092         * modules/connect: Likewise.
51093         * modules/getpeername: Likewise.
51094         * modules/getsockname: Likewise.
51095         * modules/getsockopt: Likewise.
51096         * modules/ioctl: Likewise.
51097         * modules/listen: Likewise.
51098         * modules/recv: Likewise.
51099         * modules/recvfrom: Likewise.
51100         * modules/send: Likewise.
51101         * modules/sendto: Likewise.
51102         * modules/setsockopt: Likewise.
51103         * modules/shutdown: Likewise.
51104         * modules/socket: Use socket.c instead of winsock.c.
51105         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51106         * doc/posix-functions/accept.texi: Doc fix.
51107         * doc/posix-functions/bind.texi: Doc fix.
51108         * doc/posix-functions/close.texi: Doc fix.
51109         * doc/posix-functions/connect.texi: Doc fix.
51110         * doc/posix-functions/getpeername.texi: Doc fix.
51111         * doc/posix-functions/getsockname.texi: Doc fix.
51112         * doc/posix-functions/getsockopt.texi: Doc fix.
51113         * doc/posix-functions/ioctl.texi: Doc fix.
51114         * doc/posix-functions/listen.texi: Doc fix.
51115         * doc/posix-functions/recv.texi: Doc fix.
51116         * doc/posix-functions/recvfrom.texi: Doc fix.
51117         * doc/posix-functions/send.texi: Doc fix.
51118         * doc/posix-functions/sendto.texi: Doc fix.
51119         * doc/posix-functions/setsockopt.texi: Doc fix.
51120         * doc/posix-functions/shutdown.texi: Doc fix.
51121         * doc/posix-functions/socket.texi: Doc fix.
51122
51123 2008-10-20  Bruno Haible  <bruno@clisp.org>
51124
51125         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51126         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51127         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51128         as an alias for SIGABRT.
51129         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51130         (sigaction): Map it to SIGABRT.
51131         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51132
51133 2008-10-20  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/fts.c: Don't include lstat.h.
51136         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51137
51138         Move the lstat() declaration to <sys/stat.h>.
51139         * lib/lstat.h: Remove file.
51140         * lib/sys_stat.in.h: Add special invocation convention.
51141         (lstat): New declaration.
51142         * lib/lstat.c (orig_lstat): New function.
51143         (rpl_lstat): Use orig_lstat instead of lstat.
51144         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51145         AC_C_INLINE. Set REPLACE_LSTAT.
51146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51147         and REPLACE_LSTAT.
51148         * modules/lstat (Files): Remove lib/lstat.h.
51149         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51150         (Include): Specify <sys/stat.h> instead of lstat.h.
51151         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51152         REPLACE_LSTAT.
51153         * NEWS: Mention the change.
51154
51155 2008-10-20  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/posix_spawn-tests: New file.
51158         * tests/test-posix_spawn3.c: New file.
51159
51160 2008-10-20  Bruno Haible  <bruno@clisp.org>
51161
51162         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51163         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51164         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51165         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51166         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51167
51168 2008-10-20  Bruno Haible  <bruno@clisp.org>
51169
51170         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51171         of posix_spawn on AIX 5.3.
51172
51173 2008-10-20  Bruno Haible  <bruno@clisp.org>
51174
51175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51176
51177 2008-10-20  Bruno Haible  <bruno@clisp.org>
51178
51179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51180         of AC_LANG_PROGRAM.
51181
51182 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51183
51184         * lib/netdb.in.h: Don't define GNU specific constants until they
51185         are supported or needed.  Reported by Bruno Haible
51186         <bruno@clisp.org>.
51187
51188 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51189
51190         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51191
51192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51193
51194         * lib/getaddrinfo.h: Remove file.
51195         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51196         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51197         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51198         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51199         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51200         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51201         * tests/test-getaddrinfo.c: Likewise.
51202         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51203         * NEWS: Mention change.
51204
51205 2008-10-19  Bruno Haible  <bruno@clisp.org>
51206
51207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51208
51209 2008-10-19  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/wait-process.c: Include simply <sys/wait.h>.
51212         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51213         WIFSTOPPED): Remove fallback definitions.
51214         * modules/wait-process (Depends-on): Add sys_wait.
51215
51216         New module 'sys_wait'.
51217         * modules/sys_wait: New file.
51218         * lib/sys_wait.in.h: New file, partially copied from
51219         lib/wait-process.c.
51220         * m4/sys_wait_h.m4: New file.
51221         * doc/posix-headers/sys_wait.texi: Mention the new module.
51222
51223 2008-10-19  Bruno Haible  <bruno@clisp.org>
51224
51225         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51226
51227 2008-10-19  Bruno Haible  <bruno@clisp.org>
51228
51229         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51230         * lib/wait-process.c (WAIT_T): Remove type.
51231         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51232         (wait_subprocess): Update.
51233
51234 2008-10-19  Bruno Haible  <bruno@clisp.org>
51235
51236         New module 'atoll'.
51237         * modules/atoll: New file.
51238         * lib/stdlib.in.h (atoll): New declaration.
51239         * lib/atoll.c: New file, from glibc with modifications.
51240         * m4/atoll.m4: New file.
51241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51242         HAVE_ATOLL.
51243         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51244         * doc/posix-functions/atoll.texi: Mention the new module.
51245
51246 2008-10-19  Bruno Haible  <bruno@clisp.org>
51247
51248         Add strtoull() declaration to <stdlib.h>.
51249         * lib/stdlib.in.h (strtoull): New declaration.
51250         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51251         Set HAVE_STRTOULL.
51252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51253         HAVE_STRTOULL.
51254         * modules/strtoull (Depends-on): Add stdlib.
51255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51256         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51257         HAVE_STRTOULL.
51258
51259 2008-10-19  Bruno Haible  <bruno@clisp.org>
51260
51261         Add strtoll() declaration to <stdlib.h>.
51262         * lib/stdlib.in.h (strtoll): New declaration.
51263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51264         Set HAVE_STRTOLL.
51265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51266         HAVE_STRTOLL.
51267         * modules/strtoll (Depends-on): Add stdlib.
51268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51269         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51270
51271 2008-10-19  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/bcopy (Depends-on): Add strings.
51274         (Include): Specify <strings.h>.
51275
51276 2008-10-19  Bruno Haible  <bruno@clisp.org>
51277
51278         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51279
51280 2008-10-19  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51283         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51284         mingw.
51285
51286 2008-10-19  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/atanl.c: Don't include isnanl.h.
51289         * lib/cosl.c: Likewise.
51290         * lib/ldexpl.c: Likewise.
51291         * lib/logl.c: Likewise.
51292         * lib/sinl.c: Likewise.
51293         * lib/sqrtl.c: Likewise.
51294         * lib/tanl.c: Likewise.
51295
51296         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51297         * lib/isnanf.h: Remove file.
51298         * lib/isnand.h: Remove file.
51299         * lib/isnanl.h: Remove file.
51300         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51301         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51302         macros.
51303         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51304         HAVE_ISNANF, don't define it as a C macro.
51305         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51306         HAVE_ISNAND, don't define it as a C macro.
51307         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51308         HAVE_ISNANL, don't define it as a C macro.
51309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51310         HAVE_ISNAN[FDL].
51311         * modules/isnanf (Files): Remove lib/isnanf.h.
51312         (Depends-on): Add math.
51313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51314         (Include): Specify <math.h> instead of isnanf.h.
51315         * modules/isnand (Files): Remove lib/isnand.h.
51316         (Depends-on): Add math.
51317         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51318         (Include): Specify <math.h> instead of isnand.h.
51319         * modules/isnanl (Files): Remove lib/isnanl.h.
51320         (Depends-on): Add math.
51321         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51322         (Include): Specify <math.h> instead of isnanl.h.
51323         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51324         HAVE_ISNAN[FDL].
51325         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51326         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51327         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51328         * NEWS: Mention the change.
51329
51330 2008-10-18  Bruno Haible  <bruno@clisp.org>
51331
51332         Add getusershell(), setusershell(), endusershell() declarations to
51333         <unistd.h>.
51334         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51335         declarations.
51336         * lib/getusershell.c: Include unistd.h.
51337         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51338         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51339         HAVE_GETUSERSHELL.
51340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51341         and HAVE_GETUSERSHELL.
51342         * modules/getusershell (Depends-on): Add unistd, extensions.
51343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51344         (Include): Specify <unistd.h>.
51345         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51346         HAVE_GETUSERSHELL.
51347
51348 2008-10-18  Bruno Haible  <bruno@clisp.org>
51349
51350         Add a getloadavg() declaration to <stdlib.h>.
51351         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51352         getloadavg declaration.
51353         (getloadavg): New declaration.
51354         * lib/getloadavg.c: Include <stdlib.h> first.
51355         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51356         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51357         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51359         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51360         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51362         (Include): Specify <stdlib.h>.
51363         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51364         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51365
51366 2008-10-18  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/dirchownmod.c: Don't include lchmod.h.
51369
51370         Move the lchmod() declaration to <sys/stat.h>.
51371         * lib/lchmod.h: Remove file.
51372         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51373         (lchmod): New declaration, moved here from lib/lchown.h.
51374         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51375         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51377         and HAVE_LCHMOD.
51378         * modules/lchmod (Files): Remove lib/lchmod.h.
51379         (Depends-on): Add sys_stat, extensions.
51380         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51381         (Include): Specify <sys/stat.h> instead of lchmod.h.
51382         * modules/sys_stat (Depends-on): Add link-warning.
51383         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51384         definition of GL_LINK_WARNING.
51385         * NEWS: Mention the change.
51386
51387 2008-10-18  Bruno Haible  <bruno@clisp.org>
51388
51389         * lib/fchdir.c: Don't include dirfd.h.
51390         * lib/fts.c: Likewise.
51391         * lib/getcwd.c: Likewise.
51392         * lib/glob.c: Likewise.
51393
51394         Move the dirfd() declaration to <dirent.h>.
51395         * lib/dirfd.h: Remove file.
51396         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51397         (dirfd): New declaration.
51398         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51400         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51401         HAVE_DECL_DIRFD.
51402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51403         HAVE_DECL_DIRFD.
51404         * modules/dirfd (Files): Remove lib/dirfd.h.
51405         (Depends-on): Add dirent, extensions.
51406         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51407         (Include): Specify <dirent.h> instead of dirfd.h.
51408         * modules/dirent (Depends-on): Add link-warning.
51409         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51410         definition of GL_LINK_WARNING.
51411         * NEWS: Mention the change.
51412
51413 2008-10-18  Bruno Haible  <bruno@clisp.org>
51414
51415         Move the euidaccess() declaration to <unistd.h>.
51416         * lib/euidaccess.h: Remove file.
51417         * lib/unistd.in.h (euidaccess): New declaration.
51418         * lib/euidaccess.c: Don't include euidaccess.h.
51419         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51420         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51422         and HAVE_EUIDACCESS.
51423         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51424         (Depends-on): Add unistd.
51425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51426         (Include): Specify <unistd.h> instead of euidaccess.h.
51427         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51428         HAVE_EUIDACCESS.
51429         * NEWS: Mention the change.
51430
51431 2008-10-18  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51434
51435         Move the getdomainname() declaration to <unistd.h>.
51436         * lib/getdomainname.h: Remove file.
51437         * lib/unistd.in.h (getdomainname): New declaration.
51438         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51440         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51441         HAVE_GETDOMAINNAME.
51442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51443         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51444         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51445         (Depends-on): Add unistd, extensions.
51446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51447         (Includes): Specify <unistd.h> instead of getdomainname.h.
51448         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51449         HAVE_GETDOMAINNAME.
51450         * NEWS: Mention the change.
51451
51452 2008-10-18  Bruno Haible  <bruno@clisp.org>
51453
51454         * modules/dirent: New file.
51455         * m4/dirent_h.m4: New file.
51456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51457         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51458         * modules/fchdir (Files): Remove lib/dirent.in.h.
51459         (Depends-on): Add dirent.
51460         (Makefile.am): Move rules to modules/dirent.
51461         * doc/posix-headers/dirent.texi: Mention the new module.
51462
51463 2008-10-18  Bruno Haible  <bruno@clisp.org>
51464
51465         Avoid -Wunused-parameter warnings in public gnulib header files.
51466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51467         macro.
51468         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51469
51470 2008-10-18  Bruno Haible  <bruno@clisp.org>
51471
51472         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51473         * doc/glibc-functions/error.texi: Mention the module 'error'.
51474         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51475         * doc/glibc-functions/getdomainname.texi: Mention the module
51476         'getdomainname'.
51477         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51478         * doc/glibc-functions/getpagesize.texi: Mention the module
51479         'getpagesize'.
51480         * doc/glibc-functions/getusershell.texi: Mention the module
51481         'getusershell'.
51482         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51483         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51484         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51485         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51486         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51487         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51488         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51489         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51490         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51491         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51492         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51493         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51494         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51495         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51496
51497 2008-10-17  Bruno Haible  <bruno@clisp.org>
51498
51499         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51500         HP-UX and IRIX, use -0.0L.
51501         * tests/test-ceill.c (minus_zero): Likewise.
51502         * tests/test-floorl.c (minus_zero): Likewise.
51503         * tests/test-frexpl.c (minus_zero): Likewise.
51504         * tests/test-isnan.c (minus_zerol): Likewise.
51505         * tests/test-isnanl.h (minus_zero): Likewise.
51506         * tests/test-ldexpl.c (minus_zero): Likewise.
51507         * tests/test-roundl.c (minus_zero): Likewise.
51508         * tests/test-signbit.c (minus_zerol): Likewise.
51509         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51510         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51511         * tests/test-truncl.c (minus_zero): Likewise.
51512         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51513         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51514         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51515         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51516
51517 2008-10-17  Bruno Haible  <bruno@clisp.org>
51518
51519         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51520         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51521         that it gets activated only for gcc >= 3.0.
51522         * lib/dirent.in.h: Likewise.
51523         * lib/errno.in.h: Likewise.
51524         * lib/fcntl.in.h: Likewise.
51525         * lib/float.in.h: Likewise.
51526         * lib/iconv.in.h: Likewise.
51527         * lib/inttypes.in.h: Likewise.
51528         * lib/locale.in.h: Likewise.
51529         * lib/math.in.h: Likewise.
51530         * lib/netdb.in.h: Likewise.
51531         * lib/netinet_in.in.h: Likewise.
51532         * lib/search.in.h: Likewise.
51533         * lib/signal.in.h: Likewise.
51534         * lib/spawn.in.h: Likewise.
51535         * lib/stdarg.in.h: Likewise.
51536         * lib/stdint.in.h: Likewise.
51537         * lib/stdio.in.h: Likewise.
51538         * lib/stdlib.in.h: Likewise.
51539         * lib/string.in.h: Likewise.
51540         * lib/strings.in.h: Likewise.
51541         * lib/sys_file.in.h: Likewise.
51542         * lib/sys_ioctl.in.h: Likewise.
51543         * lib/sys_select.in.h: Likewise.
51544         * lib/sys_socket.in.h: Likewise.
51545         * lib/sys_stat.in.h: Likewise.
51546         * lib/sys_time.in.h: Likewise.
51547         * lib/sysexits.in.h: Likewise.
51548         * lib/time.in.h: Likewise.
51549         * lib/unistd.in.h: Likewise.
51550         * lib/wchar.in.h: Likewise.
51551         * lib/wctype.in.h: Likewise.
51552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51553
51554 2008-10-17  Jim Meyering  <meyering@redhat.com>
51555
51556         ignore-value: don't depend on inline module
51557         * modules/ignore-value (Depends-on): Remove 'inline'.
51558         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51559         Suggestion from Bruno Haible.
51560
51561 2008-10-17  Bruno Haible  <bruno@clisp.org>
51562
51563         New implementation of condition variables for Win32.
51564         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51565         (gl_linked_waitqueue_t): New type.
51566         (gl_cond_t): Use it.
51567         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51568         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51569         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51570         (glthread_cond_init_func, glthread_cond_wait_func,
51571         glthread_cond_timedwait_func, glthread_cond_signal_func,
51572         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51573         Reimplemented on the basis of gl_linked_waitqueue_t.
51574         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51575         gl_waitqueue_t.
51576         (gl_rwlock_t): Update.
51577         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51578
51579 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51580
51581         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51582         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51583
51584 2008-10-17  Jim Meyering  <meyering@redhat.com>
51585
51586         ignore-value: new module
51587         * modules/ignore-value: New file.
51588         * lib/ignore-value.h: New file.
51589         * MODULES.html.sh (Compiler warning management): New section,
51590         just for this module.  More to come.
51591
51592 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51593
51594         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51595         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51596         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51597
51598 2008-10-16  Jim Meyering  <meyering@redhat.com>
51599
51600         openat-die.c: avoid 'no previous prototype' warning
51601         * lib/openat-die.c: Include "openat.h".
51602         Reported by Reuben Thomas <rrt@sc3d.org>.
51603
51604 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51605
51606         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51607         * lib/netdb.in.h: Fix typo.
51608         Reported by Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/netdb.in.h: Include sys/socket.h for platforms without
51611         netdb.h, to get structures like hostent on MinGW.
51612         * modules/netdb (Depends-on): Add sys_socket.
51613
51614 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51615
51616         * modules/netdb, modules/netdb-tests: New file.
51617         * m4/netdb_h.m4: New file.
51618         * lib/netdb.in.h: Add, currently just an empty file pending
51619         definitions.
51620         * tests/test-netdb.c: New file.
51621         * doc/posix-headers/netdb.texi: Mention that we replace it if
51622         needed.
51623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51624         netdb.
51625
51626 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51627
51628         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51629         with code.
51630
51631 2008-10-13  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/glthread/cond.c (glthread_cond_wait_func,
51634         glthread_cond_timedwait_func): Add a comment.
51635
51636 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51637
51638         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51639         * tests/test-select.c: Likewise,
51640
51641 2008-10-13  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/glthread/cond.c (glthread_cond_wait_func,
51644         glthread_cond_timedwait_func): Fix variable name.
51645         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51646
51647 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51648
51649         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51651         struct sockaddr.sa_len.
51652         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51653
51654 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51655
51656         * build-aux/pmccabe2html: Add css and css_url parameters.
51657
51658 2008-10-12  Bruno Haible  <bruno@clisp.org>
51659
51660         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51661         calling aclx_get.
51662         Reported by Rainer Tammer <tammer@tammer.net>.
51663
51664 2008-10-12  Bruno Haible  <bruno@clisp.org>
51665
51666         Use msvcrt aware primitives for creation/termination of Win32 threads.
51667         * lib/glthread/thread.c: Include <process.h>.
51668         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51669         (wrapper_func): Update signature.
51670         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51671
51672 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51673             Bruno Haible  <bruno@clisp.org>
51674
51675         Provide a Win32 implementation of the 'cond' module.
51676         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51677         * lib/glthread/cond.c (glthread_cond_init_func,
51678         glthread_cond_wait_func, glthread_cond_timedwait_func,
51679         glthread_cond_signal_func, glthread_cond_broadcast_func,
51680         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51681         * modules/cond (Dependencies): Add gettimeofday.
51682
51683 2008-10-11  Bruno Haible  <bruno@clisp.org>
51684
51685         Make sleep work on older versions of mingw.
51686         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51687         only whether it exists.
51688         * doc/posix-functions/sleep.texi: Mention the problem with older
51689         versions of mingw.
51690
51691 2008-10-11  Bruno Haible  <bruno@clisp.org>
51692
51693         New module 'shutdown'.
51694         * modules/shutdown: New file.
51695         * lib/sys_socket.in.h (shutdown): New declaration.
51696         * lib/winsock.c (shutdown): New function.
51697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51698         GNULIB_SHUTDOWN.
51699         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51700         * doc/posix-functions/shutdown.texi: Document the new module.
51701
51702 2008-10-11  Jim Meyering  <meyering@redhat.com>
51703
51704         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51705
51706 2008-10-11  Bruno Haible  <bruno@clisp.org>
51707
51708         New module 'fclose'.
51709         * modules/fclose: New file.
51710         * lib/stdio.in.h (fclose): New declaration.
51711         * lib/fclose.c: New file.
51712         * m4/fclose.m4: New file.
51713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51714         REPLACE_FCLOSE.
51715         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51716         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51717         REPLACE_FCLOSE.
51718         * modules/close (Depends-on): fclose.
51719         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51720
51721 2008-10-11  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51724         set errno and don't call _close.
51725
51726 2008-10-10  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51729         ACL, not afterwards. Fixes test failure on Cygwin.
51730
51731 2008-10-09  Ben Pfaff  <blp@gnu.org>
51732
51733         * build-aux/announce-gen: Fix gnulib version related part of usage
51734         message.  Die with a useful error message if no tarballs are
51735         found.
51736
51737 2008-10-10  Jim Meyering  <meyering@redhat.com>
51738
51739         bootstrap: use git's --depth=N option only if it's supported
51740         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51741         recognize the --depth option.  Reported by Pádraig Brady.
51742
51743 2008-10-09  Bruno Haible  <bruno@clisp.org>
51744
51745         New module 'ioctl'.
51746         * modules/ioctl: New file.
51747         * lib/sys_socket.in.h (ioctl): Remove declaration.
51748         * lib/winsock.c: Include <sys/ioctl.h>.
51749         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51750         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51751         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51752         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51753         * doc/posix-functions/ioctl.texi: Mention the new module.
51754
51755 2008-10-09  Bruno Haible  <bruno@clisp.org>
51756
51757         New module 'sys_ioctl'.
51758         * lib/sys_ioctl.in.h: New file.
51759         * m4/sys_ioctl_h.m4: New file.
51760         * modules/sys_ioctl: New file.
51761         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51762
51763 2008-10-09  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51766         * lib/winsock.c: Include <stdarg.h>.
51767         (rpl_ioctl): Change to second argument 'int' and then varargs.
51768
51769 2008-10-09  Bruno Haible  <bruno@clisp.org>
51770
51771         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51772         when the sys_socket module is present and the system has <winsock2.h>.
51773
51774 2008-10-09  Bruno Haible  <bruno@clisp.org>
51775
51776         * doc/posix-functions/close.texi: Mention module 'close' instead of
51777         module 'sys_socket'.
51778
51779 2008-10-09  Bruno Haible  <bruno@clisp.org>
51780
51781         * doc/glibc-headers/sys_ioctl.texi: New file.
51782         * doc/gnulib.texi: Include it.
51783
51784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51785             Bruno Haible  <bruno@clisp.org>
51786
51787         Combine the two replacements of 'close'.
51788         * lib/sys_socket.in.h (close): Define to a reminder to include
51789         <unistd.h>.
51790         (_gl_close_fd_maybe_socket): New declaration.
51791         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51792         * lib/winsock.c (close): Remove undefinition.
51793         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51794         needed for the gnulib module 'close'.
51795         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51796         define to an error symbol or to a warning, if suitable.
51797         * lib/close.c: Include <sys/socket.h>.
51798         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51800         UNISTD_H_HAVE_WINSOCK2_H.
51801         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51803         UNISTD_H_HAVE_WINSOCK2_H.
51804         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51805         (configure.ac): Set a module indicator.
51806         (Makefile.am): Substitute GNULIB_CLOSE.
51807         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51808         * modules/poll-tests (Depends-on): Add close.
51809         * modules/select-tests (Depends-on): Likewise.
51810
51811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51812             Bruno Haible  <bruno@clisp.org>
51813
51814         New module 'close'.
51815         * modules/close: New file.
51816         * lib/unistd.in.h (close): Move declaration out of the
51817         FCHDIR_REPLACEMENT scope.
51818         (_gl_unregister_fd): New declaration.
51819         * lib/close.c: New file.
51820         * lib/fchdir.c (rpl_close): Remove function.
51821         * m4/close.m4: New file.
51822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51823         close.
51824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51825         REPLACE_CLOSE.
51826         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51827         REPLACE_CLOSE.
51828         * modules/fchdir (Depends-on): Add close.
51829
51830 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51831             Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/fcntl.in.h (open): Simplify conditionals.
51834         (_gl_register_fd): New declaration.
51835         * lib/fchdir.c (rpl_open): Remove function.
51836         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51837         also.
51838         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51840         open.
51841
51842 2008-10-09  Jim Meyering  <meyering@redhat.com>
51843
51844         GNUmakefile: use the more name-space-friendly "_version"
51845         * top/GNUmakefile (_dummy): Update.
51846         (_version): Rename from "version".
51847
51848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51849             Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51852         rpl_close.
51853         (_gl_register_fd): New function, extracted from rpl_open.
51854         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51855         (rpl_open, rpl_opendir): Use _gl_register_fd.
51856
51857 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51858
51859         Fix organization of 'open' replacement.
51860         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51861         (gl_FUNC_OPEN): Use it.
51862         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51863
51864 2008-10-08  Bruno Haible  <bruno@clisp.org>
51865
51866         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51867
51868 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51869
51870         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51871         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51872         listen).
51873
51874 2008-10-08  Eric Blake  <ebb9@byu.net>
51875
51876         GNUmakefile: add 'make version' target
51877         * top/GNUmakefile (_curr-ver): Split version update rules...
51878         (version): ...into a target.
51879
51880 2008-10-07  Bruno Haible  <bruno@clisp.org>
51881
51882         Use a more portable replacement expression for -0.0L.
51883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51884         instead of -0.0L. Fix m4 quotation.
51885
51886         * tests/test-signbit.c: Include <float.h>.
51887         (minus_zero): New variable.
51888         (test_signbitl): Use minus_zero instead of -zero.
51889         * modules/signbit-tests (Depends-on): Add float.
51890
51891         * tests/test-ceill.c: Include <float.h>.
51892         (zero): Remove variable.
51893         (minus_zero): New variable.
51894         (main): Use minus_zero instead of -zero.
51895         * modules/ceill-tests (Depends-on): Add float.
51896
51897         * tests/test-floorl.c: Include <float.h>.
51898         (zero): Remove variable.
51899         (minus_zero): New variable.
51900         (main): Use minus_zero instead of -zero.
51901         * modules/floorl-tests (Depends-on): Add float.
51902
51903         * tests/test-roundl.c: Include <float.h>.
51904         (zero): Remove variable.
51905         (minus_zero): New variable.
51906         (main): Use minus_zero instead of -zero.
51907         * modules/roundl-tests (Depends-on): Add float.
51908
51909         * tests/test-truncl.c: Include <float.h>.
51910         (zero): Remove variable.
51911         (minus_zero): New variable.
51912         (main): Use minus_zero instead of -zero.
51913         * modules/truncl-tests (Depends-on): Add float.
51914
51915         * tests/test-frexpl.c (zero): Remove variable.
51916         (minus_zero): New variable.
51917         (main): Use minus_zero instead of -zero.
51918         * modules/frexpl-tests (Depends-on): Add float.
51919
51920         * tests/test-isnan.c (zerol): Remove variable.
51921         (minus_zerol): New variable.
51922         (test_long_double): Use minus_zerol instead of -zerol.
51923         * modules/isnan-tests (Depends-on): Add float.
51924
51925         * tests/test-isnanl.h (zero): Remove variable.
51926         (minus_zero): New variable.
51927         (main): Use minus_zero instead of -zero.
51928         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51929         * modules/isnanl-tests (Depends-on): Add float.
51930
51931         * tests/test-ldexpl.c (zero): Remove variable.
51932         (minus_zero): New variable.
51933         (main): Use minus_zero instead of -zero.
51934         * modules/ldexpl-tests (Depends-on): Add float.
51935
51936         * tests/test-snprintf-posix.h (zerol): Remove variable.
51937         (minus_zerol): New variable.
51938         (test_function): Use minus_zerol instead of -zerol.
51939         * modules/snprintf-posix-tests (Depends-on): Add float.
51940         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51941
51942         * tests/test-sprintf-posix.h (zerol): Remove variable.
51943         (minus_zerol): New variable.
51944         (test_function): Use minus_zerol instead of -zerol.
51945         * modules/sprintf-posix-tests (Depends-on): Add float.
51946         * modules/vsprintf-posix-tests (Depends-on): Add float.
51947
51948         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51949         (minus_zerol): New variable.
51950         (test_function): Use minus_zerol instead of -zerol.
51951         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51952
51953         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51954         (minus_zerol): New variable.
51955         (test_function): Use minus_zerol instead of -zerol.
51956         * modules/vasprintf-posix-tests (Depends-on): Add float.
51957
51958 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51959
51960         * MODULES.html.sh (Support for building documentation): Mention
51961         pmccabe2html.  Sort entries.
51962
51963         Add pmccabe2html module, from gnupdf.
51964         * build-aux/pmccabe.css: New file.
51965         * build-aux/pmccabe2html: New file.
51966         * m4/pmccabe2html.m4: New file.
51967         * modules/pmccabe2html: New file.
51968
51969 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51970
51971         flock: new module
51972         * MODULES.html.sh: Add to list of modules.
51973         * lib/flock.c: flock implementation for Windows and Unix systems
51974         which have fcntl.
51975         * doc/glibc-functions/flock.texi: Update documentation.
51976         * lib/sys_file.in.h: <sys/file.h> header file.
51977         * m4/flock.m4: M4 macros.
51978         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51979         * modules/flock: flock module.
51980         * modules/flock-tests: flock tests module.
51981         * modules/sys_file: sys/file.h module.
51982         * tests/test-flock.c: test suite for flock.
51983
51984 2008-10-06  Jim Meyering  <meyering@redhat.com>
51985
51986         bootstrap: check for LT_INIT more portably still ;-)
51987         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51988         Spotted by Bruno Haible.
51989
51990 2008-10-06  Eric Blake  <ebb9@byu.net>
51991
51992         test-signbit: avoid tripping Irix cc bug on -0.0L
51993         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51994         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51995         entire testsuite consistent and avoids an Irix 6.2 bug.
51996
51997 2008-10-05  Bruno Haible  <bruno@clisp.org>
51998             Jim Meyering  <jim@meyering.net>
51999
52000         Add an option for ignoring EPIPE during close_stdout.
52001         * lib/closeout.h: Include <stdbool.h>.
52002         (close_stdout_set_ignore_EPIPE): New declaration.
52003         * lib/closeout.c: Include <stdbool.h>.
52004         (ignore_EPIPE): New variable.
52005         (close_stdout_set_ignore_EPIPE): New function.
52006         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52007         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52008         failure.
52009         * modules/closeout (Depends-on): Add stdbool.
52010
52011 2008-10-05  Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/accept: New file.
52014         * modules/bind: New file.
52015         * modules/connect: New file.
52016         * modules/getpeername: New file.
52017         * modules/getsockname: New file.
52018         * modules/getsockopt: New file.
52019         * modules/listen: New file.
52020         * modules/recv: New file.
52021         * modules/recvfrom: New file.
52022         * modules/send: New file.
52023         * modules/sendto: New file.
52024         * modules/setsockopt: New file.
52025         * modules/socket: New file.
52026         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52027         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52028         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52029         the particular module is requested. Add a link warning when the
52030         particular module is not requested.
52031         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52032         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52033         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52034         the particular module is requested.
52035         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52036         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52037         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52038         * modules/sys_socket (Depends-on): Add link-warning.
52039         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52040         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52041         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52042         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52043         GL_LINK_WARNING.
52044         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52045         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52046         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52047         * doc/posix-functions/getpeername.texi: Mention the new module
52048         'getpeername'.
52049         * doc/posix-functions/getsockname.texi: Mention the new module
52050         'getsockname'.
52051         * doc/posix-functions/getsockopt.texi: Mention the new module
52052         'getsockopt'.
52053         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52054         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52055         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52056         * doc/posix-functions/send.texi: Mention the new module 'send'.
52057         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52058         * doc/posix-functions/setsockopt.texi: Mention the new module
52059         'setsockopt'.
52060         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52061         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52062         listen, connect, accept.
52063         * modules/select-tests (Depends-on): Likewise.
52064
52065 2008-10-05  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/winsock.c (strerror): Remove unused #undef.
52068         (rpl_close): Remove unused local variable.
52069
52070         * modules/sys_socket (Depends-on); Add errno.
52071
52072 2008-10-05  Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52075         (select): Add a link warning when the 'select' module is not used.
52076         * modules/sys_select (Depends-on): Add link-warning.
52077         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52078         Suggested by Paolo Bonzini.
52079
52080 2008-10-05  Jim Meyering  <meyering@redhat.com>
52081
52082         bootstrap: check for LT_INIT more portably
52083         * build-aux/bootstrap: Avoid using grep -E, since it's not
52084         portable enough.  Suggestion from Bruno Haible.
52085
52086 2008-10-05  Bruno Haible  <bruno@clisp.org>
52087
52088         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52089         as being fixed by gnulib.
52090
52091 2008-10-05  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/select-tests: New file, mostly copied from
52094         modules/sys_select-tests.
52095         * tests/test-select.c: New file, mostly copied from
52096         tests/test-sys_select.c.
52097         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52098         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52099         (Makefile.am): Remove test_sys_select_LDADD.
52100
52101         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52102         to an undefined symbol, for an error message.
52103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52104         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52105         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52106         winsock-select.c here.
52107         * modules/sys_select (Files): Remove lib/winsock-select.c.
52108         (Depends-on): Remove alloca.
52109         (Makefile.am): Substitute GNULIB_SELECT.
52110         * modules/select: New file.
52111         * doc/posix-functions/select.texi: Update.
52112
52113 2008-10-05  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52116         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52117         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52118         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52119         getdtablesize.
52120         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52121         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52122
52123 2008-10-05  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/getdtablesize-tests: New file.
52126         * tests/test-getdtablesize.c: New file.
52127
52128         New module 'getdtablesize'.
52129         * lib/unistd.in.h (getdtablesize): New declaration.
52130         * lib/getdtablesize.c: New file.
52131         * m4/getdtablesize.m4: New file.
52132         * modules/getdtablesize: New file.
52133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52134         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52135         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52136         HAVE_GETDTABLESIZE.
52137         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52138
52139 2008-10-05  Bruno Haible  <bruno@clisp.org>
52140
52141         * modules/sched (Makefile.am): Fix typo.
52142         Reported by Simon Josefsson.
52143
52144 2008-10-05  Jim Meyering  <meyering@redhat.com>
52145
52146         bootstrap: check for LT_INIT, too
52147         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52148         are deprecated.  Suggestion from Ralf Wildenhues.
52149
52150 2008-10-05  Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52153         overriding them by ours.
52154         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52155
52156 2008-10-05  Jim Meyering  <meyering@redhat.com>
52157
52158         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52159         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52160         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52161
52162 2008-10-04  Bruno Haible  <bruno@clisp.org>
52163
52164         * modules/dup2 (License): Change to LGPLv2+.
52165         * modules/sleep (License): Likewise.
52166         * modules/perror (License): Likewise.
52167         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52168         Blake.
52169         * modules/signal (License): Likewise.
52170         * modules/sigprocmask (License): Likewise.
52171         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52172         Meyering.
52173
52174 2008-10-04  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52177         Reported by Rainer Tammer <tammer@tammer.net>.
52178
52179 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52180             Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52183         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52184         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52185
52186 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52187
52188         filevercmp: new module
52189         * lib/filevercmp.h: New function filevercmp comparing version strings.
52190         * lib/filevercmp.c: Implementation of filevercmp function.
52191         * modules/filevercmp: Module metadata.
52192         * tests/test-filevercmp.c: Unit test for new module.
52193         * modules/filevercmp-tests: Unit test metadata.
52194         * MODULES.html.sh: Add filevercmp module.
52195
52196 2008-10-03  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/c-ctype.h: Add comment.
52199         Reported by Jim Meyering.
52200
52201 2008-10-02  Bruno Haible  <bruno@clisp.org>
52202
52203         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52204
52205 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52206
52207         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52208         name of bootstrap.conf accordingly.
52209
52210 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52211
52212         * build-aux/bootstrap: Install git-merge-changelog configuration
52213         items into .gitconfig if needed.
52214
52215 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52216
52217         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52218         git repository, and initialize/update it accordingly.
52219
52220 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52221
52222         * modules/fsync-tests: New file.
52223         * tests/test-fsync.c: New file.
52224
52225         New module 'fsync'.
52226         * lib/fsync.c: New file.
52227         * m4/fsync.m4: New file.
52228         * modules/fsync: New file.
52229         * lib/unistd.in.h (fsync): New declaration.
52230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52231         GNULIB_FSYNC and HAVE_FSYNC.
52232         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52233         * MODULES.html.sh (posix_functions): Add fsync.
52234         * doc/posix-functions/fsync.texi: Mention the new module.
52235
52236 2008-10-02  Jim Meyering  <meyering@redhat.com>
52237
52238         fts.c: sync with similar code from coreutils' remove.c
52239         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52240         Guard also with "#if defined __linux__", since for now at least,
52241         this code is Linux-kernel-specific.
52242
52243 2008-10-02  Jim Meyering  <meyering@redhat.com>
52244
52245         fts: bug fixes
52246         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52247         Include <sys/vfs.h>, not <sys/statfs.h>.
52248
52249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52250         Include <sys/vfs.h>, not <sys/statfs.h>.
52251
52252 2008-10-01  Bruno Haible  <bruno@clisp.org>
52253
52254         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52256         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52257         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52258         * doc/posix-functions/posix_spawnp.texi: Likewise.
52259         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52260         whether posix_spawn actually works.
52261         * m4/pipe.m4 (gl_PIPE): Likewise.
52262         * modules/execute (Files): Add m4/posix_spawn.m4.
52263         * modules/pipe (Files): Add m4/posix_spawn.m4.
52264         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52265
52266 2008-10-01  Jim Meyering  <meyering@redhat.com>
52267
52268         remove trailing spaces
52269         * NEWS: Likewise.
52270         * lib/poll.c (poll): Likewise.
52271         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52272         * lib/winsock.c (rpl_close): Likewise.
52273         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52274         * modules/yield: Likewise.
52275         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52276         * tests/test-sys_select.c (connect_to_socket): Likewise.
52277
52278         fts.c: adjust a new interface to be more generally useful
52279         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52280         (fts_build): Adjust caller.
52281
52282 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52283
52284         * modules/cond-tests: New file.
52285         * tests/test-cond.c: New file.
52286
52287 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52288             Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/cond (Dependencies): Add errno, time.
52291         * lib/glthread/cond.h: Include <time.h>.
52292         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52293         across platforms.
52294
52295 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52296             Bruno Haible  <bruno@clisp.org>
52297
52298         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52299
52300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52301             Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/tls-tests (Depends-on): Add thread, yield.
52304         (configure.ac): Remove all checks.
52305         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52306         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52307         gl_thread_self): Remove definitions. Include glthread/thread.h and
52308         glthread/yield.h instead.
52309         (test_tls): Pass an additional NULL argument to gl_thread_join.
52310
52311 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52312             Bruno Haible  <bruno@clisp.org>
52313
52314         * modules/lock-tests (Depends-on): Add thread, yield.
52315         (configure.ac): Remove all checks.
52316         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52317         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52318         gl_thread_self): Remove definitions. Include glthread/thread.h and
52319         glthread/yield.h instead.
52320         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52321         additional NULL argument to gl_thread_join.
52322
52323 2008-09-30  Bruno Haible  <bruno@clisp.org>
52324
52325         Fix the Win32 implementation of the 'thread' module.
52326         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52327         pointer type.
52328         (gl_thread_self): Invoke gl_thread_self_func.
52329         (gl_thread_self_func): New declaration.
52330         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52331         (do_init_self_key, init_self_key): New functions.
52332         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52333         Remove some fields.
52334         (running_threads, running_lock): Remove variables.
52335         (get_current_thread_handle): New function.
52336         (gl_thread_self_func, wrapper_func, glthread_create_func,
52337         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52338         simplified.
52339
52340 2008-09-30  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52343         files.
52344
52345 2008-09-30  Jim Meyering  <meyering@redhat.com>
52346
52347         fts.m4: correct the test for statfs.f_type
52348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52349         when checking for statfs.f_type.
52350
52351 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52352
52353         tests: avoid some compiler warnings
52354         * tests/test-memchr.c (main): Pass NULL indirectly.
52355         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52356
52357 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52358
52359         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52360         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52361         exactly specified dayshifts.
52362         (dayshift): New rule.
52363         (rel): Add dayshift.
52364         (relative_time_table) [tomorrow, yesterday, today, now]:
52365         Use tDAY_SHIFT in place of tDAY_UNIT.
52366         * tests/test-getdate.c: Add tests for now-disallowed countable
52367         dayshifts, e.g., "4 yesterday ago".
52368
52369 2008-09-29  Bruno Haible  <bruno@clisp.org>
52370
52371         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52372         * tests/test-posix_spawn1.in.sh: Renamed from
52373         tests/test-posix_spawn.in.sh.
52374         * tests/test-posix_spawn2.c: New file.
52375         * tests/test-posix_spawn2.in.sh: New file.
52376         * modules/posix_spawnp-tests (Files): Update.
52377         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52378
52379 2008-09-29  Bruno Haible  <bruno@clisp.org>
52380
52381         Propagate effects of putenv/setenv/unsetenv to child processes.
52382         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52383         * lib/pipe.c (create_pipe): Likewise.
52384
52385 2008-09-29  Bruno Haible  <bruno@clisp.org>
52386
52387         Enable use of shell scripts as executables in mingw.
52388         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52389         run the program as a shell script.
52390         * lib/pipe.c (create_pipe): Likewise.
52391         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52392         resulting array.
52393
52394 2008-09-29  Eric Blake  <ebb9@byu.net>
52395
52396         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52397
52398 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52399
52400         * doc/posix-functions/accept.texi: Update mingw problems.
52401         * doc/posix-functions/bind.texi: Update mingw problems.
52402         * doc/posix-functions/close.texi: Update mingw problems.
52403         * doc/posix-functions/connect.texi: Update mingw problems.
52404         * doc/posix-functions/getpeername.texi: Update mingw problems.
52405         * doc/posix-functions/getsockname.texi: Update mingw problems.
52406         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52407         * doc/posix-functions/ioctl.texi: Update mingw problems.
52408         * doc/posix-functions/listen.texi: Update mingw problems.
52409         * doc/posix-functions/recv.texi: Update mingw problems.
52410         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52411         * doc/posix-functions/select.texi: Update mingw problems.
52412         * doc/posix-functions/send.texi: Update mingw problems.
52413         * doc/posix-functions/sendto.texi: Update mingw problems.
52414         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52415         * doc/posix-functions/socket.texi: Update mingw problems.
52416
52417 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52418             Bruno Haible  <bruno@clisp.org>
52419
52420         * lib/sys_select.in.h: Include sys/time.h.
52421         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52422         * modules/sys_select: Depend on sys_time.
52423         * tests/test-sys_select.c: Test that sys/select.h defines struct
52424         timeval fully.
52425
52426 2008-09-29  Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52429         * lib/sys_select.in.h: Likewise.
52430
52431 2008-09-29  Bruno Haible  <bruno@clisp.org>
52432
52433         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52434
52435 2008-09-29  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52438         Set LIBSOCKET instead of augmenting LIBS.
52439         * modules/sockets (Link): New section.
52440         * modules/sockets-tests (test_sockets_LDADD): New variable.
52441         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52442         * modules/poll-tests (test_poll_LDADD): New variable.
52443         * NEWS: Document the change.
52444
52445 2008-09-29  Bruno Haible  <bruno@clisp.org>
52446
52447         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52448         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52449         ARPA_INET_H directly.
52450         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52451
52452 2008-09-28  Bruno Haible  <bruno@clisp.org>
52453
52454         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52455         from gl_HEADER_SYS_SOCKET.
52456         (gl_HEADER_SYS_SOCKET): Invoke it.
52457         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52458
52459 2008-09-28  Bruno Haible  <bruno@clisp.org>
52460
52461         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52462         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52463         Needed on OSF/1 4.0.
52464
52465 2008-09-28  Bruno Haible  <bruno@clisp.org>
52466
52467         Override open more carefully.
52468         * lib/open.c (orig_open): New function.
52469         (rpl_open): Use orig_open instead of open.
52470         * lib/fcntl.in.h: Add special invocation convention.
52471         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52472         (gl_FUNC_OPEN): Invoke it.
52473
52474         Override freopen more carefully.
52475         * lib/freopen.c (orig_freopen): New function.
52476         (rpl_freopen): Use orig_freopen instead of freopen.
52477         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52478         (gl_FUNC_FREOPEN): Invoke it.
52479
52480         Override fopen more carefully.
52481         * lib/fopen.c (orig_fopen): New function.
52482         (rpl_fopen): Use orig_fopen instead of fopen.
52483         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52484         (gl_FUNC_FOPEN): Invoke it.
52485         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52486
52487 2008-09-28  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52490         SIGPIPE.
52491
52492 2008-09-28  Bruno Haible  <bruno@clisp.org>
52493
52494         * tests/test-sigaction.c (handler, main): Disable the check whether
52495         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52496         glibc systems with LinuxThreads.
52497
52498 2008-09-28  Bruno Haible  <bruno@clisp.org>
52499
52500         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52501
52502         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52503         with AIX xlc.
52504         * lib/fcntl.in.h (open): Likewise.
52505         Reported by Rainer Tammer <tammer@tammer.net>.
52506
52507 2008-09-28  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/posix_spawnp-tests: New file.
52510         * tests/test-posix_spawn.c: New file.
52511         * tests/test-posix_spawn.in.sh: New file.
52512
52513         New module 'posix_spawnp'.
52514         * modules/posix_spawnp: New file.
52515         * lib/spawnp.c: New file, from GNU libc with modifications.
52516         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52517
52518         New module 'posix_spawn'.
52519         * modules/posix_spawn: New file.
52520         * lib/spawn.c: New file, from GNU libc with modifications.
52521         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52522
52523         New module 'posix_spawnattr_destroy'.
52524         * modules/posix_spawnattr_destroy: New file.
52525         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52526         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52527         module.
52528
52529         New module 'posix_spawnattr_setsigmask'.
52530         * modules/posix_spawnattr_setsigmask: New file.
52531         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52532         modifications.
52533         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52534         new module.
52535
52536         New module 'posix_spawnattr_getsigmask'.
52537         * modules/posix_spawnattr_getsigmask: New file.
52538         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52539         modifications.
52540         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52541         new module.
52542
52543         New module 'posix_spawnattr_setsigdefault'.
52544         * modules/posix_spawnattr_setsigdefault: New file.
52545         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52546         modifications.
52547         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52548         new module.
52549
52550         New module 'posix_spawnattr_getsigdefault'.
52551         * modules/posix_spawnattr_getsigdefault: New file.
52552         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52553         modifications.
52554         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52555         new module.
52556
52557         New module 'posix_spawnattr_setschedpolicy'.
52558         * modules/posix_spawnattr_setschedpolicy: New file.
52559         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52560         modifications.
52561         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52562         new module.
52563
52564         New module 'posix_spawnattr_getschedpolicy'.
52565         * modules/posix_spawnattr_getschedpolicy: New file.
52566         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52567         modifications.
52568         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52569         new module.
52570
52571         New module 'posix_spawnattr_setschedparam'.
52572         * modules/posix_spawnattr_setschedparam: New file.
52573         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52574         modifications.
52575         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52576         new module.
52577
52578         New module 'posix_spawnattr_getschedparam'.
52579         * modules/posix_spawnattr_getschedparam: New file.
52580         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52581         modifications.
52582         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52583         new module.
52584
52585         New module 'posix_spawnattr_setpgroup'.
52586         * modules/posix_spawnattr_setpgroup: New file.
52587         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52588         modifications.
52589         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52590         module.
52591
52592         New module 'posix_spawnattr_getpgroup'.
52593         * modules/posix_spawnattr_getpgroup: New file.
52594         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52595         modifications.
52596         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52597         module.
52598
52599         New module 'posix_spawnattr_setflags'.
52600         * modules/posix_spawnattr_setflags: New file.
52601         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52602         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52603         module.
52604
52605         New module 'posix_spawnattr_getflags'.
52606         * modules/posix_spawnattr_getflags: New file.
52607         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52608         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52609         module.
52610
52611         New module 'posix_spawnattr_init'.
52612         * modules/posix_spawnattr_init: New file.
52613         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52614         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52615         module.
52616
52617         New module 'posix_spawn_file_actions_destroy'.
52618         * modules/posix_spawn_file_actions_destroy: New file.
52619         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52620         modifications.
52621         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52622         the new module.
52623
52624         New module 'posix_spawn_file_actions_addopen'.
52625         * modules/posix_spawn_file_actions_addopen: New file.
52626         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52627         modifications.
52628         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52629         the new module.
52630
52631         New module 'posix_spawn_file_actions_adddup2'.
52632         * modules/posix_spawn_file_actions_adddup2: New file.
52633         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52634         modifications.
52635         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52636         the new module.
52637
52638         New module 'posix_spawn_file_actions_addclose'.
52639         * modules/posix_spawn_file_actions_addclose: New file.
52640         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52641         modifications.
52642         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52643         the new module.
52644
52645         New module 'posix_spawn_file_actions_init'.
52646         * modules/posix_spawn_file_actions_init: New file.
52647         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52648         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52649         new module.
52650
52651         New module 'posix_spawn-internal'.
52652         * modules/posix_spawn-internal: New file.
52653         * lib/spawn_int.h: New file, from GNU libc with modifications.
52654         * lib/spawni.c: New file, from GNU libc with modifications.
52655         * m4/posix_spawn.m4: New file.
52656
52657         New module 'spawn'.
52658         * modules/spawn: New file.
52659         * lib/spawn.in.h: New file, from GNU libc with modifications.
52660         * m4/spawn_h.m4: New file.
52661         * doc/posix-headers/spawn.texi: Mention the new module.
52662
52663 2008-09-28  Bruno Haible  <bruno@clisp.org>
52664
52665         * modules/sched-tests: New file.
52666         * tests/test-sched.c: New file.
52667
52668         New module 'sched'.
52669         * modules/sched: New file.
52670         * lib/sched.in.h: New file.
52671         * m4/sched_h.m4: New file.
52672         * doc/posix-headers/sched.texi: Mention the new module.
52673
52674 2008-09-27  Eric Blake  <ebb9@byu.net>
52675
52676         Fix previous patch, and tweak references to $0.
52677         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52678         (func_version, func_gnulib_dir): Don't call this program
52679         gnulib-tool.
52680         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52681         with using $0 in function.
52682         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52683         (func_fatal_error): Reuse the name the user invoked us with.
52684
52685 2008-09-27  Bruno Haible  <bruno@clisp.org>
52686
52687         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52688         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52689         (gl_ICONV_H): Not here.
52690         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52691         instead of assigning ICONV_H directly.
52692
52693         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52695         WCHAR_H directly.
52696
52697 2008-09-27  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52700         * modules/arpa_inet (Depends-on): Add link-warning.
52701         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52702         * modules/unistd (Makefile.am): Likewise.
52703
52704 2008-09-26  Bruno Haible  <bruno@clisp.org>
52705
52706         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52707         variables.
52708         (func_version): Essentially copied from gnulib-tool.
52709         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52710         func_readlink): Copied from gnulib-tool.
52711
52712 2008-09-26  Bruno Haible  <bruno@clisp.org>
52713
52714         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52715         invoking git-version-gen.
52716
52717 2008-09-26  Bruno Haible  <bruno@clisp.org>
52718
52719         * posix-modules: Update to directory names changed on 2008-01-19.
52720         Remove commas in output before splitting into words. No more need to
52721         avoid 'ftruncate' since 2007-02-19.
52722
52723 2008-09-26  Bruno Haible  <bruno@clisp.org>
52724
52725         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52726
52727 2008-09-26  Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52730         * modules/fwriteerror (Depends-on): Add errno.
52731
52732 2008-09-26  Bruno Haible  <bruno@clisp.org>
52733
52734         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52735         * tests/test-vc-list-files-cvs.sh: Likewise.
52736
52737 2008-09-26  Bruno Haible  <bruno@clisp.org>
52738
52739         * doc/posix-headers/sys_resource.texi: Reorder items.
52740
52741 2008-09-26  Jim Meyering  <meyering@redhat.com>
52742
52743         fts: tweak inode comparison function
52744         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52745         inode numbers, as documented.
52746
52747         fts: sort dirent entries on inode number before traversing
52748         This avoids a quadratic, seek-related performance penalty when
52749         operating on a directory containing many entries (measurable at 10k;
52750         3.5 hours at 2 million entries with a cold cache) on certain types
52751         of file systems, including ext3 and ext4, but not tmpfs.
52752         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52753         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52754         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52755         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52756         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52757         (fts_build): Set the stat.st_ino member from D_INO.
52758         If it is likely to be useful, sort dirent entries on inode number.
52759
52760         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52761         and the struct statfs.f_type member.
52762         * modules/fts (Depends-on): Add d-ino.
52763
52764 2008-09-26  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/sigpipe-die (Depends-on): Add sigpipe.
52767
52768         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52769         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52770         and GNULIB_STDIO_H_SIGPIPE are set.
52771         * lib/stdio-write.c: New file.
52772         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52773         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52774         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52775         REPLACE_STDIO_WRITE_FUNCS.
52776         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52777         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52778         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52779         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52780         * modules/stdio (Files): Add lib/stdio-write.c.
52781         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52782         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52783         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52784         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52785         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52786         REPLACE_FPRINTF_POSIX.
52787         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52788         REPLACE_PRINTF_POSIX.
52789         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52790         REPLACE_VFPRINTF_POSIX.
52791         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52792         REPLACE_VPRINTF_POSIX.
52793         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52794         SIGPIPE issue.
52795         * doc/posix-functions/fputc.texi: Likewise.
52796         * doc/posix-functions/fputs.texi: Likewise.
52797         * doc/posix-functions/fwrite.texi: Likewise.
52798         * doc/posix-functions/printf.texi: Likewise.
52799         * doc/posix-functions/putc.texi: Likewise.
52800         * doc/posix-functions/putchar.texi: Likewise.
52801         * doc/posix-functions/puts.texi: Likewise.
52802         * doc/posix-functions/vfprintf.texi: Likewise.
52803         * doc/posix-functions/vprintf.texi: Likewise.
52804
52805         * modules/safe-write (Depends-on): Add write.
52806
52807         * modules/sigpipe-tests: New file.
52808         * tests/test-sigpipe.c: New file.
52809         * tests/test-sigpipe.sh: New file.
52810
52811         * modules/write: New file.
52812         * lib/unistd.in.h: Include <sys/types.h>.
52813         (write): New declaration.
52814         * lib/write.c: New file.
52815         * m4/write.m4: New file.
52816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52817         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52818         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52819         GNULIB_WRITE, REPLACE_WRITE.
52820         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52821         and the SIGPIPE issue.
52822
52823         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52824         (raise): New declaration.
52825         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52826         (ext_signal): New function.
52827         (rpl_raise): New function.
52828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52829         GNULIB_SIGNAL_H_SIGPIPE.
52830         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52831         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52832
52833         * modules/sigpipe: New file.
52834         * m4/sigpipe.m4: New file.
52835
52836 2008-09-25  Derek Price  <derek@ximbiot.com>
52837             Bruno Haible  <bruno@clisp.org>
52838
52839         * gnulib-tool (func_import): Report all license incompatibilities, not
52840         just the first one.
52841
52842 2008-09-25  Bruno Haible  <bruno@clisp.org>
52843
52844         * gnulib-tool (func_import): When computing the edits, consider not
52845         only the Makefile.ams that exist but also those that will be generated.
52846
52847 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52848
52849         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52850         fixes gnulib-tool --test warning about duplicate dependency.
52851
52852 2008-09-25  Bruno Haible  <bruno@clisp.org>
52853
52854         * gnulib-tool: Don't ask the user to perform edits in the generated
52855         Makefile.ams.
52856         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52857         apply to the Makefile.am being generated.
52858         (func_emit_tests_Makefile_am): Execute edits that apply to the
52859         Makefile.am being generated.
52860         (func_import): Setup list of Makefile.am edits before emitting the
52861         Makefile.ams, not at the end.
52862         (func_create_testdir): Update.
52863         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52864
52865 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52866
52867         * gnulib-tool (func_import): Store the --tests-base option in the
52868         comment in gnulib-cache.m4.
52869
52870 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52871
52872         * NEWS: Document increased portability that sys_select now provides.
52873
52874         * lib/sys_select.in.h: Install select wrapper.
52875         * lib/sys_socket.in.h: Use more descriptive name when there is no
52876         select wrapper.
52877         * lib/winsock-select.c: New.
52878         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52879         Require gl_HEADER_SYS_SOCKET.
52880         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52881         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52882         * tests/test-sys_select.c: Add functional tests.
52883
52884 2008-09-24  Eric Blake  <ebb9@byu.net>
52885
52886         open, fopen: close fd leak in last patch
52887         * lib/open.c (rpl_open): Close fd before returning error.
52888         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52889         * doc/posix-functions/open.texi (open): Document that Irix also
52890         has the bug.
52891         * doc/posix-functions/fopen.texi (fopen): Likewise.
52892         Reported by Paolo Bonzini.
52893
52894 2008-09-24  Bruno Haible  <bruno@clisp.org>
52895
52896         Ensure that a filename ending in a slash cannot be used to access a
52897         non-directory.
52898         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52899         to check whether it's really a directory.
52900         * lib/fopen.c: Include fcntl.h, unistd.h.
52901         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52902         and fdopen().
52903         * modules/fopen (Depends-on): Add unistd.
52904         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52905         * tests/test-fopen.c (main): Likewise.
52906         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52907         * doc/posix-functions/fopen.texi: Likewise.
52908         Reported by Eric Blake.
52909
52910 2008-09-23  Eric Blake  <ebb9@byu.net>
52911
52912         c-stack: avoid compiler optimizations when provoking overflow
52913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52914         recursion harder to optimize, to ensure a stack overflow occurs.
52915         * tests/test-c-stack.c (recurse): Likewise.
52916         Borrowed from libsigsegv.
52917
52918         c-stack: work around Irix sigaltstack bug
52919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52920         whether sigaltstack uses wrong end of stack_t (copied in part from
52921         libsigsegv).
52922         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52923         Irix bug, without requiring an over-allocation.
52924         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52925         bug.
52926
52927         fopen: document mingw bug on directories
52928         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52929         not allowing a stream visiting a directory, even though reading
52930         from such a stream is not portable.
52931
52932 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52933
52934         * lib/poll.c: Rewrite.
52935         * modules/poll: Depend on alloca.
52936
52937 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52938
52939         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52940         instead define prototypes for a full set of wrappers.  Ensure
52941         that Cygwin does not use the compatibility code, which is only
52942         for MinGW.
52943         * lib/winsock.c: New.
52944         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52945         * modules/sys_socket: Add lib/winsock.c.
52946
52947         * modules/poll-tests: Add errno and perror.
52948         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52949
52950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52951
52952         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52953
52954 2008-09-23  Bruno Haible  <bruno@clisp.org>
52955
52956         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52957         * doc/glibc-functions/*: Likewise.
52958
52959 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52960
52961         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52962         success.
52963
52964 2008-09-22  Eric Blake  <ebb9@byu.net>
52965             Bruno Haible  <bruno@clisp.org>
52966
52967         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52968         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52969         supply %A but mishandle pseudo-NaN.
52970         Reported by Simon Josefsson.
52971
52972 2008-09-21  Bruno Haible  <bruno@clisp.org>
52973
52974         * tests/test-lock.c (main): Tweak skip message.
52975         * tests/test-tls.c (main): Likewise.
52976
52977 2008-09-21  Bruno Haible  <bruno@clisp.org>
52978
52979         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52980         whether 'struct sigaction' has sa_sigaction here...
52981         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52982         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52983
52984 2008-09-21  Bruno Haible  <bruno@clisp.org>
52985
52986         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52987         section.
52988         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52989         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52990         the new section.
52991         (Support for obsolete systems lacking POSIX:2001): New section.
52992         (String handling <string.h>): Move strdup to the new section.
52993         Suggested by Simon Josefsson and Paolo Bonzini.
52994
52995 2008-09-21  Bruno Haible  <bruno@clisp.org>
52996
52997         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52998         exponents in %e and %g results on 'long double'. Needed for mingw's
52999         improved *printf functions.
53000         * tests/test-vasprintf-posix.c (test_function): Likewise.
53001         * tests/test-snprintf-posix.h (test_function): Likewise.
53002         * tests/test-sprintf-posix.h (test_function): Likewise.
53003         Reported by Eric Blake.
53004
53005 2008-09-21  Bruno Haible  <bruno@clisp.org>
53006
53007         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53008         * tests/test-sprintf-posix.h (test_function): Likewise.
53009
53010 2008-09-21  Bruno Haible  <bruno@clisp.org>
53011
53012         * modules/getpass (Depends-on): Add strdup-posix.
53013
53014         New module 'strdup-posix'.
53015         * modules/strdup-posix: New file.
53016         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53017         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53019         REPLACE_STRDUP.
53020         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53021         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53023         strdup-posix.
53024
53025         * modules/strdup (Depends-on): Remove malloc-posix.
53026
53027 2008-09-20  Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53030         Wildenhues.
53031
53032 2008-09-20  Bruno Haible  <bruno@clisp.org>
53033
53034         Ensure that wint_t gets defined on IRIX 5.3.
53035         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53036         * lib/wctype.in.h (wint_t): Likewise.
53037         (__wctype_wint_t): Remove type.
53038         (isw*): Use wint_t instead of __wctype_wint_t.
53039         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53040         * modules/wchar (Files): Add m4/wint_t.m4.
53041         (Makefile.am): Substitute HAVE_WINT_T.
53042         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53043         * tests/test-wctype.c: Check that wint_t is defined.
53044         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53045         * doc/posix-headers/wctype.texi: Likewise.
53046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53047
53048 2008-09-18  Bruno Haible  <bruno@clisp.org>
53049
53050         * gnulib-tool (func_exit): Update comment.
53051
53052 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53053
53054         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53055         assumes strdup exists and does not depend on strdup to return
53056         ENOMEM on out of memory conditions.
53057
53058 2008-09-18  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53061         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53062         digits for the exponent.
53063
53064 2008-09-18  Jim Meyering  <meyering@redhat.com>
53065             Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/vasnprintf.c (decimal_point_char): Define also if
53068         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53069
53070 2008-09-16  Bruno Haible  <bruno@clisp.org>
53071         and Eric Blake  <ebb9@byu.net>
53072
53073         vasnprintf: support Irix 5.3
53074         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53075         that mishandle long double infinity.
53076         Reported by Tom G. Christensen.
53077
53078 2008-09-16  Bruno Haible  <bruno@clisp.org>
53079
53080         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53081         Solaris 9.
53082         * doc/glibc-functions/alphasort.texi: Likewise.
53083         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53084
53085 2008-09-16  Jim Meyering  <meyering@redhat.com>
53086
53087         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53088         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53089         a umask modification leak out of a subshell.  Otherwise, the
53090         opensolaris /bin/sh would be accepted and thus cause unwarranted
53091         failures in the coreutils test suite.
53092
53093 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53094
53095         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53096         to succeed.
53097
53098 2008-09-16  Jim Meyering  <meyering@redhat.com>
53099
53100         avoid spurious test failure when library is built without ACL support
53101         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53102         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53103         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53104         * tests/test-copy-acl.sh: Likewise.
53105
53106 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53107
53108         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53109         based on character occurrence counts.
53110
53111 2008-09-15  Eric Blake  <ebb9@byu.net>
53112
53113         tests: avoid some compiler warnings
53114         * tests/test-memchr.c (main): Pass NULL indirectly.
53115         * tests/test-closein.c (main): Avoid unused variable.
53116
53117 2008-09-15  Bruno Haible  <bruno@clisp.org>
53118
53119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53120         are missing on OpenBSD 4.0 individually.
53121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53122
53123 2008-09-15  Bruno Haible  <bruno@clisp.org>
53124
53125         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53126         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53127         * doc/posix-functions/perror.texi: Likewise.
53128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53129         is missing.
53130         Reported by Eric Blake.
53131
53132         * lib/errno.in.h: Use replacement values >= 2000.
53133         Reported by Eric Blake.
53134
53135 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53136
53137         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53138         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53139         limit.
53140         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53141         compareseq was aborted.
53142
53143 2008-09-14  Bruno Haible  <bruno@clisp.org>
53144
53145         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53146         yvec_edit_count.
53147         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53148         (fstrcmp_bounded): Simplify result computation accordingly.
53149
53150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53151
53152         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53153         (fstrcmp): Define in terms of fstrcmp_bounded.
53154         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53155         lower_bound argument.
53156         Return quickly if the result is certainly < lower_bound.
53157         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53158
53159 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53160
53161         * lib/diffseq.h (EARLY_ABORT): New macro.
53162         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53163         evaluates to true.
53164
53165 2008-09-14  Bruno Haible  <bruno@clisp.org>
53166
53167         * modules/perror-tests: New file.
53168         * tests/test-perror.sh: New file.
53169         * tests/test-perror.c: New file.
53170
53171         New module 'perror'.
53172         * lib/stdio.in.h (perror): New declaration.
53173         * lib/perror.c: New file.
53174         * m4/perror.m4: New file.
53175         * modules/perror: New file.
53176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53177         * doc/posix-functions/perror.texi: Mention the perror module.
53178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53179         REPLACE_PERROR.
53180         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53181         REPLACE_PERROR.
53182
53183 2008-09-14  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/stdio (Makefile.am): Reorder to match the order in
53186         lib/stdio.in.h.
53187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53188
53189 2008-09-13  Bruno Haible  <bruno@clisp.org>
53190
53191         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53192
53193 2008-09-13  Bruno Haible  <bruno@clisp.org>
53194
53195         Extend strerror to cover the added errno values.
53196         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53197         (rpl_strerror): Provide error messages for the added errno values and
53198         for the WSA* values.
53199         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53200         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53201         strerror.
53202         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53203         * modules/strerror (Depends-on): Add errno.
53204         * doc/posix-functions/strerror.texi: Document the change.
53205         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53206         and EOVERFLOW.
53207
53208 2008-09-13  Bruno Haible  <bruno@clisp.org>
53209
53210         * modules/EOVERFLOW: Remove file.
53211         * m4/eoverflow.m4: Remove file.
53212         * modules/EOVERFLOW-tests: Remove file.
53213         * tests/test-EOVERFLOW.c: Remove file.
53214         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53215         * modules/ftell (Depends-on): Likewise.
53216         * modules/getdelim (Depends-on): Likewise.
53217         * modules/getugroups (Depends-on): Likewise.
53218         * modules/poll (Depends-on): Likewise.
53219         * modules/snprintf (Depends-on): Likewise.
53220         * modules/sprintf-posix (Depends-on): Likewise.
53221         * modules/vasnprintf (Depends-on): Likewise.
53222         * modules/vasprintf (Depends-on): Likewise.
53223         * modules/vfprintf-posix (Depends-on): Likewise.
53224         * modules/vsnprintf (Depends-on): Likewise.
53225         * modules/vsprintf-posix (Depends-on): Likewise.
53226         * modules/xvasprintf (Depends-on): Likewise.
53227         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53228         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53229         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53230         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53232         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53233         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53234         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53235         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53236         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53237         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53238         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53239         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53240         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53241         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53242         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53244         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53245         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53246         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53248         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53249         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53250         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53251         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53252         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53253         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53254         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53255         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53256         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53257         * MODULES.html.sh: Remove EOVERFLOW.
53258         * NEWS: Mention the change.
53259
53260 2008-09-13  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/errno-tests: New file.
53263         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53264
53265         * lib/errno.in.h: New file.
53266         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53267         * modules/errno: New file.
53268         * doc/posix-headers/errno.texi: Update documentation.
53269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53270
53271 2008-09-13  Bruno Haible  <bruno@clisp.org>
53272
53273         * tests/test-poll.c: Use #if for native Windows, rather than testing
53274         __MSVCRT__.
53275
53276 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53277             Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/glob.c: Don't include <pwd.h> on native Windows.
53280         (WINDOWS32): New macro.
53281         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53282
53283 2008-09-13  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53286         (ETIMEDOUT): Remove macro.
53287         (glthread_cond_timedwait_multithreaded): New declaration.
53288         (glthread_cond_timedwait): Use it.
53289         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53290         (glthread_cond_timedwait_multithreaded): New function.
53291
53292 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53293
53294         * modules/poll-tests: Do not check for io.h.
53295         * tests/test-poll.c: Check for __MSVCRT__ instead.
53296
53297 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53298
53299         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53300         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53301         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53302
53303 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53304
53305         * modules/poll-tests: New.
53306         * tests/test-poll.c: New.
53307
53308 2008-09-12  Eric Blake  <ebb9@byu.net>
53309
53310         frexp: test for NetBSD failure on -0.0
53311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53312         not all, bugs from NetBSD 3.0 have been fixed.
53313         * doc/posix-functions/frexp.texi (frexp): Document bug.
53314         Reported by Thomas Klausner.
53315
53316         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53317         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53318         literal -0.0.
53319         Reported by Jonathan C. Patschke <jp@centtech.com>.
53320
53321 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53322
53323         * lib/glthread/cond.h: Use dummy implementation also if
53324         USE_WIN32_THREADS.
53325
53326 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53327
53328         * modules/fnmatch-posix (License): Change to LGPLv2+.
53329         * modules/fnmatch-gnu (License): Likewise.
53330
53331 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53332
53333         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53334
53335 2008-09-11  Jim Meyering  <meyering@redhat.com>
53336
53337         * users.txt: Add gtk-vnc.
53338
53339 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53340
53341         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53342         rotate amounts.
53343
53344         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53345         required for 16-bit and 8-bit rotates.
53346         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53347         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53348         UINT8_MAX instead of hard-coded constants.
53349         Suggested by Paul Eggert.
53350
53351 2008-09-07  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-striconveh.c (main): Check behaviour when converting from
53354         UTF-7.
53355
53356         Make striconveh work better with stateful encodings.
53357         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53358         that iconv does not increment the inptr when returning -1/EINVAL.
53359
53360 2008-09-07  Bruno Haible  <bruno@clisp.org>
53361
53362         * build-aux/config.rpath: Update according to libtool-2.2.6.
53363         * build-aux/config.libpath: Likewise.
53364
53365 2008-09-06  Bruno Haible  <bruno@clisp.org>
53366
53367         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53368         * lib/freadptr.c (freadptr): Likewise.
53369         * lib/freadseek.c (freadptrinc): Likewise.
53370         Reported by Simon Josefsson.
53371
53372 2008-09-06  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/freadptr (License): Change to LGPLv2+.
53375         * modules/freadseek (License): Likewise.
53376         Suggested by Eric Blake.
53377
53378         * modules/memchr2 (License): Change to LGPLv2+.
53379         Approved by Eric Blake.
53380
53381 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53382             Bruno Haible  <bruno@clisp.org>
53383
53384         Make gnulib-tool work with native 'sed' on AIX.
53385         * gnulib-tool (sed_noop): New variable.
53386         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53387         func_add_or_update, func_create_testdir): Use it to initialize sed
53388         script variables.
53389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53390
53391 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53392             Bruno Haible  <bruno@clisp.org>
53393
53394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53395         also works after #include directives.
53396
53397 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53398
53399         getdate.y: reject an out-of-range timezone value
53400         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53401         the range [-24...+24].  When specified with only one or two digits,
53402         * tests/test-getdate.c: Tests for the fix.
53403         * doc/getdate.texi: Document this change.
53404
53405 2008-09-03  Bruno Haible  <bruno@clisp.org>
53406
53407         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53408
53409 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53410
53411         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53412         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53413         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53414         Blake <ebb9@byu.net>.
53415
53416         * tests/test-bitrotate.c: Add more test vectors.
53417
53418 2008-09-02  Eric Blake  <ebb9@byu.net>
53419
53420         vasnprintf-posix: handle large precision via %.*d
53421         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53422         when handling it ourselves.
53423         * tests/test-vasnprintf-posix.c (test_function): Add test.
53424         * tests/test-snprintf-posix.h (test_function): Likewise.
53425         * tests/test-sprintf-posix.h (test_function): Likewise.
53426         * tests/test-vasprintf-posix.c (test_function): Likewise.
53427         Reported by Alain Guibert.
53428
53429 2008-09-01  Eric Blake  <ebb9@byu.net>
53430
53431         c-stack: make configure-time check more robust
53432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53433         successful sigaction call.
53434         Reported by Tom G. Christensen.
53435
53436 2008-09-01  Bruno Haible  <bruno@clisp.org>
53437
53438         New module 'findprog-lgpl'.
53439         * modules/findprog-lgpl: New file.
53440         * lib/findprog-lgpl.c: New file.
53441         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53442         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53443         to decide whether to use strdup or xstrdup, concatenated_filename or
53444         xconcatenated_filename.
53445
53446 2008-09-01  Bruno Haible  <bruno@clisp.org>
53447
53448         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53449         'xconcat-filename' (GPL).
53450         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53451         (License): Change to LGPLv2+.
53452         * modules/xconcat-filename: New file.
53453         * lib/concat-filename.h (concatenated_filename): Change specification.
53454         (xconcatenated_filename): New declaration.
53455         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53456         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53457         memory situations.
53458         * lib/xconcat-filename.c: New file.
53459         * NEWS: Mention the change.
53460         * lib/findprog.c: Include concat-filename.h, not filename.h.
53461         (find_in_path): Use xconcatenated_filename instead of
53462         concatenated_filename.
53463         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53464         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53465         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53466         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53467         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53468         instead of concatenated_filename.
53469         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53470         (execute_java_class): Use xconcatenated_filename instead of
53471         concatenated_filename.
53472         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53473         * modules/javacomp (Depends-on): Likewise.
53474         * modules/javaexec (Depends-on): Likewise.
53475
53476 2008-09-01  Bruno Haible  <bruno@clisp.org>
53477
53478         Split module 'filename' into 'filename' and 'concat-filename'.
53479         * modules/filename: Keep only lib/filename.h.
53480         (License): Change to LGPLv2+.
53481         * modules/concat-filename: New file, extracted from modules/filename.
53482         * lib/filename.h (concatenated_filename): Remove declaration.
53483         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53484         * lib/concat-filename.c: Include concat-filename.h.
53485         * NEWS: Mention the change.
53486
53487 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53488
53489         * lib/bitrotate.h (rotl8, rotr8): Add.
53490
53491         * modules/bitrotate (configure.ac): Need
53492         AC_REQUIRE([AC_C_INLINE]).
53493         (Description): Mention stdint.h.  Reported by Bruno Haible
53494         <bruno@clisp.org>.
53495
53496         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53497         Paolo Bonzini <bonzini@gnu.org>.
53498
53499 2008-08-31  Bruno Haible  <bruno@clisp.org>
53500
53501         Assume Solaris specific bi-arch conventions on Solaris systems.
53502         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53503         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53505         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53506         like acl_libdirstem.
53507         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53508         acl_libdirstem.
53509         * NEWS: Mention the change.
53510         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53511
53512 2008-08-31  Jim Meyering  <meyering@redhat.com>
53513
53514         * lib/strftime.h: Add comments describing the two added arguments.
53515
53516         remove duplicate #include directives
53517         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53518         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53519
53520 2008-08-31  Bruno Haible  <bruno@clisp.org>
53521
53522         New module 'sigpipe-die'.
53523         * modules/sigpipe-die: New file.
53524         * lib/sigpipe-die.h: New file.
53525         * lib/sigpipe-die.c: New file.
53526         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53527
53528 2008-08-31  Bruno Haible  <bruno@clisp.org>
53529
53530         Don't override previously installed signal handlers.
53531         * lib/fatal-signal.c (saved_sigactions): New variable.
53532         (uninstall_handlers): Reset the signal to the saved handler, not
53533         to SIG_DFL (except when ignored).
53534         (install_handlers): Save the previous handlers.
53535
53536 2008-08-30  Bruno Haible  <bruno@clisp.org>
53537
53538         * gnulib-tool (func_reset_sigpipe): New function.
53539         (func_get_automake_snippet, func_modules_transitive_closure,
53540         func_import): Invoke it before a join command that reads from stdin,
53541         to avoid "echo: write error: Broken pipe" error messages on stderr.
53542         Reported by Sam Steingold <sds@gnu.org>.
53543
53544 2008-08-30  Bruno Haible  <bruno@clisp.org>
53545
53546         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53547         Code copied from m4/open.m4.
53548         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53549         access and the filename ends in a slash. Code copied from lib/open.c.
53550         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53551         * tests/test-fopen.c (main): Check against bug with trailing slash.
53552
53553 2008-08-29  Bruno Haible  <bruno@clisp.org>
53554
53555         Avoid some "gcc -pedantic" warnings.
53556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53557         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53558         * lib/dirent.in.h: Likewise.
53559         * lib/fcntl.in.h: Likewise.
53560         * lib/float.in.h: Likewise.
53561         * lib/iconv.in.h: Likewise.
53562         * lib/inttypes.in.h: Likewise.
53563         * lib/locale.in.h: Likewise.
53564         * lib/math.in.h: Likewise.
53565         * lib/netinet_in.in.h: Likewise.
53566         * lib/search.in.h: Likewise.
53567         * lib/signal.in.h: Likewise.
53568         * lib/stdarg.in.h: Likewise.
53569         * lib/stdint.in.h: Likewise.
53570         * lib/stdio.in.h: Likewise.
53571         * lib/stdlib.in.h: Likewise.
53572         * lib/string.in.h: Likewise.
53573         * lib/strings.in.h: Likewise.
53574         * lib/sys_select.in.h: Likewise.
53575         * lib/sys_socket.in.h: Likewise.
53576         * lib/sys_stat.in.h: Likewise.
53577         * lib/sys_time.in.h: Likewise.
53578         * lib/sysexits.in.h: Likewise.
53579         * lib/time.in.h: Likewise.
53580         * lib/unistd.in.h: Likewise.
53581         * lib/wchar.in.h: Likewise.
53582         * lib/wctype.in.h: Likewise.
53583         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53584         * modules/fchdir (Makefile.am): Likewise.
53585         * modules/fcntl (Makefile.am): Likewise.
53586         * modules/float (Makefile.am): Likewise.
53587         * modules/iconv_open (Makefile.am): Likewise.
53588         * modules/inttypes (Makefile.am): Likewise.
53589         * modules/locale (Makefile.am): Likewise.
53590         * modules/math (Makefile.am): Likewise.
53591         * modules/netinet_in (Makefile.am): Likewise.
53592         * modules/search (Makefile.am): Likewise.
53593         * modules/signal (Makefile.am): Likewise.
53594         * modules/stdarg (Makefile.am): Likewise.
53595         * modules/stdint (Makefile.am): Likewise.
53596         * modules/stdio (Makefile.am): Likewise.
53597         * modules/stdlib (Makefile.am): Likewise.
53598         * modules/string (Makefile.am): Likewise.
53599         * modules/strings (Makefile.am): Likewise.
53600         * modules/sys_select (Makefile.am): Likewise.
53601         * modules/sys_socket (Makefile.am): Likewise.
53602         * modules/sys_stat (Makefile.am): Likewise.
53603         * modules/sys_time (Makefile.am): Likewise.
53604         * modules/sysexits (Makefile.am): Likewise.
53605         * modules/time (Makefile.am): Likewise.
53606         * modules/unistd (Makefile.am): Likewise.
53607         * modules/wchar (Makefile.am): Likewise.
53608         * modules/wctype (Makefile.am): Likewise.
53609         Reported by Reuben Thomas <rrt@sc3d.org>.
53610
53611 2008-08-29  Bruno Haible  <bruno@clisp.org>
53612
53613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53614         any more.
53615
53616 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53617
53618         * MODULES.html.sh (Misc): Add bitrotate.
53619
53620         * modules/bitrotate: New file.
53621
53622         * lib/bitrotate.h: New file.
53623
53624         * modules/bitrotate-tests: New file.
53625
53626         * tests/test-bitrotate.c: New file.
53627
53628         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53629         on the bitrotate module.
53630
53631         * lib/arctwo.c: Use new bitrotate module.
53632
53633 2008-08-29  Jim Meyering  <meyering@redhat.com>
53634
53635         bootstrap: merge changes from coreutils
53636         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53637         of copied files.  Remove a kludge, now that this is fixed.
53638         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53639         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53640         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53641
53642 2008-08-29  Bruno Haible  <bruno@clisp.org>
53643
53644         * MODULES.html.sh: Remove --cvs-urls option.
53645
53646 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53647
53648         maint.mk: adjust to file name change
53649         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53650
53651 2008-08-28  Jim Meyering  <meyering@redhat.com>
53652
53653         * modules/getndelim2 (License): Relicense to LGPLv2+.
53654         Approved by Richard Stallman for the version of 1995, and by
53655         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53656
53657 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53658
53659         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53660         dummy if one is not available.  Do not touch them if
53661         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53662         (getc_maybe_unlocked): New.
53663         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53664
53665 2008-08-26  Eric Blake  <ebb9@byu.net>
53666
53667         doc/INSTALL: resync from autoconf
53668         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53669         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53670         moving...
53671         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53672         * INSTALL: Regenerate.
53673         * INSTALL.ISO: New file.
53674         * INSTALL.UTF-8: Likewise.
53675
53676 2008-08-26  Jim Meyering  <meyering@redhat.com>
53677
53678         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53679         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53680         these definitions conditional, so that they may be overridden, too.
53681
53682 2008-08-26  Bruno Haible  <bruno@clisp.org>
53683
53684         Generate INSTALL file variants with prettier quotes.
53685         * doc/Makefile (INSTALL_PRELUDE): New macro.
53686         (INSTALL): Use it.
53687         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53688
53689 2008-08-26  Bruno Haible  <bruno@clisp.org>
53690
53691         Run makeinfo in an English locale.
53692         * doc/Makefile (MAKEINFO): New variable.
53693
53694 2008-08-26  Bruno Haible  <bruno@clisp.org>
53695
53696         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53697         Suggested by Eric Blake.
53698
53699 2008-08-25  Bruno Haible  <bruno@clisp.org>
53700
53701         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53702
53703 2008-08-25  Eric Blake  <ebb9@byu.net>
53704
53705         c-stack: test that stack overflow can be caught
53706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53707         that platform allows handling stack overflow; at least OS/2 EMX
53708         has sigaltstack, but crashes before transferring control to
53709         handler on stack overflow.
53710         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53711         check for HAVE_STACK_OVERFLOW_HANDLING.
53712         Reported by Elbert Pol.
53713
53714 2008-08-25  Bruno Haible  <bruno@clisp.org>
53715
53716         * doc/posix-functions/strftime.texi: Fix description of strftime
53717         module.
53718
53719 2008-08-24  Bruno Haible  <bruno@clisp.org>
53720
53721         * tests/uniwidth/test-uc_width2.c: New file.
53722         * tests/uniwidth/test-uc_width2.sh: New file.
53723         * modules/uniwidth/width-tests (Files): Add the new files.
53724         (TESTS): Add uniwidth/test-uc_width2.sh.
53725         (TESTS_ENVIRONMENT): New variable.
53726         (check_PROGRAMS): Add test-uc_width2.
53727         (test_uc_width2_SOURCES): New variable.
53728
53729         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53730         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53731         not 0x00AB.
53732         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53733
53734 2008-08-22  Eric Blake  <ebb9@byu.net>
53735
53736         test-lock, test-tls: mention why a test is skipped
53737         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53738         skipped.
53739         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53740
53741         count-one-bits: relax license
53742         * modules/count-one-bits (License): Relicense to LGPLv2+.
53743         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53744
53745 2008-08-22  Andreas Schwab  <schwab@suse.de>
53746
53747         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53748         Remove spurious space in assignment.
53749
53750 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53751
53752         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53753         Paul Eggert <eggert@CS.UCLA.EDU>.
53754
53755 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53756
53757         * modules/gettext: Add m4/threadlib.m4.
53758
53759 2008-08-19  Eric Blake  <ebb9@byu.net>
53760
53761         test-c-stack: fix compilation failure on FreeBSD 5.0
53762         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53763         headers before <sys/resource.h>.
53764         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53765         the bug.
53766         Reported by Nelson H. F. Beebe.
53767
53768         strverscmp: migrate from "strverscmp.h" to <string.h>
53769         * modules/string (Makefile.am): Add new hooks.
53770         * modules/strverscmp (Files): Remove strverscmp.h.
53771         (Depends-on): Add string.
53772         (configure.ac): Add indicator.
53773         (Include): Mention new header.
53774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53775         defaults.
53776         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53777         results.
53778         * lib/strverscmp.h: Delete.
53779         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53780         * tests/test-strverscmp.c (includes): Adjust client.
53781         * lib/check-version.c (includes): Likewise.
53782         * NEWS: Document the change.
53783
53784         strverscmp: add unit test
53785         * modules/strverscmp-tests: New file.
53786         * tests/test-strverscmp.c: Likewise.
53787
53788 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53789
53790         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53791         regarding Windows crypto stuff, from Mono.
53792
53793 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53794
53795         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53796         if present, for intel RND.  Return error on failures.
53797
53798 2008-08-18  Ben Pfaff  <blp@gnu.org>
53799
53800         gitlog-to-changelog: give better diagnostic for failed pipe-open
53801         * build-aux/gitlog-to-changelog: Improve error message: suggest
53802         that the version of Git may be too old.
53803
53804 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53805
53806         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53807         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53808
53809 2008-08-18  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53812         pthread_in_use().
53813
53814 2008-08-18  Bruno Haible  <bruno@clisp.org>
53815
53816         * lib/glthread/threadlib.c: Include <pthread.h>.
53817
53818 2008-08-18  Bruno Haible  <bruno@clisp.org>
53819
53820         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53821         glthread_recursive_lock_* macros.
53822         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53823         Fix syntax error.
53824
53825 2008-08-18  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/glthread/thread.c: Avoid forcing a context switch right after
53828         thread creation.
53829
53830 2008-08-17  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53833         * lib/glthread/thread.h: Provide Win32 specific implementation.
53834         * modules/thread (Files): Add lib/glthread/thread.c.
53835         (Depends-on): Add lock.
53836         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53837
53838 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53839
53840         New module 'yield'.
53841         * modules/yield: New file.
53842         * lib/glthread/yield.h: New file.
53843         * m4/yield.m4: New file.
53844         * MODULES.html.sh (Multithreading): Add yield.
53845
53846 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53847
53848         New module 'thread'.
53849         * modules/thread: New file.
53850         * lib/glthread/thread.h: New file.
53851         * m4/thread.m4: New file.
53852         * MODULES.html.sh (Multithreading): Add thread.
53853
53854 2008-08-17  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/glthread/lock.h: Include <stdlib.h> always.
53857         * lib/glthread/tls.h: Likewise.
53858         * lib/glthread/cond.h: Likewise.
53859
53860 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53861
53862         New module 'cond'.
53863         * modules/cond: New file.
53864         * lib/glthread/cond.h: New file.
53865         * lib/glthread/cond.c: New file.
53866         * m4/cond.m4: New file.
53867         * MODULES.html.sh (Multithreading): Add cond.
53868
53869 2008-08-16  Eric Blake  <ebb9@byu.net>
53870
53871         c-stack: fix regression on Irix 5.3 from 2008-06-21
53872         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53873         sa_sigaction...
53874         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53875         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53877         * modules/signal (Makefile.am): Use the value.
53878         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53879         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53880         * doc/posix-headers/signal.texi (signal.h): Document this
53881         portability issue.
53882         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53883         Reported by Tom G. Christensen.
53884
53885 2008-08-17  Bruno Haible  <bruno@clisp.org>
53886
53887         New module 'threadlib'.
53888         * modules/threadlib: New file.
53889         * lib/glthread/threadlib.c: New file, extracted from
53890         lib/glthread/lock.c.
53891         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53892         functions.
53893         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53894         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53895         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53896         macros.
53897         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53898         (gl_DISABLE_THREADS): Remove macro.
53899         * modules/lock (Files): Remove build-aux/config.rpath.
53900         (Depends-on): Remove havelib. Add threadlib.
53901         (configure.ac-early): Remove section.
53902         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53903         * modules/tls (Depends-on): Remove lock. Add threadlib.
53904         (Link): New section, copied from threadlib.
53905         * MODULES.html.sh (Multithreading): Add threadlib.
53906
53907 2008-08-14  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53910         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53911         glthread_rwlock_unlock, glthread_rwlock_destroy,
53912         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53913         glthread_recursive_lock_destroy): Define as macros always.
53914         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53915         glthread_lock_lock.
53916         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53917         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53918         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53919         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53920         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53921         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53922         (glthread_recursive_lock_lock_func): Renamed from
53923         glthread_recursive_lock_lock.
53924         (glthread_recursive_lock_unlock_func): Renamed from
53925         glthread_recursive_lock_unlock.
53926         (glthread_recursive_lock_destroy_func): Renamed from
53927         glthread_recursive_lock_destroy.
53928
53929 2008-08-14  Bruno Haible  <bruno@clisp.org>
53930
53931         * lib/glthread/lock.h: Renamed from lib/lock.h.
53932         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53933         * lib/glthread/tls.h: Renamed from lib/tls.h.
53934         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53935         * lib/fstrcmp.c: Update includes.
53936         * lib/strsignal.c: Update includes.
53937         * modules/lock (Files, Makefile.am): Update.
53938         (Include): Change to "glthread/lock.h".
53939         * modules/tls (Files, Makefile.am): Update.
53940         (Include): Change to "glthread/tls.h".
53941         * tests/test-lock.c: Update includes.
53942         * tests/test-tls.c: Update includes.
53943         * NEWS: Mention the renamed header files.
53944
53945 2008-08-11  Jim Meyering  <meyering@redhat.com>
53946
53947         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53948
53949 2008-08-11  Eric Blake  <ebb9@byu.net>
53950
53951         test-c-stack: avoid C99-ism
53952         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53953         before statement.
53954         Reported by Alain Guibert.
53955
53956 2008-08-10  Jim Meyering  <meyering@redhat.com>
53957
53958         ensure that return value of uinttostr et al are not ignored
53959         * lib/inttostr.h (__GNUC_PREREQ): Define.
53960         (__attribute_warn_unused_result__): Define.
53961         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53962
53963 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53964
53965         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53966         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53967
53968 2008-08-07  Jim Meyering  <meyering@redhat.com>
53969
53970         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53971
53972         * modules/mkstemp (License): Relicense under LGPLv2+.
53973         * modules/tempname (License): Likewise.
53974
53975 2008-08-06  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/poll.c (poll): Further micro-optimization.
53978
53979 2008-08-06  Jim Meyering  <meyering@redhat.com>
53980
53981         inet_pton.c: use locale-independent tolower
53982         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53983         (inet_pton6): Use c_tolower rather than tolower.
53984         * modules/inet_pton (Depends-on): Add c-ctype.
53985
53986 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53987
53988         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53989         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53990
53991 2008-08-06  Jim Meyering  <meyering@redhat.com>
53992
53993         * modules/inet_pton (License): Relicense under LGPLv2+.
53994
53995 2008-08-03  Bruno Haible  <bruno@clisp.org>
53996
53997         Additional non-aborting API for lock and tls.
53998         * lib/lock.h: Include <errno.h>.
53999         (glthread_lock_init): New macro/function.
54000         (gl_lock_init): Define as wrapper around glthread_lock_init.
54001         (glthread_lock_lock): New macro/function.
54002         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54003         (glthread_lock_unlock): New macro/function.
54004         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54005         (glthread_lock_destroy): New macro/function.
54006         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54007         (glthread_rwlock_init): New macro/function.
54008         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54009         (glthread_rwlock_rdlock): New macro/function.
54010         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54011         (glthread_rwlock_wrlock): New macro/function.
54012         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54013         (glthread_rwlock_unlock): New macro/function.
54014         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54015         (glthread_rwlock_destroy): New macro/function.
54016         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54017         (glthread_recursive_lock_init): New macro/function.
54018         (gl_recursive_lock_init): Define as wrapper around
54019         glthread_recursive_lock_init.
54020         (glthread_recursive_lock_lock): New macro/function.
54021         (gl_recursive_lock_lock): Define as wrapper around
54022         glthread_recursive_lock_lock.
54023         (glthread_recursive_lock_unlock): New macro/function.
54024         (gl_recursive_lock_unlock): Define as wrapper around
54025         glthread_recursive_lock_unlock.
54026         (glthread_recursive_lock_destroy): New macro/function.
54027         (gl_recursive_lock_destroy): Define as wrapper around
54028         glthread_recursive_lock_destroy.
54029         (glthread_once): New macro/function.
54030         (gl_once): Define as wrapper around glthread_once.
54031         Update function declarations.
54032         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54033         glthread_rwlock_init. Return error code.
54034         (glthread_rwlock_rdlock_multithreaded): Renamed from
54035         glthread_rwlock_rdlock. Return error code.
54036         (glthread_rwlock_wrlock_multithreaded): Renamed from
54037         glthread_rwlock_wrlock. Return error code.
54038         (glthread_rwlock_unlock_multithreaded): Renamed from
54039         glthread_rwlock_unlock. Return error code.
54040         (glthread_rwlock_destroy_multithreaded): Renamed from
54041         glthread_rwlock_destroy. Return error code.
54042         (glthread_recursive_lock_init_multithreaded): Renamed from
54043         glthread_recursive_lock_init. Return error code.
54044         (glthread_recursive_lock_lock_multithreaded): Renamed from
54045         glthread_recursive_lock_lock. Return error code.
54046         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54047         glthread_recursive_lock_unlock. Return error code.
54048         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54049         glthread_recursive_lock_destroy. Return error code.
54050         (glthread_once_call): Make static.
54051         (glthread_once_multithreaded): Renamed from glthread_once.
54052         * lib/tls.h: Include <errno.h>.
54053         (glthread_tls_key_init): New macro/function.
54054         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54055         (glthread_tls_set): New macro/function.
54056         (gl_tls_set): Define as wrapper around glthread_tls_set.
54057         (glthread_tls_key_destroy): New macro/function.
54058         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54059         Update function declarations.
54060         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54061         glthread_tls_get.
54062         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54063
54064 2008-08-04  Eric Blake  <ebb9@byu.net>
54065
54066         gnumakefile: use space, not TAB, outside of targets
54067         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54068
54069 2008-08-02  Jim Meyering  <meyering@redhat.com>
54070
54071         getdate.y: avoid locale-dependent date parsing failure
54072         In Turkish locales, getdate would fail to recognize keywords
54073         containing a lowercase "i".  The solution is not to rely on
54074         locale-sensitive case-conversion.
54075         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54076         (lookup_word): Use c_toupper in place of toupper.
54077         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54078         Reported by Vefa Bicakci <bicave@superonline.com> in
54079         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54080         * modules/getdate (Depends-on): Add c-ctype.
54081
54082 2008-08-02  Bruno Haible  <bruno@clisp.org>
54083
54084         * gnulib-tool (func_import): When updating or creating a .gitignore
54085         file, prepend each added line with a slash, and ignore leading slashes
54086         from the existing lines.
54087         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54088
54089 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54090
54091         Portability fix for GNU make 3.79.1.
54092         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54093         versions do not understand.
54094
54095 2008-08-01  Bruno Haible  <bruno@clisp.org>
54096
54097         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54098         * tests/test-isnanf.h (zero): New variable.
54099         (main): Avoid literal -0.0f.
54100         * tests/test-isnand.h (zero): New variable.
54101         (main): Avoid literal -0.0.
54102         * tests/test-isnanl.h (zero): New variable.
54103         (main): Avoid literal -0.0L.
54104         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54105         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54106         -0.0, -0.0L.
54107         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54108         (test_signbitd): Avoid literal -0.0.
54109         (test_signbitl): Avoid literal -0.0L.
54110         * tests/test-ceilf1.c (zero): New variable.
54111         (main): Avoid literal -0.0f.
54112         * tests/test-ceill.c (zero): New variable.
54113         (main): Avoid literal -0.0L.
54114         * tests/test-floorf1.c (zero): New variable.
54115         (main): Avoid literal -0.0f.
54116         * tests/test-floorl.c (zero): New variable.
54117         (main): Avoid literal -0.0L.
54118         * tests/test-roundf1.c (zero): New variable.
54119         (main): Avoid literal -0.0f.
54120         * tests/test-round1.c (zero): New variable.
54121         (main): Avoid literal -0.0.
54122         * tests/test-roundl.c (zero): New variable.
54123         (main): Avoid literal -0.0L.
54124         * tests/test-truncf1.c (zero): New variable.
54125         (main): Avoid literal -0.0f.
54126         * tests/test-trunc1.c (zero): New variable.
54127         (main): Avoid literal -0.0.
54128         * tests/test-truncl.c (zero): New variable.
54129         (main): Avoid literal -0.0L.
54130         * tests/test-frexp.c (zero): New variable.
54131         (main): Avoid literal -0.0.
54132         * tests/test-frexpl.c (zero): New variable.
54133         (main): Avoid literal -0.0L.
54134         * tests/test-ldexpl.c (zero): New variable.
54135         (main): Avoid literal -0.0L.
54136         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54137         (zerod, zerol): New variables.
54138         (test_function): Avoid literals -0.0, -0.0L.
54139         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54140         (zerod, zerol): New variables.
54141         (test_function): Avoid literals -0.0, -0.0L.
54142         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54143         (zerod, zerol): New variables.
54144         (test_function): Avoid literals -0.0, -0.0L.
54145         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54146         (zerod, zerol): New variables.
54147         (test_function): Avoid literals -0.0, -0.0L.
54148         * tests/test-strtod.c (zero): New variable.
54149         (main): Avoid literal -0.0.
54150         Reported by Jonathan C. Patschke <jp@centtech.com>.
54151
54152 2008-07-31  Jim Meyering  <meyering@redhat.com>
54153
54154         sha256.h: correct definition of SHA224_DIGEST_SIZE
54155         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54156         Reported by Paulie Pena IV <paulie4@gmail.com>.
54157         Define as 224 / 8, rather than as a literal.
54158         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54159         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54160         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54161
54162 2008-07-31  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54165         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54166         Reported by Jonathan Patschke <jp@centtech.com>.
54167
54168 2008-07-31  Bruno Haible  <bruno@clisp.org>
54169
54170         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54171         Reported by Paolo Bonzini <bonzini@gnu.org>.
54172
54173 2008-07-30  Eric Blake  <ebb9@byu.net>
54174
54175         test-strtod: allow compilation without -lm
54176         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54177         Reported by Dennis Clarke <blastwave@gmail.com>.
54178
54179 2008-07-28  Jim Meyering  <meyering@redhat.com>
54180
54181         bootstrap: work also when there are no .po files in po/
54182         * build-aux/bootstrap (update_po_files): Complete the change
54183         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54184
54185 2008-07-27  Jim Meyering  <meyering@redhat.com>
54186
54187         * users.txt: Add zile.
54188
54189 2008-07-26  Ben Pfaff  <blp@gnu.org>
54190
54191         Add missing dependencies on new m4/exponent[fdl].m4 files.
54192         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54193         * modules/isnand-nolibm: Add m4/exponentd.m4.
54194         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54195         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54196         m4/isnan[fdl].m4, because the macros actually used moved.
54197         Reported by Jim Meyering.
54198
54199 2008-07-14  Ben Pfaff  <blp@gnu.org>
54200
54201         Add isinf module.
54202         * lib/isinf.c: New file.
54203         * lib/math.in.h: Define isinf macro if we have decided to replace
54204         it.
54205         * m4/isinf.m4: New file.
54206         * m4/math_h.m4: Initialize and substitute variables for isinf
54207         module.
54208         * modules/isinf: New file.
54209         * modules/isinf-tests: New file.
54210         * modules/math: Add substitutions for new module.
54211         * tests/test-isinf.c: New file.
54212         * doc/posix-functions/isinf.texi: Mention new module.
54213         * MODULES.html.sh: Mention new module.
54214
54215 2008-07-14  Ben Pfaff  <blp@gnu.org>
54216
54217         Factor out some macros for use by additional modules.
54218         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54219         exponentf.m4.
54220         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54221         exponentd.m4.
54222         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54223         file exponentl.m4.
54224         * m4/exponentf.m4: New file.
54225         * m4/exponentd.m4: New file.
54226         * m4/exponentl.m4: New file.
54227         * modules/isnanf: Use new file m4/exponentf.m4.
54228         * modules/isnand: Use new file m4/exponentd.m4.
54229         * modules/isnanl: Use new file m4/exponentl.m4.
54230
54231 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54232
54233         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54234         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54235         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54236         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54237
54238         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54239         readlink on platforms without PATH_MAX.
54240
54241 2008-07-21  Eric Blake  <ebb9@byu.net>
54242
54243         Warn, not fail, on stale version.
54244         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54245
54246         Don't allow installation with stale devel version number.
54247         * top/GNUmakefile (_is-install-target): New macro.
54248         (_curr-ver): Forbid installation with stale version number.
54249
54250 2008-07-20  Bruno Haible  <bruno@clisp.org>
54251
54252         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54253         TESTS_ENVIRONMENT.
54254         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54255
54256 2008-07-20  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/c-stack.h (c_stack_action): Add documentation.
54259         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54260
54261 2008-07-20  Bruno Haible  <bruno@clisp.org>
54262
54263         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54264         * modules/readlink (License): Likewise.
54265
54266 2008-07-17  Eric Blake  <ebb9@byu.net>
54267
54268         * modules/c-stack (Link): Fix typo.
54269
54270         Make c-stack use libsigsegv, when available.
54271         * modules/c-stack (Depends-on): Add libsigsegv.
54272         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54273         needed.
54274         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54275         (segv_handler, overflow_handler, c_stack_action)
54276         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54277         implementation when libsigsegv is available, but only when using
54278         the library is necessary.
54279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54280         comment, explaining why XSI check fails on Linux.
54281         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54282         * tests/test-c-stack2.sh: Tweak skip message.
54283         * NEWS: Document new link-time requirements.
54284
54285 2008-07-16  Eric Blake  <ebb9@byu.net>
54286
54287         c-stack: Expose false positives when not using libsigsegv.
54288         * modules/c-stack-tests (Files): Expand test.
54289         * tests/test-c-stack.c (main): Add means to conditionally trigger
54290         non-overflow SIGSEGV.
54291         * tests/test-c-stack2.sh: New file.
54292
54293 2008-07-14  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54296         Reported by Eric Blake.
54297
54298 2008-07-14  Sam Steingold  <sds@gnu.org>
54299             Bruno Haible  <bruno@clisp.org>
54300
54301         New module libsigsegv.
54302         * modules/libsigsegv: New file.
54303         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54304         modifications.
54305         * MODULES.html.sh (Signal handling): New section.
54306
54307 2008-07-14  Bruno Haible  <bruno@clisp.org>
54308
54309         * modules/unictype/ctype-* (Description): Add the word "function".
54310         Improves the resulting doc in MODULES.html.
54311
54312 2008-07-12  Ben Pfaff  <blp@gnu.org>
54313
54314         Add longlong module.
54315         * modules/longlong: New file.
54316
54317 2008-07-12  Bruno Haible  <bruno@clisp.org>
54318
54319         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54320         to empty.
54321
54322 2008-07-10  Ben Pfaff  <blp@gnu.org>
54323
54324         Add isnan module.
54325         * doc/posix-functions/isnan.texi: Mention new module.
54326         * lib/math.in.h: Define isnan macro if we have decided to replace
54327         it.
54328         * m4/isnan.m4: New file.
54329         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54330         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54331         also.
54332         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54333         redundancy.
54334         * m4/math_h.m4: Initialize and substitute variables for isnan
54335         module.
54336         * modules/isnan: New file.
54337         * modules/isnan-tests: New file.
54338         * modules/math: Add substitutions for new module.
54339         * tests/test-isnan.c: New file.
54340         * MODULES.html.sh: Mention new module.
54341
54342 2008-07-10  Ben Pfaff  <blp@gnu.org>
54343
54344         Add isnanf module.
54345         * lib/isnanf.m4: New file.
54346         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54347         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54348         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54349         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54350         * modules/isnanf: New file.
54351         * modules/isnanf-tests: New file.
54352         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54353         files.
54354         * tests/test-isnanf-nolibm.c: factored most of its contents into
54355         new file tests/test-isnanf.h.
54356         * tests/test-isnanf.h: New file.
54357         * tests/test-isnanf.c: New file.
54358         * MODULES.html.sh: Mention new module.
54359         * doc/glibc-functions/isnanf.texi: Mention new module.
54360
54361 2008-07-10  Ben Pfaff  <blp@gnu.org>
54362
54363         Add isnand module.
54364         * lib/isnand.h: New file.
54365         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54366         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54367         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54368         functionality also.
54369         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54370         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54371         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54372         * modules/isnand: New file.
54373         * modules/isnand-tests: New file.
54374         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54375         files.
54376         * tests/test-isnand-nolibm.c: factored most of its contents into
54377         new file tests/test-isnand.h.
54378         * tests/test-isnand.h: New file.
54379         * tests/test-isnand.c: New file.
54380         * MODULES.html.sh: Mention new module.
54381
54382 2008-07-10  Ben Pfaff  <blp@gnu.org>
54383
54384         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54385         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54386         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54387         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54388         * modules/isnanf-nolibm: Update references to renamed files.
54389         * modules/isnand-nolibm: Likewise.
54390         * modules/isnanf-nolibm-tests: Likewise.
54391         * modules/isnand-nolibm-tests: Likewise.
54392         * lib/frexp.c: Likewise.
54393         * lib/isfinite.c: Likewise.
54394         * lib/signbitd.c: Likewise.
54395         * lib/signbitf.c: Likewise.
54396         * lib/vasnprintf.c: Likewise.
54397         * tests/test-ceilf1.c: Likewise.
54398         * tests/test-ceilf2.c: Likewise.
54399         * tests/test-floorf1.c: Likewise.
54400         * tests/test-floorf2.c: Likewise.
54401         * tests/test-frexp.c: Likewise.
54402         * tests/test-round1.c: Likewise.
54403         * tests/test-round2.c: Likewise.
54404         * tests/test-roundf1.c: Likewise.
54405         * tests/test-strtod.c: Likewise.
54406         * tests/test-trunc1.c: Likewise.
54407         * tests/test-trunc2.c: Likewise.
54408         * tests/test-truncf1.c: Likewise.
54409         * tests/test-truncf2.c: Likewise.
54410         * NEWS: Mention the renamed header files.
54411
54412 2008-07-11  Jim Meyering  <meyering@redhat.com>
54413
54414         vc-list-files: make the last-resort awk code more portable
54415         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54416         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54417         does not support it.
54418
54419 2008-07-10  Eric Blake  <ebb9@byu.net>
54420
54421         Work with tar's bootstrap.
54422         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54423         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54424         an m4 comment.
54425
54426 2008-07-09  Jim Meyering  <meyering@redhat.com>
54427
54428         posix-shell.m4: fix typo that made this test malfunction
54429         * m4/posix-shell.m4: Remove capitalization in variable name.
54430
54431 2008-07-08  Bruno Haible  <bruno@clisp.org>
54432
54433         * m4/onceonly.m4: Update comments.
54434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54435
54436 2008-07-04  Jim Meyering  <meyering@redhat.com>
54437
54438         * users.txt: Add vc-dwim.
54439         (bison, coreutils): Use the gitweb URL.
54440
54441 2008-07-03  Jim Meyering  <meyering@redhat.com>
54442
54443         * users.txt: Add libffcall.  From Sam Steingold.
54444
54445 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54446
54447         getdate.y: do not ignore TZ with relative day, month or year offset
54448         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54449         relative-date-handling, since otherwise, the latter would clobber the
54450         sole output (an updated Start value) of the tz-handling block.
54451         * tests/test-getdate.c: Tests for the fix
54452
54453 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54454
54455         Recognize 'foo_LIBRARIES += libgnu.a'.
54456         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54457         makefile snippet has already specified an installation location,
54458         also using '+='.
54459
54460 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54461
54462         getdate.y: factor out common actions
54463         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54464         Use them in place of open-coded actions.
54465
54466 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54467
54468         Add self-test for getdate module.
54469         * modules/getdate-tests: New file.
54470         * tests/test-getdate.c: New file.
54471
54472 2008-06-29  Bruno Haible  <bruno@clisp.org>
54473
54474         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54475         .gitignore.
54476         Reported by Sylvain Beucler <beuc@beuc.net>.
54477
54478 2008-06-29  Bruno Haible  <bruno@clisp.org>
54479
54480         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54481         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54482
54483 2008-06-29  Bruno Haible  <bruno@clisp.org>
54484
54485         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54486         EXTRA_DIST.
54487         Reported by Sylvain Beucler <beuc@beuc.net>.
54488
54489 2008-06-26  Jim Meyering  <meyering@redhat.com>
54490
54491         make several modules depend on the "open" module
54492         This provides slightly increased consistency when opening-for-write
54493         the name of a non-directory spelled with a trailing slash.
54494         * modules/chdir-safer: Likewise.
54495         * modules/chown: Likewise.
54496         * modules/clean-temp: Likewise.
54497         * modules/copy-file: Likewise.
54498         * modules/fchdir: Likewise.
54499         * modules/fcntl-safer: Likewise.
54500         * modules/pipe: Likewise.
54501         * modules/utime: Likewise.
54502         Prompted by Eric Blake and Bruno Haible.
54503
54504 2008-06-24  Andreas Schwab  <schwab@suse.de>
54505
54506         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54507         literals can be used as initializers for global variables.
54508
54509 2008-06-23  Eric Blake  <ebb9@byu.net>
54510
54511         Make gnulib-cache.m4 easier to diff.
54512         * gnulib-tool (func_import): Allow newlines when reading cached
54513         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54514
54515 2008-06-23  Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54518         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54519         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54520         m4/signalblocking.m4.
54521         (gl_PREREQ_SIGACTION): Don't invoke it.
54522         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54523         gl_PREREQ_SIG_HANDLER_H.
54524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54525         Don't check for sigaction here.
54526
54527 2008-06-23  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54530         (install_handlers): Don't set the SA_RESETHAND flag.
54531
54532 2008-06-23  Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/sigaction.m4: Comment fixes.
54535         * lib/signal.in.h: Likewise.
54536
54537 2008-06-23  Eric Blake  <ebb9@byu.net>
54538
54539         Fix typo.
54540         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54541
54542         Avoid SA_ namespace.
54543         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54544         Reported by Ralf Wildenhues.
54545
54546         Avoid test failure due to SA_RESTORER.
54547         * tests/test-sigaction.c (SA_MASK): New macro.
54548         (main): Avoid failing due to extension flags being set.
54549         Reported by Jim Meyering.
54550
54551         Revert use of sig-handler.h in sigprocmask.c.
54552         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54553         it requires the existence of struct sigaction.
54554         * lib/sigprocmask.c (handler_t): Restore typedef.
54555         (rpl_signal, old_handlers): Use local type.
54556
54557 2008-06-22  Bruno Haible  <bruno@clisp.org>
54558
54559         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54560         conditionally.
54561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54562
54563 2008-06-22  Bruno Haible  <bruno@clisp.org>
54564
54565         * doc/posix-functions/siginterrupt.texi: Move note.
54566
54567         * lib/signal.in.h (SA_RESTART): New macro.
54568         * lib/sigaction.c: Update comment.
54569
54570         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54571
54572         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54573         (gl_PREREQ_SIGPROCMASK): Invoke it.
54574         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54575
54576         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54577
54578         * lib/sigprocmask.c: Update a comment.
54579
54580 2008-06-21  Eric Blake  <ebb9@byu.net>
54581
54582         Use sigaction module rather than signal().
54583         * modules/c-stack (Depends-on): Add sigaction.
54584         * modules/fatal-signal (Depends-on): Likewise.
54585         * modules/nanosleep (Depends-on): Likewise.
54586         * modules/sigprocmask (Files): Add sig-handler.h.
54587         * modules/sigaction (Files): Likewise.
54588         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54589         Eggert.
54590         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54591         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54592         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54593         (init_fatal_signals): Likewise.
54594         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54595         (siginterrupt): Delete fallback.
54596         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54597         instead.
54598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54599         siginterrupt.
54600
54601         New module sigaction, for mingw.
54602         * modules/sigaction: New module...
54603         * modules/sigaction-tests: ...and its test.
54604         * m4/sigaction.m4: New file.
54605         * lib/sigaction.c: Likewise.
54606         * tests/test-sigaction.c: Likewise.
54607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54608         * modules/signal (Makefile.am): Likewise.
54609         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54610         needed.
54611         * doc/posix-headers/signal.texi (signal.h): Mention provided
54612         types.
54613         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54614         that sigaction is preferable.
54615         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54616         module.
54617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54618         sigaction.
54619
54620         Improve robustness of sigprocmask by overriding signal.
54621         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54622         is in use.
54623         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54624         (SIGKILL, SIGSTOP): Provide fallbacks.
54625         (rpl_signal): Implement.
54626         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54627         signal can be called inside handlers.
54628
54629         Fix nanosleep module on mingw.
54630         * modules/nanosleep (Depends-on): Add sys_select.
54631         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54632
54633         Fix licensing of sigprocmask.
54634         * modules/raise (License): Relicense as LGPL.
54635
54636 2008-06-21  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54639         result if it contains question marks.
54640         Reported by Michael Geng <linux@michaelgeng.de>.
54641
54642 2008-06-19  Bruno Haible  <bruno@clisp.org>
54643
54644         Fix CVS-ism.
54645         * doc/gnulib.texi: Include updated-stamp.texi.
54646         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54647         (updated-stamp.texi): New rule.
54648         (gnulib.info): Depend on it.
54649         * doc/.gitignore: Add updated-stamp.texi.
54650         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54651
54652 2008-06-19  Bruno Haible  <bruno@clisp.org>
54653
54654         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54655         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54656
54657 2008-06-19  Eric Blake  <ebb9@byu.net>
54658
54659         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54660         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54661         Reported by Stepan Kasal.
54662
54663 2008-06-18  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54666         Reported by Eric Blake.
54667
54668 2008-06-18  Eric Blake  <ebb9@byu.net>
54669
54670         Work around cygwin 1.5.25 strsignal bug.
54671         * tests/test-strsignal.c: Allow for const char *.
54672         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54673
54674 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54675
54676         * users.txt: Update URL to article and add author/date
54677         information.
54678
54679 2008-06-17  Bruno Haible  <bruno@clisp.org>
54680
54681         New macro gl_DISABLE_THREADS.
54682         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54683         if the user did not pass --enable-threads or --disable-threads option.
54684         (gl_DISABLE_THREADS): New macro.
54685         Reported by Eric Blake <ebb9@byu.net>.
54686
54687 2008-06-17  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54690         when the macro ignores it.
54691         Based on a patch by Eric Blake <ebb9@byu.net>.
54692
54693 2008-06-17  Bruno Haible  <bruno@clisp.org>
54694
54695         * modules/tls (License): Change to LGPLv2+.
54696         Reported by Eric Blake.
54697
54698 2008-06-17  Eric Blake  <ebb9@byu.net>
54699
54700         Simplify c-stack prerequisites.
54701         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54703         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54704         check.
54705         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54706         <sys/resource.h>.
54707
54708         Move c-stack test into testsuite.
54709         * modules/c-stack-tests: New file.
54710         * lib/c-stack.c [DEBUG]: Move test program...
54711         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54712         fail test if sigaltstack is lacking.
54713         * tests/test-c-stack.sh: New driver file.
54714
54715 2008-06-16  Eric Blake  <ebb9@byu.net>
54716
54717         Use raise module consistently.
54718         * modules/fatal-signal (Depends-on): Add raise.
54719         * modules/sigprocmask (Depends-on): Likewise.
54720         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54721         * lib/sigprocmask.c (sigprocmask): Likewise.
54722         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54724
54725         Fix compliance bug in sigpending.
54726         * lib/sigprocmask.c (sigpending): Return pending array via
54727         parameter, not return value.
54728
54729 2008-06-14  Eric Blake  <ebb9@byu.net>
54730
54731         Improve obstack-printf test code.
54732         * tests/test-obstack-printf.c (test_function): Fix comment, and
54733         simplify usage of obstack_* in macros.  Add a test for coverage.
54734         Reported by Bruno Haible.
54735
54736 2008-06-14  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54739         array size as a constant, not as a const variable.
54740         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54741         AC_USE_SYSTEM_EXTENSIONS.
54742         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54743         Test whether the obstack_printf function actually exists.
54744         * modules/obstack-printf (Depends-on): Add extensions.
54745         (Include): Remove obstack.h.
54746         * modules/obstack-printf-posix (Depends-on): Add extensions.
54747         (Include): Remove obstack.h.
54748
54749 2008-06-13  Eric Blake  <ebb9@byu.net>
54750
54751         Add obstack-printf and obstack-printf-posix modules.
54752         * modules/obstack-printf: New file.
54753         * modules/obstack-printf-posix: Likewise.
54754         * MODULES.html.sh (Misc): Mention them.
54755         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54756         Likewise.
54757         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54758         Likewise.
54759         * modules/stdio (Makefile.am): Accomodate new modules.
54760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54761         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54762         Declare.
54763         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54764         functions.
54765         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54766         (gl_REPLACE_OBSTACK_PRINTF): New macros
54767         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54768         * tests/test-obstack-printf.c: New file.
54769         * modules/obstack-printf-tests: Likewise.
54770         * modules/obstack-printf-posix-tests: Likewise.
54771
54772 2008-06-11  Bruno Haible  <bruno@clisp.org>
54773
54774         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54775         * lib/open.c: Include errno.h.
54776         (open): Fail when attempting to write to a file that has a trailing
54777         slash.
54778         * tests/test-open.c (main): Test against trailing slash bug.
54779         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54780
54781 2008-06-10  Bruno Haible  <bruno@clisp.org>
54782
54783         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54784         for $? to work inside the trap command, with various /bin/sh-s.
54785         * tests/test-vc-list-files-cvs.sh: Likewise.
54786
54787 2008-06-10  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/acl-internal.h: Don't include gettext.h here.
54790         * lib/set-mode-acl.c: Include gettext.h here.
54791         * lib/copy-acl.c: Likewise.
54792
54793 2008-06-10  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54796         * lib/wait-process.c (wait_subprocess): Likewise.
54797         * lib/execute.h (execute): Add termsigp argument.
54798         * lib/execute.c (execute): Likewise.
54799         * lib/csharpcomp.c (compile_csharp_using_pnet,
54800         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54801         * lib/csharpexec.c (execute_csharp_using_pnet,
54802         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54803         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54804         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54805         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54806         is_jikes_present): Update.
54807         * lib/javaexec.c (execute_java_class): Update.
54808         * lib/javaversion.c (execute_and_read_line): Update.
54809         * NEWS: Document the changes.
54810         Reported by Eric Blake.
54811
54812 2008-06-10  Eric Blake  <ebb9@byu.net>
54813
54814         Add missing include.
54815         * tests/test-strstr.c (includes): Add <signal.h>.
54816         * tests/test-strcasestr.c (includes): Likewise.
54817         * tests/test-memmem.c (includes): Likewise.
54818
54819 2008-06-10  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/wait-process.c (wait_subprocess): Add an assertion.
54822
54823 2008-06-10  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54826
54827 2008-06-10  Bruno Haible  <bruno@clisp.org>
54828
54829         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54830         using alarm().
54831         * tests/test-strcasestr.c (main): Likewise.
54832         * tests/test-strstr.c (main): Likewise.
54833
54834 2008-06-09  Bruno Haible  <bruno@clisp.org>
54835
54836         Work around the Solaris 10 ACE ACLs ABI change.
54837         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54838         declare if ACL_NO_TRIVIAL is present.
54839         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54840         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54841         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54842         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54843         define if ACL_NO_TRIVIAL is present.
54844         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54845         and use the current ABI.
54846         (file_has_acl): Use same #if condition as elsewhere.
54847         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54848         in use, and use the current ABI.
54849         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54850         Reported by Jim Meyering.
54851
54852 2008-06-09  Eric Blake  <ebb9@byu.net>
54853
54854         Work around environments that (stupidly) ignore SIGALRM.
54855         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54856         before using alarm().
54857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54858         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54859         Reported by Ian Beckwith <ianb@erislabs.net>.
54860
54861         Produce autobuild blurb earlier in log.
54862         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54863
54864 2008-06-09  Jim Meyering  <meyering@redhat.com>
54865         and Ondřej Vašík  <ovasik@redhat.com>
54866
54867         utimens.c: correct kernel bug work-around
54868         Ondřej Vašík found that the invalid return value of 280 indicates
54869         failure, not success, and the kernel bug we're trying to work
54870         around affects not just the utimensat call, but also the fallback
54871         futimens call.
54872         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54873         not success.
54874         [HAVE_FUTIMENS]: Use the same work-around, here.
54875
54876 2008-06-09  Jim Meyering  <meyering@redhat.com>
54877
54878         add more guards around definition of ACE_-related code
54879         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54880         ALLOW and ACE_OWNER are also defined.
54881
54882 2008-06-08  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/acl-internal.h: Add me as co-author.
54885         * lib/file-has-acl.c: Likewise.
54886         * lib/set-mode-acl.c: Likewise.
54887         * lib/copy-acl.c: Likewise.
54888
54889 2008-06-08  Bruno Haible  <bruno@clisp.org>
54890
54891         Add support for AIX ACLs.
54892         * lib/acl-internal.h (acl_nontrivial): New declaration.
54893         * lib/file-has-acl.c (acl_nontrivial): New function.
54894         (file_has_acl): Add implementation using AIX 4 ACL API.
54895         * lib/set-mode-acl.c (qset_acl): Likewise.
54896         * lib/copy-acl.c (qcopy_acl): Likewise.
54897
54898 2008-06-08  Bruno Haible  <bruno@clisp.org>
54899
54900         Add support for HP-UX ACLs.
54901         * lib/acl-internal.h (acl_nontrivial): New declaration.
54902         * lib/file-has-acl.c (acl_nontrivial): New function.
54903         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54904         * lib/set-mode-acl.c (qset_acl): Likewise.
54905         * lib/copy-acl.c (qcopy_acl): Likewise.
54906
54907 2008-06-08  Bruno Haible  <bruno@clisp.org>
54908
54909         Add support for Cygwin ACLs.
54910         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54911         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54912         the chmod_or_fchmod call.
54913         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54914
54915 2008-06-08  Bruno Haible  <bruno@clisp.org>
54916
54917         Fix bug with setuid modes in Solaris 10+ code.
54918         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54919         succeeded, when the mode contains some special bits.
54920
54921 2008-06-08  Bruno Haible  <bruno@clisp.org>
54922
54923         Add support for Solaris 7..10 ACLs.
54924         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54925         declarations.
54926         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54927         functions.
54928         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54929         * lib/set-mode-acl.c (qset_acl): Likewise.
54930         * lib/copy-acl.c (qcopy_acl): Likewise.
54931
54932 2008-06-08  Bruno Haible  <bruno@clisp.org>
54933
54934         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54935         declaration.
54936         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54937         (acl_access_nontrivial): Remove MacOS X case.
54938         (file_has_acl): Use acl_extended_nontrivial.
54939         * lib/copy-acl.c (qcopy_acl): Likewise.
54940
54941 2008-06-08  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54944
54945 2008-06-08  Jim Meyering  <meyering@redhat.com>
54946
54947         * modules/acl (Maintainer): Add Bruno Haible.
54948
54949 2008-06-07  Bruno Haible  <bruno@clisp.org>
54950
54951         Improve support for Tru64 ACLs.
54952         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54953         ACL on OSF/1.
54954
54955 2008-06-07  Bruno Haible  <bruno@clisp.org>
54956
54957         Add support for MacOS X ACLs.
54958         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54959         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54960         * lib/set-mode-acl.c (qset_acl): Likewise.
54961         * lib/copy-acl.c (qcopy_acl): Likewise.
54962
54963 2008-06-07  Bruno Haible  <bruno@clisp.org>
54964
54965         Fix memory leak introduced on 2008-05-22.
54966         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54967         use.
54968
54969 2008-06-07  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54972         to construct an empty ACL.
54973
54974 2008-06-07  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54977         precisely.
54978         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54979
54980 2008-06-07  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54983         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54984
54985 2008-06-07  Bruno Haible  <bruno@clisp.org>
54986
54987         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54988         regardless of POSIX.
54989         * doc/posix-functions/_longjmp.texi: Likewise.
54990         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54991         SystemV platform in this case.
54992
54993 2008-06-06  Eric Blake  <ebb9@byu.net>
54994
54995         Document abort() bugs.
54996         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54997
54998         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54999         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55000         sigsetjmp.
55001         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55002         siglongjmp, but only as a macro.
55003         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55004         is obsolete.
55005         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55006
55007         Tweak documentation to cover cygwin argz bugs.
55008         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55009         argz bug fix; no code change needed since no cygwin releases
55010         occurred between the last fix and the bug being tested.
55011         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55012         module and recently fixed cygwin bugs.
55013         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55014         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55015         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55016         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55017         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55018         Likewise.
55019         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55020         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55021         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55022         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55023         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55024         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55025         Likewise.
55026
55027         Avoid gcc warning on cygwin.
55028         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55029         !ACL_NO_TRIVIAL]: Avoid unused variable.
55030
55031 2008-06-05  Eric Blake  <ebb9@byu.net>
55032
55033         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55034         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55035         git-version-gen fails to come up with a version.
55036         Reported by Simon Josefsson.
55037
55038 2008-06-05  Jim Meyering  <meyering@redhat.com>
55039             Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         utimens.c: work around a probable Linux kernel bug
55042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55043         appears to be a kernel bug that causes utimensat to return 280
55044         instead of 0, indicating success.
55045
55046 2008-06-04  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55049         2008-06-01 commit.
55050
55051 2008-06-04  Bruno Haible  <bruno@clisp.org>
55052
55053         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55054         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55055         (file_has_acl): Use it. Save errno afterwards.
55056         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55057
55058 2008-06-03  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55061         draft code. Simplify #ifs.
55062         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55063         Put Solaris code after POSIX-draft code. Fix comments regarding
55064         Solaris 10, HP-UX. Mention Cygwin.
55065         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55066
55067 2008-06-03  Eric Blake  <ebb9@byu.net>
55068
55069         Provide fallback for older kernels.
55070         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55071         Provide runtime fallback if kernel lacks support.
55072         Reported by Mike Frysinger.
55073
55074 2008-06-02  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55077         it exists.
55078
55079 2008-06-02  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55082         * lib/copy-acl.c (qcopy_acl): Update comment.
55083
55084 2008-06-02  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55087         like ACL APIs.
55088
55089 2008-06-02  Bruno Haible  <bruno@clisp.org>
55090
55091         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55092         * tests/test-set-mode-acl.sh: Likewise.
55093         * tests/test-copy-acl.sh: Likewise.
55094         * tests/test-copy-file.sh: Likewise.
55095
55096 2008-06-02  Bruno Haible  <bruno@clisp.org>
55097
55098         * tests/test-file-has-acl.sh: Remove unused code.
55099
55100 2008-06-01  Bruno Haible  <bruno@clisp.org>
55101
55102         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55103         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55104         messages.
55105         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55106
55107 2008-06-01  Bruno Haible  <bruno@clisp.org>
55108
55109         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55110         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55111         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55112         APIs.
55113         * modules/acl-tests (configure.ac): Remove tests now contained in
55114         m4/acl.m4.
55115
55116 2008-06-02  Jim Meyering  <meyering@redhat.com>
55117
55118         announce-gen: use a better key-server host name
55119         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55120         it may be more consistently reliable.  Suggested by Werner Koch
55121         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55122
55123 2008-06-01  Bruno Haible  <bruno@clisp.org>
55124
55125         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55126         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55127
55128 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55129
55130         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55131
55132 2008-06-01  Bruno Haible  <bruno@clisp.org>
55133
55134         New ACL tests.
55135         * tests/test-file-has-acl.sh: New file.
55136         * tests/test-file-has-acl.c: New file.
55137         * tests/test-set-mode-acl.sh: New file.
55138         * tests/test-set-mode-acl.c: New file.
55139         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55140         * tests/test-copy-acl.c: New file.
55141         * modules/acl-tests: New file, based on modules/copy-file-tests.
55142         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55143         (Depends-on): Add acl-tests.
55144         (configure.ac): Remove checks.
55145         (Makefile.am): Don't create test-sameacls program here any more.
55146
55147 2008-06-01  Bruno Haible  <bruno@clisp.org>
55148
55149         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55150         * tests/test-sameacls.c: Include progname.h.
55151         (main): Invoke set_program_name. Portability fixes for MacOS X,
55152         Solaris, HP-UX.
55153
55154 2008-06-01  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55157         function.
55158         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55159
55160 2008-06-01  Bruno Haible  <bruno@clisp.org>
55161
55162         * modules/rpmatch (Depends-on): Add strdup.
55163
55164 2008-06-01  Bruno Haible  <bruno@clisp.org>
55165
55166         * lib/pipe.c: Include unistd-safer.h.
55167         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55168         * modules/pipe (Depends-on): Add unistd-safer.
55169
55170 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55171
55172         * modules/autobuild (configure.ac): Call AB_INIT.
55173
55174 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55175
55176         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55177         Suggested by Bruno Haible <bruno@clisp.org>.
55178
55179 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55180
55181         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55182         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55183         <bruno@clisp.org>.
55184
55185 2008-05-29  Eric Blake  <ebb9@byu.net>
55186
55187         Prefer new POSIX 200x interfaces over futimesat.
55188         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55189         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55190         when available.
55191         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55192
55193 2008-05-28  Bruno Haible  <bruno@clisp.org>
55194
55195         * modules/stpcpy (License): Change to LGPLv2+.
55196         Requested by David Lutterkort <dlutter@redhat.com>.
55197
55198 2008-05-27  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55201         current mingw.
55202         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55203
55204 2008-05-27  Bruno Haible  <bruno@clisp.org>
55205
55206         * modules/iconv_open (Link): New section, from module 'iconv'.
55207         * modules/striconv (Link): Likewise.
55208         * modules/striconveh (Link): Likewise.
55209         * modules/xstriconv (Link): Likewise.
55210         * modules/unicodeio (Link): Likewise.
55211         * modules/propername (Link): Likewise.
55212         Reported by Jim Meyering.
55213
55214 2008-05-26  Jim Meyering  <meyering@redhat.com>
55215
55216         sha256: do not artificially restrict buffer length to be < 2^32
55217         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55218         uint32_t to size_t.
55219         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55220         to match.
55221
55222         avoid unaligned access errors, e.g., on sparc
55223         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55224         direct access through a possibly-unaligned uint64* pointer.
55225         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55226         direct access through a possibly-unaligned uint32* pointer.
55227         Prompted by this patch from Tom "spot" Callaway:
55228         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55229
55230         sha512.c: fix typo in comment
55231         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55232
55233 2008-05-25  Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55236         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55237         (Makefile.am): Update lib_SOURCES.
55238
55239 2008-05-25  Bruno Haible  <bruno@clisp.org>
55240
55241         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55242
55243 2008-05-25  Jim Meyering  <meyering@redhat.com>
55244
55245         useless-if-before-free: freed expr may have white-space differences
55246         * build-aux/useless-if-before-free: Recognize cases in which the
55247         freed expression differs from the tested one in embedded white
55248         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55249         $1 was used, so we can't make any regexp shy.  Improved tests now
55250         detect this.
55251
55252         useless-if-before-free: accept white space in the expression.
55253         * build-aux/useless-if-before-free: For now, any white space
55254         in the expression must be identical in the free argument.
55255
55256         useless-if-before-free: efficiency tweak
55257         * build-aux/useless-if-before-free: Make the expression-matching
55258         regexp "shy".
55259         Make the *outer* regexp shy, not the expr-matching one.
55260
55261         update code-in-comment to accept cast of free arg
55262         * build-aux/useless-if-before-free: Update regexp.
55263
55264 2008-05-25  Bruno Haible  <bruno@clisp.org>
55265
55266         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55267         * modules/copy-file-tests (Files, Makefile.am): Update.
55268         * tests/test-copy-file.c (func_test_copy): Update.
55269
55270 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55271
55272         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55273
55274 2008-05-23  Bruno Haible  <bruno@clisp.org>
55275
55276         Improve support for ACLs on OSF/1.
55277         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55278         Remove fallback for unknown flavors of ACLs.
55279
55280 2008-05-22  Bruno Haible  <bruno@clisp.org>
55281
55282         Add support for ACLs on OSF/1.
55283         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55284         replacements.
55285         (acl_free_text): New macro fallback.
55286         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55287         acl_free.
55288         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55289         acl_free_text function. Require AC_C_INLINE.
55290
55291 2008-05-22  Bruno Haible  <bruno@clisp.org>
55292
55293         Make copy_acl work on MacOS X 10.5.
55294         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55295         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55296         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55297         If MODE_INSIDE_ACL, don't assume that every system has the same text
55298         representation for ACLs as FreeBSD.
55299         * lib/copy-acl.c (copy_acl): Add support for platforms with
55300         !MODE_INSIDE_ACL.
55301         * lib/file-has-acl.c (file_has_acl): Likewise.
55302         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55303         FreeBSD, MacOS X, or IRIX, respectively.
55304
55305 2008-05-22  Bruno Haible  <bruno@clisp.org>
55306
55307         * lib/acl.h: Don't include <sys/acl.h>.
55308         (GETACLCNT): Move fallback to lib/acl-internal.h.
55309         * lib/acl-internal.h: Include <sys/acl.h> here.
55310         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55311
55312 2008-05-22  Bruno Haible  <bruno@clisp.org>
55313
55314         Split off copy_acl function to separate file.
55315         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55316         * lib/acl.c (copy_acl): Moved function to separate file.
55317         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55318         * modules/acl (Files): Add lib/copy-acl.c.
55319         (Makefiles.am): Augment lib_SOURCES.
55320
55321 2008-05-22  Bruno Haible  <bruno@clisp.org>
55322
55323         * modules/copy-file-tests: New file.
55324         * tests/test-copy-file.sh: New file.
55325         * tests/test-copy-file.c: New file.
55326         * tests/test-copy-file-sameacls.c: New file.
55327
55328 2008-05-22  Eric Blake  <ebb9@byu.net>
55329
55330         Avoid gcc warning.
55331         * tests/test-memcmp.c (main): Pass NULL indirectly.
55332
55333 2008-05-21  Bruno Haible  <bruno@clisp.org>
55334
55335         Add reference doc about ACLs.
55336         * doc/acl-resources.txt: New file.
55337         * doc/acl-cygwin.txt: New file.
55338
55339 2008-05-21  Bruno Haible  <bruno@clisp.org>
55340
55341         Avoid one more warning from gcc.
55342         * lib/vasnprintf.c (IF_LINT): Update comments.
55343         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55344
55345 2008-05-21  Jim Meyering  <meyering@redhat.com>
55346
55347         avoid a warning from gcc
55348         * lib/vasnprintf.c (IF_LINT): Define.
55349         (scale10_round_decimal_long_double):
55350         Use it to avoid a "may be used uninitialized" warning.
55351         (scale10_round_decimal_double): Likewise.
55352
55353 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55354
55355         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55356         declared.
55357
55358 2008-05-20  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55361         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55362
55363 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55364
55365         * modules/memcmp-tests: New file.
55366         * tests/test-memcmp.c: New file.
55367
55368 2008-05-19  Bruno Haible  <bruno@clisp.org>
55369
55370         * modules/propername (Notice, configure.ac): Put quoted "..." into
55371         --keyword option.
55372         * lib/propername.h: Update comments accordingly.
55373         Reported by Eric Blake.
55374
55375 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55376
55377         * modules/getpass-gnu (Depends-on): Add fseeko.
55378
55379 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55380
55381         * modules/base64-tests: New file.
55382
55383 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55384
55385         * lib/base64.c (base64_decode_ctx): If a decode context structure
55386         was passed in use it to ignore newlines.  If a context structure
55387         was _not_ passed in, continue to treat newlines as garbage (this
55388         is the historical behavior).  Formerly base64_decode.
55389         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55390         takes a decode context structure.
55391         * lib/base64.h (base64_decode): Macro for four-argument calls.
55392         (base64_decode_alloc): Likewise.
55393         * lib/base64.c (base64_decode_ctx): If a decode context structure
55394         was passed in use it to ignore newlines.  If a context structure
55395         was _not_ passed in, continue to treat newlines as garbage (this
55396         is the historical behavior).  Formerly base64_decode.
55397         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55398         takes a decode context structure.
55399         * lib/base64.h (base64_decode): Macro for four-argument calls.
55400         (base64_decode_alloc): Likewise.
55401
55402 2008-05-19  Jim Meyering  <meyering@redhat.com>
55403
55404         avoid a warning from gcc
55405         * lib/trim.c (IF_LINT): Define.
55406         (trim2): Use it to avoid a "may be used uninitialized" warning.
55407
55408         Fix doc typo.
55409         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55410
55411 2008-05-19  Bruno Haible  <bruno@clisp.org>
55412
55413         * doc/glibc-functions/getpass.texi: Document limits of other
55414         implementations.
55415
55416 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55417             Bruno Haible <bruno@clisp.org>
55418
55419         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55420
55421 2008-05-18  Bruno Haible  <bruno@clisp.org>
55422
55423         * modules/propername: New file, from GNU gettext.
55424         * lib/propername.h: New file, from GNU gettext.
55425         * lib/propername.c: New file, from GNU gettext.
55426         * MODULES.html.sh (Internationalization functions): Add propername.
55427
55428 2008-05-16  Jim Meyering  <meyering@redhat.com>
55429             Bruno Haible  <bruno@clisp.org>
55430
55431         Avoid some warnings from "gcc -Wshadow".
55432         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55433
55434 2008-05-15  Eric Blake  <ebb9@byu.net>
55435
55436         Extend previous patch to cygwin 1.7.0.
55437         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55438         fast implementation in cygwin >= 1.7.0.
55439         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55441
55442 2008-05-15  Bruno Haible  <bruno@clisp.org>
55443
55444         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55445         implementation in glibc >= 2.9.
55446         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55448
55449 2008-05-15  Bruno Haible  <bruno@clisp.org>
55450
55451         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55452         (Unicode string functions): Add unilbrk/*.
55453         Reported by Karl Berry.
55454
55455 2008-05-15  Eric Blake  <ebb9@byu.net>
55456
55457         Fix violation of <stdbool.h> replacement in regex.
55458         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55459         * lib/regexec.c (re_search_internal): Likewise.
55460         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55461
55462 2008-05-15  Jim Meyering  <meyering@redhat.com>
55463
55464         avoid distracting test output when git or cvs is not found
55465         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55466         * tests/test-vc-list-files-git.sh: Likewise.
55467
55468 2008-05-15  Eric Blake  <ebb9@byu.net>
55469
55470         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55471         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55472         glibc version.
55473         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55474         * doc/posix-functions/strstr.texi (strstr): Likewise.
55475         * lib/str-two-way.h (MAX): Sychronize with glibc.
55476
55477 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55478
55479         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55480         opr.ctx_type.
55481         (calc_first): Initialize constraint field.
55482         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55483         Fix grammar.
55484         (duplicate_node): Merge constraint field for all node types.
55485         (calc_eclosure_iter): Look at constraint field for all node types.
55486         * lib/regex_internal.c (create_cd_newstate): Don't look at
55487         opr.ctx_type.
55488
55489 2008-05-14  Bruno Haible  <bruno@clisp.org>
55490
55491         Help GCC to do better code generation.
55492         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55493         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55494         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55495         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55496         Declare with attribute 'malloc' if supported.
55497
55498 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55499
55500         use "echo STR|wc -c" rather than unportable "expr length STR"
55501         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55502         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55503
55504 2008-05-14  Jim Meyering  <meyering@redhat.com>
55505
55506         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55507         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55508         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55509         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55510         via Collin Lasse.
55511
55512 2008-05-14  Eric Blake  <ebb9@byu.net>
55513
55514         Avoid quadratic growth in gl_LIBSOURCES.
55515         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55516         Suggested by Bruno Haible.
55517
55518         Test xmemdup0.
55519         * modules/xmemdup0-tests: New file.
55520         * tests/test-xmemdup0.c: Likewise.
55521
55522 2008-05-13  Eric Blake  <ebb9@byu.net>
55523
55524         Split xmemdup0 into its own module.
55525         * modules/xmemdup0: New file.
55526         * lib/xmemdup0.h: Likewise.
55527         * lib/xmemdup0.c: Likewise.
55528         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55529         * lib/xalloc.h (xmemdup0): Remove.
55530         * lib/xmalloc.c (xmemdup0): Likewise.
55531
55532 2008-05-13  Eric Blake  <ebb9@byu.net>
55533             Bruno Haible  <bruno@clisp.org>
55534
55535         Reduce number of forks required during autoconf.
55536         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55537         and gl_LIBSOURCES_DIR.
55538         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55539         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55540         m4_syscmd per file.
55541         <m4_foreach_w>: Move...
55542         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55543
55544 2008-05-13  Eric Blake  <ebb9@byu.net>
55545
55546         * gnulib-tool: Fix various comment typos.
55547
55548 2008-05-12  Bruno Haible  <bruno@clisp.org>
55549
55550         Tailor the linebreaking algorithm.
55551         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55552
55553 2008-05-12  Bruno Haible  <bruno@clisp.org>
55554
55555         Update to Unicode 5.0.0.
55556         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55557         LBP_JV, LBP_JT. Redistribute values.
55558         (unilbrk_table): Change size.
55559         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55560         Unicode TR#14 rev. 22.
55561         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55562         LBP_JV, LBP_JT. Redistribute values.
55563         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55564         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55565         Update.
55566         * lib/unilbrk/lbrkprop1.h: Regenerated.
55567         * lib/unilbrk/lbrkprop2.h: Regenerated.
55568         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55569         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55570         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55571         Likewise.
55572         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55573         Likewise.
55574         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55575         result.
55576         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55577         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55578         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55579         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55580         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55581         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55582
55583 2008-05-11  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55586
55587 2008-05-11  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55590         * modules/unilbrk/gen-lbrk: New file.
55591
55592 2008-05-11  Bruno Haible  <bruno@clisp.org>
55593
55594         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55595         * m4/sha512.m4 (gl_SHA512): Likewise.
55596
55597 2008-05-11  Jim Meyering  <meyering@redhat.com>
55598
55599         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55600         * modules/crypto/sha256: New file.
55601         * modules/crypto/sha512: Likewise.
55602         * lib/sha256.c: Likewise.
55603         * lib/sha256.h: Likewise.
55604         * lib/sha512.c: Likewise.
55605         * lib/sha512.h: Likewise.
55606         * lib/u64.h: Likewise.
55607         * m4/sha256.m4: Likewise.
55608         * m4/sha512.m4: Likewise.
55609         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55610
55611 2008-05-10  Bruno Haible  <bruno@clisp.org>
55612
55613         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55614         (Input/Output <stdio.h>): Add xprintf.
55615         (Signal handling <signal.h>): Add strsignal.
55616         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55617         (Core language properties): Add func.
55618         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55619         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55620         strings.
55621         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55622         (Input/output): New section.
55623         (File system functions): Add openat-die, stat-macros.
55624         (Networking functions): Add sockets.
55625         (Unicode string functions): Add unictype/*.
55626         (Support for building libraries and executables): Add gperf.
55627         (Support for building documentation): Add agpl-3.0.
55628         (Misc): Add nocrash.
55629
55630 2008-05-10  Bruno Haible  <bruno@clisp.org>
55631
55632         * modules/unictype/gen-ctype: New file.
55633
55634 2008-05-10  Jim Meyering  <meyering@redhat.com>
55635
55636         Make chdir-safer.c more efficient on a system with no symlinks.
55637         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55638         also if ELOOP is zero.  Suggested by Bruno Haible.
55639
55640         Make chdir-safer.c slightly safer.
55641         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55642         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55643
55644         Avoid compile failure on systems without ELOOP (like mingw).
55645         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55646         Reported by Bruno Haible.
55647
55648 2008-05-10  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55651         (is_utf8_encoding): Use a case-insensitive comparison.
55652         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55653         streq.
55654
55655 2008-05-10  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55658         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55659         * lib/unilbrk/ulc-common.h (iconv_string_length,
55660         iconv_string_keeping_offsets): Remove declarations.
55661         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55662         Don't include <iconv.h>, streq.h, xsize.h.
55663         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55664         conversion.
55665         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55666         <iconv.h>, streq.h, xsize.h.
55667         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55668         conversion.
55669         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55670         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55671         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55672         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55673
55674 2008-05-10  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55677         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55678
55679         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55680         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55681
55682         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55683         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55684
55685         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55686         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55687
55688         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55689         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55690
55691         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55692         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55693
55694         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55695         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55696
55697         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55698         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55699
55700 2008-05-10  Bruno Haible  <bruno@clisp.org>
55701
55702         Split up 'linebreak' module.
55703         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55704         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55705         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55706         modifications.
55707         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55708         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55709         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55710         lib/linebreak.c.
55711         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55712         lib/linebreak.c.
55713         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55714         lib/linebreak.c.
55715         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55716         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55717         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55718         lib/linebreak.c.
55719         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55720         lib/linebreak.c.
55721         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55722         lib/linebreak.c.
55723         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55724         lib/linebreak.c.
55725         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55726         lib/linebreak.c.
55727         * modules/unilbrk/base: New file.
55728         * modules/unilbrk/tables: New file.
55729         * modules/unilbrk/u8-possible-linebreaks: New file.
55730         * modules/unilbrk/u16-possible-linebreaks: New file.
55731         * modules/unilbrk/u32-possible-linebreaks: New file.
55732         * modules/unilbrk/ulc-common: New file.
55733         * modules/unilbrk/ulc-possible-linebreaks: New file.
55734         * modules/unilbrk/u8-width-linebreaks: New file.
55735         * modules/unilbrk/u16-width-linebreaks: New file.
55736         * modules/unilbrk/u32-width-linebreaks: New file.
55737         * modules/unilbrk/ulc-width-linebreaks: New file.
55738         * lib/linebreak.h: Remove file.
55739         * lib/linebreak.c: Remove file.
55740         * m4/linebreak.m4: Remove file.
55741         * modules/linebreak: Remove file.
55742         * NEWS: Mention the changes.
55743
55744 2008-05-09  Eric Blake  <ebb9@byu.net>
55745
55746         Add xmemdup0.
55747         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55748         implementation.
55749         * lib/xmalloc.c (xmemdup0): New C implementation.
55750
55751 2008-05-08  Bruno Haible  <bruno@clisp.org>
55752
55753         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55754
55755 2008-05-07  Eric Blake  <ebb9@byu.net>
55756
55757         Support cross-compilation of <wctype.h>.
55758         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55759         AC_CACHE_CHECK.
55760
55761 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55762
55763         * build-aux/vc-list-files: Add support for bzr.
55764
55765 2008-05-03  Jim Meyering  <meyering@redhat.com>
55766
55767         avoid failed assertion with tight malloc
55768         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55769
55770 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55771
55772         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55773         are needed from arpa/inet.h.
55774         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55775         Reported by Bruno Haible.
55776
55777 2008-05-02  Jim Meyering  <meyering@redhat.com>
55778
55779         avoid compilation error on FreeBSD 6
55780         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55781
55782 2008-05-01  Jim Meyering  <meyering@redhat.com>
55783
55784         useless-if-before-free: correct --help's exit status description
55785         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55786         for one or more matches, etc.  Reported by Bruno Haible.
55787
55788         vc-list-files: make the stand-alone gnulib test work
55789         * modules/vc-list-files-tests (configure.ac):
55790         Define and AC_SUBST abs_aux_dir.
55791         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55792         $(abs_top_srcdir) to each script and having each of them
55793         duplicate the work of setting PATH, set PATH here, using
55794         the new variable, abs_aux_dir instead.
55795         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55796         * tests/test-vc-list-files-git.sh: Likewise.
55797         Reported by Bruno Haible.
55798
55799 2008-05-01  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55802         reallocation. Rename 'done' to 'found_delimiter'.
55803
55804 2008-05-01  Jim Meyering  <meyering@redhat.com>
55805
55806         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55807         * build-aux/vc-list-files: Use `...`, not $(...).
55808
55809 2008-04-30  Jim Meyering  <meyering@redhat.com>
55810
55811         add tests for vc-list-files
55812         * modules/vc-list-files-tests: New module.
55813         * tests/test-vc-list-files-cvs.sh: New file.
55814         * tests/test-vc-list-files-git.sh: New file.
55815
55816         avoid a warning from gcc
55817         * lib/getndelim2.c (IF_LINT): Define.
55818         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55819
55820         vc-list-files: work properly with build-aux/cvsu, too
55821         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55822         to all cvs-based clauses.
55823
55824         vc-list-files: work properly in the CVS+awk case, too
55825         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55826
55827         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55828         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55829         take more than one file argument, so .  Add quotes, just in case $dir
55830         ever contains a shell meta-character.  Prompted by Soren Hansen in
55831         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55832
55833 2008-04-29  Eric Blake  <ebb9@byu.net>
55834
55835         Optimize getndelim2 to use block operations when possible.
55836         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55837         freadseek, and memchr2.
55838         * lib/getndelim2.c (getndelim2): Use them for block reads.
55839
55840 2008-04-29  Bruno Haible  <bruno@clisp.org>
55841
55842         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55844         * modules/inet_ntop (Depends-on): Add extensions.
55845         * modules/inet_pton (Depends-on): Likewise.
55846         Reported by Simon Josefsson.
55847
55848 2008-04-29  Jim Meyering  <meyering@redhat.com>
55849
55850         When the is more than one match in a block, match all of them.
55851         * build-aux/useless-if-before-free: Iterate through each block
55852         until there are no more matches.
55853
55854         Fix broken useless-if-before-free script.
55855         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55856         the expression to match cast of argument to free-like function.
55857
55858 2008-04-29  Eric Blake  <ebb9@byu.net>
55859
55860         Use new header.
55861         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55862
55863 2008-04-29  Jim Meyering  <meyering@redhat.com>
55864
55865         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55866         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55867         by gnulib to exist and to declare e.g., inet_ntop.
55868         Don't include "inet_ntop.h", now removed.
55869
55870         * m4/arpa_inet_h.m4: Remove trailing blanks.
55871
55872 2008-04-29  Eric Blake  <ebb9@byu.net>
55873
55874         Silence valgrind on safe reads beyond potential array bounds.
55875         * lib/rawmemchr.valgrind: New file.
55876         * lib/strchrnul.valgrind: Likewise.
55877         * modules/rawmemchr (Files): Distribute new file.
55878         * modules/strchrnul (Files): Likewise.
55879         Suggested by Bruno Haible.
55880
55881 2008-04-29  Bruno Haible  <bruno@clisp.org>
55882
55883         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55884         (inet_ntop, inet_pton): Change portability warning's wording.
55885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55886         Invoke gl_CHECK_NEXT_HEADERS.
55887         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55888         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55889         set ARPA_INET_H.
55890         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55891         * modules/arpa_inet (Description): No longer only for systems that
55892         lack it.
55893         (Depends-on): Add include_next.
55894         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55895         HAVE_ARPA_INET_H.
55896
55897 2008-04-29  Jim Meyering  <meyering@redhat.com>
55898
55899         * modules/mkdir (License): Re-license as LGPLv2+.
55900
55901 2008-04-29  Bruno Haible  <bruno@clisp.org>
55902
55903         * modules/rawmemchr (Maintainer): Set to Eric.
55904         * modules/strchrnul (Maintainer): Likewise.
55905
55906 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55907
55908         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55909         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55910
55911         * modules/arpa_inet (arpa/inet.h): Use them.
55912
55913 2008-04-28  Eric Blake  <ebb9@byu.net>
55914
55915         Test getndelim2.
55916         * modules/getndelim2-tests: New file.
55917         * tests/test-getndelim2.c: Likewise.
55918         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55919         stream.
55920         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55921
55922         * MODULES.html.sh: Document new module.
55923
55924 2008-04-20  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/c-stack.c (die): Use raise.
55927         * modules/c-stack (Depends-on): Add raise.
55928
55929 2008-04-28  Bruno Haible  <bruno@clisp.org>
55930
55931         Expect rpmatch to be declared.
55932         * lib/yesno.c (rpmatch): Remove declaration.
55933
55934         Declare rpmatch.
55935         * lib/stdlib.in.h (rpmatch): New declaration.
55936         * lib/rpmatch.c: Include <stdlib.h> first.
55937         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55938         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55940         HAVE_RPMATCH.
55941         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55943         (Include): Set to <stdlib.h>.
55944         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55945         HAVE_RPMATCH.
55946         * NEWS: Document the change.
55947
55948 2008-04-28  Bruno Haible  <bruno@clisp.org>
55949
55950         Change rpmatch to use nl_langinfo when appropriate.
55951         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55952         (N_): New macro.
55953         (localized_pattern): New function/macro.
55954         (try): Remove match, nomatch arguments. Copy the pattern into safe
55955         memory before caching it.
55956         (rpmatch): Use localized_pattern. Add translator comments.
55957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55958         Suggested by Eric Blake.
55959         * modules/rpmatch (Depends-on): Add stdbool.
55960
55961 2008-04-28  Eric Blake  <ebb9@byu.net>
55962
55963         Add rawmemchr module, matching glibc.
55964         * modules/string (Makefile.am): New indicator.
55965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55966         * lib/string.in.h (rawmemchr): Declare when appropriate.
55967         * modules/rawmemchr: New file.
55968         * m4/rawmemchr.m4: Likewise.
55969         * lib/rawmemchr.c: Likewise.
55970         * modules/rawmemchr-tests: Likewise.
55971         * tests/test-rawmemchr.c: Likewise.
55972         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55973         module.
55974         * modules/strchrnul (Depends-on): Add rawmemchr.
55975         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55976
55977         Whitespace cleanup.
55978         * tests/test-strchrnul.c: Reindent.
55979         * lib/strchrnul.c: Likewise.
55980
55981         Optimize and test strchrnul.
55982         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55983         * modules/strchrnul-tests: New file.
55984         * tests/test-strchrnul.c: Likewise.
55985
55986         Remove intprops dependency.
55987         * modules/memchr (Depends-on): Remove intprops.
55988         * modules/memrchr (Depends-on): Likewise.
55989         * modules/memchr2 (Depends-on): Likewise.
55990         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55991         * lib/memrchr.c (__memrchr): Likewise.
55992         * lib/memrchr2.c (memchr2): Likewise.
55993         Reported by Simon Josefsson.
55994
55995 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55996
55997         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55998         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55999
56000 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56001
56002         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56003
56004         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56005
56006         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56007
56008         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56009         declarations.
56010         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56011
56012         * m4/inet_pton.m4: Don't check for header files.
56013
56014         * m4/inet_ntop.m4: Don't check for header files.
56015
56016 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56017
56018         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56019         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56020         trigger for cygwin).
56021         Reported by Bruno Haible  <bruno@clisp.org>.
56022
56023 2008-04-28  Bruno Haible  <bruno@clisp.org>
56024
56025         * doc/posix-functions/strdup.texi: Mention mingw problem.
56026
56027 2008-04-27  Bruno Haible  <bruno@clisp.org>
56028
56029         * modules/stat-time-tests (Depends-on): Add sleep.
56030         * tests/test-stat-time.c (force_unlink): New function.
56031         (cleanup): Use it.
56032         (test_mtime): Remove the ctime related tests.
56033         (test_ctime): New function, containing the ctime related tests.
56034         (main): Call test_ctime, except on native Windows platforms.
56035
56036 2008-04-27  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/rpmatch.c (rpmatch): Add some comments.
56039         Reported by James Youngman <jay@gnu.org>.
56040
56041 2008-04-27  Bruno Haible  <bruno@clisp.org>
56042
56043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56044         quiet NaNs.
56045
56046 2008-04-27  Bruno Haible  <bruno@clisp.org>
56047
56048         Make test-yesno.sh work on mingw.
56049         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56050         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56051         (main): Set stdin to binary mode.
56052         * modules/yesno-tests (Depends-on): Add binary-io.
56053
56054 2008-04-27  Bruno Haible  <bruno@clisp.org>
56055
56056         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56057         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56058         argument that lie outside the IEEE 854 domain.
56059         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56060         (gl_ISFINITE): Use it.
56061         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56062
56063 2008-04-27  Bruno Haible  <bruno@clisp.org>
56064
56065         Allow local renaming in config.h.
56066         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56067
56068 2008-04-27  Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/memchr.c (__memchr): Change type of 'i'.
56071         * lib/memchr2.c (memchr2): Likewise.
56072
56073 2008-04-26  Eric Blake  <ebb9@byu.net>
56074         and Bruno Haible  <bruno@clisp.org>
56075
56076         Optimize and test memrchr.
56077         * modules/memrchr (Depends-on): Add intprops.
56078         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56079         * modules/memrchr-tests: New file.
56080         * tests/test-memrchr.c: New file.
56081
56082 2008-04-26  Bruno Haible  <bruno@clisp.org>
56083
56084         Add tentative support for DragonFly BSD.
56085         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56086         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56087         fp.
56088         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56089         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56090         * lib/fpurge.c (fpurge): Likewise.
56091         * lib/freadable.c (freaadable): Likewise.
56092         * lib/freadahead.c (freadahead): Likewise.
56093         * lib/freading.c (freading): Likewise.
56094         * lib/freadptr.c (freadptr): Likewise.
56095         * lib/freadseek.c (freadptrinc): Likewise.
56096         * lib/fseeko.c (fseeko): Likewise.
56097         * lib/fseterr.c (fseterr): Likewise.
56098         * lib/fwritable.c (fwritable): Likewise.
56099         * lib/fwriting.c (fwriting): Likewise.
56100
56101 2008-04-26  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/stdio-impl.h: New file.
56104         * lib/fbufmode.c: Include stdio-impl.h.
56105         (fbufmode): Use fp_, remove redundant #defines.
56106         * lib/fflush.c: Include stdio-impl.h.
56107         (clear_ungetc_buffer): Remove redundant #defines.
56108         * lib/fpurge.c: Include stdio-impl.h.
56109         (fpurge): Remove redundant #defines.
56110         * lib/freadable.c: Include stdio-impl.h.
56111         (freadable): Remove redundant #defines.
56112         * lib/freadahead.c: Include stdio-impl.h.
56113         (freadahead): Remove redundant #defines.
56114         * lib/freading.c: Include stdio-impl.h.
56115         (freading): Remove redundant #defines.
56116         * lib/freadptr.c: Include stdio-impl.h.
56117         (freadptr): Remove redundant #defines.
56118         * lib/freadseek.c: Include stdio-impl.h.
56119         (freadptrinc): Remove redundant #defines.
56120         * lib/fseeko.c: Include stdio-impl.h.
56121         (rpl_fseeko): Remove redundant #defines.
56122         * lib/fseterr.c: Include stdio-impl.h.
56123         (fseterr): Remove redundant #defines.
56124         * lib/fwritable.c: Include stdio-impl.h.
56125         (fwritable: Remove redundant #defines.
56126         * lib/fwriting.c: Include stdio-impl.h.
56127         (fwriting): Remove redundant #defines.
56128         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56129         * modules/fflush (Files): Likewise.
56130         * modules/fpurge (Files): Likewise.
56131         * modules/freadable (Files): Likewise.
56132         * modules/freadahead (Files): Likewise.
56133         * modules/freading (Files): Likewise.
56134         * modules/freadptr (Files): Likewise.
56135         * modules/freadseek (Files): Likewise.
56136         * modules/fseeko (Files): Likewise.
56137         * modules/fseterr (Files): Likewise.
56138         * modules/fwritable (Files): Likewise.
56139         * modules/fwriting (Files): Likewise.
56140
56141 2008-04-26  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56144         restore_seek_optimization, update_fpos_cache): New functions, extracted
56145         from rpl_fflush.
56146         (rpl_fflush): Use them.
56147         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56148         (gl_REPLACE_FFLUSH): Use it.
56149
56150 2008-04-26  Bruno Haible  <bruno@clisp.org>
56151
56152         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56153         on Solaris.
56154         * tests/test-xstrtoimax.sh: Likewise.
56155         * tests/test-xstrtoumax.sh: Likewise.
56156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56157
56158 2008-04-26  Bruno Haible  <bruno@clisp.org>
56159
56160         * modules/memchr-tests: New file.
56161         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56162
56163 2008-04-26  Eric Blake  <ebb9@byu.net>
56164             Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/memchr.c: Include intprops.h.
56167         (__memchr): Optimize parallel detection of matching bytes. Rename local
56168         variables. Add explanatory comments.
56169
56170 2008-04-26  Bruno Haible  <bruno@clisp.org>
56171
56172         Fix module 'memchr', broken since 2000-10-28.
56173         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56174
56175 2008-04-26  Bruno Haible  <bruno@clisp.org>
56176
56177         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56178         comments.
56179
56180 2008-04-25  Eric Blake  <ebb9@byu.net>
56181
56182         Use native fstatat on cygwin 1.7.0.
56183         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56184         first.
56185
56186 2008-04-23  Eric Blake  <ebb9@byu.net>
56187
56188         Improve memchr2 performance.
56189         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56190         NUL bytes.
56191         * modules/memchr2 (Depends-on): Use intprops.h.
56192
56193 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56194
56195         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56196         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56197         <blp@cs.stanford.edu>.
56198
56199 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56200
56201         * lib/arpa_inet.in.h: New file.
56202
56203         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56204         (Makefile.am): Sed in substitute header file.
56205
56206         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56207         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56208
56209         * modules/inet_ntop (configure.ac): Use
56210         gl_ARPA_INET_MODULE_INDICATOR.
56211
56212         * modules/inet_pton (configure.ac): Use
56213         gl_ARPA_INET_MODULE_INDICATOR.
56214
56215 2008-04-22  Jim Meyering  <meyering@redhat.com>
56216
56217         * modules/verify (License): Re-license as LGPLv2+.
56218
56219 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56220
56221         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56222         parameter to void* as per POSIX standard (MinGW uses char*).
56223
56224 2008-04-21  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56227         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56228         Define to replacements if REPLACE_ISWCNTRL is 1.
56229         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56230         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56231         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56232         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56233         what it fixes.
56234         * doc/posix-functions/iswalpha.texi: Likewise.
56235         * doc/posix-functions/iswblank.texi: Likewise.
56236         * doc/posix-functions/iswcntrl.texi: Likewise.
56237         * doc/posix-functions/iswdigit.texi: Likewise.
56238         * doc/posix-functions/iswgraph.texi: Likewise.
56239         * doc/posix-functions/iswlower.texi: Likewise.
56240         * doc/posix-functions/iswprint.texi: Likewise.
56241         * doc/posix-functions/iswpunct.texi: Likewise.
56242         * doc/posix-functions/iswspace.texi: Likewise.
56243         * doc/posix-functions/iswupper.texi: Likewise.
56244         * doc/posix-functions/iswxdigit.texi: Likewise.
56245         Reported by Alain Guibert.
56246
56247 2008-04-21  Bruno Haible  <bruno@clisp.org>
56248
56249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56250         Patch by Alain Guibert.
56251
56252 2008-04-21  Bruno Haible  <bruno@clisp.org>
56253
56254         Fix test failures on mingw.
56255         * tests/test-xstrtol.c (print_no_progname): New function.
56256         (main): Install it in error_print_progname hook.
56257         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56258         * tests/test-xstrtoimax.sh: Likewise.
56259         * tests/test-xstrtoumax.sh: Likewise.
56260
56261 2008-04-21  Bruno Haible  <bruno@clisp.org>
56262
56263         Fix test failure on mingw.
56264         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56265
56266 2008-04-21  Bruno Haible  <bruno@clisp.org>
56267
56268         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56269         Actually assign a value.
56270
56271 2008-04-20  Bruno Haible  <bruno@clisp.org>
56272
56273         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56274         take 2.
56275         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56276         'canonicalize-lgpl' module is also used.
56277         * lib/canonicalize-lgpl.c: Undo last change.
56278         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56279
56280 2008-04-20  Bruno Haible  <bruno@clisp.org>
56281
56282         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56283         config.h. Provide _mkdir based fallback for mingw.
56284         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56285         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56286         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56287         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56288         rather than defining mkdir in config.h.
56289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56290         (gl_SYS_STAT_H_DEFAULTS): New macro.
56291         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56292         HAVE_IO_H any more.
56293         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56294         HAVE_DECL_MKDIR and HAVE_IO_H.
56295
56296 2008-04-20  Bruno Haible  <bruno@clisp.org>
56297
56298         * lib/isapipe.c: Port to native Windows platforms.
56299
56300 2008-04-20  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56303
56304 2008-04-21  Eric Blake  <ebb9@byu.net>
56305
56306         Work around preprocessors that don't handle UINTMAX_MAX.
56307         * lib/memchr2.c (memchr2): Avoid embedded #if.
56308         Reported by Alain Guibert, fix suggested by Bruno Haible.
56309
56310 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56311
56312         * doc/posix-functions/strftime.texi (strftime): Explain better
56313         Windows incompatibility.  Suggested by Micah Cowan
56314         <micah@cowan.name>.
56315
56316 2008-04-20  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56319         unistr/u8-mblen.
56320
56321 2008-04-20  Bruno Haible  <bruno@clisp.org>
56322
56323         Fix test failure on platforms with non-GNU iconv.
56324         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56325         (U_TO_U8): Use it, rather than u16_to_u8.
56326         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56327         units at the end of the input string.
56328         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56329
56330 2008-04-20  Bruno Haible  <bruno@clisp.org>
56331
56332         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56333         when the resulting length is 0.
56334         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56335
56336 2008-04-20  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56339         works.
56340         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56341
56342 2008-04-20  Bruno Haible  <bruno@clisp.org>
56343
56344         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56345         * modules/tsearch-tests (configure.ac): Test for initstate function.
56346
56347 2008-04-20  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56350         for nlink_t if missing.
56351         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56352
56353 2008-04-19  Bruno Haible  <bruno@clisp.org>
56354
56355         Work around snprintf bug on Linux libc5.
56356         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56358         gl_SNPRINTF_SIZE1.
56359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56360         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56361         that test failed.
56362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56363         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56364         * modules/snprintf (Files): Add m4/printf.m4.
56365         * modules/vsnprintf (Files): Likewise.
56366         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56367         * doc/posix-functions/vsnprintf.texi: Likewise.
56368
56369 2008-04-19  Bruno Haible  <bruno@clisp.org>
56370
56371         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56372         from 0.0058 to less than 10^-7.
56373
56374 2008-04-19  Bruno Haible  <bruno@clisp.org>
56375
56376         Fix rounding when a precision is given.
56377         * lib/vasnprintf.c (is_borderline): New function.
56378         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56379         9...9x.
56380         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56381         %e, %g.
56382         * tests/test-vasprintf-posix.c (test_function): Likewise.
56383         * tests/test-snprintf-posix.h (test_function): Likewise.
56384         * tests/test-sprintf-posix.h (test_function): Likewise.
56385         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56386         * tests/test-printf-posix.h (test_function): Likewise.
56387         * tests/test-printf-posix.output: Update.
56388         Reported by John Darrington <john@darrington.wattle.id.au> via
56389         Ben Pfaff <blp@cs.stanford.edu>.
56390
56391 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56392
56393         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56394         Suggested by Bruno Haible <bruno@clisp.org>.
56395
56396 2008-04-17  Bruno Haible  <bruno@clisp.org>
56397
56398         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56399         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56400         implementation.
56401         Patch by Bruce Merry <bmerry@gmail.com>.
56402
56403 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56404
56405         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56406         doesn't work under Windows.
56407
56408 2008-04-16  Bruno Haible  <bruno@clisp.org>
56409
56410         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56411         New macros.
56412         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56413         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56414         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56415         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56416         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56417         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56418         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56419         macros.
56420         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56421         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56422         Northern Sotho, Uighur.
56423
56424 2008-04-16  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56427         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56428         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56429         Reported by Daniel Bergström <daniel@octocode.com>.
56430
56431 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56432             Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56435         function.
56436         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56437         New functions, mostly extracted from gl_locale_name_default.
56438         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56439
56440 2008-04-16  Eric Blake  <ebb9@byu.net>
56441
56442         Adjust strtod detection to catch glibc 2.7 bug.
56443         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56444         Reported by John Gatewood Ham.
56445
56446 2008-04-16  Bruno Haible  <bruno@clisp.org>
56447
56448         Add tentative support for Linux libc5.
56449         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56450         * lib/fpurge.c (fpurge): Likewise.
56451         * lib/freadable.c (freadable): Likewise.
56452         * lib/freadahead.c (freadahead): Likewise.
56453         * lib/freading.c (freading): Likewise.
56454         * lib/freadptr.c (freadptr): Likewise.
56455         * lib/freadseek.c (freadptrinc): Likewise.
56456         * lib/fseeko.c (rpl_fseeko): Likewise.
56457         * lib/fseterr.c (fseterr): Likewise.
56458         * lib/fwritable.c (fwritable): Likewise.
56459         * lib/fwriting.c (fwriting): Likewise.
56460         Reported by Alain Guibert <alguibert+bts@free.fr>.
56461
56462 2008-04-15  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/mathl (configure.ac): Define module indicator.
56465
56466 2008-04-15  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/logl.c (logl): Remove unused variables.
56469
56470 2008-04-15  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56473         fails.
56474
56475 2008-04-15  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/trim.c (trim2): Fix argument of isspace() macro.
56478
56479 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56480
56481         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56482         to 0.
56483         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56484
56485 2008-04-14  Bruno Haible  <bruno@clisp.org>
56486
56487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56488         AC_LANG_PROGRAM argument.
56489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56490         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56492         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56493         * m4/math_h.m4 (gl_MATH_H): Likewise.
56494         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56496         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56497         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56498         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56499         * m4/regex.m4 (gl_REGEX): Likewise.
56500         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56501         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56504         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56505         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56508
56509 2008-04-14  Jim Meyering  <meyering@redhat.com>
56510
56511         test-strtod: fix typos: s/abs/fabs/
56512         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56513
56514 2008-04-13  Bruno Haible  <bruno@clisp.org>
56515
56516         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56517         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56518         module is also used and while not building the reloc-wrapper.
56519
56520 2008-04-13  Bruno Haible  <bruno@clisp.org>
56521
56522         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56523
56524 2008-04-13  Bruno Haible  <bruno@clisp.org>
56525
56526         Fix AIX compilation failure introduced on 2008-04-02.
56527         * tests/test-frexp.c (exp): Undefine before redefining.
56528         * tests/test-frexpl.c (exp): Likewise.
56529
56530 2008-04-13  Bruno Haible  <bruno@clisp.org>
56531
56532         Work around a HP-UX stdio bug.
56533         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56534         * tests/test-ftello.c (main): Likewise.
56535         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56536         * doc/posix-functions/ftello.texi: Likewise.
56537
56538 2008-04-13  Bruno Haible  <bruno@clisp.org>
56539
56540         Make test-signbit pass on HP-UX/hppa.
56541         * tests/test-signbit.c (minus_zerol): New variable.
56542         (test_signbitl): Use it.
56543
56544 2008-04-13  Bruno Haible  <bruno@clisp.org>
56545
56546         Make truncl work on OSF/1 4.0.
56547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56548         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56549         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56551         HAVE_DECL_TRUNCL.
56552         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56553         HAVE_DECL_TRUNCL.
56554         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56555
56556 2008-04-13  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56559
56560 2008-04-13  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56563         expression, so as to avoid HP-UX 11 cc compiler bug.
56564
56565 2008-04-13  Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56568
56569 2008-04-13  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/git-merge-changelog.c: Remove empty declaration outside of
56572         functions.
56573
56574 2008-04-13  Bruno Haible  <bruno@clisp.org>
56575
56576         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56577
56578 2008-04-13  Bruno Haible  <bruno@clisp.org>
56579
56580         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56581         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56583         also if it exists but lacks definitions of the SHUT_* macros.
56584         * modules/sys_socket (Description): Update.
56585         Reported by Elbert Pol <e.pol@chello.nl>.
56586
56587 2008-04-13  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/localcharset.c (OS2): Don't redefine if already defined.
56590         Reported by Elbert Pol <e.pol@chello.nl>.
56591
56592 2008-04-13  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/binary-io.h [__EMX__]: Include <io.h>.
56595         Reported by Elbert Pol <e.pol@chello.nl>.
56596
56597 2008-04-12  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/fpucw.h: Enable the definitions also for x86_64.
56600         Needed for NetBSD/x86_64.
56601         Reported by Thomas Klausner <tk@giga.or.at>.
56602
56603 2008-04-12  Bruno Haible  <bruno@clisp.org>
56604
56605         * tests/test-strtod.c: Include isnand.h.
56606         (main): Use isnand instead of isnan.
56607         Reported by Jim Meyering.
56608
56609 2008-04-12  Bruno Haible  <bruno@clisp.org>
56610
56611         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56613
56614 2008-04-12  Jim Meyering  <meyering@redhat.com>
56615
56616         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56617
56618 2008-04-12  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56621         Reported by Elbert Pol <e.pol@chello.nl>.
56622
56623 2008-04-12  Eric Blake  <ebb9@byu.net>
56624
56625         Work around Solaris 10 math.h bug.
56626         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56627         (gl_MATH_H_DEFAULTS): Set up default.
56628         * modules/math (Makefile.am): Replace new indicators.
56629         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56630         * tests/test-math.c (main): Test this.
56631         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56632         * doc/posix-headers/math.texi (math.h): Mention bug.
56633         Reported by Nelson H. F. Beebe and Jim Meyering.
56634
56635 2008-04-11  Bruno Haible  <bruno@clisp.org>
56636
56637         Adapt to future versions of Apple GCC.
56638         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56639         Reported by Peter O'Gorman <peter@pogma.com>.
56640
56641 2008-04-11  Bruno Haible  <bruno@clisp.org>
56642
56643         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56644
56645 2008-04-11  Bruno Haible  <bruno@clisp.org>
56646
56647         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56648
56649         * modules/getaddrinfo-tests (Makefile.am): Define
56650         test_getaddrinfo_LDADD.
56651
56652 2008-04-11  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56655         (init): Fix syntax error.
56656         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56657         is declared.
56658
56659 2008-04-11  Bruno Haible  <bruno@clisp.org>
56660
56661         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56662         * modules/glob (Depends-on): Add stdbool.
56663
56664 2008-04-11  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/trim.c: Include <string.h>.
56667
56668 2008-04-11  Eric Blake  <ebb9@byu.net>
56669
56670         Avoid compile failure on OS/2.
56671         * lib/regex_internal.h (internal_function): Disable optimization
56672         on OS/2 (__EMX__), where it caused compiler error.
56673         Reported by Elbert Pol.
56674
56675 2008-04-11  Bruno Haible  <bruno@clisp.org>
56676
56677         Flush the standard error stream before aborting. Needed on mingw.
56678         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56679         * tests/test-array_list.c (ASSERT): Likewise.
56680         * tests/test-array_oset.c (ASSERT): Likewise.
56681         * tests/test-avltree_list.c (ASSERT): Likewise.
56682         * tests/test-avltree_oset.c (ASSERT): Likewise.
56683         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56684         * tests/test-binary-io.c (ASSERT): Likewise.
56685         * tests/test-byteswap.c (ASSERT): Likewise.
56686         * tests/test-c-ctype.c (ASSERT): Likewise.
56687         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56688         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56689         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56690         * tests/test-c-strstr.c (ASSERT): Likewise.
56691         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56692         * tests/test-canonicalize.c (ASSERT): Likewise.
56693         * tests/test-carray_list.c (ASSERT): Likewise.
56694         * tests/test-ceilf1.c (ASSERT): Likewise.
56695         * tests/test-ceilf2.c (ASSERT): Likewise.
56696         * tests/test-ceill.c (ASSERT): Likewise.
56697         * tests/test-count-one-bits.c (ASSERT): Likewise.
56698         * tests/test-fbufmode.c (ASSERT): Likewise.
56699         * tests/test-fflush2.c (ASSERT): Likewise.
56700         * tests/test-floorf1.c (ASSERT): Likewise.
56701         * tests/test-floorf2.c (ASSERT): Likewise.
56702         * tests/test-floorl.c (ASSERT): Likewise.
56703         * tests/test-fopen.c (ASSERT): Likewise.
56704         * tests/test-fpending.c (ASSERT): Likewise.
56705         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56706         * tests/test-fpurge.c (ASSERT): Likewise.
56707         * tests/test-freadable.c (ASSERT): Likewise.
56708         * tests/test-freadahead.c (ASSERT): Likewise.
56709         * tests/test-freading.c (ASSERT): Likewise.
56710         * tests/test-freadptr.c (ASSERT): Likewise.
56711         * tests/test-freadptr2.c (ASSERT): Likewise.
56712         * tests/test-freadseek.c (ASSERT): Likewise.
56713         * tests/test-freopen.c (ASSERT): Likewise.
56714         * tests/test-frexp.c (ASSERT): Likewise.
56715         * tests/test-frexpl.c (ASSERT): Likewise.
56716         * tests/test-fseek.c (ASSERT): Likewise.
56717         * tests/test-fseeko.c (ASSERT): Likewise.
56718         * tests/test-fstrcmp.c (ASSERT): Likewise.
56719         * tests/test-ftell.c (ASSERT): Likewise.
56720         * tests/test-ftello.c (ASSERT): Likewise.
56721         * tests/test-func.c (ASSERT): Likewise.
56722         * tests/test-fwritable.c (ASSERT): Likewise.
56723         * tests/test-fwriting.c (ASSERT): Likewise.
56724         * tests/test-getdelim.c (ASSERT): Likewise.
56725         * tests/test-getline.c (ASSERT): Likewise.
56726         * tests/test-i-ring.c (ASSERT): Likewise.
56727         * tests/test-iconv-utf.c (ASSERT): Likewise.
56728         * tests/test-iconv.c (ASSERT): Likewise.
56729         * tests/test-isfinite.c (ASSERT): Likewise.
56730         * tests/test-isnand.c (ASSERT): Likewise.
56731         * tests/test-isnanf.c (ASSERT): Likewise.
56732         * tests/test-isnanl.h (ASSERT): Likewise.
56733         * tests/test-ldexpl.c (ASSERT): Likewise.
56734         * tests/test-linked_list.c (ASSERT): Likewise.
56735         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56736         * tests/test-localename.c (ASSERT): Likewise.
56737         * tests/test-lseek.c (ASSERT): Likewise.
56738         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56739         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56740         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56741         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56742         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56743         * tests/test-mbschr.c (ASSERT): Likewise.
56744         * tests/test-mbscspn.c (ASSERT): Likewise.
56745         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56746         * tests/test-mbspbrk.c (ASSERT): Likewise.
56747         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56748         * tests/test-mbsrchr.c (ASSERT): Likewise.
56749         * tests/test-mbsspn.c (ASSERT): Likewise.
56750         * tests/test-mbsstr1.c (ASSERT): Likewise.
56751         * tests/test-mbsstr2.c (ASSERT): Likewise.
56752         * tests/test-mbsstr3.c (ASSERT): Likewise.
56753         * tests/test-memchr2.c (ASSERT): Likewise.
56754         * tests/test-memmem.c (ASSERT): Likewise.
56755         * tests/test-open.c (ASSERT): Likewise.
56756         * tests/test-printf-frexp.c (ASSERT): Likewise.
56757         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56758         * tests/test-printf-posix.c (ASSERT): Likewise.
56759         * tests/test-quotearg.c (ASSERT): Likewise.
56760         * tests/test-rbtree_list.c (ASSERT): Likewise.
56761         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56762         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56763         * tests/test-round1.c (ASSERT): Likewise.
56764         * tests/test-roundf1.c (ASSERT): Likewise.
56765         * tests/test-roundl.c (ASSERT): Likewise.
56766         * tests/test-signbit.c (ASSERT): Likewise.
56767         * tests/test-sleep.c (ASSERT): Likewise.
56768         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56769         * tests/test-snprintf.c (ASSERT): Likewise.
56770         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56771         * tests/test-stat-time.c (ASSERT): Likewise.
56772         * tests/test-strcasestr.c (ASSERT): Likewise.
56773         * tests/test-strerror.c (ASSERT): Likewise.
56774         * tests/test-striconv.c (ASSERT): Likewise.
56775         * tests/test-striconveh.c (ASSERT): Likewise.
56776         * tests/test-striconveha.c (ASSERT): Likewise.
56777         * tests/test-strsignal.c (ASSERT): Likewise.
56778         * tests/test-strstr.c (ASSERT): Likewise.
56779         * tests/test-strtod.c (ASSERT): Likewise.
56780         * tests/test-trunc1.c (ASSERT): Likewise.
56781         * tests/test-trunc2.c (ASSERT): Likewise.
56782         * tests/test-truncf1.c (ASSERT): Likewise.
56783         * tests/test-truncf2.c (ASSERT): Likewise.
56784         * tests/test-truncl.c (ASSERT): Likewise.
56785         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56786         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56787         * tests/test-vasnprintf.c (ASSERT): Likewise.
56788         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56789         * tests/test-vasprintf.c (ASSERT): Likewise.
56790         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56791         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56792         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56793         * tests/test-vsnprintf.c (ASSERT): Likewise.
56794         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56795         * tests/test-wcwidth.c (ASSERT): Likewise.
56796         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56797         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56798         * tests/test-xvasprintf.c (ASSERT): Likewise.
56799         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56800         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56801         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56802         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56803         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56804         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56805         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56806         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56807         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56808         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56809         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56810         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56811         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56812         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56813         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56814         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56815         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56816         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56817         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56818         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56819         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56820         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56821         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56822         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56823         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56824         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56825         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56826         * tests/unictype/test-combining.c (ASSERT): Likewise.
56827         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56828         * tests/unictype/test-digit.c (ASSERT): Likewise.
56829         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56830         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56831         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56832         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56833         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56834         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56835         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56836         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56837         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56838         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56839         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56840         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56841         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56842         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56843         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56844         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56845         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56846         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56847         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56848         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56849         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56850         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56851         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56852         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56853         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56854         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56855         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56856         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56857         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56858         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56859         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56860         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56861         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56862         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56863         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56864         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56865         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56866         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56867         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56868         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56869         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56870         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56871         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56872         Reported by Eric Blake.
56873
56874 2008-04-11  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/wchar.in.h: Tweak comment.
56877
56878 2008-04-11  Bruno Haible  <bruno@clisp.org>
56879
56880         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56881         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56882         gl_COMMON.
56883         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56884
56885 2008-04-11  Bruno Haible  <bruno@clisp.org>
56886
56887         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56888
56889 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56890
56891         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56892         of attempting to use non-existing /dev/*random.  Based on patch
56893         from Adam Strzelecki <ono@java.pl> in
56894         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56895
56896 2008-04-08  Bruno Haible  <bruno@clisp.org>
56897
56898         Add tentative support for emx+gcc.
56899         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56900         * lib/fpurge.c (fpurge): Likewise.
56901         * lib/freadable.c (freadable): Likewise.
56902         * lib/freadahead.c (freadahead): Likewise.
56903         * lib/freading.c (freading): Likewise.
56904         * lib/freadptr.c (freadptr): Likewise.
56905         * lib/freadseek.c (freadptrinc): Likewise.
56906         * lib/fseeko.c (rpl_fseeko): Likewise.
56907         * lib/fseterr.c (fseterr): Likewise.
56908         * lib/fwritable.c (fwritable): Likewise.
56909         * lib/fwriting.c (fwriting): Likewise.
56910         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56911
56912 2008-04-09  Eric Blake  <ebb9@byu.net>
56913
56914         Avoid some autoconf warnings.
56915         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56916         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56917         * m4/afs.m4 (gl_AFS): Likewise.
56918         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56919         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56921         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56922         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56923         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56924         (AC_CHECK_DECLS_ONCE): Likewise.
56925         Rename file...
56926         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56927         gnulib-tool requires autoconf 2.59 or better.
56928         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56929
56930 2008-04-08  Eric Blake  <ebb9@byu.net>
56931
56932         Use 'git describe --match' if present (added in git 1.5.5).
56933         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56934         if possible.
56935
56936 2008-04-08  Bruno Haible  <bruno@clisp.org>
56937
56938         Add tentative support for OpenServer.
56939         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56940         _ptr, _cnt.
56941         * lib/fpurge.c (fpurge): Likewise.
56942         * lib/freadable.c (freadable): Likewise.
56943         * lib/freadahead.c (freadahead): Likewise.
56944         * lib/freading.c (freading): Likewise.
56945         * lib/freadptr.c (freadptr): Likewise.
56946         * lib/freadseek.c (freadptrinc): Likewise.
56947         * lib/fseeko.c (rpl_fseeko): Likewise.
56948         * lib/fseterr.c (fseterr): Likewise.
56949         * lib/fwritable.c (fwritable): Likewise.
56950         * lib/fwriting.c (fwriting): Likewise.
56951         Reported by Roger Cornelius <rac@tenzing.org> and
56952         Brian K. White <brian@aljex.com>.
56953
56954 2008-04-06  Jim Meyering  <meyering@redhat.com>
56955
56956         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56957
56958 2008-04-06  Bruno Haible  <bruno@clisp.org>
56959
56960         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56961         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56962         * tests/test-printf-posix.sh: Likewise.
56963         * tests/test-vfprintf-posix.sh: Likewise.
56964         * tests/test-vprintf-posix.sh: Likewise.
56965         * tests/test-xprintf-posix.sh: Likewise.
56966
56967 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56968
56969         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56970         hide error from 'ls', needed on OS/2.
56971         Report by Elbert Pol <elbert.pol@gmail.com>.
56972
56973 2008-04-04  Eric Blake  <ebb9@byu.net>
56974
56975         Make test-fseeko.c failures meaningful.
56976         * tests/test-fseeko.c: Print line number on failure.
56977         * tests/test-fseek.c: Likewise.
56978         Reported by Nelson H. F. Beebe.
56979
56980         Improve strtod bug detection check.
56981         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56982         required for Solaris 10.
56983         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56984
56985 2008-04-04  Bruno Haible  <bruno@clisp.org>
56986
56987         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56988         by m4/setenv.m4.
56989
56990 2008-04-03  Eric Blake  <ebb9@byu.net>
56991
56992         Ensure sane .version contents.
56993         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56994         version string.
56995         * build-aux/git-version-gen: Improve documentation.
56996
56997         Make GNU make output nicer.
56998         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56999         MAKECMDGOALS to enforce message for all command line targets.  Set
57000         srcdir for use in maint.mk.
57001
57002         Another maintainer tweak.
57003         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57004         a target that regenerates version.
57005
57006 2008-04-03  Jim Meyering  <meyering@redhat.com>
57007
57008         vc-list-files: don't cause coreutils "make po-check" failure
57009         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57010
57011 2008-04-03  Eric Blake  <ebb9@byu.net>
57012
57013         Allow VPATH usage of vc-list-files.
57014         * build-aux/vc-list-files (scriptversion): Add timestamp.
57015         (options): Add --help, --version, -C.
57016         (CVS): Support installed cvsu.
57017
57018 2008-04-02  Bruno Haible  <bruno@clisp.org>
57019
57020         Avoid some "statement with no effect" warnings from gcc.
57021         * tests/test-wctype.c (main): Explicitly ignore unused values.
57022         Reported by Jim Meyering.
57023
57024 2008-04-02  Jim Meyering  <meyering@redhat.com>
57025
57026         Avoid some warnings from "gcc -Wshadow".
57027         * tests/test-frexp.c (exp): Define to a different identifier.
57028         * tests/test-frexpl.c (exp): Likewise.
57029
57030 2008-04-03  Jim Meyering  <meyering@redhat.com>
57031
57032         bootstrap: remove dangling *.[ch] symlinks from lib
57033         * build-aux/bootstrap [dangling symlink removal]: Move find's
57034         -depth option to precede all others, to avoid a warning.
57035         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57036
57037 2008-04-02  Bruno Haible  <bruno@clisp.org>
57038
57039         Avoid some warnings from "gcc -Wshadow".
57040         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57041         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57042         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57043         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57044         Reported by Jim Meyering.
57045
57046 2008-04-01  Bruno Haible  <bruno@clisp.org>
57047
57048         Fix test to work on IRIX 6.5 with cc.
57049         * tests/test-math.c (numeric_equal): New function.
57050         (main): Use it.
57051
57052 2008-04-01  Bruno Haible  <bruno@clisp.org>
57053
57054         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57055
57056 2008-04-01  Bruno Haible  <bruno@clisp.org>
57057
57058         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57059         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57060         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57061         (Depends-on): Remove math.
57062
57063         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57064         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57065         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57066         (Depends-on): Remove math.
57067
57068         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57069         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57070         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57071         (Depends-on): Remove math.
57072         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57073         (Depends-on): Remove math.
57074
57075         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57076         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57077         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57078         (Depends-on): Remove math.
57079         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57080         (Depends-on): Remove math.
57081
57082         * tests/test-round1.c: Include nan.h.
57083         (main): Use NaNd instead of NAN.
57084         * modules/round-tests (Files): Add tests/nan.h.
57085
57086         * tests/test-trunc1.c: Include nan.h.
57087         (main): Use NaNd instead of NAN.
57088         * modules/trunc-tests (Files): Add tests/nan.h.
57089
57090         * tests/test-roundf1.c: Include nan.h.
57091         (main): Use NaNf instead of NAN.
57092         * modules/roundf-tests (Files): Add tests/nan.h.
57093
57094         * tests/test-truncf1.c: Include nan.h.
57095         (main): Use NaNf instead of NAN.
57096         * modules/truncf-tests (Files): Add tests/nan.h.
57097
57098         * tests/test-ceilf1.c: Include nan.h.
57099         (main): Use NaNf instead of NAN.
57100         * modules/ceilf-tests (Files): Add tests/nan.h.
57101
57102         * tests/test-floorf1.c: Include nan.h.
57103         (main): Use NaNf instead of NAN.
57104         * modules/floorf-tests (Files): Add tests/nan.h.
57105
57106         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57107         (main): Use NaNf instead of NAN.
57108         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57109
57110         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57111         (main): Use NaNd instead of NAN.
57112         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57113
57114         * tests/test-frexp.c: Include nan.h.
57115         (main): Use NaNd instead of NAN.
57116         * modules/frexp-tests (Files): Add tests/nan.h.
57117
57118         * lib/isnan.c: Don't include <math.h>.
57119         (FUNC): Don't use NAN macro.
57120         * modules/isnand-nolibm (Depends-on): Remove math.
57121         * modules/isnanf-nolibm (Depends-on): Remove math.
57122         * modules/isnanl (Depends-on): Remove math.
57123         * modules/isnanl-nolibm (Depends-on): Remove math.
57124
57125         * tests/nan.h: New file.
57126
57127 2008-04-01  Eric Blake  <ebb9@byu.net>
57128
57129         Fix typos.
57130         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57131         values to be the right type.
57132
57133         For now, cater to gnulib strtod inaccuracies.
57134         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57135         fractional results.  While not as nice from a QoI perspective, it
57136         is a quicker patch than correctly implementing decimal to binary
57137         rounding.
57138
57139 2008-03-31  Eric Blake  <ebb9@byu.net>
57140
57141         Guarantee a definition of NAN.
57142         * lib/math.in.h (NAN): Define if missing.
57143         * tests/test-math.c (main): Test it.
57144         * doc/posix-headers/math.texi (math.h): Document this.
57145         * lib/isnan.c (rpl_isnand): Use it.
57146         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57147         * tests/test-floorf1.c (NaN): Likewise.
57148         * tests/test-frexp.c (NaN): Likewise.
57149         * tests/test-isnand.c (NaN): Likewise.
57150         * tests/test-isnanf.c (NaN): Likewise.
57151         * tests/test-round1.c (NaN): Likewise.
57152         * tests/test-roundf1.c (NaN): Likewise.
57153         * tests/test-snprintf-posix.h (NaN): Likewise.
57154         * tests/test-sprintf-posix.h (NaN): Likewise.
57155         * tests/test-trunc1.c (NaN): Likewise.
57156         * tests/test-truncf1.c (NaN): Likewise.
57157         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57158         * tests/test-vasprintf-posix.c (NaN): Likewise.
57159         * modules/isnand-nolibm (Depends-on): Add math.
57160         * modules/isnanf-nolibm (Depends-on): Likewise.
57161         * modules/isnanl (Depends-on): Likewise.
57162         * modules/isnanl-nolibm (Depends-on): Likewise.
57163         * modules/snprintf-posix-tests (Depends-on): Likewise.
57164         * modules/sprintf-posix-tests (Depends-on): Likewise.
57165         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57166         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57167         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57168         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57169
57170 2008-03-31  Bruno Haible  <bruno@clisp.org>
57171
57172         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57173         * doc/posix-functions/strtod.texi: Likewise.
57174
57175 2008-03-31  Bruno Haible  <bruno@clisp.org>
57176
57177         * tests/test-strtod.c (main): Don't use C99 syntax.
57178
57179 2008-03-31  Bruno Haible  <bruno@clisp.org>
57180
57181         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57182         Reported by Eric Blake.
57183
57184 2008-03-31  Jim Meyering  <meyering@redhat.com>
57185
57186         Don't compare actual signbit return values.
57187         * tests/test-strtod.c (main): Rather, compare only their
57188         zero/non-zero nature.
57189
57190 2008-03-31  Eric Blake  <ebb9@byu.net>
57191
57192         More strtod documentation.
57193         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57194         failures as distinct bugs.
57195
57196 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57197
57198         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57199         Problem reported by Erik Benada in
57200         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57201
57202 2008-03-30  Bruno Haible  <bruno@clisp.org>
57203
57204         * tests/test-strtod.c: Add comments about which assertion fails on which
57205         platform.
57206         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57207
57208 2008-03-30  Eric Blake  <ebb9@byu.net>
57209
57210         Test signbit behavior on zeros.
57211         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57212         (test_signbitd, test_signbitl): Likewise.
57213
57214         More strtod touchups.
57215         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57216         sign of negative underflow, for now.  Use .5, not .1.
57217         * doc/posix-functions/strtod.texi (strtod): Mention these
57218         limitations.
57219         Reported by Jim Meyering.
57220
57221 2008-03-30  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57224         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57225
57226 2008-03-30  Bruno Haible  <bruno@clisp.org>
57227
57228         Avoid failure when attempting to return empty iconv results on some
57229         platforms.
57230         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57231         allocation, don't report ENOMEM when the resulting string is empty.
57232
57233 2008-03-30  Bruno Haible  <bruno@clisp.org>
57234
57235         Fix buffer overrun.
57236         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57237         Don't consider the width for tmp_length. Check count against tmp_length
57238         before doing the padding. Ensure enough allocation during padding.
57239
57240 2008-03-30  Eric Blake  <ebb9@byu.net>
57241
57242         strtod touchups.
57243         * lib/strtod.c (strtod): Avoid compiler warnings.
57244         Reported by Jim Meyering.
57245
57246 2008-03-30  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57249         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57250         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57251         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57252         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57254         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57255         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57256
57257         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57258         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57259         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57260         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57261         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57262         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57263         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57265
57266         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57267         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57268         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57269         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57270         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57271         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57272         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57273         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57274
57275         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57276         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57277
57278         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57279         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57280
57281         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57282         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57283
57284         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57286         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57287
57288         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57290         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57291
57292         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57294         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57295
57296         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57298         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57299
57300         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57301         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57303         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57304         (Depends-on): Add EOVERFLOW.
57305         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57306         (Depends-on): Add EOVERFLOW.
57307         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57308         (Depends-on): Add EOVERFLOW.
57309         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57310         (Depends-on): Add EOVERFLOW.
57311         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57312         (Depends-on): Add EOVERFLOW.
57313         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57314         (Depends-on): Add EOVERFLOW.
57315         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57316         (Depends-on): Add EOVERFLOW.
57317         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57318         (Depends-on): Add EOVERFLOW.
57319
57320         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57322         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57323
57324         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57326         * modules/snprintf (Depends-on): Add EOVERFLOW.
57327
57328         * lib/poll.c (EOVERFLOW): Remove fallback.
57329         * modules/poll (Depends-on): Add EOVERFLOW.
57330
57331         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57332         * modules/getugroups (Depends-on): Add EOVERFLOW.
57333
57334         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57335         * modules/getdelim (Depends-on): Add EOVERFLOW.
57336
57337         * lib/ftell.c (EOVERFLOW): Remove fallback.
57338         * modules/ftell (Depends-on): Add EOVERFLOW.
57339
57340         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57341         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57342         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57343
57344         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57345
57346         * modules/EOVERFLOW-tests: New file.
57347         * tests/test-EOVERFLOW.c: New file.
57348
57349         * modules/EOVERFLOW: New file.
57350         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57351
57352 2008-03-30  Bruno Haible  <bruno@clisp.org>
57353
57354         Fix bug introduced on 2007-06-10.
57355         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57356         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57357
57358 2008-03-30  Bruno Haible  <bruno@clisp.org>
57359
57360         Improve freadseek's efficiency after ungetc.
57361         * lib/freadseek.c: Include freadahead.h.
57362         (freadptrinc): New function, extracted from freadseek.
57363         (freadseek): Use it in a loop. Use freadahead to determine the number
57364         of loop iterations.
57365         * modules/freadseek (Depends-on): Add freadahead.
57366         (configure.ac): Require AC_C_INLINE.
57367
57368 2008-03-30  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/freadseek.c (freadseek): Don't ignore the return value of
57371         freadptr.
57372
57373 2008-03-29  Eric Blake  <ebb9@byu.net>
57374
57375         Add hex float support.
57376         * modules/strtod (Depends-on): Add c-ctype.
57377         (Link): Mention POW_LIB.
57378         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57379         whitespace between 'e' and exponent.
57380         * tests/test-strtod.c (main): Enable hex float tests.
57381         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57382         now provides.
57383
57384         Document various strtod bugs, with some fixes.
57385         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57386         "-0x", "inf", "nan", and hex constants.
57387         * doc/posix-functions/atof.texi (atof): Likewise.
57388         * modules/stdlib (Makefile.am): Support strtod.
57389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57390         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57391         detect additional strtod bugs.
57392         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57393         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57394         bool where appropriate.  Parse 'inf' and 'nan'.
57395         * tests/test-strtod.c: New file.
57396         * modules/strtod (Depends-on): Add stdbool, stdlib.
57397         (configure.ac): Turn on module indicator.
57398         * modules/strtod-tests: New module.
57399
57400 2008-03-29  Eric Blake  <ebb9@byu.net>
57401
57402         Fix ftell on mingw.
57403         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57404         * modules/ftell-tests (Depends-on): Add binary-io.
57405         * modules/ftello-tests (Depends-on): Likewise.
57406         * tests/test-ftell.c (main): Enhance test to cover behavior after
57407         ungetc.  Enforce binary mode.
57408         * tests/test-ftello.c (main): Likewise.
57409
57410         Pass test-freadseek on cygwin.
57411         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57412         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57413         ungetc buffer.
57414
57415         * tests/test-fflush2.c (main): Fix typo.
57416
57417 2008-03-29  Bruno Haible  <bruno@clisp.org>
57418
57419         * tests/test-fflush2.c (main): Temporarily disable the contents of
57420         this test.
57421         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57422         Reported by Eric Blake.
57423
57424 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57425
57426         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57427         (GC_SHA224_DIGEST_SIZE): Add.
57428
57429         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57430         (gc_hash_digest_length): Likewise.
57431         (gc_hash_buffer): Likewise.
57432
57433 2008-03-25  Bruno Haible  <bruno@clisp.org>
57434
57435         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57436         detail which gettext release to use.
57437         Reported by Simon Josefsson.
57438
57439 2008-03-26  Jim Meyering  <meyering@redhat.com>
57440
57441         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57442         * modules/gnumakefile (clean-GNUmakefile): Also, use
57443         test ... && ... || : syntax rather than if-then ... fi.
57444
57445         gnumakefile: Don't double-quote-expand $(VPATH) value.
57446         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57447
57448 2008-03-24  Eric Blake  <ebb9@byu.net>
57449
57450         Alter GNUmakefile to install into top directory.
57451         * modules/maintainer-makefile: Split, and add dependency...
57452         * modules/gnumakefile: to this new module.
57453         * build-aux/GNUmakefile: Move...
57454         * top/GNUmakefile: ...here.
57455         * build-aux/maint.mk: Move...
57456         * top/maint.mk: ...here.
57457         * MODULES.html.sh (Support for maintaining...): Document new
57458         module.
57459
57460 2008-03-23  Bruno Haible  <bruno@clisp.org>
57461
57462         * gnulib-tool: New options --vc-files, --no-vc-files.
57463         (func_usage): Document them.
57464         (vc_files): New variable.
57465         (func_import): Consider vc_files.
57466         (func_create_testdir): Set vc_files to empty.
57467         Suggested by Jim Meyering and Karl Berry.
57468
57469 2008-03-23  Bruno Haible  <bruno@clisp.org>
57470
57471         Fix regex compilation error on HP-UX 11.
57472         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57473         * modules/regex (Files): Add m4/mbstate_t.m4.
57474         Reported by Ton Voon <ton.voon@altinity.com>.
57475
57476 2008-03-23  Bruno Haible  <bruno@clisp.org>
57477
57478         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57479
57480 2008-03-23  Eric Blake  <ebb9@byu.net>
57481             Bruno Haible  <bruno@clisp.org>
57482
57483         Install files from top/ in the destination directory.
57484         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57485         augmentation also for the files from top/.
57486         (func_import, func_create_testdir): Rewrite file names:
57487         top/filename -> filename.
57488
57489 2008-03-23  Bruno Haible  <bruno@clisp.org>
57490
57491         Tweak "gnulib --version" output.
57492         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57493
57494 2008-03-23  Bruno Haible  <bruno@clisp.org>
57495
57496         Tweak "gnulib --version" output.
57497         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57498         rather than contents of ChangeLog, when possible.
57499
57500 2008-03-21  Eric Blake  <ebb9@byu.net>
57501
57502         More --version tweaks.
57503         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57504         date of last ChangeLog entry.
57505
57506 2008-03-21  Jim Meyering  <meyering@redhat.com>
57507
57508         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57509
57510 2008-03-20  Eric Blake  <ebb9@byu.net>
57511
57512         VPATH fix.
57513         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57514
57515 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57516
57517         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57518         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57519
57520 2008-03-20  Eric Blake  <ebb9@byu.net>
57521
57522         Sync GNUmakefile with coreutils.
57523         * build-aux/GNUmakefile (have-Makefile): Rename...
57524         (_have-Makefile): ...to this, for namespace consideration.
57525         (GNUmakefile.cfg): Include, if present.
57526         (_autoreconf): Define a default.
57527         (_is-dist-target): New rule for rebuilds to pick up intra-release
57528         version.
57529         (maint-cfg.mk): Rename...
57530         (cfg.mk): ...to this.
57531
57532 2008-03-18  Jim Meyering  <meyering@redhat.com>
57533
57534         New script and module: mktempd
57535         * MODULES.html.sh (maint+release support): Add mktempd.
57536         * build-aux/mktempd: New file.
57537         * modules/mktempd: New file.
57538
57539 2008-03-15  Jim Meyering  <meyering@redhat.com>
57540
57541         Undo last change.
57542         * lib/sha1.c, lib/md5.c: 63 != ~63.
57543         Reported by Andreas Schwab.
57544
57545         sha1.c, md5.c: Hoist a redundant expression.
57546         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57547         "ctx->buflen" only once, before calling *_process_block.
57548         * lib/md5.c (md5_process_bytes): Likewise.
57549
57550 2008-03-14  Eric Blake  <ebb9@byu.net>
57551
57552         Bump copyright year in files generated by gnulib-tool.
57553         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57554         gnulib-tool, rather than hard-coding it.
57555
57556         Fix 'gnulib-tool --version' output to work with git.
57557         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57558         (startup): ...here.
57559         (func_version): Use it to invoke git-version-gen, rather than
57560         relying on CVS keyword expansion.  Modernize wording.
57561         (cvsdatestamp, last_checkin_date, version): Kill unused
57562         variables.
57563
57564 2008-03-12  Jim Meyering  <meyering@redhat.com>
57565
57566         Recognize optional cast of the argument to free.
57567         * build-aux/useless-if-before-free: Update regexps.
57568
57569         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57570
57571 2008-03-11  Bruno Haible  <bruno@clisp.org>
57572
57573         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57574         by a single package.
57575         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57576         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57577         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57578         Reported by Sam Steingold <sds@gnu.org>.
57579
57580 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57581
57582         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57583         repositories.
57584
57585 2008-03-11  Bruno Haible  <bruno@clisp.org>
57586
57587         Avoid conflicts between local macro definitions.
57588         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57589         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57590
57591 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57592             Bruno Haible  <bruno@clisp.org>
57593
57594         Make va_copy work with some version of xlc on AIX 5.1.
57595         * lib/stdarg.in.h: New file.
57596         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57597         On AIX, use a <stdarg.h> file substitute.
57598         * modules/stdarg (Files): Add lib/stdarg.in.h.
57599         (Depends-on): Add include_next.
57600         (Makefile.am): Build a stdarg.h substitute if requested.
57601         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57602
57603 2008-03-10  Bruno Haible  <bruno@clisp.org>
57604
57605         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57607         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57608
57609 2008-03-10  Bruno Haible  <bruno@clisp.org>
57610
57611         * modules/stdlib (Depends-on): Add include_next, remove
57612         absolute-header.
57613
57614 2008-03-09  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/freadahead.h (freadahead): Document more precisely.
57617         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57618         the sum of both buffer sizes.
57619         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57620         * NEWS: Document the change.
57621
57622 2008-03-09  Bruno Haible  <bruno@clisp.org>
57623
57624         Extend freadptr to return also the buffer size.
57625         * lib/freadptr.h (freadptr): Add sizep argument.
57626         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57627         (freadptr): Add sizep argument. Determine buffer size like freadahead
57628         does.
57629         * tests/test-freadptr.c: Don't include freadahead.h.
57630         (main): Adapt for new calling convention of freadptr.
57631         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57632         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57633         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57634         tests/test-freadptr2.sh.
57635         (Depends): Remove freadahead.
57636         (TESTS): Add test-freadptr2.sh.
57637         (check_PROGRAMS): Add test-freadptr2.
57638
57639 2008-03-09  Bruno Haible  <bruno@clisp.org>
57640
57641         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57642         Report and solution by Simon Josefsson.
57643
57644 2008-03-06  Bruno Haible  <bruno@clisp.org>
57645
57646         Make fflush after ungetc work on BSD platforms.
57647         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57648         * tests/test-fflush2.c: New file.
57649         * tests/test-fflush2.sh: New file.
57650         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57651         tests/test-fflush2.c.
57652         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57653         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57654
57655 2008-03-06  Eric Blake  <ebb9@byu.net>
57656
57657         Likewise for ftello.
57658         * modules/ftello (Dependencies): Add extensions.
57659         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57660
57661 2008-03-06  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/fseeko (Dependencies): Add extensions.
57664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57665         Needed on glibc systems.
57666
57667 2008-03-06  Bruno Haible  <bruno@clisp.org>
57668
57669         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57670         email address.
57671         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57672
57673 2008-03-06  Bruno Haible  <bruno@clisp.org>
57674
57675         * users.txt: Add libgnupdf.
57676
57677 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57678
57679         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57680         (Header File Substitutes, Function Substitutes,
57681         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57682         (Build robot for gnulib): Fix typo.
57683
57684 2008-03-06  Bruno Haible  <bruno@clisp.org>
57685
57686         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57688
57689 2008-03-06  Bruno Haible  <bruno@clisp.org>
57690
57691         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57692         * doc/gnulib.texi: Include it.
57693
57694 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57695
57696         * modules/func (License): Change license to unlimited; there was
57697         no LGPL parts in the module anyway.
57698
57699 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57700
57701         * modules/__func__: Renamed to modules/func.
57702         * modules/__func__-tests: Renamed to modules/func-tests.
57703         * tests/test-__func__.c: Renamed to tests/test-func.c.
57704         * m4/__func__.m4: Renamed to m4/func.m4.
57705         * doc/gnulib.texi (__func__): Section renamed to func.
57706         Suggested by Eric Blake <ebb9@byu.net>.
57707
57708 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57709
57710         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57711         about __func__.  Make example self-contained.  Suggested by Eric
57712         Blake <ebb9@byu.net>.
57713
57714         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57715         Suggested by Eric Blake <ebb9@byu.net>.
57716
57717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57718
57719         * modules/__func__: New file.
57720         * modules/__func__-tests: New file.
57721         * tests/test-__func__.c: New file.
57722         * m4/__func__.m4: New file.
57723         * doc/gnulib.texi (__func__): Document __func__ module.
57724
57725 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57726
57727         * modules/byteswap (License): Re-license as LGPLv2+.
57728
57729 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57730
57731         * doc/Makefile: Add pdf target.
57732
57733 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57734
57735         * modules/inline (License): Use 'unlimited', since there are only
57736         *.m4 files in this module.
57737
57738 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57739             Bruno Haible  <bruno@clisp.org>
57740
57741         Add support for HP C 7.1 on OpenVMS 8.3.
57742         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57743
57744 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57745
57746         Update VMS specifics.
57747         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57748
57749 2008-03-02  Jim Meyering  <meyering@redhat.com>
57750
57751         Remove the last dependency on the "free" module.
57752         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57753         Reported by Bob Proulx.
57754
57755         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57756
57757         Remove useless "if" tests before free.  Deprecate "free" module.
57758         * doc/posix-functions/free.texi: Mention that this
57759         module is no longer useful.
57760         * modules/free (Notice): Say this module is obsolete.
57761         * modules/readutmp (Depends-on): Remove free.
57762         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57763         * lib/putenv.c (putenv): Likewise.
57764         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57765         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57766         * tests/test-c-strcasestr.c (main): Likewise.
57767         * tests/test-c-strstr.c (main): Likewise.
57768         * tests/test-mbscasestr1.c (main): Likewise.
57769         * tests/test-mbscasestr2.c (main): Likewise.
57770         * tests/test-mbsstr1.c (main): Likewise.
57771         * tests/test-mbsstr2.c (main): Likewise.
57772         * tests/test-memmem.c (main): Likewise.
57773         * tests/test-strcasestr.c (main): Likewise.
57774         * tests/test-striconv.c (main): Likewise.
57775         * tests/test-striconveh.c (main): Likewise.
57776         * tests/test-striconveha.c (main): Likewise.
57777         * tests/test-strstr.c (main): Likewise.
57778
57779         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57780
57781         bootstrap: sync from coreutils again
57782         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57783
57784 2008-03-01  Jim Meyering  <meyering@redhat.com>
57785
57786         bootstrap: sync from coreutils
57787         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57788         also when the target doesn't exist.
57789
57790 2008-03-01  Eric Blake  <ebb9@byu.net>
57791
57792         Fix bugs in last patch.
57793         * lib/memchr2.c (memchr2): Fix typo.
57794         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57795         extension.
57796         Reported by Bruce Korb.
57797
57798         New module 'memchr2'.
57799         * modules/memchr2: New file.
57800         * modules/memchr2-tests: Likewise.
57801         * lib/memchr2.h: Likewise.
57802         * lib/memchr2.c: Likewise, based on memchr.c.
57803         * tests/test-memchr2.c: New test.
57804         * MODULES.html.sh (String handling): Add memchr2.
57805
57806 2008-02-29  Bruno Haible  <bruno@clisp.org>
57807
57808         * modules/freadseek-tests: New file.
57809         * tests/test-freadseek.sh: New file.
57810         * tests/test-freadseek.c: New file.
57811
57812         New module 'freadseek'.
57813         * modules/freadseek: New file.
57814         * lib/freadseek.h: New file.
57815         * lib/freadseek.c: New file.
57816         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57817
57818 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57819
57820         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57821         wydawca.
57822
57823         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57824         program_invocation_name and program_invocation_short_name are
57825         present.
57826
57827 2008-02-28  Bruno Haible  <bruno@clisp.org>
57828
57829         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57830         * tests/test-freadptr.sh: Also test non-seekable stdin.
57831
57832 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57833
57834         * build-aux/bootstrap (source_base, m4_base)
57835         (doc_base, tests_base): New variables.
57836         (gnulib_tool_options): Do not hardcode base directories, use
57837         the above variables instead.
57838
57839 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57840
57841         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57842
57843 2008-02-28  Bruno Haible  <bruno@clisp.org>
57844
57845         * modules/freadptr-tests: New file.
57846         * tests/test-freadptr.sh: New file.
57847         * tests/test-freadptr.c: New file.
57848
57849         New module 'freadptr'.
57850         * modules/freadptr: New file.
57851         * lib/freadptr.h: New file.
57852         * lib/freadptr.c: New file.
57853         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57854
57855 2008-02-26  Karl Berry  <karl@freefriends.org>
57856
57857         Sync from Libtool:
57858         * libltdl/argz.c (argz_add, argz_count): New functions.
57859         * libltdl/argz.in.h: Declare them.
57860         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57861
57862 2008-02-22  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57865         is a pointer type.  Needed for HP-UX 10.
57866         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57867         * doc/posix-functions/gmtime_r.texi: Likewise.
57868         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57869
57870 2008-02-24  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/environ-tests: New file.
57873         * tests/test-environ.c: New file.
57874
57875         New module 'environ'.
57876         * modules/environ: New file.
57877         * lib/unistd.in.h (environ): New declaration.
57878         * m4/environ.m4: New file.
57879         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57880         after use.
57881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57882         HAVE_DECL_ENVIRON.
57883         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57884         HAVE_DECL_ENVIRON.
57885         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57886         wrong claim that 'environ' is missing on some systems.
57887         * modules/execute (Depends-on): Add environ.
57888         * lib/execute.c (environ): Remove fallback declaration.
57889         * modules/pipe (Depends-on): Add environ.
57890         * lib/pipe.c (environ): Remove fallback declaration.
57891         * modules/setenv (Depends-on): Add environ.
57892         * lib/setenv.c (environ): Remove fallback declaration.
57893         * modules/unsetenv (Depends-on): Add environ.
57894         * lib/unsetenv.c (environ): Remove fallback declaration.
57895         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57896         m4/environ.m4.
57897         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57898         (gl_PREREQ_UNSETENV): Likewise.
57899
57900 2008-02-24  Bruno Haible  <bruno@clisp.org>
57901
57902         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57903
57904 2008-02-20  Bob Proulx  <bob@proulx.com>
57905
57906         Enable use of older two part flavor 'git describe'.
57907         * build-aux/git-version-gen: If using the older two part flavor of
57908         git version then recreate the third part now present in the
57909         newer three part flavor of git describe.
57910
57911 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57912
57913         * lib/fts.c (fts_build): Typo correction to comment.
57914
57915 2008-02-17  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57918         generating no-op conflicts.
57919
57920 2008-02-17  Bruno Haible  <bruno@clisp.org>
57921
57922         Speed up by 10%.
57923         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57924         result_entries, rather than an index-based loop.
57925
57926 2008-02-17  Bruno Haible  <bruno@clisp.org>
57927
57928         Speed up by 25%.
57929         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57930         'hashcode_cached'.
57931         (entry_create): New function.
57932         (entry_hashcode): Use the cached hashcode if possible.
57933         (read_changelog_file, try_split_merged_entry): Use entry_create.
57934
57935 2008-02-17  Bruno Haible  <bruno@clisp.org>
57936
57937         Speed up from O(n^2) to O(n) for long ChangeLog files.
57938         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57939         (read_changelog_file): Change implementation of entries_reversed list
57940         to rbtreehash.
57941         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57942
57943 2008-02-17  Bruno Haible  <bruno@clisp.org>
57944
57945         New option --split-merged-entry.
57946         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57947         (find_paragraph_end, try_split_merged_entry): New functions.
57948         (long_options): Add option --split-merged-entry.
57949         (usage): Document option --split-merged-entry.
57950         (main): Implement option --split-merged-entry.
57951         Reported by Eric Blake.
57952
57953 2008-02-17  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/git-merge-changelog.c: Include c-strstr.h.
57956         (main): Support the "git pull --rebase" situation.
57957         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57958         Reported by Eric Blake.
57959
57960 2008-02-16  Eric Blake  <ebb9@byu.net>
57961
57962         Avoid doubling \ in common case of "c-maybe" quoting style.
57963         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57964         eliding outer quotes.
57965         * lib/quotearg.h: Document this.
57966         * tests/test-quotearg.c (result_strings, inputs, results_g)
57967         (flag_results, locale_results): Test it by adding a new string to
57968         each test group.
57969         (compare_strings): Test new string.
57970
57971 2008-02-13  Eric Blake  <ebb9@byu.net>
57972
57973         Avoid trigraph quoting in default output.
57974         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57975         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57976         unless explicitly requested.
57977         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57978
57979 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57980
57981         Don't rely on signed integer overflowing to negative value.
57982         * lib/getugroups.c (getugroups): Include <limits.h>.
57983         Instead, compare against INT_MAX, and increment only if the test passes.
57984
57985 2008-02-13  Jim Meyering  <meyering@redhat.com>
57986         and Eric Blake  <ebb9@byu.net>
57987
57988         Avoid shadowing warning and compile errors on Linux.
57989         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57990         forwarding macros on Linux.
57991         (dcgettext): Define a stub, for Linux.
57992         (results_g, main): Avoid warnings.
57993
57994 2008-02-12  Eric Blake  <ebb9@byu.net>
57995
57996         Silence warning in last patch.
57997         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57998
57999         Quotearg part 4: add tests, fix c-maybe colon quoting.
58000         * lib/quotearg.h: Improve documentation.
58001         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58002         escapes when adding outer quotes.  When quoting trigraphs, use
58003         valid C notation.  When quoting NUL, omit extra characters if next
58004         character is not digit.  Alter prototype.
58005         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58006         callers.
58007         * modules/quotearg-tests: New module.
58008         * tests/test-quotearg.c: New test.
58009
58010 2008-02-07  Eric Blake  <ebb9@byu.net>
58011
58012         Quotearg part 3: add flag to control outer quote elision.
58013         * lib/quotearg.h (c_maybe_quoting_style): New style.
58014         (enum quoting_flags): Better documentation of flags.
58015         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58016         c-maybe style.
58017         (quotearg_buffer_restyled): Handle new flag to elide outer
58018         quotes.
58019
58020         Quotearg part 2: add flag that can control NUL elision.
58021         * lib/quotearg.h (set_quoting_flags): New prototype.
58022         * lib/quotearg.c (struct quoting_options): Add flag field.
58023         (set_quoting_flags): New function.
58024         (quotearg_buffer_restyled): Add flags parameter.
58025         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58026         (quotearg_n_options): Set the flag, since length cannot be
58027         returned.
58028         (quoting_options_from_style): Default flags correctly.
58029
58030         Quotearg part 1: more wrappers, restore quotearg_char state.
58031         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58032         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58033         (quotearg_colon_mem): New wrappers.
58034         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58035         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58036         functions.
58037         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58038         (quotearg_colon_mem): New functions.
58039
58040 2008-02-11  Bruno Haible  <bruno@clisp.org>
58041
58042         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58043         library in the current directory: it does not work with parallel make.
58044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58045
58046 2008-02-11  Bruno Haible  <bruno@clisp.org>
58047
58048         * .gitattributes: New file.
58049
58050 2008-02-11  Jim Meyering  <meyering@redhat.com>
58051
58052         useless-if-before-free: Fix reversed exit values.
58053         * build-aux/useless-if-before-free: Use correct values
58054         for EXIT_MATCH and EXIT_NO_MATCH.
58055
58056         * build-aux/useless-if-before-free: Close stdout carefully.
58057
58058 2008-02-10  Bruno Haible  <bruno@clisp.org>
58059
58060         New module 'git-merge-changelog'.
58061         * modules/git-merge-changelog: New file.
58062         * lib/git-merge-changelog.c: New file.
58063
58064 2008-02-10  Jim Meyering  <meyering@redhat.com>
58065
58066         useless-if-before-free: New option: --list (-l).
58067
58068         useless-if-before-free: Don't exit immediately upon open failure.
58069         * build-aux/useless-if-before-free: Exit 2 for errors.
58070         Upon failure to open a file, don't exit immediately.
58071         Rather, just warn and continue with any remaining files.
58072
58073 2008-02-10  Bruno Haible  <bruno@clisp.org>
58074
58075         New abstract list operation 'node_set_value'.
58076         * lib/gl_list.h (gl_list_node_set_value): New function.
58077         (struct gl_list_implementation): New field node_set_value.
58078         * lib/gl_list.c (gl_list_node_set_value): New function.
58079         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58080         (gl_array_list_implementation): Update.
58081         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58082         (gl_carray_list_implementation): Update.
58083         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58084         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58085         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58086         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58089         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58090         Update.
58091         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58092         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58093         (gl_sublist_list_implementation): Update.
58094
58095 2008-02-10  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58098         Needed when ELEMENT is #defined to 'some_type *'.
58099
58100 2008-02-10  Jim Meyering  <meyering@redhat.com>
58101
58102         New script and module: useless-if-before-free
58103         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58104         * build-aux/useless-if-before-free: New file.
58105         * modules/useless-if-before-free: New file.
58106
58107         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58108
58109         xstrtol_error: Fix typo.
58110         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58111         s/exit_failure/exit_status/.
58112
58113 2008-02-09  Jim Meyering  <meyering@redhat.com>
58114
58115         New script and module: gitlog-to-changelog
58116         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58117         * modules/gitlog-to-changelog: New file.
58118         * build-aux/gitlog-to-changelog: New file.
58119
58120 2008-02-08  Jim Meyering  <meyering@redhat.com>
58121
58122         Avoid two "parameter unused" warnings.
58123         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58124         Mark "st" as used.
58125
58126         Use "git COMMAND", not "git-COMMAND".
58127         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58128         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58129         * build-aux/git-version-gen: Use "git status", not "git-status".
58130
58131 2008-02-07  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58134         Avoids a crash on Windows Vista.
58135         Reported by Adam Strzelecki <ono@java.pl> via
58136         Simon Josefsson <simon@josefsson.org>.
58137
58138 2008-02-06  Bruno Haible  <bruno@clisp.org>
58139
58140         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58141         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58142         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58144         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58146         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58147         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58155         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58156         left-adjust flag.
58157         * tests/test-snprintf-posix.h (test_function): Likewise.
58158         * tests/test-sprintf-posix.h (test_function): Likewise.
58159         * tests/test-vasprintf-posix.c (test_function): Likewise.
58160         * doc/posix-functions/fprintf.texi: Update.
58161         * doc/posix-functions/printf.texi: Update.
58162         * doc/posix-functions/snprintf.texi: Update.
58163         * doc/posix-functions/sprintf.texi: Update.
58164         * doc/posix-functions/vfprintf.texi: Update.
58165         * doc/posix-functions/vprintf.texi: Update.
58166         * doc/posix-functions/vsnprintf.texi: Update.
58167         * doc/posix-functions/vsprintf.texi: Update.
58168         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58169
58170 2008-02-06  Bruno Haible  <bruno@clisp.org>
58171
58172         Fix bug introduced on 2008-01-26.
58173         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58174
58175 2008-02-06  Bruno Haible  <bruno@clisp.org>
58176
58177         Fix bug introduced on 2007-06-10.
58178         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58179         !NEED_PRINTF_FLAG_ZERO.
58180
58181 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58182
58183         getloadavg: use libperfstat on AIX5
58184         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58185
58186 2008-02-03  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/diffseq.h: Add comments about required #includes.
58189         Reported by Michael Biggs <gnulib@doubleplum.net>.
58190
58191 2008-02-01  Bruno Haible  <bruno@clisp.org>
58192
58193         * users.txt: Add gnuit.
58194
58195 2008-01-31  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/md4.c (set_uint32): Mark as inline.
58198         * lib/md5.c (set_uint32): Likewise.
58199         * lib/sha1.c (set_uint32): Likewise.
58200         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58201         * m4/md5.m4 (gl_MD5): Likewise.
58202         * m4/sha1.m4 (gl_SHA1): Likewise.
58203
58204 2008-01-31  Jim Meyering  <meyering@redhat.com>
58205
58206         Use "sizeof VAR", rather than a literal "4".
58207         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58208         * lib/md4.c (md4_read_ctx): Likewise.
58209         * lib/sha1.c (sha1_read_ctx): Likewise.
58210
58211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58212
58213         * tests/test-sha1.c: New file, based on test-md5.c.
58214
58215         * modules/crypto/sha1-tests: New file.
58216
58217 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58218
58219         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58220
58221 2008-01-31  Jim Meyering  <meyering@redhat.com>
58222
58223         Prefer "sizeof v" over the equivalent "4".
58224         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58225         * lib/md5.c (set_uint32): Likewise.
58226         * lib/sha1.c (set_uint32): Likewise.
58227
58228 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58229
58230         * lib/sha1.c (set_uint32): Mark function as static.
58231
58232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58233
58234         md2: clarify comments to say that alignment is not required.
58235         * lib/md2.h: Remove warning about alignment in comment.
58236         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58237         never been required.
58238
58239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58240
58241         md4: adapt alignment constraint fix from sha1.
58242         * lib/md4.c (set_uint32): New function, from sha1.c
58243         (md4_read_ctx): Use it.
58244         (md4_finish_ctx): Doc fix.
58245         * lib/md4.h: Doc fix.
58246
58247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58248
58249         md5: adapt alignment constraint fix from sha1.
58250         * lib/md5.c (set_uint32): New function, from sha1.c
58251         (md5_read_ctx): Use it.
58252         (md5_finish_ctx): Doc fix.
58253         * lib/md5.h: Doc fix.
58254
58255 2008-01-30  Peter Palfrader  <weasel@debian.org>
58256
58257         sha1: remove the result buffer alignment constraint
58258         * lib/sha1.c (set_uint32): New function.
58259         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58260         constraint.
58261         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58262         * lib/sha1.h: Likewise.
58263
58264 2008-01-30  Andreas Schwab  <schwab@suse.de>
58265             Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58268         correct definition of LDBL_MIN_EXP.
58269
58270 2008-01-30  Karl Berry  <karl@gnu.org>
58271
58272         * config/srclist-update: try to preserve x bit on updates.
58273         * config/srclistvars.sh: update for karl.
58274
58275 2008-01-29  Jim Meyering  <meyering@redhat.com>
58276
58277         vasnprintf.c: Avoid warning about unused label
58278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58279         "overflow" label definition and associated code with the
58280         same cpp condition that guards the sole use of that label.
58281
58282 2008-01-26  Bruno Haible  <bruno@clisp.org>
58283
58284         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58285         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58286         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58287         * lib/isnanl-nolibm.h (isnanl): Likewise.
58288         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58289
58290 2008-01-26  Bruno Haible  <bruno@clisp.org>
58291
58292         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58293         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58294
58295 2008-01-26  Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58298         GCC >= 4.0 built-in.
58299         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58300
58301 2008-01-26  Bruno Haible  <bruno@clisp.org>
58302
58303         Rename isnan, applicable to 'double' only, to isnand.
58304         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58305         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58306         (configure.ac): Update.
58307         (Include): Replace "isnan.h" with "isnand.h".
58308         * m4/isnand.m4: Renamed from m4/isnan.m4.
58309         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58310         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58311         instead of isnan.c.
58312         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58313         instead of HAVE_ISNAN_IN_LIBC.
58314         (isnand): Renamed from isnan.
58315         * lib/isnand.c: New file.
58316         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58317         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58318         (Makefile.am): Update.
58319         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58320         Include isnand.h instead of isnan.h.
58321         (main): Test isnand instead of isnan.
58322         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58323         isnan-nolibm.
58324         * modules/frexp (Depends-on): Likewise.
58325         * modules/frexp-tests (Depends-on): Likewise.
58326         * modules/frexp-nolibm (Depends-on): Likewise.
58327         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58328         * modules/isfinite (Depends-on): Likewise.
58329         * modules/round-tests (Depends-on): Likewise.
58330         * modules/signbit (Depends-on): Likewise.
58331         * modules/signbit-tests (Depends-on): Likewise.
58332         * modules/snprintf-posix (Depends-on): Likewise.
58333         * modules/sprintf-posix (Depends-on): Likewise.
58334         * modules/trunc-tests (Depends-on): Likewise.
58335         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58336         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58337         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58338         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58339         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58340         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58341         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58342         * modules/vasnprintf-posix (Depends-on): Likewise.
58343         * modules/vasprintf-posix (Depends-on): Likewise.
58344         * modules/vfprintf-posix (Depends-on): Likewise.
58345         * modules/vsnprintf-posix (Depends-on): Likewise.
58346         * modules/vsprintf-posix (Depends-on): Likewise.
58347         * lib/frexp.c: Include isnand.h instead of isnan.h.
58348         (ISNAN): Set to isnand instead of isnan.
58349         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58350         (gl_isfinited): Use isnand instead of isnan.
58351         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58352         (gl_signbitd): Use isnand instead of isnan.
58353         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58354         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58355         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58356         (main): Use isnand instead of isnan.
58357         * tests/test-round1.c: Include isnand.h.
58358         (main): Use isnand instead of isnan.
58359         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58360         (ISNAN): Set to isnand instead of isnan.
58361         * tests/test-trunc1.c: Include isnand.h.
58362         (main): Use isnand instead of isnan.
58363         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58364         (equal): Use isnand instead of isnan.
58365         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58366         isnand-nolibm.
58367         * NEWS: Mention the change.
58368
58369 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58370             Bruno Haible  <bruno@clisp.org>
58371
58372         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58373         the GCC builtins for signbits are present and set
58374         REPLACE_SIGNBIT_USING_GCC if so.
58375         * lib/math.in.h (signbit): Define using GCC builtins if
58376         REPLACE_SIGNBIT_USING_GCC is set.
58377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58378         REPLACE_SIGNBIT_USING_GCC.
58379         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58380
58381 2008-01-25  Jim Meyering  <meyering@redhat.com>
58382
58383         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58384         * lib/poll.c: Include <config.h>, not "config.h".
58385         * tests/test-getaddrinfo.c: Likewise.
58386
58387 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58388
58389         * modules/sockets-tests: New file.
58390
58391 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58392
58393         * modules/sockets: New module, can be used to call WSA_Startup and
58394         WSA_Cleanup when needed.
58395
58396         * lib/sockets.h, lib/sockets.c: New files.
58397
58398         * m4/sockets.m4: New file.
58399
58400         * tests/test-sockets.c: New file.
58401
58402 2008-01-19  Bruno Haible  <bruno@clisp.org>
58403
58404         * doc/posix-headers: Renamed from doc/headers.
58405         * doc/posix-functions: Renamed from doc/functions.
58406         * doc/gnulib.texi: Update.
58407
58408 2008-01-19  Bruno Haible  <bruno@clisp.org>
58409
58410         * doc/glibc-functions/strcasestr.texi: Include contents of
58411         doc/functions/strcasestr.texi, fixing the list of platforms.
58412         * doc/functions/strcasestr.texi: Remove file.
58413
58414 2008-01-19  Bruno Haible  <bruno@clisp.org>
58415
58416         * doc/glibc-functions/memmem.texi: Include contents of
58417         doc/functions/memmem.texi.
58418         * doc/functions/memmem.texi: Remove file.
58419
58420 2008-01-18  Bruno Haible  <bruno@clisp.org>
58421
58422         * doc/glibc-functions/*.texi: New files.
58423         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58424         to use the new files.
58425
58426 2008-01-17  Bruno Haible  <bruno@clisp.org>
58427
58428         * tests/test-gethostname.c (main): Fix printf statement.
58429
58430 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58431
58432         * modules/gethostname-tests: New file.
58433
58434         * tests/test-gethostname.c: New file.
58435
58436 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58437
58438         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58439         used by the UNAME case.  Reported by Bruno Haible
58440         <bruno@clisp.org>.
58441
58442 2008-01-17  Eric Blake  <ebb9@byu.net>
58443
58444         Convert c-strcasestr to be more efficient.
58445         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58446         (Depends-on): Add c-strcase, remove malloca, strnlen.
58447         * tests/test-c-strcasestr.c (main): Enhance test.
58448         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58449
58450 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58451
58452         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58453         Use it in creating po/Makevars.
58454
58455 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58456
58457         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58458         Applications that requires it should initialize libgcrypt
58459         manually.
58460
58461 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58462
58463         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58464
58465 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         Fix problem with getdate on mingw32 reported by Simon Josefsson
58468         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58469         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58470         tzname", when deciding whether to declare tzname.
58471         * lib/strftime.c (tzname): Likewise.
58472
58473 2008-01-15  Bruno Haible  <bruno@clisp.org>
58474
58475         Work around a MacOS X 10.5 bug in frexpl().
58476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58477         * doc/functions/frexpl.texi: Document the bug.
58478         Reported by Elias Pipping <pipping@gentoo.org>.
58479
58480 2008-01-14  Eric Blake  <ebb9@byu.net>
58481
58482         Touch up previous patch.
58483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58484         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58485
58486         Convert strcasestr module to use Two-Way algorithm.
58487         * modules/strcasestr-simple: New module, based on the old
58488         strcasestr, but with Two-Way rather than KMP.
58489         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58490         * lib/string.in.h (rpl_strcasestr): Declare.
58491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58492         performance.
58493         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58494         * modules/string (Makefile.am): Support strcasestr.
58495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58496         * modules/strcasestr-tests (Depends-on): Check for alarm.
58497         * tests/test-strcasestr.c: Augment test.
58498         * lib/str-two-way.h: Clean up stray macro.
58499         * NEWS: Document new module.
58500         * MODULES.html.sh (string handling): Likewise.
58501         * doc/functions/strcasestr.texi: New file.
58502         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58503         here, since it is not a POSIX function.
58504
58505 2008-01-14  Colin Watson  <cjwatson@debian.org>
58506             Bruno Haible  <bruno@clisp.org>
58507
58508         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58509         works fine; if not, set REPLACE_STRSIGNAL.
58510         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58512         REPLACE_STRSIGNAL.
58513         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58514         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58515         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58516
58517 2008-01-14  Bruno Haible  <bruno@clisp.org>
58518
58519         * modules/strsignal (Include): Change to <string.h>.
58520
58521 2008-01-14  Colin Watson  <cjwatson@debian.org>
58522
58523         * modules/argp (Notice): Add a notice recommending to change
58524         XGETTEXT_OPTIONS.
58525         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58526
58527 2008-01-13  Colin Watson  <cjwatson@debian.org>
58528
58529         * modules/strsignal-tests: New file.
58530         * tests/test-strsignal.c: New file.
58531
58532         * lib/strsignal.c: New file, from glibc with modifications.
58533         * lib/siglist.h: New file, from glibc with modifications.
58534         * lib/string.in.h (strsignal): New declaration.
58535         * m4/strsignal.m4: New file.
58536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58537         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58538         * modules/strsignal: New file.
58539         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58540         HAVE_DECL_STRSIGNAL.
58541
58542 2008-01-13  Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58545         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58546         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58548
58549 2008-01-13  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58552         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58553         * lib/argp.h (__attribute__): Likewise.
58554         * lib/c-stack.c (__attribute__): Likewise.
58555         * lib/error.h (__attribute__): Likewise.
58556         * lib/fts.c (__attribute__): Likewise.
58557         * lib/openat.h (__attribute__): Likewise.
58558         * lib/stdio.in.h (__attribute__): Likewise.
58559         * lib/string.in.h (__attribute__): Likewise.
58560         * lib/utimens.c (__attribute__): Likewise.
58561         * lib/vasnprintf.h (__attribute__): Likewise.
58562         * lib/xalloc.h (__attribute__): Likewise.
58563         * lib/xprintf.h (__attribute__): Likewise.
58564         * lib/xstrtol.h (__attribute__): Likewise.
58565         * lib/xvasprintf.h (__attribute__): Likewise.
58566
58567 2008-01-12  Bruno Haible  <bruno@clisp.org>
58568
58569         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58570         * doc/glibc-headers/a.out.texi: New file.
58571         * doc/glibc-headers/aliases.texi: New file.
58572         * doc/glibc-headers/alloca.texi: New file.
58573         * doc/glibc-headers/ar.texi: New file.
58574         * doc/glibc-headers/argp.texi: New file.
58575         * doc/glibc-headers/argz.texi: New file.
58576         * doc/glibc-headers/byteswap.texi: New file.
58577         * doc/glibc-headers/crypt.texi: New file.
58578         * doc/glibc-headers/endian.texi: New file.
58579         * doc/glibc-headers/envz.texi: New file.
58580         * doc/glibc-headers/err.texi: New file.
58581         * doc/glibc-headers/error.texi: New file.
58582         * doc/glibc-headers/execinfo.texi: New file.
58583         * doc/glibc-headers/fpu_control.texi: New file.
58584         * doc/glibc-headers/fstab.texi: New file.
58585         * doc/glibc-headers/fts.texi: New file.
58586         * doc/glibc-headers/getopt.texi: New file.
58587         * doc/glibc-headers/ieee754.texi: New file.
58588         * doc/glibc-headers/ifaddrs.texi: New file.
58589         * doc/glibc-headers/libintl.texi: New file.
58590         * doc/glibc-headers/mcheck.texi: New file.
58591         * doc/glibc-headers/mntent.texi: New file.
58592         * doc/glibc-headers/obstack.texi: New file.
58593         * doc/glibc-headers/paths.texi: New file.
58594         * doc/glibc-headers/printf.texi: New file.
58595         * doc/glibc-headers/pty.texi: New file.
58596         * doc/glibc-headers/resolv.texi: New file.
58597         * doc/glibc-headers/shadow.texi: New file.
58598         * doc/glibc-headers/sysexits.texi: New file.
58599         * doc/glibc-headers/ttyent.texi: New file.
58600
58601 2008-01-12  Jim Meyering  <meyering@redhat.com>
58602
58603         announce-gen: emit Gnulib's git-based version string.
58604         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58605         New option --gnulib-version=V, where V is expected to be
58606         the output of running git describe in the gnulib directory.
58607         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58608         not useful, and plan to stop publishing an xdelta file with each
58609         coreutils release.
58610
58611         * build-aux/announce-gen: Also check for lzma-compressed files.
58612
58613 2008-01-11  Bruno Haible  <bruno@clisp.org>
58614
58615         * tests/test-memmem.c (main): Increase maximum allowed time.
58616         * tests/test-strstr.c (main): Likewise.
58617
58618 2008-01-11  Bruno Haible  <bruno@clisp.org>
58619
58620         * doc/functions/memmem.texi: Add more precisions about platforms.
58621         * doc/functions/strstr.texi: Likewise.
58622
58623 2008-01-10  Eric Blake  <ebb9@byu.net>
58624
58625         * m4/strstr.m4: Delete cruft from copy-n-paste.
58626         Reported by Bruno Haible.
58627
58628 2008-01-10  Bruno Haible  <bruno@clisp.org>
58629
58630         Make c-strstr rely on strstr.
58631         * lib/c-strstr.c: Don't include str-kmp.h.
58632         (c_strstr): Define in terms of strstr.
58633         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58634         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58635
58636 2008-01-10  Bruno Haible  <bruno@clisp.org>
58637
58638         * doc/gnulib.texi (String Functions in C Locale): New section.
58639         * doc/c-ctype.texi: New file.
58640         * doc/c-strcase.texi: New file.
58641         * doc/c-strcaseeq.texi: New file.
58642         * doc/c-strcasestr.texi: New file.
58643         * doc/c-strstr.texi: New file.
58644         * doc/c-strtod.texi: New file.
58645         * doc/c-strtold.texi: New file.
58646
58647 2008-01-10  Eric Blake  <ebb9@byu.net>
58648
58649         * lib/relocatable.h: Fix a comment.
58650
58651 2008-01-10  Eric Blake  <ebb9@byu.net>
58652
58653         Share two-way algorithm.
58654         * lib/str-two-way.h: New file, merged from...
58655         * lib/memmem.c: ...here...
58656         * lib/strstr.c: ...and here.
58657         * modules/memmem (Files): Use it.
58658         * modules/strstr (Files): Likewise.
58659
58660         Avoid quadratic strstr implementations.
58661         * lib/strstr.c: New file.
58662         * m4/strstr.m4: Likewise.
58663         * modules/strstr: Likewise.
58664         * modules/strstr-tests: Likewise.
58665         * tests/test-strstr.c: Likewise.
58666         * lib/string.in.h (rpl_strstr): Declare.
58667         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58669         * modules/string (Makefile.am): Likewise.
58670         * MODULES.html.sh (string handling): Mention new module.
58671         * doc/functions/strstr.texi (strstr): Document the bug.
58672
58673 2008-01-10  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/relocatable.h (relocate): State whether result is freshly
58676         allocated or not.
58677         * lib/relocatable.c (relocate): Return a freshly allocated string
58678         instead of a pointer to a privately held string.
58679         Reported by Sylvain Beucler <beuc@gnu.org>.
58680
58681 2008-01-10  Colin Watson  <cjwatson@debian.org>
58682
58683         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58684         s/S_ISNLK/S_ISLNK/.
58685
58686 2008-01-09  Bruno Haible  <bruno@clisp.org>
58687
58688         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58689         and other files.
58690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58691         if it's only a guess.
58692         * modules/memmem: Simplify by depending on memmem-simple.
58693
58694 2008-01-09  Bruno Haible  <bruno@clisp.org>
58695
58696         Work around OpenBSD 4.0 tdelete() bug.
58697         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58698         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58699         macros and don't redefine the enum values.
58700         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58701         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58702         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58703
58704 2008-01-09  Bruno Haible  <bruno@clisp.org>
58705
58706         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58707         (main): Don't perform the tests if setlocale did not install a UTF-8
58708         locale. Needed on OpenBSD 4.0.
58709         * modules/wcwidth-tests (Depends-on): Add localcharset.
58710
58711 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58714         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58715         * NEWS: announce this.
58716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58717
58718 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58719         and Eric Blake  <ebb9@byu.net>
58720
58721         Add memmem-simple module.
58722         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58723         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58724         * modules/memmem-simple: New file.
58725         * modules/memmem (Description): Tweak.
58726         * MODULES.html.sh (string handling): Mention new module.
58727         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58728         addressed by memmem-simple.
58729         * NEWS: Document the difference.
58730
58731 2008-01-09  Eric Blake  <ebb9@byu.net>
58732
58733         Give gcc some memmem optimization hints.
58734         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58735         (strcasestr): Declare as pure.
58736         * modules/memmem (Maintainer): Claim my implementation.
58737
58738 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58739
58740         Support AIX 6.1 and higher.
58741         * build-aux/config.libpath: Likewise.
58742         * build-aux/config.rpath: Likewise.
58743
58744 2008-01-08  Jim Meyering  <meyering@redhat.com>
58745             Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58748         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58749         Reported by Peter Fales in
58750         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58751
58752 2008-01-08  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/unictype/category-of (Depends-on): Add
58755         unictype/category-none.
58756         * modules/unictype/category-and-tests (Depends-on): Add
58757         unictype/category-{L,N,Lu,Nd}.
58758         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58759         * modules/unictype/category-or-tests (Depends-on): Add
58760         unictype/category-{L,N}.
58761         * modules/unictype/category-name-tests (Depends-on): Add
58762         unictype/category-{Z,Nl}.
58763         Reported by Simon Josefsson.
58764
58765 2008-01-08  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58768         convention better.
58769         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58770         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58771         Reported by Peter Miller <millerp@canb.auug.org.au>.
58772
58773 2008-01-08  Eric Blake  <ebb9@byu.net>
58774
58775         Rewrite memmem to guarantee linear complexity without malloc.
58776         * lib/memmem.c (memmem): Use Two-Way rather than
58777         Knuth-Morris-Pratt, to allow O(1) space usage.
58778         (critical_factorization, two_way_short_needle)
58779         (two_way_long_needle): New functions.
58780         (knuth_morris_pratt): Delete.
58781         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58782         Add stdint.
58783         * tests/test-memmem.c (main): Add tests for periodic needle and
58784         sublinear performance.
58785         * doc/functions/memmem.texi (memmem): Document other deficiencies
58786         in cygwin and older glibc.
58787
58788 2008-01-08  Bruno Haible  <bruno@clisp.org>
58789
58790         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58791         augmentation.
58792
58793 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58794
58795         Add a configure time option: --disable-acl.
58796         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58797         AC_ARG_ENABLE(acl).
58798
58799 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58800
58801         * tests/test-localename.c: Don't include obsolete "setenv.h".
58802
58803         * modules/localename-tests (Depends-on): Need unsetenv.
58804
58805 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58806
58807         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58808
58809 2008-01-06  Colin Watson  <cjwatson@debian.org>
58810
58811         * users.txt: Add man-db.
58812
58813 2008-01-07  Bruno Haible  <bruno@clisp.org>
58814
58815         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58816         previous section name.
58817
58818 2008-01-07  Bruno Haible  <bruno@clisp.org>
58819
58820         * lib/progname.c (set_program_name): Don't strip off a leading
58821         "lt-" prefix outside a .libs directory.
58822         Suggested by Paul Eggert.
58823
58824 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58825             Bruno Haible  <bruno@clisp.org>
58826
58827         Improve memory cleanup in 'relocatable' module.
58828         * lib/relocatable.h (compute_curr_prefix): Change return type to
58829         'char *'.
58830         * lib/relocatable.c (compute_curr_prefix): Change return type to
58831         'char *'. Free curr_installdir after use.
58832         (relocate): Free curr_prefix_better after use.
58833         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58834
58835 2008-01-01  Bruno Haible  <bruno@clisp.org>
58836
58837         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58838         failure on older glibc systems.
58839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58840
58841 2008-01-05  Eric Blake  <ebb9@byu.net>
58842
58843         Avoid quadratic system memmem.
58844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58845         Reported by Ralf Wildenhues.
58846
58847         Fix memmem test for mingw.
58848         * modules/memmem-tests (configure.ac): Check for alarm.
58849         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58850         it.
58851         * doc/functions/memmem.texi: New file.
58852         * doc/gnulib.texi (Function Substitutes): Add memmem.
58853         Reported by Bruno Haible.
58854
58855 2008-01-04  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58858         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58859         gl_HEADER_STRING_H_DEFAULTS.
58860
58861 2008-01-04  Eric Blake  <ebb9@byu.net>
58862
58863         Shorten duration of memmem test.
58864         * tests/test-memmem.c (main): Use alarm to declare failure if test
58865         is taking too long.
58866         Reported by Ralf Wildenhues.
58867
58868 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58869
58870         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58871         string, needed by strerror.
58872
58873 2008-01-03  Colin Watson  <cjwatson@debian.org>
58874             Bruno Haible  <bruno@clisp.org>
58875
58876         * doc/gnulib-tool.texi (Localization): New section.
58877
58878 2008-01-02  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58881         variables to 'unsigned char *' type.
58882         Reported by Paul Eggert.
58883
58884 2008-01-02  Jim Meyering  <jim@meyering.net>
58885
58886         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58887
58888 2007-12-31  Jim Meyering  <jim@meyering.net>
58889
58890         Avoid use of private FTS type name.
58891         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58892
58893 2007-12-30  Karl Berry  <karl@gnu.org>
58894
58895         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58896         work around defect in Texinfo and/or the standalone Info browser.
58897
58898 2007-12-30  Bruno Haible  <bruno@clisp.org>
58899
58900         Unify 5 copies of the KMP code.
58901         * lib/str-kmp.h: New file.
58902         * lib/c-strcasestr.c: Include str-kmp.h.
58903         (knuth_morris_pratt): Remove function.
58904         (c_strcasestr): Update.
58905         * lib/c-strstr.c: Include str-kmp.h.
58906         (knuth_morris_pratt): Remove function.
58907         (c_strcasestr): Update.
58908         * lib/mbscasestr.c: Include str-kmp.h.
58909         (knuth_morris_pratt_unibyte): Remove function.
58910         * lib/mbsstr.c: Include str-kmp.h.
58911         (knuth_morris_pratt_unibyte): Remove function.
58912         * lib/strcasestr.c: Include str-kmp.h.
58913         (knuth_morris_pratt): Remove function.
58914         (strcasestr): Update.
58915         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58916         * modules/c-strstr (Files): Likewise.
58917         * modules/mbscasestr (Files): Likewise.
58918         * modules/mbsstr (Files): Likewise.
58919         * modules/strcasestr (Files): Likewise.
58920         Suggested by Paul Eggert.
58921
58922 2007-12-30  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58925         defined.
58926
58927 2007-12-30  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/xmalloca.h: Include xalloc.h.
58930         (xnmalloca): New macro.
58931
58932 2007-12-30  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/malloca.h (nmalloca): New macro.
58935         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58936         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58937         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58938         knuth_morris_pratt_multibyte): Likewise.
58939         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58940         knuth_morris_pratt_multibyte): Likewise.
58941         * lib/memmem.c (knuth_morris_pratt): Likewise.
58942         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58943
58944 2007-12-25  Bruno Haible  <bruno@clisp.org>
58945
58946         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58947         * lib/glob.c: Don't include openat.h.
58948         (link_exists2_p): Add back the code that deals with the
58949         !GLOB_ALTDIRFUNC case.
58950         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58951         let it do the filename concatenation.
58952         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58953         * modules/glob (Depends-on): Remove openat.
58954
58955 2007-12-31  Bruno Haible  <bruno@clisp.org>
58956
58957         * modules/dirfd (License): Change to LGPLv2+.
58958         Approved by Jim Meyering.
58959
58960 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58961
58962         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58963         when multiplying M by sizeof (size_t).
58964
58965 2007-12-10  Martin Lambers  <marlam@marlam.de>
58966
58967         Override getpagesize on mingw.
58968         * lib/getpagesize.c: New file.
58969         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58970         * modules/getpagesize (Files): Add lib/getpagesize.c.
58971         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58973         REPLACE_GETPAGESIZE.
58974         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58975
58976 2007-12-25  Bruno Haible  <bruno@clisp.org>
58977
58978         * modules/localcharset (Notice): New field.
58979         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58980         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58981
58982 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58983             Bruno Haible  <bruno@clisp.org>
58984
58985         Avoid using the syntax symbol() in formatted documentation.
58986         * MODULES.html.sh (func_module): When replacing symbol() with a
58987         hyperlink, remove the parentheses. Show an error if some remain.
58988         Recognize and render the '...' syntax.
58989         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58990         Rework. Add paragraph about GCC's inlining.
58991         * doc/alloca.texi: Likewise.
58992         * doc/error.texi: Remove parentheses from symbol reference.
58993         * doc/gnulib-intro.texi: Likewise.
58994         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58995         * modules/fnmatch (Description): Reword to say "the ... function".
58996         * modules/full-read (Description): Likewise.
58997         * modules/full-write (Description): Likewise.
58998         * modules/safe-read (Description): Likewise.
58999         * modules/safe-write (Description): Likewise.
59000         * modules/strchrnul (Description): Likewise.
59001         * modules/trim (Description): Likewise.
59002         * modules/error (Description): Remove parentheses from symbol
59003         references.
59004         * modules/verror (Description): Likewise.
59005         Reported by Karl Berry.
59006
59007 2007-12-25  Bruno Haible  <bruno@clisp.org>
59008
59009         Fixup after 2007-10-16 commit.
59010         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59011
59012 2007-12-24  Bruno Haible  <bruno@clisp.org>
59013
59014         Make --enable-relocatable work with DESTDIR.
59015         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59016         to compute installdir from destprog.
59017         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59018         also set the RELOC_DESTDIR variable.
59019         Reported by Левашев Иван <octagram@bluebottle.com>.
59020
59021 2007-12-24  Bruno Haible  <bruno@clisp.org>
59022
59023         Fix link error due to xalloc_die().
59024         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59025         of xreadlink.
59026         * lib/relocwrapper.c: Update comments.
59027         * build-aux/install-reloc: Remove xreadlink.c from file list.
59028         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59029         xreadlink.c.
59030         Reported by Левашев Иван <octagram@bluebottle.com>.
59031
59032 2007-12-24  Bruno Haible  <bruno@clisp.org>
59033
59034         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59035         * lib/setenv.h: Remove file.
59036         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59037         lib/setenv.h.
59038         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59039         (Depends-on): Add stdlib.
59040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59041         gl_FUNC_UNSETENV.
59042         (Include): Replace setenv.h with <stdlib.h>.
59043         * modules/unsetenv: New file.
59044         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59045         * lib/unsetenv.c: Include <stdlib.h> first.
59046         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59047         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59048         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59049         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59050         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59051         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59053         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59054         * doc/functions/unsetenv.texi: Update.
59055         * modules/xsetenv (Depends-on): Add unsetenv.
59056         * modules/getdate (Depends-on): Likewise.
59057         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59058         * lib/xsetenv.c: Don't include setenv.h.
59059         * lib/getdate.y: Likewise.
59060         * lib/relocwrapper.c: Likewise.
59061         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59062         (Depends-on): Add stdlib.
59063         * NEWS: Mention the changes.
59064         Reported by Левашев Иван <octagram@bluebottle.com>.
59065
59066 2007-12-23  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59069         indentation.
59070
59071 2007-12-23  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/c-strcasestr.c: Add more comments.
59074         * lib/c-strstr.c: Likewise.
59075         * lib/mbscasestr.c: Likewise.
59076         * lib/mbsstr.c: Likewise.
59077         * lib/strcasestr.c: Likewise.
59078         * lib/memmem.c: Likewise.
59079
59080 2007-12-23  Bruno Haible  <bruno@clisp.org>
59081
59082         * tests/test-memmem.c: Include <string.h> first.
59083
59084 2007-12-22  Bruno Haible  <bruno@clisp.org>
59085
59086         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59087         the contents of $testsbase.
59088         Reported by Ralf Wildenhues.
59089
59090 2007-12-22  Bruno Haible  <bruno@clisp.org>
59091
59092         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59093         two variables local_ldadd_before, local_ldadd_last.
59094
59095 2007-12-20  Eric Blake  <ebb9@byu.net>
59096
59097         Work around circular library issue when cross-compiling.
59098         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59099         that progname.o does not need to pull in rpl_memcmp.
59100
59101 2007-12-19  Eric Blake  <ebb9@byu.net>
59102
59103         Fix memmem to avoid O(n^2) worst-case complexity.
59104         * lib/memmem.c (knuth_morris_pratt): New function.
59105         (memmem): Use it if first few naive iterations fail.
59106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59107         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59108         * modules/memchr (License): Likewise.
59109         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59110         malloca.
59111         * tests/test-memmem.c: Rewrite, borrowing ideas from
59112         test-mbsstr1.c; the old version wouldn't even compile!
59113         * modules/memmem-tests: New file.
59114         * lib/string.in.h (rpl_memmem): Add declaration.
59115         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59117         REPLACE_MEMMEM.
59118
59119 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59120
59121         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59122         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59123         before any system include files, and undef after them all.  This
59124         should fix a problem on VMS reported by John E. Malmberg in
59125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59126
59127 2007-12-17  Eric Blake  <ebb9@byu.net>
59128
59129         Revert addition of verify, for BSD/OS.
59130         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59131         can't handle large files, for the sake of obsolete platforms.
59132         * modules/fseeko (Depends-on): Remove verify.
59133         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59134         * doc/functions/ftello.texi (ftello): Likewise.
59135         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59136         Reported by Larry Jones.
59137
59138 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59139
59140         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59141         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59142
59143 2007-12-17  Jim Meyering  <meyering@redhat.com>
59144
59145         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59146         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59147         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59148         * modules/getcwd (Depends-on): Add openat.
59149         Reported by Petr Salinger.
59150
59151 2007-12-17  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59154         avoid a segmentation fault of the configure test on x86_64 systems.
59155
59156 2007-12-15  Jim Meyering  <meyering@redhat.com>
59157
59158         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59159
59160 2007-12-13  Eric Blake  <ebb9@byu.net>
59161
59162         Another fseek test.
59163         * tests/test-fseek.c (main): Also test ungetc handling.
59164         * tests/test-fseeko.c (main): Likewise.
59165         * modules/fseeko (Depends-on): Add verify.
59166         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59167         large.
59168         Reported by Larry Jones.
59169
59170         Fix fseeko on mingw.
59171         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59172         seek.
59173
59174         Beef up fseek tests.
59175         * tests/test-fseek.c (main): Also test eof handling.
59176         * tests/test-fseeko.c (main): Likewise.
59177         Reported by Larry Jones.
59178
59179 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59180
59181         Fix fseeko on BSD-based platforms.
59182         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59183         successful seek.
59184
59185 2007-12-12  Eric Blake  <ebb9@byu.net>
59186
59187         Allow circular dependency of separate libtests.a
59188         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59189         when use_libtests.
59190
59191 2007-12-11  Eric Blake  <ebb9@byu.net>
59192
59193         Fix bug with -0.0L in previous patch.
59194         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59195         * tests/test-isnan.c (main): Also test on zeroes.
59196         * tests/test-isnanf.c (main): Likewise.
59197         * tests/test-isnanl.h (main): Likewise.
59198
59199         Detect pseudo-denormals on x86 even when cross-compiling.
59200         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59201         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59202         invalid bit patterns that happen to satisfy ==.
59203
59204         Avoid link failures with separate libtests.a.
59205         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59206         last, to satisfy circular dependencies.
59207
59208 2007-12-11  Eric Blake  <ebb9@byu.net>
59209         and Bruno Haible  <bruno@clisp.org>
59210
59211         Fix OpenBSD 4.0 <float.h> handling of long double.
59212         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59213         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59214         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59215
59216 2007-12-11  Jim Meyering  <meyering@redhat.com>
59217
59218         * users.txt: Add libvirt.
59219
59220         Support versions of autoconf prior to 2.59c.
59221         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59222         if it is not already defined.
59223
59224 2007-12-09  Bruno Haible  <bruno@clisp.org>
59225
59226         Let 'gnulib-tool --import' collect sources needed for the tests in
59227         tests/ rather than in lib/.
59228         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59229         argument. If true, add rules to generate libtests.a, and put libtests.a
59230         into $(LDADD). Consider source files in subdirectories and set
59231         uses_subdirs.
59232         (func_emit_initmacro_start, func_emit_initmacro_end,
59233         func_emit_initmacro_done): Pass all arguments explicitly.
59234         (func_import): Determine two module lists main_modules,
59235         testsrelated_modules. Determine use_libtests. Determine two variables
59236         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59237         instead of just sed_transform_lib_file. Determine two variables
59238         main_files and testsrelated_files. Compute 'files' as the union of
59239         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59240         func_add_or_update. In the generated gnulib-comp.m4, collect the
59241         object files for tests/ in different variables than those for lib/.
59242         Substitute LIBTESTS_LIBDEPS.
59243         (func_create_testdir): Combine the uses_subdirs results from
59244         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59245
59246 2007-12-09  Bruno Haible  <bruno@clisp.org>
59247
59248         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59249         the build-aux directory.
59250
59251 2007-12-09  Bruno Haible  <bruno@clisp.org>
59252
59253         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59254         introduced on 2006-09-09.
59255
59256 2007-12-07  Jim Meyering  <meyering@redhat.com>
59257
59258         Let these macros work also with autoconf-2.59.
59259         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59260         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59262
59263 2007-12-06  Jim Meyering  <meyering@redhat.com>
59264
59265         Avoid a configure-time syntax error in gl_FUNC_ACL.
59266         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59267         function in each branch, before testing the cache variable.
59268
59269 2007-12-04  Eric Blake  <ebb9@byu.net>
59270
59271         Make scripts executable.
59272         * build-aux/config.guess: Add execute permissions.
59273         * build-aux/config.sub: Likewise.
59274         * build-aux/gendocs.sh: Likewise.
59275
59276         Fix frexp on mingw.
59277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59278         cross-compiling.
59279         * doc/functions/frexp.texi (frexp): Document the bug.
59280
59281         Make cygwin fseeko check more reliable.
59282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59283         version numbers, rather than unrelated feature check.
59284         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59285         * doc/functions/ftello.texi (ftello): Likewise.
59286         Reported by Bruno Haible.
59287
59288         * m4/strerror.m4: Bump version number.
59289
59290 2007-12-03  Bruno Haible  <bruno@clisp.org>
59291
59292         * doc/functions/mprotect.texi: Mention the mingw problem.
59293
59294 2007-12-03  Eric Blake  <ebb9@byu.net>
59295
59296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59297         REPLACE_STRERROR is initialized before this macro.
59298
59299 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59302         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59303         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59304         put -lsec in even for programs other than 'ls'.  This fixes a problem
59305         for gettext reported by Bruno Haible in
59306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59307         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59308         Add support for Solaris 10.  This isn't efficient, but should get the
59309         job done for now.
59310
59311 2007-12-03  James Youngman  <jay@gnu.org>
59312
59313         * doc/regexprops-generic.texi: change "an close-group" to "a
59314         close-group" and "illegal" to "not allowed".
59315
59316 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59317
59318         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59319         pr_byname.h. Needed for the rare case when the maintainer has done
59320         "make maintainer-clean" in the source directory and then attempts a
59321         build outside the source directory.
59322         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59323         scripts_byname.h.
59324
59325 2007-12-02  Martin Lambers <marlam@marlam.de>
59326             Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/getpagesize.h: Remove file.
59329         * lib/unistd.in.h: Include declaration of getpagesize here.
59330         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59331         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59332         HAVE_SYS_PARAM_H.
59333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59334         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59335         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59336         (Depends-on): Add unistd.
59337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59338         (Include): Use <unistd.h> instead of getpagesize.h.
59339         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59340         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59341         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59342         gl_GETPAGESIZE invocation, already handled by module dependency.
59343         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59344
59345 2007-12-02  Bruno Haible  <bruno@clisp.org>
59346
59347         * modules/strings-tests: New file.
59348         * tests/test-strings.c: New file.
59349
59350         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59351         * lib/strings.in.h: New file.
59352         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59353         * m4/strings_h.m4: New file.
59354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59355         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59356         * modules/strings: New file.
59357         * modules/string (Makefile.am): Update.
59358         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59359         Reported by Karl Berry.
59360
59361 2007-12-01  Eric Blake  <ebb9@byu.net>
59362
59363         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59364         accomodate fix in cygwin 1.5.25.
59365
59366 2007-12-01  Jim Meyering  <meyering@redhat.com>
59367
59368         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59369         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59370         that would inhibit utf8-optimization of a regexp containing line-
59371         or buffer-anchors, e.g., `^', `$'.
59372
59373 2007-11-30  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59376         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59377         glthread_recursive_lock_init.
59378         * lib/lock.c (glthread_recursive_lock_init)
59379         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59380         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59381
59382 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         New function qset_acl, like set_acl but with syscall semantics.
59385         * lib/acl.h (qset_acl): New decl.
59386         * lib/acl.c (qset_acl): New function.
59387         (set_acl): Use new function.  Use more-consistent diagnostics.
59388
59389 2007-11-28  Jim Meyering  <meyering@redhat.com>
59390
59391         * modules/physmem (License): Change from GPL to LGPLv2+.
59392
59393 2007-11-26  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59396         'long double' type has excess precision.
59397         Reported by Jim Meyering in
59398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59399
59400 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59401
59402         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59403         Sync from <http://gnu.org/licenses>.
59404         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59405         with license text from same location.
59406         * doc/maintain.texi, doc/standards.texi:  Sync from
59407         <http://savannah.gnu.org/projects/gnustandards>.
59408
59409 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59410         and Jim Meyering  <meyering@redhat.com>
59411
59412         Adjust getdate' grammar to accept a slightly more regular language.
59413         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59414         Before, the former was rejected.
59415         * lib/getdate.y (digits_to_date_time): New function, factored
59416         out of ...
59417         (number): ...here.  Just call digits_to_date_time.
59418         (hybrid): New non-terminal to handle an <unsigned number,
59419         signed relative offset> sequence consistently.
59420
59421 2007-11-18  Jim Meyering  <meyering@redhat.com>
59422
59423         Pull my changes from coreutils:
59424         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59425         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59426         use of $gnulib_tool_option_extras, so that it's separated from the
59427         preceding argument.
59428
59429         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59430         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59431         parent destination directories before copying a file into place.
59432
59433 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59434
59435         bootstrap: work also with 4-argument variant of AC_INIT
59436         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59437
59438 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59439
59440         Port test-getaddrinfo to Solaris.
59441         Problem reported by Bruno Haible in
59442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59443         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59444         explanation of setting 'hints'.
59445         Don't reject an implementation merely because it returns EAI_SERVICE.
59446         (EAI_SERVICE): Define to 0 if not defined.
59447
59448 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         The license of gnu-make and posix-shell is now "GPLed build tool".
59451         * modules/gnu-make (License): Likewise.
59452         * modules/posix-shell (License): Likewise.
59453
59454         New module posix-shell, for determining a POSIX shell
59455         or perhaps something that is close enough to a POSIX shell.
59456         * m4/posix-shell.m4: New file.
59457         * modules/posix-shell: New file.
59458
59459         * MODULES.html.sh: Mention new module.
59460
59461         New module gnu-make, for determining whether we're using GNU Make.
59462         * m4/gnu-make.m4: New file.
59463         * modules/gnu-make: New file.
59464         * MODULES.html.sh: Mention new module.
59465
59466 2007-11-14  Jim Meyering  <meyering@redhat.com>
59467
59468         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59469         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59470         use this macro to create a function _definition_.
59471         Remove useless "#undef ARGMATCH_DIE".
59472
59473 2007-11-14  Bruno Haible  <bruno@clisp.org>
59474
59475         * lib/config.charset: Update for OpenBSD 4.1.
59476         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59477
59478 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         Document 64-bit #if problems in stdint.texi.
59481         * doc/headers/stdint.texi (stdint.h): Mention problems with
59482         64-bit-#if, and how to work around them.
59483
59484         Don't insist on 'long long int' support in the preprocessor.  It
59485         breaks too many things.  For example, PRIdMAX still uses a 'long
59486         long int' format with the latest Sun compiler, even though
59487         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59488         preprocessor problem.  This causes the latest coreutils to dump
59489         core on Solaris 10 sparc with the Sun C compiler.
59490         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59491         the troublesome expressions at configure-time, not at #if-time.
59492         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59493         preprocessor.
59494         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59495         compile-time C checks, done at 'configure'-time.
59496         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59497         * modules/inttypes (Makefile): Substitute the new symbols that
59498         gl_INTTYPES_H now generates.
59499         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59500
59501 2007-11-12  Bruno Haible  <bruno@clisp.org>
59502
59503         Tests for Unicode character classification functions.
59504
59505         * modules/unictype/bidicategory-byname-tests: New file.
59506         * modules/unictype/bidicategory-name-tests: New file.
59507         * modules/unictype/bidicategory-of-tests: New file.
59508         * modules/unictype/bidicategory-test-tests: New file.
59509         * modules/unictype/block-list-tests: New file.
59510         * modules/unictype/block-of-tests: New file.
59511         * modules/unictype/block-test-tests: New file.
59512         * modules/unictype/category-C-tests: New file.
59513         * modules/unictype/category-Cc-tests: New file.
59514         * modules/unictype/category-Cf-tests: New file.
59515         * modules/unictype/category-Cn-tests: New file.
59516         * modules/unictype/category-Co-tests: New file.
59517         * modules/unictype/category-Cs-tests: New file.
59518         * modules/unictype/category-L-tests: New file.
59519         * modules/unictype/category-Ll-tests: New file.
59520         * modules/unictype/category-Lm-tests: New file.
59521         * modules/unictype/category-Lo-tests: New file.
59522         * modules/unictype/category-Lt-tests: New file.
59523         * modules/unictype/category-Lu-tests: New file.
59524         * modules/unictype/category-M-tests: New file.
59525         * modules/unictype/category-Mc-tests: New file.
59526         * modules/unictype/category-Me-tests: New file.
59527         * modules/unictype/category-Mn-tests: New file.
59528         * modules/unictype/category-N-tests: New file.
59529         * modules/unictype/category-Nd-tests: New file.
59530         * modules/unictype/category-Nl-tests: New file.
59531         * modules/unictype/category-No-tests: New file.
59532         * modules/unictype/category-P-tests: New file.
59533         * modules/unictype/category-Pc-tests: New file.
59534         * modules/unictype/category-Pd-tests: New file.
59535         * modules/unictype/category-Pe-tests: New file.
59536         * modules/unictype/category-Pf-tests: New file.
59537         * modules/unictype/category-Pi-tests: New file.
59538         * modules/unictype/category-Po-tests: New file.
59539         * modules/unictype/category-Ps-tests: New file.
59540         * modules/unictype/category-S-tests: New file.
59541         * modules/unictype/category-Sc-tests: New file.
59542         * modules/unictype/category-Sk-tests: New file.
59543         * modules/unictype/category-Sm-tests: New file.
59544         * modules/unictype/category-So-tests: New file.
59545         * modules/unictype/category-Z-tests: New file.
59546         * modules/unictype/category-Zl-tests: New file.
59547         * modules/unictype/category-Zp-tests: New file.
59548         * modules/unictype/category-Zs-tests: New file.
59549         * modules/unictype/category-and-not-tests: New file.
59550         * modules/unictype/category-and-tests: New file.
59551         * modules/unictype/category-byname-tests: New file.
59552         * modules/unictype/category-name-tests: New file.
59553         * modules/unictype/category-none-tests: New file.
59554         * modules/unictype/category-of-tests: New file.
59555         * modules/unictype/category-or-tests: New file.
59556         * modules/unictype/category-test-withtable-tests: New file.
59557         * modules/unictype/combining-class-tests: New file.
59558         * modules/unictype/ctype-alnum-tests: New file.
59559         * modules/unictype/ctype-alpha-tests: New file.
59560         * modules/unictype/ctype-blank-tests: New file.
59561         * modules/unictype/ctype-cntrl-tests: New file.
59562         * modules/unictype/ctype-digit-tests: New file.
59563         * modules/unictype/ctype-graph-tests: New file.
59564         * modules/unictype/ctype-lower-tests: New file.
59565         * modules/unictype/ctype-print-tests: New file.
59566         * modules/unictype/ctype-punct-tests: New file.
59567         * modules/unictype/ctype-space-tests: New file.
59568         * modules/unictype/ctype-upper-tests: New file.
59569         * modules/unictype/ctype-xdigit-tests: New file.
59570         * modules/unictype/decimal-digit-tests: New file.
59571         * modules/unictype/digit-tests: New file.
59572         * modules/unictype/mirror-tests: New file.
59573         * modules/unictype/numeric-tests: New file.
59574         * modules/unictype/property-alphabetic-tests: New file.
59575         * modules/unictype/property-ascii-hex-digit-tests: New file.
59576         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59577         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59578         * modules/unictype/property-bidi-block-separator-tests: New file.
59579         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59580         * modules/unictype/property-bidi-common-separator-tests: New file.
59581         * modules/unictype/property-bidi-control-tests: New file.
59582         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59583         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59584         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59585         * modules/unictype/property-bidi-european-digit-tests: New file.
59586         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59587         * modules/unictype/property-bidi-left-to-right-tests: New file.
59588         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59589         * modules/unictype/property-bidi-other-neutral-tests: New file.
59590         * modules/unictype/property-bidi-pdf-tests: New file.
59591         * modules/unictype/property-bidi-segment-separator-tests: New file.
59592         * modules/unictype/property-bidi-whitespace-tests: New file.
59593         * modules/unictype/property-byname-tests: New file.
59594         * modules/unictype/property-combining-tests: New file.
59595         * modules/unictype/property-composite-tests: New file.
59596         * modules/unictype/property-currency-symbol-tests: New file.
59597         * modules/unictype/property-dash-tests: New file.
59598         * modules/unictype/property-decimal-digit-tests: New file.
59599         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59600         * modules/unictype/property-deprecated-tests: New file.
59601         * modules/unictype/property-diacritic-tests: New file.
59602         * modules/unictype/property-extender-tests: New file.
59603         * modules/unictype/property-format-control-tests: New file.
59604         * modules/unictype/property-grapheme-base-tests: New file.
59605         * modules/unictype/property-grapheme-extend-tests: New file.
59606         * modules/unictype/property-grapheme-link-tests: New file.
59607         * modules/unictype/property-hex-digit-tests: New file.
59608         * modules/unictype/property-hyphen-tests: New file.
59609         * modules/unictype/property-id-continue-tests: New file.
59610         * modules/unictype/property-id-start-tests: New file.
59611         * modules/unictype/property-ideographic-tests: New file.
59612         * modules/unictype/property-ids-binary-operator-tests: New file.
59613         * modules/unictype/property-ids-trinary-operator-tests: New file.
59614         * modules/unictype/property-ignorable-control-tests: New file.
59615         * modules/unictype/property-iso-control-tests: New file.
59616         * modules/unictype/property-join-control-tests: New file.
59617         * modules/unictype/property-left-of-pair-tests: New file.
59618         * modules/unictype/property-line-separator-tests: New file.
59619         * modules/unictype/property-logical-order-exception-tests: New file.
59620         * modules/unictype/property-lowercase-tests: New file.
59621         * modules/unictype/property-math-tests: New file.
59622         * modules/unictype/property-non-break-tests: New file.
59623         * modules/unictype/property-not-a-character-tests: New file.
59624         * modules/unictype/property-numeric-tests: New file.
59625         * modules/unictype/property-other-alphabetic-tests: New file.
59626         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59627         * modules/unictype/property-other-grapheme-extend-tests: New file.
59628         * modules/unictype/property-other-id-continue-tests: New file.
59629         * modules/unictype/property-other-id-start-tests: New file.
59630         * modules/unictype/property-other-lowercase-tests: New file.
59631         * modules/unictype/property-other-math-tests: New file.
59632         * modules/unictype/property-other-uppercase-tests: New file.
59633         * modules/unictype/property-paired-punctuation-tests: New file.
59634         * modules/unictype/property-paragraph-separator-tests: New file.
59635         * modules/unictype/property-pattern-syntax-tests: New file.
59636         * modules/unictype/property-pattern-white-space-tests: New file.
59637         * modules/unictype/property-private-use-tests: New file.
59638         * modules/unictype/property-punctuation-tests: New file.
59639         * modules/unictype/property-quotation-mark-tests: New file.
59640         * modules/unictype/property-radical-tests: New file.
59641         * modules/unictype/property-sentence-terminal-tests: New file.
59642         * modules/unictype/property-soft-dotted-tests: New file.
59643         * modules/unictype/property-space-tests: New file.
59644         * modules/unictype/property-terminal-punctuation-tests: New file.
59645         * modules/unictype/property-test-tests: New file.
59646         * modules/unictype/property-titlecase-tests: New file.
59647         * modules/unictype/property-unassigned-code-value-tests: New file.
59648         * modules/unictype/property-unified-ideograph-tests: New file.
59649         * modules/unictype/property-uppercase-tests: New file.
59650         * modules/unictype/property-variation-selector-tests: New file.
59651         * modules/unictype/property-white-space-tests: New file.
59652         * modules/unictype/property-xid-continue-tests: New file.
59653         * modules/unictype/property-xid-start-tests: New file.
59654         * modules/unictype/property-zero-width-tests: New file.
59655         * modules/unictype/scripts-tests: New file.
59656         * modules/unictype/syntax-c-ident-tests: New file.
59657         * modules/unictype/syntax-c-whitespace-tests: New file.
59658         * modules/unictype/syntax-java-ident-tests: New file.
59659         * modules/unictype/syntax-java-whitespace-tests: New file.
59660         * tests/unictype/test-bidi_byname.c: New file.
59661         * tests/unictype/test-bidi_name.c: New file.
59662         * tests/unictype/test-bidi_of.c: New file.
59663         * tests/unictype/test-bidi_test.c: New file.
59664         * tests/unictype/test-block_list.c: New file.
59665         * tests/unictype/test-block_of.c: New file.
59666         * tests/unictype/test-block_test.c: New file.
59667         * tests/unictype/test-categ_and.c: New file.
59668         * tests/unictype/test-categ_and_not.c: New file.
59669         * tests/unictype/test-categ_byname.c: New file.
59670         * tests/unictype/test-categ_name.c: New file.
59671         * tests/unictype/test-categ_none.c: New file.
59672         * tests/unictype/test-categ_of.c: New file.
59673         * tests/unictype/test-categ_or.c: New file.
59674         * tests/unictype/test-categ_test_withtable.c: New file.
59675         * tests/unictype/test-combining.c: New file.
59676         * tests/unictype/test-decdigit.c: New file.
59677         * tests/unictype/test-digit.c: New file.
59678         * tests/unictype/test-mirror.c: New file.
59679         * tests/unictype/test-numeric.c: New file.
59680         * tests/unictype/test-pr_byname.c: New file.
59681         * tests/unictype/test-pr_test.c: New file.
59682         * tests/unictype/test-predicate-part1.h: New file.
59683         * tests/unictype/test-predicate-part2.h: New file.
59684         * tests/unictype/test-scripts.c: New file.
59685         * tests/unictype/test-sy_c_ident.c: New file.
59686         * tests/unictype/test-sy_java_ident.c: New file.
59687
59688         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59689         for Unicode 5.0.0.
59690         * tests/unictype/test-categ_Cc.c: Likewise.
59691         * tests/unictype/test-categ_Cf.c: Likewise.
59692         * tests/unictype/test-categ_Cn.c: Likewise.
59693         * tests/unictype/test-categ_Co.c: Likewise.
59694         * tests/unictype/test-categ_Cs.c: Likewise.
59695         * tests/unictype/test-categ_L.c: Likewise.
59696         * tests/unictype/test-categ_Ll.c: Likewise.
59697         * tests/unictype/test-categ_Lm.c: Likewise.
59698         * tests/unictype/test-categ_Lo.c: Likewise.
59699         * tests/unictype/test-categ_Lt.c: Likewise.
59700         * tests/unictype/test-categ_Lu.c: Likewise.
59701         * tests/unictype/test-categ_M.c: Likewise.
59702         * tests/unictype/test-categ_Mc.c: Likewise.
59703         * tests/unictype/test-categ_Me.c: Likewise.
59704         * tests/unictype/test-categ_Mn.c: Likewise.
59705         * tests/unictype/test-categ_N.c: Likewise.
59706         * tests/unictype/test-categ_Nd.c: Likewise.
59707         * tests/unictype/test-categ_Nl.c: Likewise.
59708         * tests/unictype/test-categ_No.c: Likewise.
59709         * tests/unictype/test-categ_P.c: Likewise.
59710         * tests/unictype/test-categ_Pc.c: Likewise.
59711         * tests/unictype/test-categ_Pd.c: Likewise.
59712         * tests/unictype/test-categ_Pe.c: Likewise.
59713         * tests/unictype/test-categ_Pf.c: Likewise.
59714         * tests/unictype/test-categ_Pi.c: Likewise.
59715         * tests/unictype/test-categ_Po.c: Likewise.
59716         * tests/unictype/test-categ_Ps.c: Likewise.
59717         * tests/unictype/test-categ_S.c: Likewise.
59718         * tests/unictype/test-categ_Sc.c: Likewise.
59719         * tests/unictype/test-categ_Sk.c: Likewise.
59720         * tests/unictype/test-categ_Sm.c: Likewise.
59721         * tests/unictype/test-categ_So.c: Likewise.
59722         * tests/unictype/test-categ_Z.c: Likewise.
59723         * tests/unictype/test-categ_Zl.c: Likewise.
59724         * tests/unictype/test-categ_Zp.c: Likewise.
59725         * tests/unictype/test-categ_Zs.c: Likewise.
59726         * tests/unictype/test-ctype_alnum.c: Likewise.
59727         * tests/unictype/test-ctype_alpha.c: Likewise.
59728         * tests/unictype/test-ctype_blank.c: Likewise.
59729         * tests/unictype/test-ctype_cntrl.c: Likewise.
59730         * tests/unictype/test-ctype_digit.c: Likewise.
59731         * tests/unictype/test-ctype_graph.c: Likewise.
59732         * tests/unictype/test-ctype_lower.c: Likewise.
59733         * tests/unictype/test-ctype_print.c: Likewise.
59734         * tests/unictype/test-ctype_punct.c: Likewise.
59735         * tests/unictype/test-ctype_space.c: Likewise.
59736         * tests/unictype/test-ctype_upper.c: Likewise.
59737         * tests/unictype/test-ctype_xdigit.c: Likewise.
59738         * tests/unictype/test-decdigit.h: Likewise.
59739         * tests/unictype/test-digit.h: Likewise.
59740         * tests/unictype/test-numeric.h: Likewise.
59741         * tests/unictype/test-pr_alphabetic.c: Likewise.
59742         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59743         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59744         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59745         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59746         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59747         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59748         * tests/unictype/test-pr_bidi_control.c: Likewise.
59749         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59750         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59751         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59752         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59753         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59754         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59755         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59756         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59757         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59758         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59759         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59760         * tests/unictype/test-pr_combining.c: Likewise.
59761         * tests/unictype/test-pr_composite.c: Likewise.
59762         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59763         * tests/unictype/test-pr_dash.c: Likewise.
59764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59765         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59766         * tests/unictype/test-pr_deprecated.c: Likewise.
59767         * tests/unictype/test-pr_diacritic.c: Likewise.
59768         * tests/unictype/test-pr_extender.c: Likewise.
59769         * tests/unictype/test-pr_format_control.c: Likewise.
59770         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59771         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59772         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59773         * tests/unictype/test-pr_hex_digit.c: Likewise.
59774         * tests/unictype/test-pr_hyphen.c: Likewise.
59775         * tests/unictype/test-pr_id_continue.c: Likewise.
59776         * tests/unictype/test-pr_id_start.c: Likewise.
59777         * tests/unictype/test-pr_ideographic.c: Likewise.
59778         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59779         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59780         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59781         * tests/unictype/test-pr_iso_control.c: Likewise.
59782         * tests/unictype/test-pr_join_control.c: Likewise.
59783         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59784         * tests/unictype/test-pr_line_separator.c: Likewise.
59785         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59786         * tests/unictype/test-pr_lowercase.c: Likewise.
59787         * tests/unictype/test-pr_math.c: Likewise.
59788         * tests/unictype/test-pr_non_break.c: Likewise.
59789         * tests/unictype/test-pr_not_a_character.c: Likewise.
59790         * tests/unictype/test-pr_numeric.c: Likewise.
59791         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59792         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59793         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59794         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59795         * tests/unictype/test-pr_other_id_start.c: Likewise.
59796         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59797         * tests/unictype/test-pr_other_math.c: Likewise.
59798         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59799         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59800         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59801         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59802         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59803         * tests/unictype/test-pr_private_use.c: Likewise.
59804         * tests/unictype/test-pr_punctuation.c: Likewise.
59805         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59806         * tests/unictype/test-pr_radical.c: Likewise.
59807         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59808         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59809         * tests/unictype/test-pr_space.c: Likewise.
59810         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59811         * tests/unictype/test-pr_titlecase.c: Likewise.
59812         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59813         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59814         * tests/unictype/test-pr_uppercase.c: Likewise.
59815         * tests/unictype/test-pr_variation_selector.c: Likewise.
59816         * tests/unictype/test-pr_white_space.c: Likewise.
59817         * tests/unictype/test-pr_xid_continue.c: Likewise.
59818         * tests/unictype/test-pr_xid_start.c: Likewise.
59819         * tests/unictype/test-pr_zero_width.c: Likewise.
59820         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59821         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59822
59823 2007-11-12  Bruno Haible  <bruno@clisp.org>
59824
59825         Unicode character classification functions.
59826         * lib/unictype.h: New file.
59827         * modules/unictype/base: New file.
59828         * modules/unictype/category-L: New file.
59829         * modules/unictype/category-Lu: New file.
59830         * modules/unictype/category-Ll: New file.
59831         * modules/unictype/category-Lt: New file.
59832         * modules/unictype/category-Lm: New file.
59833         * modules/unictype/category-Lo: New file.
59834         * modules/unictype/category-M: New file.
59835         * modules/unictype/category-Mn: New file.
59836         * modules/unictype/category-Mc: New file.
59837         * modules/unictype/category-Me: New file.
59838         * modules/unictype/category-N: New file.
59839         * modules/unictype/category-Nd: New file.
59840         * modules/unictype/category-Nl: New file.
59841         * modules/unictype/category-No: New file.
59842         * modules/unictype/category-P: New file.
59843         * modules/unictype/category-Pc: New file.
59844         * modules/unictype/category-Pd: New file.
59845         * modules/unictype/category-Ps: New file.
59846         * modules/unictype/category-Pe: New file.
59847         * modules/unictype/category-Pi: New file.
59848         * modules/unictype/category-Pf: New file.
59849         * modules/unictype/category-Po: New file.
59850         * modules/unictype/category-S: New file.
59851         * modules/unictype/category-Sm: New file.
59852         * modules/unictype/category-Sc: New file.
59853         * modules/unictype/category-Sk: New file.
59854         * modules/unictype/category-So: New file.
59855         * modules/unictype/category-Z: New file.
59856         * modules/unictype/category-Zs: New file.
59857         * modules/unictype/category-Zl: New file.
59858         * modules/unictype/category-Zp: New file.
59859         * modules/unictype/category-C: New file.
59860         * modules/unictype/category-Cc: New file.
59861         * modules/unictype/category-Cf: New file.
59862         * modules/unictype/category-Cs: New file.
59863         * modules/unictype/category-Co: New file.
59864         * modules/unictype/category-Cn: New file.
59865         * modules/unictype/category-or: New file.
59866         * modules/unictype/category-of: New file.
59867         * modules/unictype/category-test: New file.
59868         * modules/unictype/category-test-withtable: New file.
59869         * modules/unictype/category-byname: New file.
59870         * modules/unictype/category-none: New file.
59871         * modules/unictype/category-and: New file.
59872         * modules/unictype/category-and-not: New file.
59873         * modules/unictype/category-name: New file.
59874         * modules/unictype/combining-class: New file.
59875         * modules/unictype/category-all: New file.
59876         * modules/unictype/bidicategory-all: New file.
59877         * modules/unictype/bidicategory-byname: New file.
59878         * modules/unictype/bidicategory-name: New file.
59879         * modules/unictype/bidicategory-of: New file.
59880         * modules/unictype/bidicategory-test: New file.
59881         * modules/unictype/decimal-digit: New file.
59882         * modules/unictype/digit: New file.
59883         * modules/unictype/numeric: New file.
59884         * modules/unictype/mirror: New file.
59885         * modules/unictype/property-white-space: New file.
59886         * modules/unictype/property-alphabetic: New file.
59887         * modules/unictype/property-other-alphabetic: New file.
59888         * modules/unictype/property-not-a-character: New file.
59889         * modules/unictype/property-default-ignorable-code-point: New file.
59890         * modules/unictype/property-other-default-ignorable-code-point: New
59891         file.
59892         * modules/unictype/property-deprecated: New file.
59893         * modules/unictype/property-logical-order-exception: New file.
59894         * modules/unictype/property-variation-selector: New file.
59895         * modules/unictype/property-private-use: New file.
59896         * modules/unictype/property-unassigned-code-value: New file.
59897         * modules/unictype/property-uppercase: New file.
59898         * modules/unictype/property-other-uppercase: New file.
59899         * modules/unictype/property-lowercase: New file.
59900         * modules/unictype/property-other-lowercase: New file.
59901         * modules/unictype/property-titlecase: New file.
59902         * modules/unictype/property-soft-dotted: New file.
59903         * modules/unictype/property-id-start: New file.
59904         * modules/unictype/property-other-id-start: New file.
59905         * modules/unictype/property-id-continue: New file.
59906         * modules/unictype/property-other-id-continue: New file.
59907         * modules/unictype/property-xid-start: New file.
59908         * modules/unictype/property-xid-continue: New file.
59909         * modules/unictype/property-pattern-white-space: New file.
59910         * modules/unictype/property-pattern-syntax: New file.
59911         * modules/unictype/property-join-control: New file.
59912         * modules/unictype/property-grapheme-base: New file.
59913         * modules/unictype/property-grapheme-extend: New file.
59914         * modules/unictype/property-other-grapheme-extend: New file.
59915         * modules/unictype/property-grapheme-link: New file.
59916         * modules/unictype/property-bidi-control: New file.
59917         * modules/unictype/property-bidi-left-to-right: New file.
59918         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59919         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59920         * modules/unictype/property-bidi-european-digit: New file.
59921         * modules/unictype/property-bidi-eur-num-separator: New file.
59922         * modules/unictype/property-bidi-eur-num-terminator: New file.
59923         * modules/unictype/property-bidi-arabic-digit: New file.
59924         * modules/unictype/property-bidi-common-separator: New file.
59925         * modules/unictype/property-bidi-block-separator: New file.
59926         * modules/unictype/property-bidi-segment-separator: New file.
59927         * modules/unictype/property-bidi-whitespace: New file.
59928         * modules/unictype/property-bidi-non-spacing-mark: New file.
59929         * modules/unictype/property-bidi-boundary-neutral: New file.
59930         * modules/unictype/property-bidi-pdf: New file.
59931         * modules/unictype/property-bidi-embedding-or-override: New file.
59932         * modules/unictype/property-bidi-other-neutral: New file.
59933         * modules/unictype/property-hex-digit: New file.
59934         * modules/unictype/property-ascii-hex-digit: New file.
59935         * modules/unictype/property-ideographic: New file.
59936         * modules/unictype/property-unified-ideograph: New file.
59937         * modules/unictype/property-radical: New file.
59938         * modules/unictype/property-ids-binary-operator: New file.
59939         * modules/unictype/property-ids-trinary-operator: New file.
59940         * modules/unictype/property-zero-width: New file.
59941         * modules/unictype/property-space: New file.
59942         * modules/unictype/property-non-break: New file.
59943         * modules/unictype/property-iso-control: New file.
59944         * modules/unictype/property-format-control: New file.
59945         * modules/unictype/property-dash: New file.
59946         * modules/unictype/property-hyphen: New file.
59947         * modules/unictype/property-punctuation: New file.
59948         * modules/unictype/property-line-separator: New file.
59949         * modules/unictype/property-paragraph-separator: New file.
59950         * modules/unictype/property-quotation-mark: New file.
59951         * modules/unictype/property-sentence-terminal: New file.
59952         * modules/unictype/property-terminal-punctuation: New file.
59953         * modules/unictype/property-currency-symbol: New file.
59954         * modules/unictype/property-math: New file.
59955         * modules/unictype/property-other-math: New file.
59956         * modules/unictype/property-paired-punctuation: New file.
59957         * modules/unictype/property-left-of-pair: New file.
59958         * modules/unictype/property-combining: New file.
59959         * modules/unictype/property-composite: New file.
59960         * modules/unictype/property-decimal-digit: New file.
59961         * modules/unictype/property-numeric: New file.
59962         * modules/unictype/property-diacritic: New file.
59963         * modules/unictype/property-extender: New file.
59964         * modules/unictype/property-ignorable-control: New file.
59965         * modules/unictype/property-test: New file.
59966         * modules/unictype/property-byname: New file.
59967         * modules/unictype/property-all: New file.
59968         * modules/unictype/scripts: New file.
59969         * modules/unictype/scripts-all: New file.
59970         * modules/unictype/block-of: New file.
59971         * modules/unictype/block-test: New file.
59972         * modules/unictype/block-list: New file.
59973         * modules/unictype/block-all: New file.
59974         * modules/unictype/syntax-c-whitespace: New file.
59975         * modules/unictype/syntax-java-whitespace: New file.
59976         * modules/unictype/syntax-c-ident: New file.
59977         * modules/unictype/syntax-java-ident: New file.
59978         * modules/unictype/ctype-alnum: New file.
59979         * modules/unictype/ctype-alpha: New file.
59980         * modules/unictype/ctype-cntrl: New file.
59981         * modules/unictype/ctype-digit: New file.
59982         * modules/unictype/ctype-graph: New file.
59983         * modules/unictype/ctype-lower: New file.
59984         * modules/unictype/ctype-print: New file.
59985         * modules/unictype/ctype-punct: New file.
59986         * modules/unictype/ctype-space: New file.
59987         * modules/unictype/ctype-upper: New file.
59988         * modules/unictype/ctype-xdigit: New file.
59989         * modules/unictype/ctype-blank: New file.
59990         * lib/unictype/bidi_byname.c: New file.
59991         * lib/unictype/bidi_name.c: New file.
59992         * lib/unictype/bidi_of.c: New file.
59993         * lib/unictype/bidi_test.c: New file.
59994         * lib/unictype/bitmap.h: New file.
59995         * lib/unictype/block_test.c: New file.
59996         * lib/unictype/blocks.c: New file.
59997         * lib/unictype/categ_C.c: New file.
59998         * lib/unictype/categ_Cc.c: New file.
59999         * lib/unictype/categ_Cf.c: New file.
60000         * lib/unictype/categ_Cn.c: New file.
60001         * lib/unictype/categ_Co.c: New file.
60002         * lib/unictype/categ_Cs.c: New file.
60003         * lib/unictype/categ_L.c: New file.
60004         * lib/unictype/categ_Ll.c: New file.
60005         * lib/unictype/categ_Lm.c: New file.
60006         * lib/unictype/categ_Lo.c: New file.
60007         * lib/unictype/categ_Lt.c: New file.
60008         * lib/unictype/categ_Lu.c: New file.
60009         * lib/unictype/categ_M.c: New file.
60010         * lib/unictype/categ_Mc.c: New file.
60011         * lib/unictype/categ_Me.c: New file.
60012         * lib/unictype/categ_Mn.c: New file.
60013         * lib/unictype/categ_N.c: New file.
60014         * lib/unictype/categ_Nd.c: New file.
60015         * lib/unictype/categ_Nl.c: New file.
60016         * lib/unictype/categ_No.c: New file.
60017         * lib/unictype/categ_P.c: New file.
60018         * lib/unictype/categ_Pc.c: New file.
60019         * lib/unictype/categ_Pd.c: New file.
60020         * lib/unictype/categ_Pe.c: New file.
60021         * lib/unictype/categ_Pf.c: New file.
60022         * lib/unictype/categ_Pi.c: New file.
60023         * lib/unictype/categ_Po.c: New file.
60024         * lib/unictype/categ_Ps.c: New file.
60025         * lib/unictype/categ_S.c: New file.
60026         * lib/unictype/categ_Sc.c: New file.
60027         * lib/unictype/categ_Sk.c: New file.
60028         * lib/unictype/categ_Sm.c: New file.
60029         * lib/unictype/categ_So.c: New file.
60030         * lib/unictype/categ_Z.c: New file.
60031         * lib/unictype/categ_Zl.c: New file.
60032         * lib/unictype/categ_Zp.c: New file.
60033         * lib/unictype/categ_Zs.c: New file.
60034         * lib/unictype/categ_and.c: New file.
60035         * lib/unictype/categ_and_not.c: New file.
60036         * lib/unictype/categ_byname.c: New file.
60037         * lib/unictype/categ_name.c: New file.
60038         * lib/unictype/categ_none.c: New file.
60039         * lib/unictype/categ_of.c: New file.
60040         * lib/unictype/categ_or.c: New file.
60041         * lib/unictype/categ_test.c: New file.
60042         * lib/unictype/combining.c: New file.
60043         * lib/unictype/ctype_alnum.c: New file.
60044         * lib/unictype/ctype_alpha.c: New file.
60045         * lib/unictype/ctype_blank.c: New file.
60046         * lib/unictype/ctype_cntrl.c: New file.
60047         * lib/unictype/ctype_digit.c: New file.
60048         * lib/unictype/ctype_graph.c: New file.
60049         * lib/unictype/ctype_lower.c: New file.
60050         * lib/unictype/ctype_print.c: New file.
60051         * lib/unictype/ctype_punct.c: New file.
60052         * lib/unictype/ctype_space.c: New file.
60053         * lib/unictype/ctype_upper.c: New file.
60054         * lib/unictype/ctype_xdigit.c: New file.
60055         * lib/unictype/decdigit.c: New file.
60056         * lib/unictype/digit.c: New file.
60057         * lib/unictype/identsyntaxmap.h: New file.
60058         * lib/unictype/mirror.c: New file.
60059         * lib/unictype/numeric.c: New file.
60060         * lib/unictype/pr_alphabetic.c: New file.
60061         * lib/unictype/pr_ascii_hex_digit.c: New file.
60062         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60063         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60064         * lib/unictype/pr_bidi_block_separator.c: New file.
60065         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60066         * lib/unictype/pr_bidi_common_separator.c: New file.
60067         * lib/unictype/pr_bidi_control.c: New file.
60068         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60069         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60070         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60071         * lib/unictype/pr_bidi_european_digit.c: New file.
60072         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60073         * lib/unictype/pr_bidi_left_to_right.c: New file.
60074         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60075         * lib/unictype/pr_bidi_other_neutral.c: New file.
60076         * lib/unictype/pr_bidi_pdf.c: New file.
60077         * lib/unictype/pr_bidi_segment_separator.c: New file.
60078         * lib/unictype/pr_bidi_whitespace.c: New file.
60079         * lib/unictype/pr_byname.c: New file.
60080         * lib/unictype/pr_byname.gperf: New file.
60081         * lib/unictype/pr_combining.c: New file.
60082         * lib/unictype/pr_composite.c: New file.
60083         * lib/unictype/pr_currency_symbol.c: New file.
60084         * lib/unictype/pr_dash.c: New file.
60085         * lib/unictype/pr_decimal_digit.c: New file.
60086         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60087         * lib/unictype/pr_deprecated.c: New file.
60088         * lib/unictype/pr_diacritic.c: New file.
60089         * lib/unictype/pr_extender.c: New file.
60090         * lib/unictype/pr_format_control.c: New file.
60091         * lib/unictype/pr_grapheme_base.c: New file.
60092         * lib/unictype/pr_grapheme_extend.c: New file.
60093         * lib/unictype/pr_grapheme_link.c: New file.
60094         * lib/unictype/pr_hex_digit.c: New file.
60095         * lib/unictype/pr_hyphen.c: New file.
60096         * lib/unictype/pr_id_continue.c: New file.
60097         * lib/unictype/pr_id_start.c: New file.
60098         * lib/unictype/pr_ideographic.c: New file.
60099         * lib/unictype/pr_ids_binary_operator.c: New file.
60100         * lib/unictype/pr_ids_trinary_operator.c: New file.
60101         * lib/unictype/pr_ignorable_control.c: New file.
60102         * lib/unictype/pr_iso_control.c: New file.
60103         * lib/unictype/pr_join_control.c: New file.
60104         * lib/unictype/pr_left_of_pair.c: New file.
60105         * lib/unictype/pr_line_separator.c: New file.
60106         * lib/unictype/pr_logical_order_exception.c: New file.
60107         * lib/unictype/pr_lowercase.c: New file.
60108         * lib/unictype/pr_math.c: New file.
60109         * lib/unictype/pr_non_break.c: New file.
60110         * lib/unictype/pr_not_a_character.c: New file.
60111         * lib/unictype/pr_numeric.c: New file.
60112         * lib/unictype/pr_other_alphabetic.c: New file.
60113         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60114         * lib/unictype/pr_other_grapheme_extend.c: New file.
60115         * lib/unictype/pr_other_id_continue.c: New file.
60116         * lib/unictype/pr_other_id_start.c: New file.
60117         * lib/unictype/pr_other_lowercase.c: New file.
60118         * lib/unictype/pr_other_math.c: New file.
60119         * lib/unictype/pr_other_uppercase.c: New file.
60120         * lib/unictype/pr_paired_punctuation.c: New file.
60121         * lib/unictype/pr_paragraph_separator.c: New file.
60122         * lib/unictype/pr_pattern_syntax.c: New file.
60123         * lib/unictype/pr_pattern_white_space.c: New file.
60124         * lib/unictype/pr_private_use.c: New file.
60125         * lib/unictype/pr_punctuation.c: New file.
60126         * lib/unictype/pr_quotation_mark.c: New file.
60127         * lib/unictype/pr_radical.c: New file.
60128         * lib/unictype/pr_sentence_terminal.c: New file.
60129         * lib/unictype/pr_soft_dotted.c: New file.
60130         * lib/unictype/pr_space.c: New file.
60131         * lib/unictype/pr_terminal_punctuation.c: New file.
60132         * lib/unictype/pr_test.c: New file.
60133         * lib/unictype/pr_titlecase.c: New file.
60134         * lib/unictype/pr_unassigned_code_value.c: New file.
60135         * lib/unictype/pr_unified_ideograph.c: New file.
60136         * lib/unictype/pr_uppercase.c: New file.
60137         * lib/unictype/pr_variation_selector.c: New file.
60138         * lib/unictype/pr_white_space.c: New file.
60139         * lib/unictype/pr_xid_continue.c: New file.
60140         * lib/unictype/pr_xid_start.c: New file.
60141         * lib/unictype/pr_zero_width.c: New file.
60142         * lib/unictype/scripts.c: New file.
60143         * lib/unictype/sy_c_ident.c: New file.
60144         * lib/unictype/sy_c_whitespace.c: New file.
60145         * lib/unictype/sy_java_ident.c: New file.
60146         * lib/unictype/sy_java_whitespace.c: New file.
60147
60148         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60149         Unicode 5.0.0.
60150         * lib/unictype/blocks.h: Likewise.
60151         * lib/unictype/categ_C.h: Likewise.
60152         * lib/unictype/categ_Cc.h: Likewise.
60153         * lib/unictype/categ_Cf.h: Likewise.
60154         * lib/unictype/categ_Cn.h: Likewise.
60155         * lib/unictype/categ_Co.h: Likewise.
60156         * lib/unictype/categ_Cs.h: Likewise.
60157         * lib/unictype/categ_L.h: Likewise.
60158         * lib/unictype/categ_Ll.h: Likewise.
60159         * lib/unictype/categ_Lm.h: Likewise.
60160         * lib/unictype/categ_Lo.h: Likewise.
60161         * lib/unictype/categ_Lt.h: Likewise.
60162         * lib/unictype/categ_Lu.h: Likewise.
60163         * lib/unictype/categ_M.h: Likewise.
60164         * lib/unictype/categ_Mc.h: Likewise.
60165         * lib/unictype/categ_Me.h: Likewise.
60166         * lib/unictype/categ_Mn.h: Likewise.
60167         * lib/unictype/categ_N.h: Likewise.
60168         * lib/unictype/categ_Nd.h: Likewise.
60169         * lib/unictype/categ_Nl.h: Likewise.
60170         * lib/unictype/categ_No.h: Likewise.
60171         * lib/unictype/categ_P.h: Likewise.
60172         * lib/unictype/categ_Pc.h: Likewise.
60173         * lib/unictype/categ_Pd.h: Likewise.
60174         * lib/unictype/categ_Pe.h: Likewise.
60175         * lib/unictype/categ_Pf.h: Likewise.
60176         * lib/unictype/categ_Pi.h: Likewise.
60177         * lib/unictype/categ_Po.h: Likewise.
60178         * lib/unictype/categ_Ps.h: Likewise.
60179         * lib/unictype/categ_S.h: Likewise.
60180         * lib/unictype/categ_Sc.h: Likewise.
60181         * lib/unictype/categ_Sk.h: Likewise.
60182         * lib/unictype/categ_Sm.h: Likewise.
60183         * lib/unictype/categ_So.h: Likewise.
60184         * lib/unictype/categ_Z.h: Likewise.
60185         * lib/unictype/categ_Zl.h: Likewise.
60186         * lib/unictype/categ_Zp.h: Likewise.
60187         * lib/unictype/categ_Zs.h: Likewise.
60188         * lib/unictype/categ_of.h: Likewise.
60189         * lib/unictype/combining.h: Likewise.
60190         * lib/unictype/ctype_alnum.h: Likewise.
60191         * lib/unictype/ctype_alpha.h: Likewise.
60192         * lib/unictype/ctype_blank.h: Likewise.
60193         * lib/unictype/ctype_cntrl.h: Likewise.
60194         * lib/unictype/ctype_digit.h: Likewise.
60195         * lib/unictype/ctype_graph.h: Likewise.
60196         * lib/unictype/ctype_lower.h: Likewise.
60197         * lib/unictype/ctype_print.h: Likewise.
60198         * lib/unictype/ctype_punct.h: Likewise.
60199         * lib/unictype/ctype_space.h: Likewise.
60200         * lib/unictype/ctype_upper.h: Likewise.
60201         * lib/unictype/ctype_xdigit.h: Likewise.
60202         * lib/unictype/decdigit.h: Likewise.
60203         * lib/unictype/digit.h: Likewise.
60204         * lib/unictype/mirror.h: Likewise.
60205         * lib/unictype/numeric.h: Likewise.
60206         * lib/unictype/pr_alphabetic.h: Likewise.
60207         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60208         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60210         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60211         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60212         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60213         * lib/unictype/pr_bidi_control.h: Likewise.
60214         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60215         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60216         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60218         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60219         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60220         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60221         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60222         * lib/unictype/pr_bidi_pdf.h: Likewise.
60223         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60224         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60225         * lib/unictype/pr_combining.h: Likewise.
60226         * lib/unictype/pr_composite.h: Likewise.
60227         * lib/unictype/pr_currency_symbol.h: Likewise.
60228         * lib/unictype/pr_dash.h: Likewise.
60229         * lib/unictype/pr_decimal_digit.h: Likewise.
60230         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60231         * lib/unictype/pr_deprecated.h: Likewise.
60232         * lib/unictype/pr_diacritic.h: Likewise.
60233         * lib/unictype/pr_extender.h: Likewise.
60234         * lib/unictype/pr_format_control.h: Likewise.
60235         * lib/unictype/pr_grapheme_base.h: Likewise.
60236         * lib/unictype/pr_grapheme_extend.h: Likewise.
60237         * lib/unictype/pr_grapheme_link.h: Likewise.
60238         * lib/unictype/pr_hex_digit.h: Likewise.
60239         * lib/unictype/pr_hyphen.h: Likewise.
60240         * lib/unictype/pr_id_continue.h: Likewise.
60241         * lib/unictype/pr_id_start.h: Likewise.
60242         * lib/unictype/pr_ideographic.h: Likewise.
60243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60245         * lib/unictype/pr_ignorable_control.h: Likewise.
60246         * lib/unictype/pr_iso_control.h: Likewise.
60247         * lib/unictype/pr_join_control.h: Likewise.
60248         * lib/unictype/pr_left_of_pair.h: Likewise.
60249         * lib/unictype/pr_line_separator.h: Likewise.
60250         * lib/unictype/pr_logical_order_exception.h: Likewise.
60251         * lib/unictype/pr_lowercase.h: Likewise.
60252         * lib/unictype/pr_math.h: Likewise.
60253         * lib/unictype/pr_non_break.h: Likewise.
60254         * lib/unictype/pr_not_a_character.h: Likewise.
60255         * lib/unictype/pr_numeric.h: Likewise.
60256         * lib/unictype/pr_other_alphabetic.h: Likewise.
60257         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60258         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60259         * lib/unictype/pr_other_id_continue.h: Likewise.
60260         * lib/unictype/pr_other_id_start.h: Likewise.
60261         * lib/unictype/pr_other_lowercase.h: Likewise.
60262         * lib/unictype/pr_other_math.h: Likewise.
60263         * lib/unictype/pr_other_uppercase.h: Likewise.
60264         * lib/unictype/pr_paired_punctuation.h: Likewise.
60265         * lib/unictype/pr_paragraph_separator.h: Likewise.
60266         * lib/unictype/pr_pattern_syntax.h: Likewise.
60267         * lib/unictype/pr_pattern_white_space.h: Likewise.
60268         * lib/unictype/pr_private_use.h: Likewise.
60269         * lib/unictype/pr_punctuation.h: Likewise.
60270         * lib/unictype/pr_quotation_mark.h: Likewise.
60271         * lib/unictype/pr_radical.h: Likewise.
60272         * lib/unictype/pr_sentence_terminal.h: Likewise.
60273         * lib/unictype/pr_soft_dotted.h: Likewise.
60274         * lib/unictype/pr_space.h: Likewise.
60275         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60276         * lib/unictype/pr_titlecase.h: Likewise.
60277         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60278         * lib/unictype/pr_unified_ideograph.h: Likewise.
60279         * lib/unictype/pr_uppercase.h: Likewise.
60280         * lib/unictype/pr_variation_selector.h: Likewise.
60281         * lib/unictype/pr_white_space.h: Likewise.
60282         * lib/unictype/pr_xid_continue.h: Likewise.
60283         * lib/unictype/pr_xid_start.h: Likewise.
60284         * lib/unictype/pr_zero_width.h: Likewise.
60285         * lib/unictype/scripts.h: Likewise.
60286         * lib/unictype/scripts_byname.gperf: Likewise.
60287         * lib/unictype/sy_c_ident.h: Likewise.
60288         * lib/unictype/sy_c_whitespace.h: Likewise.
60289         * lib/unictype/sy_java_ident.h: Likewise.
60290         * lib/unictype/sy_java_whitespace.h: Likewise.
60291
60292         * lib/unictype/Makefile: New file.
60293         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60294         glibc.
60295         * lib/unictype/3level.h: New file, copied from glibc.
60296         * lib/unictype/3levelbit.h: New file.
60297
60298 2007-11-11  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/gperf: New file.
60301         * modules/iconv_open (Depends-on): Add it.
60302         (Makefile.am): Remove the GPERF definition.
60303
60304 2007-11-11  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60307         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60308
60309 2007-11-11  Bruno Haible  <bruno@clisp.org>
60310
60311         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60312         (usage): Remove function.
60313
60314 2007-11-11  Bruno Haible  <bruno@clisp.org>
60315
60316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60317         gl_FUNC_CEILF_LIBS.
60318         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60319         gl_FUNC_CEIL_LIBS.
60320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60321         gl_FUNC_CEILL_LIBS.
60322         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60323         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60324         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60325
60326 2007-11-11  Bruno Haible  <bruno@clisp.org>
60327
60328         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60329         roundf were declared but do not exist on functions.
60330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60331         roundl were declared but do not exist on functions.
60332         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60333         HAVE_FLOORL_AND_CEILL, respectively.
60334         Needed for Sun C on Solaris 10.
60335
60336 2007-11-11  Bruno Haible  <bruno@clisp.org>
60337
60338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60339         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60340         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60341         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60343         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60344         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60345         HAVE_DECL_ROUNDF.
60346         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60347         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60349         of HAVE_DECL_ROUND*.
60350         * modules/math (Makefile.am): Update.
60351
60352 2007-11-10  Bruno Haible  <bruno@clisp.org>
60353
60354         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60355         ptrdiff_t as m4/intl.m4.
60356
60357 2007-11-10  Jim Meyering  <meyering@redhat.com>
60358
60359         Avoid link failure for the argmatch test.
60360         * tests/test-argmatch.c (usage): Define function to avoid a link
60361         failure: argmatch_die requires a usage function.
60362
60363 2007-11-09  Bruno Haible  <bruno@clisp.org>
60364
60365         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60366         * doc/functions/vsnprintf.texi: Likewise.
60367         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60368         with a size argument < 2.
60369
60370 2007-11-09  Bruno Haible  <bruno@clisp.org>
60371
60372         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60373         buffer. Fixes an inefficiency introduced on 2007-11-03.
60374
60375 2007-11-09  Bruno Haible  <bruno@clisp.org>
60376
60377         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60378         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60379
60380 2007-11-08  Jim Meyering  <meyering@redhat.com>
60381
60382         Change cache variable name prefix "jm_" to "gl_" everywhere.
60383         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60384         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60385         * m4/uptime.m4: s/gl_/jm_/
60386
60387 2007-11-07  Bruno Haible  <bruno@clisp.org>
60388
60389         Update to GNU gettext 0.17.
60390         * m4/intl.m4: Update to GNU gettext 0.17.
60391         * m4/po.m4: Likewise.
60392         * modules/gettext (Files): Remove m4/ulonglong.m4.
60393         (configure.ac): Require gettext infrastructure from version 0.17.
60394
60395 2007-11-06  Bruno Haible  <bruno@clisp.org>
60396
60397         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60398         symbolic values are not defined in a public header.
60399         * lib/freadable.c (freadable) [QNX]: Likewise.
60400         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60401         * lib/freading.c (freading) [QNX]: Likewise.
60402         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60403         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60404         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60405         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60406         Reported by Alain Magloire.
60407
60408         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60409
60410 2007-11-05  Bruno Haible  <bruno@clisp.org>
60411
60412         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60413         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60414         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60415         Reported by Eric Blake.
60416
60417 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60418             Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60421         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60422         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60423         (malloc): Undefine also before including <stdlib.h>.
60424         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60425         Needed on OSF/1 4.0.
60426
60427 2007-11-05  Jim Meyering  <meyering@redhat.com>
60428
60429         git-version-gen: sync from coreutils.
60430         * build-aux/git-version-gen: Add comments.
60431         Change the first '-' to '.' in the snapshot version string,
60432         e.g., 6.9-377-08144 -> 6.9.377-08144
60433         Remove first parameter.
60434         Don't declare a version "-dirty" merely because a time
60435         stamp has changed.
60436
60437 2007-11-04  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/lock.h: Protect all macro definitions containing an 'if'
60440         statement through a "do { ... } while (0)".
60441         * lib/tls.h: Likewise.
60442
60443 2007-11-04  Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60446
60447 2007-11-04  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60450         * modules/fprintf-posix (Depends-on): Add nocrash.
60451         * modules/snprintf-posix (Depends-on): Likewise.
60452         * modules/sprintf-posix (Depends-on): Likewise.
60453         * modules/vasnprintf-posix (Depends-on): Likewise.
60454         * modules/vasprintf-posix (Depends-on): Likewise.
60455         * modules/vfprintf-posix (Depends-on): Likewise.
60456         * modules/vsnprintf-posix (Depends-on): Likewise.
60457         * modules/vsprintf-posix (Depends-on): Likewise.
60458         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60459         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60462         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60465
60466 2007-11-04  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/nocrash: New file.
60469         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60470         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60471
60472 2007-11-04  Bruno Haible  <bruno@clisp.org>
60473
60474         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60475         precision handling.
60476         * tests/test-vasprintf-posix.c (test_function): Likewise.
60477         * tests/test-snprintf-posix.h (test_function): Likewise.
60478         * tests/test-sprintf-posix.h (test_function): Likewise.
60479
60480         Fix *printf behaviour for large precisions on mingw and BeOS.
60481         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60482         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60484         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60486         gl_PRINTF_PRECISION and test its result. Invoke
60487         gl_PREREQ_VASNPRINTF_PRECISION.
60488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60495         * doc/functions/fprintf.texi: Update.
60496         * doc/functions/printf.texi: Update.
60497         * doc/functions/snprintf.texi: Update.
60498         * doc/functions/sprintf.texi: Update.
60499         * doc/functions/vfprintf.texi: Update.
60500         * doc/functions/vprintf.texi: Update.
60501         * doc/functions/vsnprintf.texi: Update.
60502         * doc/functions/vsprintf.texi: Update.
60503
60504 2007-11-04  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60507
60508 2007-11-04  Bruno Haible  <bruno@clisp.org>
60509
60510         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60511         Reported by Sylvain Beucler <beuc@gnu.org>.
60512
60513 2007-11-03  Bruno Haible  <bruno@clisp.org>
60514
60515         * tests/test-fprintf-posix2.sh: New file.
60516         * tests/test-fprintf-posix2.c: New file.
60517         * modules/fprintf-posix-tests (Files): Add them.
60518         (TESTS): Add test-fprintf-posix2.sh.
60519         (configure.ac): Check for getrlimit and setrlimit.
60520         (check_PROGRAMS): Add test-fprintf-posix2.
60521
60522         * tests/test-printf-posix2.sh: New file.
60523         * tests/test-printf-posix2.c: New file.
60524         * modules/printf-posix-tests (Files): Add them.
60525         (TESTS): Add test-printf-posix2.sh.
60526         (configure.ac): Check for getrlimit and setrlimit.
60527         (check_PROGRAMS): Add test-printf-posix2.
60528
60529         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60530         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60531         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60532         (decode_double): New function, copied from decode_long_double.
60533         (scale10_round_decimal_decoded): New function, extracted from
60534         scale10_round_decimal_long_double.
60535         (scale10_round_decimal_long_double): Use it.
60536         (scale10_round_decimal_double): New function.
60537         (floorlog10): New function.
60538         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60540         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60542         gl_PRINTF_ENOMEM and test its result. Invoke
60543         gl_PREREQ_VASNPRINTF_ENOMEM.
60544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60551         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60552         * modules/snprintf-posix (Depends-on): Likewise.
60553         * modules/sprintf-posix (Depends-on): Likewise.
60554         * modules/vasnprintf-posix (Depends-on): Likewise.
60555         * modules/vasprintf-posix (Depends-on): Likewise.
60556         * modules/vfprintf-posix (Depends-on): Likewise.
60557         * modules/vsnprintf-posix (Depends-on): Likewise.
60558         * modules/vsprintf-posix (Depends-on): Likewise.
60559         * doc/functions/fprintf.texi: Update.
60560         * doc/functions/printf.texi: Update.
60561         * doc/functions/snprintf.texi: Update.
60562         * doc/functions/sprintf.texi: Update.
60563         * doc/functions/vfprintf.texi: Update.
60564         * doc/functions/vprintf.texi: Update.
60565         * doc/functions/vsnprintf.texi: Update.
60566         * doc/functions/vsprintf.texi: Update.
60567
60568 2007-11-03  Bruno Haible  <bruno@clisp.org>
60569
60570         * modules/frexp-nolibm-tests: New file.
60571
60572         * modules/frexp-nolibm: New file.
60573         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60574
60575 2007-11-03  Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60578         value is C99 compliant.
60579         Needed for OSF/1 5.1.
60580
60581 2007-11-03  Bruno Haible  <bruno@clisp.org>
60582
60583         Fix out-of-memory handling of vasnprintf.
60584         * lib/printf-parse.c: Include <errno.h>.
60585         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60586         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60587         is already set.
60588
60589 2007-11-02  Eric Blake  <ebb9@byu.net>
60590
60591         Fix tests on cygwin.
60592         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60593
60594 2007-11-01  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60597         warning.
60598         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60599         needed for POSIX compatibility.
60600
60601 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60604         for compatibility with GNU.
60605
60606 2007-11-01  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60609         (putenv): Renamed from rpl_putenv. Change argument type from
60610         'const char *' to 'char *'.
60611         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60612         of defining putenv in config.h, just set REPLACE_PUTENV.
60613         * modules/putenv (Depends-on): Add stdlib.
60614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60615         (Include): Use <stdlib.h>.
60616         * lib/stdlib.in.h (putenv): New declaration.
60617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60618         REPLACE_PUTENV.
60619         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60620         REPLACE_PUTENV.
60621         Needed for MacOS X 10.5.0.
60622         Reported by Peter O'Gorman <peter@pogma.com>.
60623
60624 2007-11-01  Jim Meyering  <meyering@redhat.com>
60625
60626         Treat an empty date string exactly like "0".
60627         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60628         if the remaining date string (to be parsed) is empty, use "0".
60629         Reported by Mischa Molhoek and discussed in this thread:
60630         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60631
60632 2007-10-31  Bruno Haible  <bruno@clisp.org>
60633
60634         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60635         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60636         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60637         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60638         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60639         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60640
60641 2007-10-31  Bruno Haible  <bruno@clisp.org>
60642
60643         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60644         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60645         (AC_TYPE_LONG_LONG_INT): Use it.
60646         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60647         it as well.
60648         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60649         to m4/longlong.m4.
60650         * modules/stdint (Files): Remove m4/ulonglong.m4.
60651         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60652         m4/ulonglong.m4.
60653         * modules/strtoumax (Files): Likewise.
60654
60655 2007-10-30  Bruno Haible  <bruno@clisp.org>
60656
60657         * modules/xvasprintf-posix: New file.
60658         Suggested by Eric Blake.
60659
60660 2007-10-30  Bruno Haible  <bruno@clisp.org>
60661
60662         * modules/xprintf-posix-tests: New file.
60663         * tests/test-xprintf-posix.sh: New file.
60664         * tests/test-xprintf-posix.c: New file.
60665         * tests/test-xfprintf-posix.c: New file.
60666
60667         * modules/xprintf-posix: New file.
60668
60669 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60670
60671         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60672         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60673         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60674
60675 2007-10-29  Bruno Haible  <bruno@clisp.org>
60676
60677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60678         contain the special marker '_cv_'.
60679         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60680         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60682         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60683         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60684         Reported by Ralf Wildenhues.
60685
60686 2007-10-29  Bruno Haible  <bruno@clisp.org>
60687
60688         * gnulib-tool (func_import): When --lgpl is not specified, set
60689         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60690         GPLv3.
60691         Reported by Simon Josefsson.
60692
60693 2007-10-28  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60696         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60697         HAVE_DECL_ISFINITE.
60698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60699         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60700         HAVE_DECL_ISFINITE.
60701
60702 2007-10-28  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60705         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60706
60707 2007-10-28  Bruno Haible  <bruno@clisp.org>
60708
60709         Fix link errors with Sun C 5.0 on Solaris 10.
60710         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60711         function is declared but not present in the compiler's libm.
60712         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60713         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60714         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60715         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60716         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60717         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60718         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60720         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60721         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60722         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60723         HAVE_DECL_FLOORL.
60724
60725 2007-10-28  Bruno Haible  <bruno@clisp.org>
60726
60727         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60728         gl_FUNC_FLOORL. Cache the result.
60729         (gl_FUNC_FLOORL): Use it.
60730         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60731         gl_FUNC_CEILL. Cache the result.
60732         (gl_FUNC_CEILL): Use it.
60733
60734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60735         gl_FUNC_FLOOR. Cache the result.
60736         (gl_FUNC_FLOOR): Use it.
60737         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60738         gl_FUNC_CEIL. Cache the result.
60739         (gl_FUNC_CEIL): Use it.
60740
60741         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60742         gl_FUNC_FLOORF. Cache the result.
60743         (gl_FUNC_FLOORF): Use it.
60744         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60745         gl_FUNC_CEILF. Cache the result.
60746         (gl_FUNC_CEILF): Use it.
60747
60748 2007-10-28  Bruno Haible  <bruno@clisp.org>
60749
60750         * gnulib-tool: Allow specifying the LGPL version number through
60751         --lgpl=2 or --lgpl=3.
60752         (func_usage): Document --lgpl with argument.
60753         Handle --lgpl=... arguments.
60754         (func_import): Recognize also gl_LGPL calls with an argument. When
60755         --lgpl=2 is used and the module's license is just LGPL, report an
60756         error. Set sed_transform_lib_file according to the lgpl variable. In
60757         the generated files, use --lgpl or gl_LGPL invocations with argument,
60758         if necessary.
60759         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60760         an LGPv2+ license.
60761         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60762         gl_LGPL macro.
60763
60764 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60765             Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60768         (u16_uctomb_aux): Likewise.
60769         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60770         !HAVE_INLINE.
60771         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60772
60773 2007-10-28  Bruno Haible  <bruno@clisp.org>
60774
60775         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60776         Invoke AM_GETTEXT_OPTION if it exists.
60777         * modules/vasprintf: Likewise.
60778         * modules/verror: Likewise.
60779         * modules/xprintf: Likewise.
60780         * modules/xvasprintf: Likewise.
60781
60782 2007-10-27  Ben Pfaff  <blp@gnu.org>
60783
60784         * lib/math.in.h: Define isfinite macro and prototypes for
60785         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60786         implementations.
60787         * m4/math_h.m4: New substitutions for isfinite module.
60788         * lib/isfinite.c: New file.
60789         * m4/isfinite.m4: New file.
60790         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60791         * modules/isfinite: New file.
60792         * modules/isfinite-tests: New file.
60793         * tests/tests-isfinite.c: New file.
60794         * doc/functions/isfinite.texi: Mention isfinite module.
60795         * MODULES.html.sh: Mention new module.
60796
60797 2007-10-27  Ben Pfaff  <blp@gnu.org>
60798
60799         Ralf Wildenhues reported that Tru64 4.0D declares the round
60800         functions but does not have definitions.
60801         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60802         cannot be found in any library, set the output variable to
60803         "missing" instead of "".
60804         * m4/round.m4: Also use our substitute if we cannot find round in
60805         any library, even if it is declared.
60806         * m4/roundf.m4: Likewise for roundf.
60807         * m4/roundl.m4: Likewise for roundl.
60808         * lib/math.in.h: Undefine roundf, round, roundl before defining
60809         their replacements, to allow for hypothetical systems where these
60810         may be defined as macros but not available in libraries.
60811
60812 2007-10-27  Bruno Haible  <bruno@clisp.org>
60813
60814         * doc/gnulib.texi: Invoke @firstparagraphindent.
60815         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60816         changes in gnulib.
60817         (Source changes): New section.
60818
60819 2007-10-26  Bruno Haible  <bruno@clisp.org>
60820
60821         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60822         borrowed from autoconf.
60823
60824 2007-10-26  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60827         strerror returned the empty string. Needed on HP-UX 11.00.
60828
60829 2007-10-24  Micah Cowan  <micah@cowan.name>
60830
60831         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60832         * build-aux/bootstrap: Remove support for now-unnecessary option,
60833         --cvs-user, and envvars CVS_USER, CVS_RSH.
60834
60835 2007-10-24  Jim Meyering  <meyering@redhat.com>
60836
60837         Avoid diagnostics from sha1sum when there is no cached checksum.
60838         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60839         if the po.s1 file hasn't been created yet.
60840
60841         * build-aux/bootstrap: Sync from coreutils:
60842         2007-10-24  Jim Meyering  <meyering@redhat.com>
60843         Get gnulib from the git repository, not from an obsolete cvs one.
60844         * build-aux/bootstrap: Suggestion from Micah Cowan.
60845         2007-10-04  Jim Meyering  <jim@meyering.net>
60846         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60847         (update_po_files): Work also when there are no .po files in po/.
60848
60849 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * README: Append ".git" to git and cg examples.
60852         Problem reported by Benoit Sigoure.
60853
60854 2007-10-23  Micah Cowan  <micah@cowan.name>
60855
60856         * users.txt: Add wget.
60857
60858 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60859
60860         Fix linking of some unistdio tests on FreeBSD.
60861         * modules/unistdio/u16-vsnprintf-tests
60862         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60863         * modules/unistdio/u16-vsprintf-tests
60864         (test_u16_vsnprintf1_LDADD): Likewise.
60865         * modules/unistdio/u32-vsnprintf-tests
60866         (test_u32_vsnprintf1_LDADD): Likewise.
60867         * modules/unistdio/u32-vsprintf-tests
60868         (test_u32_vsprintf1_LDADD): Likewise.
60869         * modules/unistdio/u8-vsnprintf-tests
60870         (test_u8_vsnprintf1_LDADD): Likewise.
60871         * modules/unistdio/u8-vsprintf-tests
60872         (test_u8_vsprintf1_LDADD): Likewise.
60873         * modules/unistdio/ulc-vsnprintf-tests
60874         (test_ulc_vsnprintf1_LDADD): Likewise.
60875         * modules/unistdio/ulc-vsprintf-tests
60876         (test_ulc_vsprintf1_LDADD): Likewise.
60877
60878         Fix linking of some uniconv tests on FreeBSD.
60879         * modules/uniconv/u16-conv-from-enc-tests
60880         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60881         * modules/uniconv/u16-conv-to-enc-tests
60882         (test_u16_conv_to_enc_LDADD): Likewise.
60883         * modules/uniconv/u16-strconv-from-enc-tests
60884         (test_u16_strconv_from_enc_LDADD): Likewise.
60885         * modules/uniconv/u16-strconv-to-enc-tests
60886         (test_u16_strconv_to_enc_LDADD): Likewise.
60887         * modules/uniconv/u32-conv-from-enc-tests
60888         (test_u32_conv_from_enc_LDADD): Likewise.
60889         * modules/uniconv/u32-conv-to-enc-tests
60890         (test_u32_conv_to_enc_LDADD): Likewise.
60891         * modules/uniconv/u32-strconv-from-enc-tests
60892         (test_u32_strconv_from_enc_LDADD): Likewise.
60893         * modules/uniconv/u32-strconv-to-enc-tests
60894         (test_u32_strconv_to_enc_LDADD): Likewise.
60895         * modules/uniconv/u8-conv-from-enc-tests
60896         (test_u8_conv_from_enc_LDADD): Likewise.
60897         * modules/uniconv/u8-conv-to-enc-tests
60898         (test_u8_conv_to_enc_LDADD): Likewise.
60899         * modules/uniconv/u8-strconv-from-enc-tests
60900         (test_u8_strconv_from_enc_LDADD): Likewise.
60901         * modules/uniconv/u8-strconv-to-enc-tests
60902         (test_u8_strconv_to_enc_LDADD): Likewise.
60903
60904 2007-10-22  Bruno Haible  <bruno@clisp.org>
60905
60906         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60907         size.
60908
60909 2007-10-22  Eric Blake  <ebb9@byu.net>
60910
60911         Tweak x*printf documentation.
60912         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60913         variable name and comments.
60914         Suggested by Bruno Haible.
60915
60916 2007-10-22  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/acl.c (copy_acl): Fix file name in comment.
60919
60920 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         Fix Tru64 problem with stdbool.h.
60923         * lib/stdbool.in.h (false, true):
60924         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60925         Don't declare as an enum in this situation; it runs afoul of Tru64.
60926         Problem reported by Steven M. Schweda in
60927         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60928
60929 2007-10-22  Eric Blake  <ebb9@byu.net>
60930
60931         Also wrap vf?printf.
60932         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60933         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60934         (xvprintf, xvfprintf): New functions.
60935
60936 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60937
60938         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60939         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60940
60941         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60942         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60943
60944 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60947         by Bruno Haible.
60948
60949 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60950
60951         * lib/getloadavg.c
60952         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60953         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60954
60955         * tests/test-i-ring.c: Work for C89.
60956
60957 2007-10-22  Bruno Haible  <bruno@clisp.org>
60958
60959         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60960         -1u, in preprocessor expression, so that we don't test for the bug
60961         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60963
60964 2007-10-22  Eric Blake  <ebb9@byu.net>
60965
60966         * tests/test-yesno.sh: Silence stderr during test.
60967
60968 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60969
60970         * modules/crypto/gc-camellia: New file.
60971
60972         * m4/gc-camellia.m4: New file.
60973
60974         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60975
60976         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60977
60978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60979
60980         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60981         --help to stdout.  Reported by sms@antinode.org (Steven
60982         M. Schweda).
60983
60984 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60985
60986         * users.txt: Fix link to libksba.
60987
60988 2007-10-21  Ben Pfaff  <blp@gnu.org>
60989
60990         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60991         round.c roundf implementation that depends on floorf and ceilf to
60992         be tested unconditionally.
60993
60994 2007-10-21  Ben Pfaff  <blp@gnu.org>
60995
60996         * m4/check-libm-func.m4: Removed.
60997         * m4/check-math-lib.m4: New file.
60998         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60999         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61000         definition and lack of AC_LIBOBJ([roundf]).
61001         * m4/roundl.m4: Ditto, and similarly for roundl.
61002         * modules/round: Reference new m4 file.
61003         * modules/roundf: Ditto.
61004         * modules/roundl: Ditto.
61005         * tests/test-round2.c (main): Use ROUND instead of round.
61006         Bug report from Bruno Haible.
61007
61008 2007-10-21  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61011         context.
61012
61013 2007-10-21  Bruno Haible  <bruno@clisp.org>
61014
61015         * tests/test-wcwidth.c (main): Allow negative result for some control
61016         characters.
61017
61018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61019         Needed on OSF/1 5.1.
61020
61021 2007-10-21  Bruno Haible  <bruno@clisp.org>
61022
61023         * tests/test-floorf1.c: Include isnanf.h.
61024         (main): Use isnanf() instead of isnan().
61025         * tests/test-ceilf1.c: Include isnanf.h.
61026         (main): Use isnanf() instead of isnan().
61027         * tests/test-truncf1.c: Include isnanf.h.
61028         (main): Use isnanf() instead of isnan().
61029         * tests/test-roundf1.c: Include isnanf.h.
61030         (main): Use isnanf() instead of isnan().
61031
61032 2007-10-21  Eric Blake  <ebb9@byu.net>
61033
61034         * users.txt: Update URL for m4.
61035
61036 2007-10-21  Bruno Haible  <bruno@clisp.org>
61037
61038         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61039
61040 2007-10-21  Bruno Haible  <bruno@clisp.org>
61041
61042         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61043         Git's management files if the CVS files are not present.
61044
61045 2007-10-20  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61048         gcc-3.4.x.
61049
61050 2007-10-20  Ben Pfaff  <blp@gnu.org>
61051
61052         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61053         implementations.
61054         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61055         * lib/round.c: New file.
61056         * lib/roundf.c: New file.
61057         * lib/roundl.c: New file.
61058         * m4/round.m4: New file.
61059         * m4/roundf.m4: New file.
61060         * m4/roundl.m4: New file.
61061         * m4/check-libm-func-m4: New file.
61062         * modules/math: Replace round, roundf, roundl related @VARS@ in
61063         math.in.h.
61064         * modules/round: New file.
61065         * modules/round-tests: New file.
61066         * modules/roundf: New file.
61067         * modules/roundf-tests: New file.
61068         * modules/roundl: New file.
61069         * modules/roundl-tests: New file.
61070         * tests/test-round1.c: New file.
61071         * tests/test-round2.c: New file.
61072         * tests/test-roundf1.c: New file.
61073         * tests/test-roundf2.c: New file.
61074         * tests/test-roundl.c: New file.
61075         * doc/functions/round.texi: Mention round module.
61076         * doc/functions/roundf.texi: Mention roundf module.
61077         * doc/functions/roundl.texi: Mention roundl module.
61078         * MODULES.html.sh: Mention new modules.
61079         Thanks to Bruno Haible for suggestions.
61080
61081 2007-10-20  Jim Meyering  <meyering@redhat.com>
61082
61083         * lib/xprintf.c: Include <config.h> unconditionally.
61084
61085         Change xprintf's license to GPL.
61086         * modules/xprintf (License): s/LGPL/GPL/, since this module
61087         depends on modules (exit and exitfail) which are GPL.
61088         Suggestion from Bruno Haible.
61089
61090         xprintf fixes.
61091         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61092         Use a clearer diagnostic.
61093         Patch from Bruno Haible.
61094
61095 2007-10-20  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61098         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61100
61101 2007-10-20  Bruno Haible  <bruno@clisp.org>
61102
61103         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61104         precision in the comparison result > x - 1 or similar.
61105         * tests/test-ceilf2.c (correct_result_p): Likewise.
61106         * tests/test-truncf2.c (correct_result_p): Likewise.
61107         * tests/test-trunc2.c (correct_result_p): Likewise.
61108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61109
61110 2007-10-20  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/ceil: New file.
61113         * m4/ceil.m4: New file.
61114         * doc/functions/ceil.texi: Mention the 'ceil' module.
61115
61116 2007-10-20  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/floor: New file.
61119         * m4/floor.m4: New file.
61120         * doc/functions/floor.texi: Mention the 'floor' module.
61121
61122 2007-10-20  Bruno Haible  <bruno@clisp.org>
61123
61124         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61125         of %a.
61126         * modules/floorf-tests (Depends-on): Likewise.
61127         * modules/truncf-tests (Depends-on): Likewise.
61128         * modules/trunc-tests (Depends-on): Likewise.
61129         Reported by Ben Pfaff.
61130
61131 2007-10-19  Jim Meyering  <meyering@redhat.com>
61132
61133         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61134         Don't bother testing specific errno values.  Just test ferror.
61135
61136         New module: xprintf
61137         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61138
61139 2007-10-19  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61142         syntax.
61143         * modules/javaexec (Makefile.am): Likewise.
61144         * modules/relocatable-prog (Makefile.am): Likewise.
61145         Suggested by Jim Meyering.
61146
61147 2007-10-18  Bruno Haible  <bruno@clisp.org>
61148
61149         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61150         Reported by Jim Meyering.
61151
61152 2007-10-18  Eric Blake  <ebb9@byu.net>
61153
61154         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61155
61156 2007-10-18  Bruno Haible  <bruno@clisp.org>
61157
61158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61159         the format string into writable memory. Needed in Fortify conditions.
61160
61161 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61162             Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61165         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61166         * modules/trim (Depends-on): Add mbchar.
61167         (configure.ac): Add gl_FUNC_MBRTOWC.
61168         (Makefile.am): Augment lib_SOURCES.
61169
61170 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         Modify glob.c to use fstatat and dirfd, to simplify it.
61173         Suggested by Eric Blake.
61174         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61175         Don't include <stdbool.h>; not used.
61176         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61177         (link_exists_p): Simplify implementation, since we can now assume
61178         dirfd and fstatat.
61179         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61180
61181 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61182
61183         * gnulib-tool (func_get_dependencies): Fix sed script to
61184         match only tests.
61185
61186 2007-10-17  Bruno Haible  <bruno@clisp.org>
61187
61188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61189         allow locale names without encoding suffix.
61190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61192
61193 2007-10-16  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61196         * lib/getgroups.c (getgroups): Likewise.
61197         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61198
61199 2007-10-16  Bruno Haible  <bruno@clisp.org>
61200
61201         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61202         * modules/malloc-posix (License): Likewise.
61203         * modules/realloc-posix (License): Likewise.
61204         * modules/calloc-posix (License): Likewise.
61205         * modules/intprops (License): Change from GPL to LGPL, with
61206         Paul Eggert's approval.
61207
61208 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         Merge glibc changes into lib/glob.c.
61211
61212         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61213         2007-10-15 04:59:03 UTC.  Here are the changes:
61214
61215         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61216
61217         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61218
61219         * lib/glob.c: Add some branch prediction throughout.
61220
61221         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61222
61223         [BZ #5103]
61224         * lib/glob.c (glob): Recognize patterns starting \/.
61225
61226         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61227
61228         [BZ #3996]
61229         * lib/glob.c (attribute_hidden): Define if not defined.
61230         (glob): Unescape dirname, filename or username when needed and not
61231         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61232         is NULL.  Handle unescaped [ in pattern without closing ].
61233         Don't pass GLOB_CHECK down to recursive glob for directories.
61234         (__glob_pattern_type): New function.
61235         (__glob_pattern_p): Implement using __glob_pattern_type.
61236         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61237         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61238         Remove unreachable code.
61239
61240         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61241
61242         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61243         explain why there are no leaks.
61244
61245         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61246
61247         [BZ #3253]
61248         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61249         time, rather allocate increasingly bigger arrays of pointers, if
61250         possible with alloca, if too large with malloc.
61251
61252 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61255         Problem reported by H.Merijn Brand in
61256         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61258         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61259
61260 2007-10-15  Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61263         with explicit rpl_ prefix.
61264         * lib/fopen.c (fopen): Likewise.
61265         * lib/freopen.c (freopen): Likewise.
61266         * lib/iconv.c (iconv): Likewise.
61267         * lib/iconv_close.c (iconv_close): Likewise.
61268
61269 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61270
61271         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61272
61273 2007-10-15  Bruno Haible  <bruno@clisp.org>
61274
61275         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61276         <stddef.h> instead of <stdlib.h> since we only need NULL.
61277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61278
61279 2007-10-15  Bruno Haible  <bruno@clisp.org>
61280
61281         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61282         Replace paragraph talking about LIBOBJS.
61283         Reported by Colin Watson <cjwatson@debian.org>.
61284
61285 2007-10-15  Bruno Haible  <bruno@clisp.org>
61286
61287         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61288         <stdlib.h> before using NULL.
61289
61290 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61291
61292         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61293         Reported by Albert Chin <china@thewrittenword.com>.
61294
61295 2007-10-14  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/iconv_open-utf-tests: New file.
61298         * tests/test-iconv-utf.c: New file.
61299
61300         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61301         * modules/iconv_open-utf: New file.
61302         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61303         (iconv, iconv_close): New declarations.
61304         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61305         be defined.
61306         (iconv_open): Add special handling of conversion between UTF-8 and
61307         UTF-{16,32}{BE,LE}.
61308         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61309         * lib/iconv_close.c: New file.
61310         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61311         gl_FUNC_ICONV_OPEN.
61312         (gl_FUNC_ICONV_OPEN): Use it.
61313         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61315         and REPLACE_ICONV_UTF.
61316         * modules/iconv_open (Depends-on): Add c-strcase.
61317         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61318         ICONV_CONST.
61319         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61320
61321 2007-10-13  Albert Chin  <china@thewrittenword.com>
61322             Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61325         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61326
61327 2007-10-13  Bruno Haible  <bruno@clisp.org>
61328
61329         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61330         defined, use the ISO C99 inline semantics.
61331         * lib/argp.h (ARGP_EI): Likewise.
61332
61333 2007-10-13  Bruno Haible  <bruno@clisp.org>
61334
61335         Handle 'inline' change in gcc 4.3.0.
61336         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61337         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61338         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61339         argp_fmtstream_point): Disable 'extern' declaration if the function
61340         definition is going to be provided inline.
61341         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61342         semantics, not the ISO C99 inline semantics.
61343         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61344         'extern' declaration if the function definition is going to be provided
61345         inline.
61346         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61347         the GNU C inline semantics, not the ISO C99 inline semantics. With
61348         GCC 4.2, avoid a warning.
61349
61350 2007-10-13  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/freading.h (freading): Enable the use of __freading for
61353         glibc >= 2.7.
61354         * lib/freading.c (freading): Likewise.
61355
61356 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61359         "warning: C99 inline functions are not supported; using GNU89".
61360
61361 2007-10-12  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61364         of 2.
61365         * tests/test-ceilf2.c: New file.
61366         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61367
61368         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61369         * modules/ceilf-tests: Update.
61370
61371 2007-10-12  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61374         of 2.
61375         * tests/test-floorf2.c: New file.
61376         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61377
61378         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61379         * modules/floorf-tests: Update.
61380
61381 2007-10-12  Bruno Haible  <bruno@clisp.org>
61382
61383         * tests/test-trunc2.c: New file.
61384         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61385
61386         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61387         * modules/trunc-tests: Update.
61388
61389 2007-10-12  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61392         of 2.
61393         * tests/test-truncf2.c: New file.
61394         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61395
61396         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61397         * modules/truncf-tests: Update.
61398
61399 2007-10-11  Eric Blake  <ebb9@byu.net>
61400
61401         Don't claim strerror is broken on Interix.
61402         * doc/functions/strerror.texi (strerror): Known broken systems are
61403         now Solaris 8, and not Interix.
61404         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61405         Interix on cross-compile.
61406         Reported by Martin Koeppe in
61407         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61408
61409 2007-10-11  Bruno Haible  <bruno@clisp.org>
61410
61411         * modules/i-ring-tests: New file.
61412         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61413         instead of assert.
61414
61415 2007-10-11  Bruno Haible  <bruno@clisp.org>
61416
61417         * modules/filenamecat-tests: New file.
61418         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61419         * lib/filenamecat.c: Remove test code.
61420
61421 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61424
61425         * lib/strerror.c: Include <string.h> always, to test interface,
61426         and to remove the need for the dummy.
61427         Include intprops.h to compute width instead of doing it ourselves
61428         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61429         (strerror): Define it to return NULL if there's no system strerror.
61430         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61431         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61432         ancient pre-strerror Unix systems well any more.  Saying "unknown
61433         system error" is enough.
61434         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61435         simpler strerror.c implementation.
61436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61437         Simplify the tests to reflect the simpler strerror implementation.
61438         * modules/strerror (Depends-on): Add intprops.
61439
61440 2007-10-09  Eric Blake  <ebb9@byu.net>
61441
61442         Silence test-fpending.
61443         * modules/fpending-tests (Files): Add wrapper script.
61444         * tests/test-fpending.sh: New file.
61445
61446 2007-10-09  Bruno Haible  <bruno@clisp.org>
61447
61448         * MODULES.html.sh (func_module): Don't create a hyperlink for
61449         function names like 'printf_frexp'.
61450         (Misc): Add crc, memxor.
61451         (Characteristics of floating types): New section.
61452         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61453         isnanf-nolibm, signbit, trunc, truncf, truncl.
61454         (Enhancements for ISO C 99 functions): New subsection Input/output.
61455         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61456         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61457         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61458         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61459         (Enhancements for POSIX:2001 functions): Add chdir-long.
61460         (File system functions): Add areadlink, chdir-safer, read-file.
61461         Remove cycle-check.
61462         (File system as inode set): New section.
61463         (Date and time): Add gethrxtime.
61464         (Multithreading): Add openmp.
61465         (Internationalization functions): Add localename.
61466         (Unicode string functions): Add unistr/u*-mbsnlen.
61467         (Support for maintaining and releasing projects): Add git-version-gen.
61468         (Lone files): Remove directories.
61469
61470 2007-10-08  Ben Pfaff  <blp@gnu.org>
61471
61472         * lib/xmalloca.h: Fix typo in comment.
61473
61474 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61477         when avoiding problems with integer overflow.  Use a portable test
61478         instead.
61479
61480 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61481
61482         * modules/dummy (License): Change to LGPLv2+.
61483         * modules/float (License): Likewise
61484         * modules/realloc (License): Likewise
61485         * modules/stdlib (License): Likewise
61486
61487 2007-10-07  Bruno Haible  <bruno@clisp.org>
61488
61489         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61490         * floor.c (TWO_MANT_DIG): Likewise.
61491         * ceil.c (TWO_MANT_DIG): Likewise.
61492         Reported by Ben Pfaff.
61493
61494 2007-10-07  Bruno Haible  <bruno@clisp.org>
61495
61496         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61497         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61498         * lib/frexp.c (FUNC): Likewise.
61499         * lib/printf-frexp.h (printf_frexp): Likewise.
61500         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61501         * lib/printf-frexp.c (FUNC): Likewise.
61502         Suggested by Jim Meyering.
61503
61504 2007-10-07  Jim Meyering  <meyering@redhat.com>
61505
61506         Make xnanosleep's integer overflow test more robust.
61507         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61508         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61509
61510 2007-10-07  Bruno Haible  <bruno@clisp.org>
61511
61512         * NEWS: Mention the license change.
61513
61514         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61515         abbreviations in the modules files.
61516
61517         Change copyright notice from GPLv2+ to GPLv3+.
61518         * README: Change copyright notice.
61519         * MODULES.html.sh: Likewise.
61520         * build-aux/bootstrap.conf: Likewise.
61521         * build-aux/config.libpath: Likewise.
61522         * build-aux/csharpcomp.sh.in: Likewise.
61523         * build-aux/csharpexec.sh.in: Likewise.
61524         * build-aux/install-reloc: Likewise.
61525         * build-aux/javacomp.sh.in: Likewise.
61526         * build-aux/javaexec.sh.in: Likewise.
61527         * build-aux/ldd.sh.in: Likewise.
61528         * build-aux/reloc-ldflags: Likewise.
61529         * build-aux/relocatable.sh.in: Likewise.
61530         * build-aux/x-to-1.in: Likewise.
61531         * check-module: Likewise.
61532         * config/srclistvars.sh: Likewise.
61533         * gnulib-tool: Likewise.
61534         * lib/acl-internal.h: Likewise.
61535         * lib/acl.c: Likewise.
61536         * lib/acl.h: Likewise.
61537         * lib/acl_entries.c: Likewise.
61538         * lib/areadlink-with-size.c: Likewise.
61539         * lib/areadlink.c: Likewise.
61540         * lib/areadlink.h: Likewise.
61541         * lib/argmatch.c: Likewise.
61542         * lib/argmatch.h: Likewise.
61543         * lib/argp-ba.c: Likewise.
61544         * lib/argp-eexst.c: Likewise.
61545         * lib/argp-fmtstream.c: Likewise.
61546         * lib/argp-fmtstream.h: Likewise.
61547         * lib/argp-fs-xinl.c: Likewise.
61548         * lib/argp-help.c: Likewise.
61549         * lib/argp-namefrob.h: Likewise.
61550         * lib/argp-parse.c: Likewise.
61551         * lib/argp-pin.c: Likewise.
61552         * lib/argp-pv.c: Likewise.
61553         * lib/argp-pvh.c: Likewise.
61554         * lib/argp-xinl.c: Likewise.
61555         * lib/argp.h: Likewise.
61556         * lib/at-func.c: Likewise.
61557         * lib/atanl.c: Likewise.
61558         * lib/backupfile.c: Likewise.
61559         * lib/backupfile.h: Likewise.
61560         * lib/basename.c: Likewise.
61561         * lib/binary-io.h: Likewise.
61562         * lib/byteswap.in.h: Likewise.
61563         * lib/c-stack.c: Likewise.
61564         * lib/c-stack.h: Likewise.
61565         * lib/c-strcasestr.c: Likewise.
61566         * lib/c-strcasestr.h: Likewise.
61567         * lib/c-strstr.c: Likewise.
61568         * lib/c-strstr.h: Likewise.
61569         * lib/c-strtod.c: Likewise.
61570         * lib/calloc.c: Likewise.
61571         * lib/canon-host.c: Likewise.
61572         * lib/canon-host.h: Likewise.
61573         * lib/canonicalize-lgpl.c: Likewise.
61574         * lib/canonicalize.c: Likewise.
61575         * lib/canonicalize.h: Likewise.
61576         * lib/ceil.c: Likewise.
61577         * lib/ceilf.c: Likewise.
61578         * lib/ceill.c: Likewise.
61579         * lib/chdir-long.c: Likewise.
61580         * lib/chdir-long.h: Likewise.
61581         * lib/chdir-safer.c: Likewise.
61582         * lib/chdir-safer.h: Likewise.
61583         * lib/chown.c: Likewise.
61584         * lib/classpath.c: Likewise.
61585         * lib/classpath.h: Likewise.
61586         * lib/clean-temp.c: Likewise.
61587         * lib/clean-temp.h: Likewise.
61588         * lib/cloexec.c: Likewise.
61589         * lib/close-stream.c: Likewise.
61590         * lib/closein.c: Likewise.
61591         * lib/closein.h: Likewise.
61592         * lib/closeout.c: Likewise.
61593         * lib/closeout.h: Likewise.
61594         * lib/concat-filename.c: Likewise.
61595         * lib/copy-file.c: Likewise.
61596         * lib/copy-file.h: Likewise.
61597         * lib/count-one-bits.h: Likewise.
61598         * lib/crc.c: Likewise.
61599         * lib/crc.h: Likewise.
61600         * lib/creat-safer.c: Likewise.
61601         * lib/csharpcomp.c: Likewise.
61602         * lib/csharpcomp.h: Likewise.
61603         * lib/csharpexec.c: Likewise.
61604         * lib/csharpexec.h: Likewise.
61605         * lib/cycle-check.c: Likewise.
61606         * lib/cycle-check.h: Likewise.
61607         * lib/diacrit.c: Likewise.
61608         * lib/diacrit.h: Likewise.
61609         * lib/diffseq.h: Likewise.
61610         * lib/dirchownmod.c: Likewise.
61611         * lib/dirent.in.h: Likewise.
61612         * lib/dirfd.c: Likewise.
61613         * lib/dirfd.h: Likewise.
61614         * lib/dirname.c: Likewise.
61615         * lib/dirname.h: Likewise.
61616         * lib/dummy.c: Likewise.
61617         * lib/dup-safer.c: Likewise.
61618         * lib/dup2.c: Likewise.
61619         * lib/eealloc.h: Likewise.
61620         * lib/error.c: Likewise.
61621         * lib/error.h: Likewise.
61622         * lib/euidaccess.c: Likewise.
61623         * lib/exclude.c: Likewise.
61624         * lib/exclude.h: Likewise.
61625         * lib/execute.c: Likewise.
61626         * lib/execute.h: Likewise.
61627         * lib/exitfail.c: Likewise.
61628         * lib/exitfail.h: Likewise.
61629         * lib/expl.c: Likewise.
61630         * lib/fatal-signal.c: Likewise.
61631         * lib/fatal-signal.h: Likewise.
61632         * lib/fbufmode.c: Likewise.
61633         * lib/fbufmode.h: Likewise.
61634         * lib/fchdir.c: Likewise.
61635         * lib/fchmodat.c: Likewise.
61636         * lib/fchownat.c: Likewise.
61637         * lib/fcntl--.h: Likewise.
61638         * lib/fcntl-safer.h: Likewise.
61639         * lib/fcntl.in.h: Likewise.
61640         * lib/fd-safer.c: Likewise.
61641         * lib/fflush.c: Likewise.
61642         * lib/file-has-acl.c: Likewise.
61643         * lib/file-set.c: Likewise.
61644         * lib/file-type.c: Likewise.
61645         * lib/file-type.h: Likewise.
61646         * lib/fileblocks.c: Likewise.
61647         * lib/filemode.c: Likewise.
61648         * lib/filemode.h: Likewise.
61649         * lib/filename.h: Likewise.
61650         * lib/filenamecat.c: Likewise.
61651         * lib/filenamecat.h: Likewise.
61652         * lib/findprog.c: Likewise.
61653         * lib/findprog.h: Likewise.
61654         * lib/float.in.h: Likewise.
61655         * lib/floor.c: Likewise.
61656         * lib/floorf.c: Likewise.
61657         * lib/floorl.c: Likewise.
61658         * lib/fopen-safer.c: Likewise.
61659         * lib/fopen.c: Likewise.
61660         * lib/fpending.c: Likewise.
61661         * lib/fpending.h: Likewise.
61662         * lib/fprintf.c: Likewise.
61663         * lib/fprintftime.h: Likewise.
61664         * lib/fpucw.h: Likewise.
61665         * lib/fpurge.c: Likewise.
61666         * lib/fpurge.h: Likewise.
61667         * lib/freadable.c: Likewise.
61668         * lib/freadable.h: Likewise.
61669         * lib/freadahead.c: Likewise.
61670         * lib/freadahead.h: Likewise.
61671         * lib/freading.c: Likewise.
61672         * lib/freading.h: Likewise.
61673         * lib/free.c: Likewise.
61674         * lib/freopen.c: Likewise.
61675         * lib/frexp.c: Likewise.
61676         * lib/frexpl.c: Likewise.
61677         * lib/fseek.c: Likewise.
61678         * lib/fseterr.c: Likewise.
61679         * lib/fseterr.h: Likewise.
61680         * lib/fstatat.c: Likewise.
61681         * lib/fstrcmp.c: Likewise.
61682         * lib/fstrcmp.h: Likewise.
61683         * lib/fsusage.c: Likewise.
61684         * lib/fsusage.h: Likewise.
61685         * lib/ftell.c: Likewise.
61686         * lib/ftello.c: Likewise.
61687         * lib/fts-cycle.c: Likewise.
61688         * lib/fts.c: Likewise.
61689         * lib/fts_.h: Likewise.
61690         * lib/full-read.c: Likewise.
61691         * lib/full-read.h: Likewise.
61692         * lib/full-write.c: Likewise.
61693         * lib/full-write.h: Likewise.
61694         * lib/fwritable.c: Likewise.
61695         * lib/fwritable.h: Likewise.
61696         * lib/fwriteerror.c: Likewise.
61697         * lib/fwriteerror.h: Likewise.
61698         * lib/fwriting.c: Likewise.
61699         * lib/fwriting.h: Likewise.
61700         * lib/gcd.c: Likewise.
61701         * lib/gcd.h: Likewise.
61702         * lib/getcwd.c: Likewise.
61703         * lib/getdate.h: Likewise.
61704         * lib/getdate.y: Likewise.
61705         * lib/getdomainname.c: Likewise.
61706         * lib/getdomainname.h: Likewise.
61707         * lib/getgroups.c: Likewise.
61708         * lib/gethostname.c: Likewise.
61709         * lib/gethrxtime.c: Likewise.
61710         * lib/gethrxtime.h: Likewise.
61711         * lib/getloadavg.c: Likewise.
61712         * lib/getndelim2.c: Likewise.
61713         * lib/getndelim2.h: Likewise.
61714         * lib/getnline.c: Likewise.
61715         * lib/getnline.h: Likewise.
61716         * lib/getopt.c: Likewise.
61717         * lib/getopt.in.h: Likewise.
61718         * lib/getopt1.c: Likewise.
61719         * lib/getopt_int.h: Likewise.
61720         * lib/getpagesize.h: Likewise.
61721         * lib/getsubopt.c: Likewise.
61722         * lib/gettime.c: Likewise.
61723         * lib/getugroups.c: Likewise.
61724         * lib/getugroups.h: Likewise.
61725         * lib/getusershell.c: Likewise.
61726         * lib/gl_anyavltree_list1.h: Likewise.
61727         * lib/gl_anyavltree_list2.h: Likewise.
61728         * lib/gl_anyhash_list1.h: Likewise.
61729         * lib/gl_anyhash_list2.h: Likewise.
61730         * lib/gl_anylinked_list1.h: Likewise.
61731         * lib/gl_anylinked_list2.h: Likewise.
61732         * lib/gl_anyrbtree_list1.h: Likewise.
61733         * lib/gl_anyrbtree_list2.h: Likewise.
61734         * lib/gl_anytree_list1.h: Likewise.
61735         * lib/gl_anytree_list2.h: Likewise.
61736         * lib/gl_anytree_oset.h: Likewise.
61737         * lib/gl_anytreehash_list1.h: Likewise.
61738         * lib/gl_anytreehash_list2.h: Likewise.
61739         * lib/gl_array_list.c: Likewise.
61740         * lib/gl_array_list.h: Likewise.
61741         * lib/gl_array_oset.c: Likewise.
61742         * lib/gl_array_oset.h: Likewise.
61743         * lib/gl_avltree_list.c: Likewise.
61744         * lib/gl_avltree_list.h: Likewise.
61745         * lib/gl_avltree_oset.c: Likewise.
61746         * lib/gl_avltree_oset.h: Likewise.
61747         * lib/gl_avltreehash_list.c: Likewise.
61748         * lib/gl_avltreehash_list.h: Likewise.
61749         * lib/gl_carray_list.c: Likewise.
61750         * lib/gl_carray_list.h: Likewise.
61751         * lib/gl_linked_list.c: Likewise.
61752         * lib/gl_linked_list.h: Likewise.
61753         * lib/gl_linkedhash_list.c: Likewise.
61754         * lib/gl_linkedhash_list.h: Likewise.
61755         * lib/gl_list.c: Likewise.
61756         * lib/gl_list.h: Likewise.
61757         * lib/gl_oset.c: Likewise.
61758         * lib/gl_oset.h: Likewise.
61759         * lib/gl_rbtree_list.c: Likewise.
61760         * lib/gl_rbtree_list.h: Likewise.
61761         * lib/gl_rbtree_oset.c: Likewise.
61762         * lib/gl_rbtree_oset.h: Likewise.
61763         * lib/gl_rbtreehash_list.c: Likewise.
61764         * lib/gl_rbtreehash_list.h: Likewise.
61765         * lib/gl_sublist.c: Likewise.
61766         * lib/gl_sublist.h: Likewise.
61767         * lib/group-member.c: Likewise.
61768         * lib/group-member.h: Likewise.
61769         * lib/hard-locale.c: Likewise.
61770         * lib/hard-locale.h: Likewise.
61771         * lib/hash-pjw.c: Likewise.
61772         * lib/hash-pjw.h: Likewise.
61773         * lib/hash-triple.c: Likewise.
61774         * lib/hash.c: Likewise.
61775         * lib/hash.h: Likewise.
61776         * lib/human.c: Likewise.
61777         * lib/human.h: Likewise.
61778         * lib/i-ring.c: Likewise.
61779         * lib/i-ring.h: Likewise.
61780         * lib/idcache.c: Likewise.
61781         * lib/imaxabs.c: Likewise.
61782         * lib/imaxdiv.c: Likewise.
61783         * lib/inet_pton.c: Likewise.
61784         * lib/inet_pton.h: Likewise.
61785         * lib/intprops.h: Likewise.
61786         * lib/inttostr.c: Likewise.
61787         * lib/inttostr.h: Likewise.
61788         * lib/inttypes.in.h: Likewise.
61789         * lib/isapipe.c: Likewise.
61790         * lib/isdir.c: Likewise.
61791         * lib/isnan.c: Likewise.
61792         * lib/isnan.h: Likewise.
61793         * lib/isnanf.c: Likewise.
61794         * lib/isnanf.h: Likewise.
61795         * lib/isnanl-nolibm.h: Likewise.
61796         * lib/isnanl.c: Likewise.
61797         * lib/isnanl.h: Likewise.
61798         * lib/javacomp.c: Likewise.
61799         * lib/javacomp.h: Likewise.
61800         * lib/javaexec.c: Likewise.
61801         * lib/javaexec.h: Likewise.
61802         * lib/javaversion.c: Likewise.
61803         * lib/javaversion.h: Likewise.
61804         * lib/javaversion.java: Likewise.
61805         * lib/lbrkprop.h: Likewise.
61806         * lib/lchmod.h: Likewise.
61807         * lib/lchown.c: Likewise.
61808         * lib/ldexpl.c: Likewise.
61809         * lib/linebreak.c: Likewise.
61810         * lib/linebreak.h: Likewise.
61811         * lib/linebuffer.c: Likewise.
61812         * lib/linebuffer.h: Likewise.
61813         * lib/locale.in.h: Likewise.
61814         * lib/logl.c: Likewise.
61815         * lib/long-options.c: Likewise.
61816         * lib/long-options.h: Likewise.
61817         * lib/lstat.c: Likewise.
61818         * lib/lstat.h: Likewise.
61819         * lib/math.in.h: Likewise.
61820         * lib/mbchar.c: Likewise.
61821         * lib/mbchar.h: Likewise.
61822         * lib/mbfile.h: Likewise.
61823         * lib/mbiter.h: Likewise.
61824         * lib/mbscasecmp.c: Likewise.
61825         * lib/mbscasestr.c: Likewise.
61826         * lib/mbschr.c: Likewise.
61827         * lib/mbscspn.c: Likewise.
61828         * lib/mbslen.c: Likewise.
61829         * lib/mbsncasecmp.c: Likewise.
61830         * lib/mbsnlen.c: Likewise.
61831         * lib/mbspbrk.c: Likewise.
61832         * lib/mbspcasecmp.c: Likewise.
61833         * lib/mbsrchr.c: Likewise.
61834         * lib/mbssep.c: Likewise.
61835         * lib/mbsspn.c: Likewise.
61836         * lib/mbsstr.c: Likewise.
61837         * lib/mbstok_r.c: Likewise.
61838         * lib/mbswidth.c: Likewise.
61839         * lib/mbswidth.h: Likewise.
61840         * lib/mbuiter.h: Likewise.
61841         * lib/memcasecmp.c: Likewise.
61842         * lib/memcasecmp.h: Likewise.
61843         * lib/memchr.c: Likewise.
61844         * lib/memcmp.c: Likewise.
61845         * lib/memcoll.c: Likewise.
61846         * lib/memcoll.h: Likewise.
61847         * lib/memcpy.c: Likewise.
61848         * lib/memrchr.c: Likewise.
61849         * lib/mkancesdirs.c: Likewise.
61850         * lib/mkdir-p.c: Likewise.
61851         * lib/mkdir-p.h: Likewise.
61852         * lib/mkdir.c: Likewise.
61853         * lib/mkdirat.c: Likewise.
61854         * lib/mkdtemp.c: Likewise.
61855         * lib/mkstemp-safer.c: Likewise.
61856         * lib/mkstemp.c: Likewise.
61857         * lib/modechange.c: Likewise.
61858         * lib/modechange.h: Likewise.
61859         * lib/mountlist.c: Likewise.
61860         * lib/mountlist.h: Likewise.
61861         * lib/mpsort.c: Likewise.
61862         * lib/nanosleep.c: Likewise.
61863         * lib/obstack.c: Likewise.
61864         * lib/obstack.h: Likewise.
61865         * lib/open-safer.c: Likewise.
61866         * lib/open.c: Likewise.
61867         * lib/openat-die.c: Likewise.
61868         * lib/openat-priv.h: Likewise.
61869         * lib/openat-proc.c: Likewise.
61870         * lib/openat.c: Likewise.
61871         * lib/openat.h: Likewise.
61872         * lib/pagealign_alloc.c: Likewise.
61873         * lib/pagealign_alloc.h: Likewise.
61874         * lib/physmem.c: Likewise.
61875         * lib/physmem.h: Likewise.
61876         * lib/pipe-safer.c: Likewise.
61877         * lib/pipe.c: Likewise.
61878         * lib/pipe.h: Likewise.
61879         * lib/posixtm.c: Likewise.
61880         * lib/posixtm.h: Likewise.
61881         * lib/posixver.c: Likewise.
61882         * lib/printf-frexp.c: Likewise.
61883         * lib/printf-frexp.h: Likewise.
61884         * lib/printf-frexpl.c: Likewise.
61885         * lib/printf-frexpl.h: Likewise.
61886         * lib/printf.c: Likewise.
61887         * lib/progname.c: Likewise.
61888         * lib/progname.h: Likewise.
61889         * lib/progreloc.c: Likewise.
61890         * lib/putenv.c: Likewise.
61891         * lib/quote.c: Likewise.
61892         * lib/quote.h: Likewise.
61893         * lib/quotearg.c: Likewise.
61894         * lib/quotearg.h: Likewise.
61895         * lib/raise.c: Likewise.
61896         * lib/readline.c: Likewise.
61897         * lib/readline.h: Likewise.
61898         * lib/readlink.c: Likewise.
61899         * lib/readtokens.c: Likewise.
61900         * lib/readtokens.h: Likewise.
61901         * lib/readtokens0.c: Likewise.
61902         * lib/readtokens0.h: Likewise.
61903         * lib/readutmp.c: Likewise.
61904         * lib/readutmp.h: Likewise.
61905         * lib/realloc.c: Likewise.
61906         * lib/relocwrapper.c: Likewise.
61907         * lib/rename-dest-slash.c: Likewise.
61908         * lib/rename.c: Likewise.
61909         * lib/rmdir.c: Likewise.
61910         * lib/rpmatch.c: Likewise.
61911         * lib/safe-read.c: Likewise.
61912         * lib/safe-read.h: Likewise.
61913         * lib/safe-write.c: Likewise.
61914         * lib/safe-write.h: Likewise.
61915         * lib/same-inode.h: Likewise.
61916         * lib/same.c: Likewise.
61917         * lib/same.h: Likewise.
61918         * lib/save-cwd.c: Likewise.
61919         * lib/save-cwd.h: Likewise.
61920         * lib/savedir.c: Likewise.
61921         * lib/savedir.h: Likewise.
61922         * lib/savewd.c: Likewise.
61923         * lib/savewd.h: Likewise.
61924         * lib/search.in.h: Likewise.
61925         * lib/setenv.c: Likewise.
61926         * lib/setenv.h: Likewise.
61927         * lib/settime.c: Likewise.
61928         * lib/sh-quote.c: Likewise.
61929         * lib/sh-quote.h: Likewise.
61930         * lib/sig2str.c: Likewise.
61931         * lib/sig2str.h: Likewise.
61932         * lib/signal.in.h: Likewise.
61933         * lib/signbitd.c: Likewise.
61934         * lib/signbitf.c: Likewise.
61935         * lib/signbitl.c: Likewise.
61936         * lib/sigprocmask.c: Likewise.
61937         * lib/sincosl.c: Likewise.
61938         * lib/sleep.c: Likewise.
61939         * lib/sprintf.c: Likewise.
61940         * lib/sqrtl.c: Likewise.
61941         * lib/stat-time.h: Likewise.
61942         * lib/stdio--.h: Likewise.
61943         * lib/stdio-safer.h: Likewise.
61944         * lib/stdlib--.h: Likewise.
61945         * lib/stdlib-safer.h: Likewise.
61946         * lib/stdlib.in.h: Likewise.
61947         * lib/stpcpy.c: Likewise.
61948         * lib/stpncpy.c: Likewise.
61949         * lib/strchrnul.c: Likewise.
61950         * lib/strcspn.c: Likewise.
61951         * lib/strerror.c: Likewise.
61952         * lib/strftime.c: Likewise.
61953         * lib/strftime.h: Likewise.
61954         * lib/striconveh.c: Likewise.
61955         * lib/striconveh.h: Likewise.
61956         * lib/striconveha.c: Likewise.
61957         * lib/striconveha.h: Likewise.
61958         * lib/stripslash.c: Likewise.
61959         * lib/strnlen1.c: Likewise.
61960         * lib/strnlen1.h: Likewise.
61961         * lib/strtod.c: Likewise.
61962         * lib/strtoimax.c: Likewise.
61963         * lib/strtok_r.c: Likewise.
61964         * lib/strtol.c: Likewise.
61965         * lib/strtoll.c: Likewise.
61966         * lib/strtoul.c: Likewise.
61967         * lib/strtoull.c: Likewise.
61968         * lib/sysexits.in.h: Likewise.
61969         * lib/tempname.c: Likewise.
61970         * lib/tempname.h: Likewise.
61971         * lib/timespec.h: Likewise.
61972         * lib/tls.c: Likewise.
61973         * lib/tls.h: Likewise.
61974         * lib/tmpdir.c: Likewise.
61975         * lib/tmpdir.h: Likewise.
61976         * lib/tmpfile-safer.c: Likewise.
61977         * lib/tmpfile.c: Likewise.
61978         * lib/trigl.c: Likewise.
61979         * lib/trigl.h: Likewise.
61980         * lib/trim.c: Likewise.
61981         * lib/trim.h: Likewise.
61982         * lib/trunc.c: Likewise.
61983         * lib/truncf.c: Likewise.
61984         * lib/truncl.c: Likewise.
61985         * lib/tsearch.c: Likewise.
61986         * lib/unicodeio.c: Likewise.
61987         * lib/unicodeio.h: Likewise.
61988         * lib/unistd--.h: Likewise.
61989         * lib/unistd-safer.h: Likewise.
61990         * lib/unistdio/ulc-fprintf.c: Likewise.
61991         * lib/unistdio/ulc-vfprintf.c: Likewise.
61992         * lib/unlinkdir.c: Likewise.
61993         * lib/unlinkdir.h: Likewise.
61994         * lib/unlocked-io.h: Likewise.
61995         * lib/unsetenv.c: Likewise.
61996         * lib/userspec.c: Likewise.
61997         * lib/utime.c: Likewise.
61998         * lib/utimecmp.c: Likewise.
61999         * lib/utimecmp.h: Likewise.
62000         * lib/utimens.c: Likewise.
62001         * lib/verify.h: Likewise.
62002         * lib/verror.c: Likewise.
62003         * lib/verror.h: Likewise.
62004         * lib/version-etc-fsf.c: Likewise.
62005         * lib/version-etc.c: Likewise.
62006         * lib/version-etc.h: Likewise.
62007         * lib/vfprintf.c: Likewise.
62008         * lib/vprintf.c: Likewise.
62009         * lib/vsprintf.c: Likewise.
62010         * lib/w32spawn.h: Likewise.
62011         * lib/wait-process.c: Likewise.
62012         * lib/wait-process.h: Likewise.
62013         * lib/wcwidth.c: Likewise.
62014         * lib/write-any-file.c: Likewise.
62015         * lib/xalloc-die.c: Likewise.
62016         * lib/xalloc.h: Likewise.
62017         * lib/xasprintf.c: Likewise.
62018         * lib/xgetcwd.c: Likewise.
62019         * lib/xgetcwd.h: Likewise.
62020         * lib/xgetdomainname.c: Likewise.
62021         * lib/xgetdomainname.h: Likewise.
62022         * lib/xgethostname.c: Likewise.
62023         * lib/xmalloc.c: Likewise.
62024         * lib/xmalloca.c: Likewise.
62025         * lib/xmalloca.h: Likewise.
62026         * lib/xmemcoll.c: Likewise.
62027         * lib/xnanosleep.c: Likewise.
62028         * lib/xreadlink.c: Likewise.
62029         * lib/xreadlink.h: Likewise.
62030         * lib/xsetenv.c: Likewise.
62031         * lib/xsetenv.h: Likewise.
62032         * lib/xstriconv.c: Likewise.
62033         * lib/xstriconv.h: Likewise.
62034         * lib/xstrndup.c: Likewise.
62035         * lib/xstrndup.h: Likewise.
62036         * lib/xstrtod.c: Likewise.
62037         * lib/xstrtod.h: Likewise.
62038         * lib/xstrtol-error.c: Likewise.
62039         * lib/xstrtol.c: Likewise.
62040         * lib/xstrtol.h: Likewise.
62041         * lib/xtime.h: Likewise.
62042         * lib/xvasprintf.c: Likewise.
62043         * lib/xvasprintf.h: Likewise.
62044         * lib/yesno.c: Likewise.
62045         * lib/yesno.h: Likewise.
62046         * posix-modules: Likewise.
62047         * tests/test-alloca-opt.c: Likewise.
62048         * tests/test-arcfour.c: Likewise.
62049         * tests/test-arctwo.c: Likewise.
62050         * tests/test-argmatch.c: Likewise.
62051         * tests/test-argp-2.sh: Likewise.
62052         * tests/test-argp.c: Likewise.
62053         * tests/test-arpa_inet.c: Likewise.
62054         * tests/test-array_list.c: Likewise.
62055         * tests/test-array_oset.c: Likewise.
62056         * tests/test-atexit.c: Likewise.
62057         * tests/test-avltree_list.c: Likewise.
62058         * tests/test-avltree_oset.c: Likewise.
62059         * tests/test-avltreehash_list.c: Likewise.
62060         * tests/test-base64.c: Likewise.
62061         * tests/test-binary-io.c: Likewise.
62062         * tests/test-byteswap.c: Likewise.
62063         * tests/test-c-ctype.c: Likewise.
62064         * tests/test-c-strcasecmp.c: Likewise.
62065         * tests/test-c-strcasestr.c: Likewise.
62066         * tests/test-c-strncasecmp.c: Likewise.
62067         * tests/test-c-strstr.c: Likewise.
62068         * tests/test-canonicalize-lgpl.c: Likewise.
62069         * tests/test-canonicalize.c: Likewise.
62070         * tests/test-carray_list.c: Likewise.
62071         * tests/test-ceilf.c: Likewise.
62072         * tests/test-ceill.c: Likewise.
62073         * tests/test-count-one-bits.c: Likewise.
62074         * tests/test-crc.c: Likewise.
62075         * tests/test-dirname.c: Likewise.
62076         * tests/test-fbufmode.c: Likewise.
62077         * tests/test-fcntl.c: Likewise.
62078         * tests/test-fflush.c: Likewise.
62079         * tests/test-floorf.c: Likewise.
62080         * tests/test-floorl.c: Likewise.
62081         * tests/test-fopen.c: Likewise.
62082         * tests/test-fprintf-posix.c: Likewise.
62083         * tests/test-fprintf-posix.h: Likewise.
62084         * tests/test-fpurge.c: Likewise.
62085         * tests/test-freadable.c: Likewise.
62086         * tests/test-freadahead.c: Likewise.
62087         * tests/test-freading.c: Likewise.
62088         * tests/test-freopen.c: Likewise.
62089         * tests/test-frexp.c: Likewise.
62090         * tests/test-frexpl.c: Likewise.
62091         * tests/test-fseek.c: Likewise.
62092         * tests/test-fseeko.c: Likewise.
62093         * tests/test-fseterr.c: Likewise.
62094         * tests/test-fstrcmp.c: Likewise.
62095         * tests/test-ftell.c: Likewise.
62096         * tests/test-ftello.c: Likewise.
62097         * tests/test-fwritable.c: Likewise.
62098         * tests/test-fwriting.c: Likewise.
62099         * tests/test-getaddrinfo.c: Likewise.
62100         * tests/test-getpass.c: Likewise.
62101         * tests/test-gettimeofday.c: Likewise.
62102         * tests/test-hmac-md5.c: Likewise.
62103         * tests/test-hmac-sha1.c: Likewise.
62104         * tests/test-iconv.c: Likewise.
62105         * tests/test-iconvme.c: Likewise.
62106         * tests/test-inttypes.c: Likewise.
62107         * tests/test-isnan.c: Likewise.
62108         * tests/test-isnanf.c: Likewise.
62109         * tests/test-isnanl-nolibm.c: Likewise.
62110         * tests/test-isnanl.c: Likewise.
62111         * tests/test-isnanl.h: Likewise.
62112         * tests/test-ldexpl.c: Likewise.
62113         * tests/test-linked_list.c: Likewise.
62114         * tests/test-linkedhash_list.c: Likewise.
62115         * tests/test-locale.c: Likewise.
62116         * tests/test-localename.c: Likewise.
62117         * tests/test-lock.c: Likewise.
62118         * tests/test-lseek.c: Likewise.
62119         * tests/test-malloca.c: Likewise.
62120         * tests/test-math.c: Likewise.
62121         * tests/test-mbscasecmp.c: Likewise.
62122         * tests/test-mbscasestr1.c: Likewise.
62123         * tests/test-mbscasestr2.c: Likewise.
62124         * tests/test-mbscasestr3.c: Likewise.
62125         * tests/test-mbscasestr4.c: Likewise.
62126         * tests/test-mbschr.c: Likewise.
62127         * tests/test-mbscspn.c: Likewise.
62128         * tests/test-mbsncasecmp.c: Likewise.
62129         * tests/test-mbspbrk.c: Likewise.
62130         * tests/test-mbspcasecmp.c: Likewise.
62131         * tests/test-mbsrchr.c: Likewise.
62132         * tests/test-mbsspn.c: Likewise.
62133         * tests/test-mbsstr1.c: Likewise.
62134         * tests/test-mbsstr2.c: Likewise.
62135         * tests/test-mbsstr3.c: Likewise.
62136         * tests/test-md5.c: Likewise.
62137         * tests/test-memmem.c: Likewise.
62138         * tests/test-netinet_in.c: Likewise.
62139         * tests/test-open.c: Likewise.
62140         * tests/test-printf-frexp.c: Likewise.
62141         * tests/test-printf-frexpl.c: Likewise.
62142         * tests/test-printf-posix.c: Likewise.
62143         * tests/test-printf-posix.h: Likewise.
62144         * tests/test-rbtree_list.c: Likewise.
62145         * tests/test-rbtree_oset.c: Likewise.
62146         * tests/test-rbtreehash_list.c: Likewise.
62147         * tests/test-read-file.c: Likewise.
62148         * tests/test-rijndael.c: Likewise.
62149         * tests/test-search.c: Likewise.
62150         * tests/test-signbit.c: Likewise.
62151         * tests/test-sleep.c: Likewise.
62152         * tests/test-snprintf-posix.c: Likewise.
62153         * tests/test-snprintf-posix.h: Likewise.
62154         * tests/test-snprintf.c: Likewise.
62155         * tests/test-sprintf-posix.c: Likewise.
62156         * tests/test-sprintf-posix.h: Likewise.
62157         * tests/test-stat-time.c: Likewise.
62158         * tests/test-stdbool.c: Likewise.
62159         * tests/test-stdint.c: Likewise.
62160         * tests/test-stdio.c: Likewise.
62161         * tests/test-stdlib.c: Likewise.
62162         * tests/test-stpncpy.c: Likewise.
62163         * tests/test-strcasestr.c: Likewise.
62164         * tests/test-striconv.c: Likewise.
62165         * tests/test-striconveh.c: Likewise.
62166         * tests/test-striconveha.c: Likewise.
62167         * tests/test-string.c: Likewise.
62168         * tests/test-sys_select.c: Likewise.
62169         * tests/test-sys_socket.c: Likewise.
62170         * tests/test-sys_stat.c: Likewise.
62171         * tests/test-sys_time.c: Likewise.
62172         * tests/test-sysexits.c: Likewise.
62173         * tests/test-time.c: Likewise.
62174         * tests/test-tls.c: Likewise.
62175         * tests/test-trunc.c: Likewise.
62176         * tests/test-truncf.c: Likewise.
62177         * tests/test-truncl.c: Likewise.
62178         * tests/test-unistd.c: Likewise.
62179         * tests/test-vasnprintf-posix.c: Likewise.
62180         * tests/test-vasnprintf-posix2.c: Likewise.
62181         * tests/test-vasnprintf.c: Likewise.
62182         * tests/test-vasprintf-posix.c: Likewise.
62183         * tests/test-vasprintf.c: Likewise.
62184         * tests/test-verify.c: Likewise.
62185         * tests/test-vfprintf-posix.c: Likewise.
62186         * tests/test-vprintf-posix.c: Likewise.
62187         * tests/test-vsnprintf-posix.c: Likewise.
62188         * tests/test-vsnprintf.c: Likewise.
62189         * tests/test-vsprintf-posix.c: Likewise.
62190         * tests/test-wchar.c: Likewise.
62191         * tests/test-wctype.c: Likewise.
62192         * tests/test-wcwidth.c: Likewise.
62193         * tests/test-xstrtol.c: Likewise.
62194         * tests/test-xvasprintf.c: Likewise.
62195         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62196         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62197         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62198         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62199         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62200         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62201         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62202         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62203         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62204         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62205         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62206         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62207         * tests/uniname/test-uninames.c: Likewise.
62208         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62209         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62210         * tests/unistdio/test-u16-printf1.h: Likewise.
62211         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62212         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62213         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62214         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62215         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62216         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62217         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62218         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62219         * tests/unistdio/test-u32-printf1.h: Likewise.
62220         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62221         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62222         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62223         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62224         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62225         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62226         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62227         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62228         * tests/unistdio/test-u8-printf1.h: Likewise.
62229         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62230         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62231         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62232         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62233         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62234         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62235         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62236         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62237         * tests/unistdio/test-ulc-printf1.h: Likewise.
62238         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62239         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62240         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62241         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62242         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62243         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62244         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62245         * tests/uniwidth/test-u16-width.c: Likewise.
62246         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62247         * tests/uniwidth/test-u32-width.c: Likewise.
62248         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62249         * tests/uniwidth/test-u8-width.c: Likewise.
62250         * tests/uniwidth/test-uc_width.c: Likewise.
62251         * config/srclist-update: Likewise.
62252         (fixlicense): Update to GPLv3+.
62253
62254         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62255         * tests/test-tsearch.c: Change copyright notice.
62256
62257         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62258         * lib/c-strcaseeq.h: Change copyright notice.
62259         * lib/streq.h: Likewise.
62260         * lib/uniconv.h: Likewise.
62261         * lib/uniconv/u-conv-from-enc.h: Likewise.
62262         * lib/uniconv/u-conv-to-enc.h: Likewise.
62263         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62264         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62265         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62266         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62267         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62268         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62269         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62270         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62271         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62272         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62273         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62274         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62275         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62276         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62277         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62278         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62279         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62280         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62281         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62282         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62283         * lib/uniname.h: Likewise.
62284         * lib/uniname/uniname.c: Likewise.
62285         * lib/unistdio.h: Likewise.
62286         * lib/unistdio/u-asnprintf.h: Likewise.
62287         * lib/unistdio/u-asprintf.h: Likewise.
62288         * lib/unistdio/u-printf-args.c: Likewise.
62289         * lib/unistdio/u-printf-args.h: Likewise.
62290         * lib/unistdio/u-printf-parse.h: Likewise.
62291         * lib/unistdio/u-snprintf.h: Likewise.
62292         * lib/unistdio/u-sprintf.h: Likewise.
62293         * lib/unistdio/u-vasprintf.h: Likewise.
62294         * lib/unistdio/u-vsnprintf.h: Likewise.
62295         * lib/unistdio/u-vsprintf.h: Likewise.
62296         * lib/unistdio/u16-asnprintf.c: Likewise.
62297         * lib/unistdio/u16-asprintf.c: Likewise.
62298         * lib/unistdio/u16-printf-parse.c: Likewise.
62299         * lib/unistdio/u16-snprintf.c: Likewise.
62300         * lib/unistdio/u16-sprintf.c: Likewise.
62301         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62302         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62303         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62304         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62305         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62306         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62307         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62308         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62309         * lib/unistdio/u16-vasnprintf.c: Likewise.
62310         * lib/unistdio/u16-vasprintf.c: Likewise.
62311         * lib/unistdio/u16-vsnprintf.c: Likewise.
62312         * lib/unistdio/u16-vsprintf.c: Likewise.
62313         * lib/unistdio/u32-asnprintf.c: Likewise.
62314         * lib/unistdio/u32-asprintf.c: Likewise.
62315         * lib/unistdio/u32-printf-parse.c: Likewise.
62316         * lib/unistdio/u32-snprintf.c: Likewise.
62317         * lib/unistdio/u32-sprintf.c: Likewise.
62318         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62319         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62320         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62321         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62322         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62323         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62324         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62325         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62326         * lib/unistdio/u32-vasnprintf.c: Likewise.
62327         * lib/unistdio/u32-vasprintf.c: Likewise.
62328         * lib/unistdio/u32-vsnprintf.c: Likewise.
62329         * lib/unistdio/u32-vsprintf.c: Likewise.
62330         * lib/unistdio/u8-asnprintf.c: Likewise.
62331         * lib/unistdio/u8-asprintf.c: Likewise.
62332         * lib/unistdio/u8-printf-parse.c: Likewise.
62333         * lib/unistdio/u8-snprintf.c: Likewise.
62334         * lib/unistdio/u8-sprintf.c: Likewise.
62335         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62336         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62337         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62338         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62339         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62340         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62341         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62342         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62343         * lib/unistdio/u8-vasnprintf.c: Likewise.
62344         * lib/unistdio/u8-vasprintf.c: Likewise.
62345         * lib/unistdio/u8-vsnprintf.c: Likewise.
62346         * lib/unistdio/u8-vsprintf.c: Likewise.
62347         * lib/unistdio/ulc-asnprintf.c: Likewise.
62348         * lib/unistdio/ulc-asprintf.c: Likewise.
62349         * lib/unistdio/ulc-printf-parse.c: Likewise.
62350         * lib/unistdio/ulc-snprintf.c: Likewise.
62351         * lib/unistdio/ulc-sprintf.c: Likewise.
62352         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62353         * lib/unistdio/ulc-vasprintf.c: Likewise.
62354         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62355         * lib/unistdio/ulc-vsprintf.c: Likewise.
62356         * lib/unistr.h: Likewise.
62357         * lib/unistr/u-cpy-alloc.h: Likewise.
62358         * lib/unistr/u-cpy.h: Likewise.
62359         * lib/unistr/u-endswith.h: Likewise.
62360         * lib/unistr/u-move.h: Likewise.
62361         * lib/unistr/u-set.h: Likewise.
62362         * lib/unistr/u-startswith.h: Likewise.
62363         * lib/unistr/u-stpcpy.h: Likewise.
62364         * lib/unistr/u-stpncpy.h: Likewise.
62365         * lib/unistr/u-strcat.h: Likewise.
62366         * lib/unistr/u-strcpy.h: Likewise.
62367         * lib/unistr/u-strcspn.h: Likewise.
62368         * lib/unistr/u-strdup.h: Likewise.
62369         * lib/unistr/u-strlen.h: Likewise.
62370         * lib/unistr/u-strncat.h: Likewise.
62371         * lib/unistr/u-strncpy.h: Likewise.
62372         * lib/unistr/u-strnlen.h: Likewise.
62373         * lib/unistr/u-strpbrk.h: Likewise.
62374         * lib/unistr/u-strspn.h: Likewise.
62375         * lib/unistr/u-strstr.h: Likewise.
62376         * lib/unistr/u-strtok.h: Likewise.
62377         * lib/unistr/u16-check.c: Likewise.
62378         * lib/unistr/u16-chr.c: Likewise.
62379         * lib/unistr/u16-cmp.c: Likewise.
62380         * lib/unistr/u16-cpy-alloc.c: Likewise.
62381         * lib/unistr/u16-cpy.c: Likewise.
62382         * lib/unistr/u16-endswith.c: Likewise.
62383         * lib/unistr/u16-mblen.c: Likewise.
62384         * lib/unistr/u16-mbsnlen.c: Likewise.
62385         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62386         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62387         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62388         * lib/unistr/u16-mbtouc.c: Likewise.
62389         * lib/unistr/u16-mbtoucr.c: Likewise.
62390         * lib/unistr/u16-move.c: Likewise.
62391         * lib/unistr/u16-next.c: Likewise.
62392         * lib/unistr/u16-prev.c: Likewise.
62393         * lib/unistr/u16-set.c: Likewise.
62394         * lib/unistr/u16-startswith.c: Likewise.
62395         * lib/unistr/u16-stpcpy.c: Likewise.
62396         * lib/unistr/u16-stpncpy.c: Likewise.
62397         * lib/unistr/u16-strcat.c: Likewise.
62398         * lib/unistr/u16-strchr.c: Likewise.
62399         * lib/unistr/u16-strcmp.c: Likewise.
62400         * lib/unistr/u16-strcpy.c: Likewise.
62401         * lib/unistr/u16-strcspn.c: Likewise.
62402         * lib/unistr/u16-strdup.c: Likewise.
62403         * lib/unistr/u16-strlen.c: Likewise.
62404         * lib/unistr/u16-strmblen.c: Likewise.
62405         * lib/unistr/u16-strmbtouc.c: Likewise.
62406         * lib/unistr/u16-strncat.c: Likewise.
62407         * lib/unistr/u16-strncmp.c: Likewise.
62408         * lib/unistr/u16-strncpy.c: Likewise.
62409         * lib/unistr/u16-strnlen.c: Likewise.
62410         * lib/unistr/u16-strpbrk.c: Likewise.
62411         * lib/unistr/u16-strrchr.c: Likewise.
62412         * lib/unistr/u16-strspn.c: Likewise.
62413         * lib/unistr/u16-strstr.c: Likewise.
62414         * lib/unistr/u16-strtok.c: Likewise.
62415         * lib/unistr/u16-to-u32.c: Likewise.
62416         * lib/unistr/u16-to-u8.c: Likewise.
62417         * lib/unistr/u16-uctomb-aux.c: Likewise.
62418         * lib/unistr/u16-uctomb.c: Likewise.
62419         * lib/unistr/u32-check.c: Likewise.
62420         * lib/unistr/u32-chr.c: Likewise.
62421         * lib/unistr/u32-cmp.c: Likewise.
62422         * lib/unistr/u32-cpy-alloc.c: Likewise.
62423         * lib/unistr/u32-cpy.c: Likewise.
62424         * lib/unistr/u32-endswith.c: Likewise.
62425         * lib/unistr/u32-mblen.c: Likewise.
62426         * lib/unistr/u32-mbsnlen.c: Likewise.
62427         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62428         * lib/unistr/u32-mbtouc.c: Likewise.
62429         * lib/unistr/u32-mbtoucr.c: Likewise.
62430         * lib/unistr/u32-move.c: Likewise.
62431         * lib/unistr/u32-next.c: Likewise.
62432         * lib/unistr/u32-prev.c: Likewise.
62433         * lib/unistr/u32-set.c: Likewise.
62434         * lib/unistr/u32-startswith.c: Likewise.
62435         * lib/unistr/u32-stpcpy.c: Likewise.
62436         * lib/unistr/u32-stpncpy.c: Likewise.
62437         * lib/unistr/u32-strcat.c: Likewise.
62438         * lib/unistr/u32-strchr.c: Likewise.
62439         * lib/unistr/u32-strcmp.c: Likewise.
62440         * lib/unistr/u32-strcpy.c: Likewise.
62441         * lib/unistr/u32-strcspn.c: Likewise.
62442         * lib/unistr/u32-strdup.c: Likewise.
62443         * lib/unistr/u32-strlen.c: Likewise.
62444         * lib/unistr/u32-strmblen.c: Likewise.
62445         * lib/unistr/u32-strmbtouc.c: Likewise.
62446         * lib/unistr/u32-strncat.c: Likewise.
62447         * lib/unistr/u32-strncmp.c: Likewise.
62448         * lib/unistr/u32-strncpy.c: Likewise.
62449         * lib/unistr/u32-strnlen.c: Likewise.
62450         * lib/unistr/u32-strpbrk.c: Likewise.
62451         * lib/unistr/u32-strrchr.c: Likewise.
62452         * lib/unistr/u32-strspn.c: Likewise.
62453         * lib/unistr/u32-strstr.c: Likewise.
62454         * lib/unistr/u32-strtok.c: Likewise.
62455         * lib/unistr/u32-to-u16.c: Likewise.
62456         * lib/unistr/u32-to-u8.c: Likewise.
62457         * lib/unistr/u32-uctomb.c: Likewise.
62458         * lib/unistr/u8-check.c: Likewise.
62459         * lib/unistr/u8-chr.c: Likewise.
62460         * lib/unistr/u8-cmp.c: Likewise.
62461         * lib/unistr/u8-cpy-alloc.c: Likewise.
62462         * lib/unistr/u8-cpy.c: Likewise.
62463         * lib/unistr/u8-endswith.c: Likewise.
62464         * lib/unistr/u8-mblen.c: Likewise.
62465         * lib/unistr/u8-mbsnlen.c: Likewise.
62466         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62467         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62468         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62469         * lib/unistr/u8-mbtouc.c: Likewise.
62470         * lib/unistr/u8-mbtoucr.c: Likewise.
62471         * lib/unistr/u8-move.c: Likewise.
62472         * lib/unistr/u8-next.c: Likewise.
62473         * lib/unistr/u8-prev.c: Likewise.
62474         * lib/unistr/u8-set.c: Likewise.
62475         * lib/unistr/u8-startswith.c: Likewise.
62476         * lib/unistr/u8-stpcpy.c: Likewise.
62477         * lib/unistr/u8-stpncpy.c: Likewise.
62478         * lib/unistr/u8-strcat.c: Likewise.
62479         * lib/unistr/u8-strchr.c: Likewise.
62480         * lib/unistr/u8-strcmp.c: Likewise.
62481         * lib/unistr/u8-strcpy.c: Likewise.
62482         * lib/unistr/u8-strcspn.c: Likewise.
62483         * lib/unistr/u8-strdup.c: Likewise.
62484         * lib/unistr/u8-strlen.c: Likewise.
62485         * lib/unistr/u8-strmblen.c: Likewise.
62486         * lib/unistr/u8-strmbtouc.c: Likewise.
62487         * lib/unistr/u8-strncat.c: Likewise.
62488         * lib/unistr/u8-strncmp.c: Likewise.
62489         * lib/unistr/u8-strncpy.c: Likewise.
62490         * lib/unistr/u8-strnlen.c: Likewise.
62491         * lib/unistr/u8-strpbrk.c: Likewise.
62492         * lib/unistr/u8-strrchr.c: Likewise.
62493         * lib/unistr/u8-strspn.c: Likewise.
62494         * lib/unistr/u8-strstr.c: Likewise.
62495         * lib/unistr/u8-strtok.c: Likewise.
62496         * lib/unistr/u8-to-u16.c: Likewise.
62497         * lib/unistr/u8-to-u32.c: Likewise.
62498         * lib/unistr/u8-uctomb-aux.c: Likewise.
62499         * lib/unistr/u8-uctomb.c: Likewise.
62500         * lib/unitypes.h: Likewise.
62501         * lib/uniwidth.h: Likewise.
62502         * lib/uniwidth/cjk.h: Likewise.
62503         * lib/uniwidth/u16-strwidth.c: Likewise.
62504         * lib/uniwidth/u16-width.c: Likewise.
62505         * lib/uniwidth/u32-strwidth.c: Likewise.
62506         * lib/uniwidth/u32-width.c: Likewise.
62507         * lib/uniwidth/u8-strwidth.c: Likewise.
62508         * lib/uniwidth/u8-width.c: Likewise.
62509         * lib/uniwidth/width.c: Likewise.
62510
62511 2007-10-07  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62514         The file is still under LGPL (see modules/inttypes).
62515
62516 2007-10-06  Bruno Haible  <bruno@clisp.org>
62517
62518         * modules/trunc (Dependencies): Add 'extensions'.
62519         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62520         Reported by Ben Pfaff <blp@gnu.org>.
62521
62522 2007-10-06  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/freopen-tests: New file.
62525         * tests/test-freopen.c: New file.
62526
62527         * modules/fopen-tests: New file.
62528         * tests/test-fopen.c: New file.
62529
62530         * modules/fopen: New file.
62531         * lib/fopen.c: New file.
62532         * m4/fopen.m4: New file.
62533         * modules/freopen: New file.
62534         * lib/freopen.c: New file.
62535         * m4/freopen.m4: New file.
62536         * lib/stdio.in.h (fopen, freopen): New declarations.
62537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62538         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62539         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62540         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62541         * doc/functions/fopen.texi: Mention the 'fopen' module.
62542         * doc/functions/freopen.texi: Mention the 'freopen' module.
62543
62544 2007-10-06  Bruno Haible  <bruno@clisp.org>
62545
62546         * modules/open-tests: New file.
62547         * tests/test-open.c: New file.
62548
62549         * modules/open: New file.
62550         * lib/open.c: New file.
62551         * m4/open.m4: New file.
62552         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62553         lib/open.c does.
62554         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62555         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62556         macros.
62557         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62558         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62559         REPLACE_OPEN.
62560         * doc/functions/open.texi: Mention the 'open' module.
62561
62562 2007-10-04  Bruno Haible  <bruno@clisp.org>
62563
62564         * modules/ceill-tests: New file.
62565         * tests/test-ceill.c: New file.
62566
62567         * modules/ceill: New file.
62568         * lib/ceill.c: Replace entire file.
62569         * m4/ceill.m4: New file.
62570         * lib/math.in.h (ceill): Replace declaration.
62571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62572         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62573         * doc/functions/ceill.texi: Mention the 'ceill' module.
62574         * modules/mathl (Files): Remove lib/ceill.c.
62575         (Depends-on): Add ceill.
62576
62577 2007-10-04  Bruno Haible  <bruno@clisp.org>
62578
62579         * modules/ceilf-tests: New file.
62580         * tests/test-ceilf.c: New file.
62581
62582         * modules/ceilf: New file.
62583         * lib/ceil.c: New file.
62584         * lib/ceilf.c: New file.
62585         * m4/ceilf.m4: New file.
62586         * lib/math.in.h (ceilf): New declaration.
62587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62588         HAVE_DECL_CEILF.
62589         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62590         HAVE_DECL_CEILF.
62591         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62592
62593 2007-10-04  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/floorl-tests: New file.
62596         * tests/test-floorl.c: New file.
62597
62598         * modules/floorl: New file.
62599         * lib/floorl.c: Replace entire file.
62600         * m4/floorl.m4: New file.
62601         * lib/math.in.h (floorl): Replace declaration.
62602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62603         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62604         * doc/functions/floorl.texi: Mention the 'floorl' module.
62605         * modules/mathl (Files): Remove lib/floorl.c.
62606         (Depends-on): Add floorl.
62607
62608 2007-10-04  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/floorf-tests: New file.
62611         * tests/test-floorf.c: New file.
62612
62613         * modules/floorf: New file.
62614         * lib/floor.c: New file.
62615         * lib/floorf.c: New file.
62616         * m4/floorf.m4: New file.
62617         * lib/math.in.h (floorf): New declaration.
62618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62619         HAVE_DECL_FLOORF.
62620         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62621         HAVE_DECL_FLOORF.
62622         * doc/functions/floorf.texi: Mention the 'floorf' module.
62623
62624 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62625             Bruno Haible  <bruno@clisp.org>
62626
62627         Advertise for the Git server instead of the CVS server.
62628         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62629         repository instead of the CVS one.
62630         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62631         about all VCS systems generically.
62632         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62633
62634 2007-10-04  Bruno Haible  <bruno@clisp.org>
62635
62636         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62637         means.
62638         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62639
62640 2007-10-04  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/truncl-tests: New file.
62643         * tests/test-truncl.c: New file.
62644
62645         * modules/truncl: New file.
62646         * lib/truncl.c: New file.
62647         * m4/truncl.m4: New file.
62648         * lib/math.in.h (truncl): New declaration.
62649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62650         HAVE_DECL_TRUNCL.
62651         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62652         HAVE_DECL_TRUNCL.
62653         * doc/functions/truncl.texi: Mention the 'truncl' module.
62654
62655 2007-10-04  Bruno Haible  <bruno@clisp.org>
62656
62657         * modules/truncf-tests: New file.
62658         * tests/test-truncf.c: New file.
62659
62660         * modules/truncf: New file.
62661         * lib/trunc.c: Make paramerizable through USE_* macros.
62662         * lib/truncf.c: New file.
62663         * m4/truncf.m4: New file.
62664         * lib/math.in.h (truncf): New declaration.
62665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62666         HAVE_DECL_TRUNCF.
62667         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62668         HAVE_DECL_TRUNCF.
62669         * doc/functions/truncf.texi: Mention the 'truncf' module.
62670
62671 2007-10-03  Bruno Haible  <bruno@clisp.org>
62672
62673         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62674         augmentation also for tests modules.
62675         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62676         * modules/atexit-tests (Makefile.am): Likewise.
62677         * modules/binary-io-tests (Makefile.am): Likewise.
62678         * modules/c-strcase-tests (Makefile.am): Likewise.
62679         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62680         * modules/canonicalize-tests (Makefile.am): Likewise.
62681         * modules/closein-tests (Makefile.am): Likewise.
62682         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62683         * modules/freadahead-tests (Makefile.am): Likewise.
62684         * modules/fseek-tests (Makefile.am): Likewise.
62685         * modules/fseeko-tests (Makefile.am): Likewise.
62686         * modules/ftell-tests (Makefile.am): Likewise.
62687         * modules/ftello-tests (Makefile.am): Likewise.
62688         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62689         * modules/isnanl-tests (Makefile.am): Likewise.
62690         * modules/lseek-tests (Makefile.am): Likewise.
62691         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62692         * modules/mbscasestr-tests (Makefile.am): Likewise.
62693         * modules/mbschr-tests (Makefile.am): Likewise.
62694         * modules/mbscspn-tests (Makefile.am): Likewise.
62695         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62696         * modules/mbspbrk-tests (Makefile.am): Likewise.
62697         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62698         * modules/mbsrchr-tests (Makefile.am): Likewise.
62699         * modules/mbsspn-tests (Makefile.am): Likewise.
62700         * modules/mbsstr-tests (Makefile.am): Likewise.
62701         * modules/printf-posix-tests (Makefile.am): Likewise.
62702         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62703         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62704         * modules/tsearch-tests (Makefile.am): Likewise.
62705         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62706         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62707         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62708         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62709         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62710         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62711         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62712         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62713         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62714         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62715         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62716         * modules/xstrtol-tests (Makefile.am): Likewise.
62717         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62718         * modules/yesno-tests (Makefile.am): Likewise.
62719
62720 2007-10-03  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/trunc-tests: New file.
62723         * tests/test-trunc.c: New file.
62724
62725         * modules/trunc: New file.
62726         * lib/trunc.c: New file.
62727         * m4/trunc.m4: New file.
62728         * lib/math.in.h (trunc): New declaration.
62729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62730         HAVE_DECL_TRUNC.
62731         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62732         HAVE_DECL_TRUNC.
62733         * doc/functions/trunc.texi: Mention the 'trunc' module.
62734
62735 2007-10-03  Bruno Haible  <bruno@clisp.org>
62736
62737         * tests/test-fpending.c: New file, mostly copied
62738         from coreutils/lib/t-fpending.c.
62739         * modules/fpending-tests: New file.
62740
62741 2007-10-03  Bruno Haible  <bruno@clisp.org>
62742
62743         Port the stdio extensions to QNX (untested).
62744         * lib/fseterr.c (fseterr): Add support for QNX.
62745         * lib/fbufmode.c (fbufmode): Likewise.
62746         * lib/freadable.c (freadable): Likewise.
62747         * lib/fwritable.c (fwritable): Likewise.
62748         * lib/freading.c (freading): Likewise.
62749         * lib/fwriting.c (fwriting): Likewise.
62750         * lib/freadahead.c (freadahed): Likewise.
62751         * lib/fpurge.c (fpurge): Likewise.
62752         * lib/fseeko.c (rpl_fseeko): Likewise.
62753
62754 2007-10-03  Bruno Haible  <bruno@clisp.org>
62755             Jim Meyering  <jim@meyering.net>
62756             Eric Blake  <ebb9@byu.net>
62757
62758         * doc/relocatable.texi: Use @command instead of @program.
62759
62760 2007-10-02  Jim Meyering  <jim@meyering.net>
62761
62762         Perform one more "_.h" -> ".in.h" substitution.
62763         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62764         instead of unistd_.h here, too.
62765
62766 2007-10-01  Bruno Haible  <bruno@clisp.org>
62767
62768         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62769         Needed for the alloca-opt module.
62770
62771 2007-09-30  Bruno Haible  <bruno@clisp.org>
62772
62773         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62774         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62775         alloca_.h.
62776         * lib/argz.in.h: Renamed from lib/argz_.h.
62777         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62778         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62779         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62780         byteswap_.h.
62781         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62782         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62783         dirent_.h.
62784         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62785         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62786         fcntl_.h.
62787         * lib/float.in.h: Renamed from lib/float_.h.
62788         * modules/float (Files, Makefile.am): Use float.in.h instead of
62789         float_.h.
62790         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62791         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62792         fnmatch_.h.
62793         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62794         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62795         getopt_.h.
62796         * lib/glob.in.h: Renamed from lib/glob_.h.
62797         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62798         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62799         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62800         iconv_.h.
62801         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62802         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62803         inttypes_.h.
62804         * lib/locale.in.h: Renamed from lib/locale_.h.
62805         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62806         locale_.h.
62807         * lib/math.in.h: Renamed from lib/math_.h.
62808         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62809         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62810         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62811         of netinet_in_.h. Add dependency.
62812         * lib/poll.in.h: Renamed from lib/poll_.h.
62813         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62814         * lib/search.in.h: Renamed from lib/search_.h.
62815         * modules/search (Files, Makefile.am): Use search.in.h instead of
62816         search_.h.
62817         * lib/signal.in.h: Renamed from lib/signal_.h.
62818         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62819         _signal.h.
62820         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62821         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62822         stdbool_.h.
62823         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62824         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62825         stdint_.h.
62826         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62827         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62828         stdio_.h.
62829         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62830         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62831         stdlib_.h.
62832         * lib/string.in.h: Renamed from lib/string_.h.
62833         * modules/string (Files, Makefile.am): Use string.in.h instead of
62834         string_.h.
62835         * doc/gnulib-tool.texi (Initial import): Update.
62836         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62837         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62838         of sys_select_.h. Add dependency.
62839         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62840         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62841         of sys_socket_.h.
62842         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62843         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62844         sys_stat_.h.
62845         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62846         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62847         sys_time_.h.
62848         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62849         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62850         sysexits_.h.
62851         * lib/time.in.h: Renamed from lib/time_.h.
62852         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62853         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62854         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62855         unistd_.h.
62856         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62857         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62858         wchar_.h.
62859         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62860         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62861         wctype_.h.
62862         * build-aux/bootstrap (slurp): Update.
62863         * lib/.cppi-disable: Update.
62864
62865 2007-09-30  Bruno Haible  <bruno@clisp.org>
62866
62867         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62868         Needed on BeOS.
62869
62870 2007-09-30  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62873
62874 2007-09-29  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62877
62878 2007-09-29  Bruno Haible  <bruno@clisp.org>
62879
62880         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62881         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62882         * build-aux/install-reloc: Compile also areadlink.c.
62883         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62884
62885 2007-09-29  Bruno Haible  <bruno@clisp.org>
62886
62887         * gnulib-tool (func_emit_initmacro_done): Indentation.
62888
62889 2007-09-29  Bruno Haible  <bruno@clisp.org>
62890
62891         * README: Add CVS checkout update instructions.
62892         Info from Bob Proulx <bob@proulx.com>.
62893
62894 2007-09-28  Eric Blake  <ebb9@byu.net>
62895
62896         Provide move-if-change.
62897         * build-aux/move-if-change: New file, based on best practice
62898         rather than any canonical upstream location.
62899
62900 2007-09-28  Jim Meyering  <jim@meyering.net>
62901
62902         Fix canonicalize loop-detection corner case.
62903         Do not attempt to stat the symlink values stored via seen_triple.
62904         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62905         on linux-2.6.18, (but not 2.6.22).
62906         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62907         triple_compare.  The former compares dev,ino,filename, while the latter
62908         would actually stat dirname(filename) when dev and ino were equal.
62909         * lib/hash-triple.c: Install <string.h>.
62910         (STREQ): Define.
62911         (triple_compare_ino_str): New function.
62912         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62913
62914 2007-09-28  Eric Blake  <ebb9@byu.net>
62915
62916         Enforce that AC_REPLACE_FUNCS files exist.
62917         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62918         override check for typos.
62919
62920         Fix test-closein on Solaris 10.
62921         * tests/test-closein.c (main): Don't assume stdin can be inherited
62922         closed on all systems.
62923         * tests/test-closein.sh: Likewise.
62924         Reported by Piotr Tarnowski.
62925
62926 2007-09-28  Jim Meyering  <jim@meyering.net>
62927
62928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62929
62930 2007-09-27  Jim Meyering  <jim@meyering.net>
62931
62932         canonicalize: Avoid a false-positive cycle failure.
62933         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62934         Sort.  Remove cycle-check.
62935         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62936         not cycle-check.h.
62937         (seen_triple): New function.
62938         (canonicalize_filename_mode): Use it instead of cycle-check.
62939         * tests/test-canonicalize.c: Add a test for this bug.
62940         * tests/test-canonicalize.sh: Set up and run the test.
62941
62942         New module, file-set, from coreutils.
62943         * modules/file-set: Define it.
62944         * lib/file-set.c, lib/file-set.h: Implement.
62945
62946         New module, hash-triple, from coreutils.
62947         * modules/hash-triple: Define it.
62948         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62949
62950 2007-09-25  Eric Blake  <ebb9@byu.net>
62951
62952         Fix strerror on Interix.
62953         * lib/string_.h (strerror): Declare replacement.
62954         * doc/functions/strerror.texi (strerror): Document the Interix
62955         shortcoming.
62956         * modules/string (Makefile.am): Support new hooks.
62957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62958         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62959         gl_FUNC_STRERROR_SEPARATE.
62960         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62961         * lib/strerror.c (rpl_strerror): Provide replacement.
62962         * modules/strerror (Depends-on): Add string.
62963         (configure.ac): Detect use of module.
62964         * tests/test-strerror.c: New file.
62965         * modules/strerror-tests: New test module.
62966         * modules/argp (Depends-on): Add strerror.
62967         * modules/error (Depends-on): Likewise.
62968         Reported by Martin Koeppe.
62969
62970 2007-09-24  Bruno Haible  <bruno@clisp.org>
62971
62972         * README: Update git instructions.
62973
62974 2007-09-24  Eric Blake  <ebb9@byu.net>
62975
62976         Revert fpending breakage from 2007-09-08.
62977         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62978         __fpending.c.
62979
62980 2007-09-24  Jim Meyering  <jim@meyering.net>
62981
62982         filenamecat.c: Add a test.
62983         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62984         showing how the function works when DIR is the empty string.
62985
62986 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62987
62988         * tests/test-canonicalize.sh: Turn on executable bit.
62989
62990 2007-09-19  Eric Blake  <ebb9@byu.net>
62991
62992         * README: Update CVS instructions.
62993
62994 2007-09-18  Bruno Haible  <bruno@clisp.org>
62995
62996         * modules/areadlink: New file.
62997         * lib/areadlink.h (areadlink): New declaration.
62998         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62999
63000 2007-09-17  Jim Meyering  <jim@meyering.net>
63001
63002         * lib/savewd.c (ESTALE) [!defined]: Define.
63003         Reported to be required on Interix by Martin Koeppe.
63004
63005 2007-09-17  Bruno Haible  <bruno@clisp.org>
63006
63007         * gnulib-tool (func_version): Use $version.
63008
63009 2007-09-16  Bruno Haible  <bruno@clisp.org>
63010
63011         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63012         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63013         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63014         Reported by Greg Schafer <gschafer@zip.com.au>.
63015
63016 2007-09-15  Bruno Haible  <bruno@clisp.org>
63017
63018         * gnulib-tool (sed): Try a little harder to make bash understand the
63019         alias.
63020         Reported by Bruce Korb <bruce.korb@gmail.com>.
63021
63022 2007-09-13  Eric Blake  <ebb9@byu.net>
63023
63024         * ChangeLog: Remove conflict markers.
63025
63026 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63027
63028         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63029         Reported by Bruno Haible <bruno@clisp.org>.
63030
63031 2007-09-12  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63034         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63035         is not defined.
63036
63037 2007-09-12  Eric Blake  <ebb9@byu.net>
63038
63039         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63040         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63041         Autoconf definition.
63042         * modules/euidaccess (Depends-on): Add extensions, for
63043         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63044         * modules/fnmatch (Depends-on): Likewise.
63045         * modules/getaddrinfo (Depends-on): Likewise.
63046         * modules/getdelim (Depends-on): Likewise.
63047         * modules/getline (Depends-on): Likewise.
63048         * modules/getsubopt (Depends-on): Likewise.
63049         * modules/gettext (Depends-on): Likewise.
63050         * modules/group-member (Depends-on): Likewise.
63051         * modules/mbchar (Depends-on): Likewise.
63052         * modules/memmem (Depends-on): Likewise.
63053         * modules/mempcpy (Depends-on): Likewise.
63054         * modules/memrchr (Depends-on): Likewise.
63055         * modules/pagealign_alloc (Depends-on): Likewise.
63056         * modules/readutmp (Depends-on): Likewise.
63057         * modules/stpcpy (Depends-on): Likewise.
63058         * modules/stpncpy (Depends-on): Likewise.
63059         * modules/strchrnul (Depends-on): Likewise.
63060         * modules/strndup (Depends-on): Likewise.
63061         * modules/strsep (Depends-on): Likewise.
63062         * modules/strverscmp (Depends-on): Likewise.
63063         * modules/vasprintf (Depends-on): Likewise.
63064         * modules/wcwidth (Depends-on): Likewise.
63065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63066         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63067         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63071         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63072         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63074         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63079         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63080         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63081         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63087         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63088         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63089         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63091         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63092         so that lock.m4 can be used in gettext without extensions module.
63093
63094 2007-09-11  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/isc-posix.m4: Remove file.
63097         Suggested by Eric Blake.
63098
63099 2007-09-11  Eric Blake  <ebb9@byu.net>
63100
63101         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63102
63103 2007-09-10  Bruno Haible  <bruno@clisp.org>
63104
63105         * posix-modules: Fix typo in error message.
63106         Reported by Matt <mkraai@beckman.com>.
63107
63108 2007-09-09  Bruno Haible  <bruno@clisp.org>
63109
63110         * doc/functions/getdelim.texi: Update list of platforms lacking the
63111         function.
63112         * doc/functions/getline.texi: Likewise.
63113
63114 2007-09-09  Jim Meyering  <jim@meyering.net>
63115
63116         * lib/hash.c (hash_initialize): Detect calloc failure.
63117         Reported by Bruno Haible.
63118
63119 2007-09-09  Bruno Haible  <bruno@clisp.org>
63120
63121         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63122         malloc or realloc fails.
63123
63124 2007-09-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * modules/getcwd (Depends-on): Add malloc-posix.
63127         * modules/glob (Depends-on): Likewise.
63128         * modules/putenv (Depends-on): Likewise.
63129         * modules/strdup (Depends-on): Likewise.
63130         * modules/getdelim (Depends-on): Add realloc-posix.
63131         * modules/read-file (Depends-on): Likewise.
63132
63133 2007-09-09  Bruno Haible  <bruno@clisp.org>
63134
63135         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63136         (gl_FUNC_MALLOC_POSIX): Require it.
63137         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63138         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63139         * modules/realloc (Files): Add m4/malloc.m4.
63140         * modules/calloc (Files): Likewise.
63141
63142 2007-09-09  Bruno Haible  <bruno@clisp.org>
63143
63144         * modules/malloc-posix: New file.
63145         * modules/malloc (Depends-on): Add malloc-posix.
63146         * lib/malloc.c: Include errno.h.
63147         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63148         and a POSIX-compatible malloc into a single function. Set ENOMEM
63149         when returning NULL.
63150         * m4/malloc.m4: New file.
63151         * doc/functions/malloc.texi: Mention the malloc-posix module.
63152         * lib/stdlib_.h (malloc): New declaration.
63153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63154         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63155         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63156         and HAVE_MALLOC_POSIX.
63157
63158 2007-09-09  Bruno Haible  <bruno@clisp.org>
63159
63160         * modules/realloc-posix: New file.
63161         * modules/realloc (Depends-on): Add realloc-posix.
63162         * lib/realloc.c: Include errno.h.
63163         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63164         and a POSIX-compatible realloc into a single function. Set ENOMEM
63165         when returning NULL.
63166         * m4/realloc.m4: New file.
63167         * doc/functions/realloc.texi: Mention the realloc-posix module.
63168         * lib/stdlib_.h (realloc): New declaration.
63169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63170         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63171         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63172         and HAVE_REALLOC_POSIX.
63173
63174 2007-09-09  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/calloc-posix: New file.
63177         * modules/calloc (Depends-on): Add calloc-posix.
63178         * lib/calloc.c: Include errno.h.
63179         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63180         and a POSIX-compatible calloc into a single function. Set ENOMEM
63181         when returning NULL.
63182         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63183         * doc/functions/calloc.texi: Mention the calloc-posix module.
63184         * lib/stdlib_.h (calloc): New declaration.
63185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63186         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63187         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63188         and HAVE_CALLOC_POSIX.
63189
63190 2007-09-09  Bruno Haible  <bruno@clisp.org>
63191
63192         Allow for modules to show an arbitrary notice.
63193         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63194         * gnulib-tool: New option --extract-notice.
63195         (func_usage): Document it.
63196         (sed_extract_prog): Update.
63197         (func_get_notice): New function.
63198         (func_modules_notice): New function.
63199         (func_import, func_create_testdir): Invoke it.
63200         Suggested by Jim Meyering.
63201
63202 2007-09-09  Bruno Haible  <bruno@clisp.org>
63203
63204         * gnulib-tool: New options --verbose, --quiet.
63205         (func_usage): Document them.
63206         (verbose): New variable.
63207         (func_execute_command): New function.
63208         (func_import): Don't show the module list and the file list if
63209         $verbose < 0.
63210         (func_create_testdir): Likewise. Use func_execute_command.
63211         (func_create_megatestdir): Use func_execute_command.
63212
63213 2007-09-08  Bruno Haible  <bruno@clisp.org>
63214
63215         * gnulib-tool (func_import): Prefer rsync over wget when available,
63216         for fetching the PO files.
63217
63218 2007-09-08  Bruno Haible  <bruno@clisp.org>
63219
63220         * posix-modules: New file. Portions copied from gnulib-tool.
63221         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63222
63223 2007-09-08  Jim Meyering  <jim@meyering.net>
63224
63225         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63226         * lib/fpending.h: Rename from __fpending.h.
63227         * lib/fpending.c: Rename from __fpending.c.
63228         Include "fpending.h", not "__fpending.h".
63229         * lib/__fpending.h, lib/__fpending.c: Remove files.
63230         * modules/fpending (Files): Reflect new file names.
63231         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63232
63233 2007-09-08  Bruno Haible  <bruno@clisp.org>
63234
63235         * m4/inttypes-h.m4: Remove stub file.
63236
63237 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63238
63239         * doc/headers/stdint.texi: Discuss #include_next issue.
63240
63241 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63244
63245 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63246
63247         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63248         in variable name.
63249
63250 2007-09-03  Jim Meyering  <jim@meyering.net>
63251
63252         New module: git-version-gen.
63253         * modules/git-version-gen: New file.
63254
63255         Import changes from coreutils for bootstrap script.
63256
63257         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63258
63259         bootstrap: uses rsync to download the .po files
63260         * build-aux/bootstrap (po_download_command_format): New global.
63261         (download_po_files): Use rsync.
63262         (update_po_files): Don't remove .po files after download,
63263         so future rsync runs can take advantage of the copies.
63264
63265         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63266
63267         Solve the unnecessary-.po-file-regeneration problem once and for all.
63268         * build-aux/bootstrap (download_po_files): New function, renamed from
63269         get_translations.  Now, downloads, but doesn't update LINGUAS.
63270         (update_po_files): New function.
63271
63272         bootstrap: Ignore more.
63273         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63274         uniwidth to e.g., lib/.gitignore.
63275         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63276
63277         * build-aux/bootstrap: New setting: vc_ignore.
63278         (insert_sorted_if_absent): Create $file if absent.
63279         Adapt to new, possibly empty, list: $vc_ignore.
63280
63281         bootstrap: generate more ignorable names
63282         * build-aux/bootstrap (slurp): When generating ignorable names,
63283         also map .sin to .sed, .gperf to .c, and .y to .c.
63284
63285 2007-09-03  Jim Meyering  <jim@meyering.net>
63286
63287         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63288         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63289
63290 2007-09-02  Bruno Haible  <bruno@clisp.org>
63291
63292         Fix mis-recognition of 'mcs' on QNX 6.
63293         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63294         output contains the string "Mono".
63295         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63296         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63297
63298 2007-09-01  Bruno Haible  <bruno@clisp.org>
63299
63300         Fix collision between uniwidth/* and linebreak modules.
63301         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63302         u32_width): Remove declarations.
63303         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63304         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63305         streq3, streq2, streq1, streq0): Remove functions.
63306         (STREQ): Remove macro.
63307         (is_cjk_encoding): Remove function.
63308         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63309         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63310         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63311         * NEWS: Document the change.
63312
63313 2007-09-01  Bruno Haible  <bruno@clisp.org>
63314
63315         * lib/streq.h: Add double-inclusion guard.
63316
63317 2007-09-01  Karl Berry  <karl@gnu.org>
63318
63319         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63320
63321 2007-08-28  Jim Meyering  <jim@meyering.net>
63322
63323         Rename mreadlink_with_size to areadlink_with_size.
63324         * NEWS: Document the change.
63325         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63326         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63327         * lib/mreadlink.h: Rename this to...
63328         * lib/areadlink.h: ...this.
63329         * modules/mreadlink-with-size: Rename this to...
63330         * modules/areadlink-with-size: ...this.
63331         * lib/canonicalize.c: Reflect the renaming.
63332         * modules/canonicalize: Likewise.
63333
63334 2007-08-26  Bruno Haible  <bruno@clisp.org>
63335
63336         * gnulib-tool (func_import): When deciding which files to remove,
63337         consider also dangling symbolic links.
63338         Reported by Eric Blake.
63339
63340 2007-08-26  Bruno Haible  <bruno@clisp.org>
63341
63342         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63343
63344 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63345
63346         * lib/readline.c: Don't include getline.h, the prototype is now
63347         found in stdio.h.
63348
63349 2007-08-23  Jim Meyering  <jim@meyering.net>
63350
63351         Getdelim touchup.
63352         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63353         around the funlockfile call, since funlockfile never sets errno.
63354         Don't set errno upon failed realloc.
63355
63356 2007-08-22  Eric Blake  <ebb9@byu.net>
63357
63358         Getline touchups.
63359         * lib/getdelim.c (getdelim): Revert regression that required *n to
63360         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63362         getdelim, rather than whether implementation is missing.
63363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63364         * lib/stdio_.h (getline): Also declare if replacement is
63365         required.
63366         * doc/functions/getdelim.texi: New file.
63367         * doc/functions/getline.texi: Likewise.
63368         * doc/gnulib.texi (Function Substitutes): Add new files.
63369         Reported by Bruno Haible.
63370
63371 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63372
63373         * users.txt: Add Guile.
63374
63375 2007-08-22  Eric Blake  <ebb9@byu.net>
63376
63377         * tests/test-getdelim.c (main): Use remove, not unlink.
63378         * tests/test-getline.c (main): Likewise.
63379
63380         Move getline and getdelim into stdio.h, per POSIX 200x.
63381         * modules/getline (Files): Remove getline.h.
63382         (Depends-on): Add stdio.
63383         (configure.ac): Add module indicator.
63384         * modules/getdelim (Files): Remove getdelim.h.
63385         (Depends-on): Add stdio.
63386         (configure.ac): Add module indicator.
63387         * modules/stdio (Makefile.am): Work with new indicators.
63388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63391         * lib/getdelim.h: Delete.
63392         * lib/getline.h: Delete.
63393         * lib/stdio_.h (getdelim, getline): Declare.
63394         * modules/getdelim-tests: New module.
63395         * modules/getline-tests: Likewise.
63396         * tests/test-getdelim.c: New file.
63397         * tests/test-getline.c: Likewise.
63398         * NEWS: Document the change.
63399         * lib/getline.c: Update choice of header.
63400         * lib/csharpcomp.c: Likewise.
63401         * lib/getpass.c: Likewise.
63402         * lib/javacomp.c: Likewise.
63403         * lib/javaversion.c: Likewise.
63404         * lib/yesno.c: Likewise.
63405         * lib/getdelim.c: Likewise.
63406         (getdelim): Set errno on failure, and avoid memory leak.
63407
63408 2007-08-19  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/closein (Depends-on): Add freadahead.
63411         * lib/closein.c: Include freadahead.h.
63412         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63413         is zero.
63414
63415 2007-08-19  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/freadahead-tests: New file.
63418         * tests/test-freadahead.sh: New file.
63419         * tests/test-freadahead.c: New file.
63420
63421         * modules/freadahead: New file.
63422         * lib/freadahead.h: New file.
63423         * lib/freadahead.c: New file.
63424         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63425         fbufmode, fpurge, freadable, fwritable.
63426
63427 2007-08-19  Eric Blake  <ebb9@byu.net>
63428
63429         Test yesno in combination with closein.
63430         * lib/yesno.c (yesno): Document use of stdin.
63431         * modules/yesno-tests (Files): New module.
63432         * tests/test-yesno.c (main): New file.
63433         * tests/test-yesno.sh: Likewise.
63434
63435 2007-08-19  Bruno Haible  <bruno@clisp.org>
63436
63437         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63438         * lib/fseeko.c (rpl_fseeko): Likewise.
63439         * lib/fseterr.c (fseterr): Likewise.
63440
63441 2007-08-19  Bruno Haible  <bruno@clisp.org>
63442
63443         * tests/test-lseek.c (main): Disable a test for BeOS.
63444         * doc/functions/lseek.texi: Document the BeOS bug.
63445
63446 2007-08-19  Bruno Haible  <bruno@clisp.org>
63447             Eric Blake  <ebb9@byu.net>
63448
63449         * lib/lseek.c: Include <sys/stat.h>.
63450         (rpl_lseek): Add workaround code also for Unix platforms.
63451         Needed for BeOS.
63452         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63453         * doc/functions/lseek.texi: Document BeOS definiency.
63454
63455 2007-08-18  Bruno Haible  <bruno@clisp.org>
63456
63457         * modules/fstrcmp-tests: New file.
63458         * tests/test-fstrcmp.c: New file.
63459
63460 2007-08-18  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/fstrcmp: New file, from GNU gettext with modifications.
63463         * lib/fstrcmp.h: New file, from GNU gettext.
63464         * lib/fstrcmp.c: New file, from GNU gettext.
63465         * MODULES.html.sh (String handling): Add fstrcmp.
63466
63467 2007-08-18  Bruno Haible  <bruno@clisp.org>
63468
63469         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63470         'bool'.
63471         (diag, compareseq): Remove const from the ctxt argument.
63472         (USE_HEURISTIC): Undefine at the end.
63473
63474 2007-08-18  Jim Meyering  <jim@meyering.net>
63475
63476         New file: lib/idcache.h
63477         * NEWS: Mention the addition.
63478         * modules/idcache (Files): Add lib/idcache.h
63479         * lib/idcache.c: Include "idcache.h".
63480         Don't include <sys/types.h>.
63481         Add a FIXME comment.
63482         Move file-scoped "static" declarations to the top.
63483         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63484
63485 2007-08-17  Bruno Haible  <bruno@clisp.org>
63486         and Paul Eggert  <eggert@cs.ucla.edu>
63487
63488         * MODULES.html.sh: Add diffseq.
63489         * modules/diffseq: New file.
63490         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63491         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63492
63493 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         Import changes from coreutils for bootstrap script.
63496
63497         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * build-aux/bootstrap (slurp): Work even in environments where
63500         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63501         current code does not slurp files whose names start with ".", and
63502         this looks like it might be a troublesome area.
63503
63504         2007-07-11  Jim Meyering  <jim@meyering.net>
63505
63506         If there's a GPL vN copyright comment, require that N == 3.
63507
63508         2007-07-08  Jim Meyering  <jim@meyering.net>
63509
63510         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63511         * build-aux/bootstrap (mam_template): Move definition out of loop.
63512
63513         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63514
63515         * build-aux/bootstrap (symlink_to_dir): Rename function from
63516         symlink_to_gnulib.  Add a directory parameter.  Update all
63517         callers.
63518         (cp_mark_as_generated): Also check for -- and link to -- files in
63519         gl/.
63520
63521         2007-07-08  Jim Meyering  <jim@meyering.net>
63522
63523         Adapt to deeper hierarchy in gnulib.
63524         * build-aux/bootstrap (symlink_to_dir): If the destination
63525         directory doesn't exist, create it. This is required at least for
63526         "lib/uniwidth/cjk.h".
63527
63528         2007-05-15  Jim Meyering  <jim@meyering.net>
63529
63530         * build-aux/bootstrap: Now that generated Makefile.am files
63531         are no longer under version control, they must be created at
63532         bootstrap time.
63533
63534 2007-08-14  Ben Pfaff  <blp@gnu.org>
63535
63536         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63537
63538 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63539
63540         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63541         given the changes below.
63542         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63543         even on hosts that have padding bits beyond the supported 64.
63544
63545 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63548         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63549         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63550         depends on it.
63551         (xstrtol_error): Remove.
63552         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63553         but with a different signature.
63554         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63555         * lib/xstrtol-error.c: Include exitfail.h.
63556         (xstrtol_fatal): New function, with a different signature from the
63557         old xstrtol_error, so that the caller need not worry about passing
63558         in an exit status, or about storage management of the option argument.
63559         (xstrtol_error): Now a static function.  Redo signature to
63560         implement xstrtol_fatal.  Output the correct number of hyphens in
63561         front of the option so that the caller need not worry about
63562         storage management.
63563         (N_): New macro.
63564         (_): Remove; not used now.
63565         * modules/xstrtol: Depend on getopt.
63566         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63567         of old STRTOL_FATAL_ERROR macro.
63568         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63569         of test program.
63570         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63571         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63572
63573 2007-08-08  Eric Blake  <ebb9@byu.net>
63574
63575         * lib/xstrtol-error.c: Add missing include.
63576
63577         Move xstrtol messages into gnulib domain, when --pobase is used.
63578         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63579         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63580         * modules/xstrtol (Files): Distribute new file.
63581         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63582         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63583         * tests/test-xstrtol.c: ...into new file.
63584         * tests/test-xstrtoul.c: Also test xstrtoul.
63585         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63586         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63587         * tests/test-xstrtol.sh: Drive the tests.
63588         * tests/test-xstrtoimax.sh: Likewise.
63589         * tests/test-xstrtoumax.sh: Likewise.
63590         * modules/xstrtol-tests: New module.
63591         * modules/xstrtoimax-tests: Likewise.
63592         * modules/xstrtoumax-tests: Likewise.
63593
63594 2007-08-08  Jim Meyering  <jim@meyering.net>
63595
63596         New function: mfile_name_concat.
63597         * lib/filenamecat.c (mfile_name_concat): New function, just like
63598         file_name_concat, but return NULL upon failure rather than exiting
63599         with a diagnostic.
63600         * lib/filenamecat.h: Declare it.
63601
63602 2007-08-07  Bruno Haible  <bruno@clisp.org>
63603
63604         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63605         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63606         warning from gcc.
63607         Reported by Eric Blake.
63608
63609 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63610
63611         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63612         * modules/crypto/arcfour (License): Likewise.
63613         * modules/crypto/des-tests (License): Likewise.
63614         * modules/crypto/gc-arctwo-tests (License): Likewise.
63615         * modules/crypto/gc-des-tests (License): Likewise.
63616         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63617         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63618         * modules/crypto/gc-md2-tests (License): Likewise.
63619         * modules/crypto/gc-md4-tests (License): Likewise.
63620         * modules/crypto/gc-md5-tests (License): Likewise.
63621         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63622         * modules/crypto/gc-rijndael-tests (License): Likewise.
63623         * modules/crypto/gc-sha1-tests (License): Likewise.
63624         * modules/crypto/gc-tests (License): Likewise.
63625         * modules/crypto/hmac-md5 (License): Likewise.
63626         * modules/crypto/hmac-sha1 (License): Likewise.
63627         * modules/crypto/md2-tests (License): Likewise.
63628         * modules/crypto/md4-tests (License): Likewise.
63629         * modules/crypto/md5 (License): Likewise.
63630         * modules/crypto/rijndael (License): Likewise.
63631         * modules/crypto/sha1 (License): Likewise.
63632         * modules/memxor (License): Likewise.
63633
63634 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63635         and Bruno Haible  <bruno@clisp.org>
63636
63637         * NEWS: Describe interface changes to human, xstrtol.
63638         * lib/human.h: Include <xstrtol.h>.
63639         (human_options): Return enum strtol_error, not int.  Remove
63640         bool arg; take int * instead.
63641         * lib/human.c: Don't include "gettext.h".
63642         (_): Remove; no longer used.
63643         Don't include <xstrtol.h>, since human.h does it.
63644         (human_options): Adjust to abovementioned interface changes.
63645         Do not report error to stderr; that's now the caller's
63646         responsibility.
63647         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63648         interface change.
63649         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63650         Str, Argument_type_string.  All uses changed.  Put " argument"
63651         in diagnostics to make them clearer.  Change wording of suffix
63652         message for clarity.
63653         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63654         Argument_type_string.
63655         (STRTOL_FATAL_WARN): Remove; no longer used.
63656         * modules/human (Depends-on): Remove gettext-h.
63657
63658 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63659
63660         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63661
63662 2007-07-31  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63665         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63666         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63667
63668 2007-07-31  Bruno Haible  <bruno@clisp.org>
63669
63670         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63671         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63672
63673 2007-07-30  Bruno Haible  <bruno@clisp.org>
63674
63675         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63676         * modules/c-ctype (License): Likewise.
63677         * modules/c-strcase (License): Likewise.
63678         * modules/check-version (License): Likewise.
63679         * modules/iconv (License): Likewise.
63680         * modules/iconv_open (License): Likewise.
63681         * modules/read-file (License): Likewise.
63682         * modules/striconv (License): Likewise.
63683         * modules/strverscmp (License): Likewise.
63684         * modules/vasprintf (License): Likewise.
63685         * modules/crypto/des (License): Likewise.
63686         * modules/crypto/gc (License): Likewise.
63687         * modules/crypto/gc-arcfour (License): Likewise.
63688         * modules/crypto/gc-arctwo (License): Likewise.
63689         * modules/crypto/gc-des (License): Likewise.
63690         * modules/crypto/gc-hmac-md5 (License): Likewise.
63691         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63692         * modules/crypto/gc-md2 (License): Likewise.
63693         * modules/crypto/gc-md4 (License): Likewise.
63694         * modules/crypto/gc-md5 (License): Likewise.
63695         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63696         * modules/crypto/gc-random (License): Likewise.
63697         * modules/crypto/gc-rijndael (License): Likewise.
63698         * modules/crypto/gc-sha1 (License): Likewise.
63699         * modules/crypto/md2 (License): Likewise.
63700         * modules/crypto/md4 (License): Likewise.
63701
63702 2007-07-30  Jim Meyering  <jim@meyering.net>
63703
63704         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63705         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63706         it has valid stat data.  This bug would cause du not to count the
63707         sizes of inaccessible directories.
63708         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63709         in <http://bugzilla.redhat.com/250077>.
63710
63711 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63712             Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63715         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63716         #include_next, gives a diagnostic about it, but reports no error in
63717         the exit code.
63718         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63719
63720 2007-07-24  Ben Pfaff  <blp@gnu.org>
63721
63722         Improve name: "count-one-bits" is better than "popcount".
63723         * MODULES.html.sh: Update name.
63724         * lib/popcount.h: Renamed lib/count-one-bits.h.
63725         (popcount): Renamed count_one_bits.
63726         (popcountl): Renamed count_one_bits_l.
63727         (popcountll): Renamed count_one_bits_ll.
63728         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63729         * modules/popcount: Renamed module/count-one-bits.
63730         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63731         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63732
63733 2007-07-23  Ben Pfaff  <blp@gnu.org>
63734
63735         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63736         better code generation, and add U to large constants to avoid
63737         warnings, in non-GCC case.
63738         Suggested by Bruno Haible.
63739
63740 2007-07-23  Ben Pfaff  <blp@gnu.org>
63741
63742         * lib/popcount.h: Use verify_true instead of if...abort.
63743         * modules/popcount: Depend on verify module.
63744         Suggested by Jim Meyering.
63745
63746 2007-07-23  Bruno Haible  <bruno@clisp.org>
63747
63748         * gnulib-tool (func_import): Create a .cvsignore file also when the
63749         directory is not yet in CVS but the toplevel directory is. When
63750         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63751         Reported by Karl Berry.
63752
63753 2007-07-22  Ben Pfaff  <blp@gnu.org>
63754
63755         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63756         case.
63757         Suggested by Eric Blake.
63758
63759 2007-07-22  Ben Pfaff  <blp@gnu.org>
63760
63761         New module: popcount.
63762         * MODULES.html.sh: Add popcount.
63763         * modules/popcount: New file.
63764         * modules/popcount-tests: New file.
63765         * tests/test-popcount.c: New file.
63766         * lib/popcount.h: New file.
63767         * m4/popcount.m4: New file.
63768
63769 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * build-aux/announce-gen: Update to GPLv3.
63772
63773         * build-aux/config.guess: Update from config.
63774
63775 2007-07-21  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63778         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63779
63780 2007-07-20  Jim Meyering  <jim@meyering.net>
63781
63782         * check-module: Diagnose a self-dependency.
63783
63784 2007-07-19  Bruno Haible  <bruno@clisp.org>
63785
63786         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63787         empty.
63788         Reported by Eric Blake.
63789
63790 2007-07-18  Bruno Haible  <bruno@clisp.org>
63791
63792         * gnulib-tool: New options --po-base, --po-domain.
63793         (func_usage): Document them.
63794         (pobase, po_domain): New variables.
63795         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63796         DEFAULT_TEXT_DOMAIN.
63797         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63798         (func_import): Consider pobase and po_domain. Create a po/ directory.
63799         (func_create_testdir): Set pobase and po_domain to empty.
63800         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63801         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63802
63803 2007-07-18  Bruno Haible  <bruno@clisp.org>
63804
63805         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63806         EXTRA_DIST augmentation for files in build-aux/.
63807
63808 2007-07-16  Bruno Haible  <bruno@clisp.org>
63809
63810         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63811         * modules/getdelim (License): Likewise.
63812
63813 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63814
63815         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63816         * modules/d-type (License): Likewise.
63817         * modules/extensions (License): Likewise.
63818         * modules/fnmatch (License): Likewise.
63819         * modules/fseeko (License): Likewise.
63820         * modules/getaddrinfo (License): Likewise.
63821         * modules/getline (License): Likewise.
63822         * modules/getlogin_r (License): Likewise.
63823         * modules/getpass (License): Likewise.
63824         * modules/gettimeofday (License): Likewise.
63825         * modules/glob (License): Likewise.
63826         * modules/inet_ntop (License): Likewise.
63827         * modules/malloc (License): Likewise.
63828         * modules/malloca (License): Likewise.
63829         * modules/memmem (License): Likewise.
63830         * modules/mempcpy (License): Likewise.
63831         * modules/memset (License): Likewise.
63832         * modules/minmax (License): Likewise.
63833         * modules/mktime (License): Likewise.
63834         * modules/netinet_in (License): Likewise.
63835         * modules/pathmax (License): Likewise.
63836         * modules/poll (License): Likewise.
63837         * modules/regex (License): Likewise.
63838         * modules/snprintf (License): Likewise.
63839         * modules/stdbool (License): Likewise.
63840         * modules/stdint (License): Likewise.
63841         * modules/stdio (License): Likewise.
63842         * modules/strcase (License): Likewise.
63843         * modules/strcasestr (License): Likewise.
63844         * modules/strdup (License): Likewise.
63845         * modules/string (License): Likewise.
63846         * modules/strndup (License): Likewise.
63847         * modules/strnlen (License): Likewise.
63848         * modules/strpbrk (License): Likewise.
63849         * modules/strptime (License): Likewise.
63850         * modules/strsep (License): Likewise.
63851         * modules/sys_select (License): Likewise.
63852         * modules/sys_socket (License): Likewise.
63853         * modules/sys_stat (License): Likewise.
63854         * modules/sys_time (License): Likewise.
63855         * modules/time (License): Likewise.
63856         * modules/time_r (License): Likewise.
63857         * modules/timegm (License): Likewise.
63858         * modules/unistd (License): Likewise.
63859         * modules/vsnprintf (License): Likewise.
63860         * modules/wctype (License): Likewise.
63861
63862 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63863
63864         * modules/argz (License): LGPLv2+.
63865
63866 2007-07-15  Karl Berry  <karl@gnu.org>
63867
63868         * doc/gnulib.texi: revise node structure per new fdl.texi.
63869
63870 2007-07-14  Bruno Haible  <bruno@clisp.org>
63871
63872         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63873         the output file.
63874         * lib/uniname/uninames.h: Regenerated.
63875
63876 2007-07-14  Karl Berry  <karl@gnu.org>
63877
63878         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63879         omitting sectioning and index commands.
63880
63881 2007-07-13  Bruno Haible  <bruno@clisp.org>
63882
63883         New gnulib-tool option --more-symlinks.
63884         * gnulib-tool (func_usage): Document --more-symlinks.
63885         (do_copyrights): New variable.
63886         Recognize option --more-symlinks.
63887         (func_import): Don't add a copyright notice transform to
63888         sed_transform_lib_file if do_copyrights is empty.
63889
63890 2007-07-13  Bruno Haible  <bruno@clisp.org>
63891
63892         * lib/vasnprintf.c (decimal_point_char): Define also if
63893         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63894         && !NEED_PRINTF_DIRECTIVE_A.
63895         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63896         Gary V. Vaughan <gary@gnu.org>.
63897
63898 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         * lib/inttypes_.h: Undo previous change, since it was fixed
63901         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63902
63903 2007-07-13  Bruno Haible  <bruno@clisp.org>
63904
63905         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63906         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63907
63908 2007-07-13  Jim Meyering  <jim@meyering.net>
63909
63910         df: Don't fail for Tru64's "file-on-file mount".
63911         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63912         so we fall through and use statfs instead.  Details here:
63913         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63914         Reported by Albert Chin.
63915
63916 2007-07-13  Bruno Haible  <bruno@clisp.org>
63917
63918         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63919         * modules/configmake (License): Likewise.
63920         * modules/gettext (License): Likewise.
63921         * modules/gettext-h (License): Likewise.
63922         * modules/include_next (License): Likewise.
63923         * modules/link-warning (License): Likewise.
63924         * modules/localcharset (License): Likewise.
63925         * modules/localename (License): Likewise.
63926         * modules/lock (License): Likewise.
63927         * modules/relocatable-lib-lgpl (License): Likewise.
63928         * modules/size_max (License): Likewise.
63929         * modules/vasnprintf (License): Likewise.
63930         * modules/wchar (License): Likewise.
63931         * modules/xsize (License): Likewise.
63932
63933 2007-07-13  Bruno Haible  <bruno@clisp.org>
63934
63935         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63936         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63937
63938 2007-07-12  Bruno Haible  <bruno@clisp.org>
63939
63940         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63941         in the modules files.
63942
63943 2007-07-11  Karl Berry  <karl@gnu.org>
63944
63945         * MODULES.html.sh (func_module): use
63946          sed -e '\|^'"${includefile}"'$|d'
63947          instead of /.../d, to avoid errors on $includefile's containing /.
63948
63949 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63950
63951         * gnulib-tool (func_import): Avoid duplication of --avoid
63952         statements
63953         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63954         names to `_' in variable names.
63955
63956 2007-07-10  Eric Blake  <ebb9@byu.net>
63957
63958         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63959         * NEWS: Document this change.
63960
63961 2007-07-08  Bruno Haible  <bruno@clisp.org>
63962
63963         Update to Unicode 5.0.
63964         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63965         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63966         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63967         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63968         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63969         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63970         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63971         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63972         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63973         U+10A3F, U+1D242..U+1D244.
63974         (nonspacing_table_ind): Update.
63975         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63976         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63977
63978 2007-07-08  Bruno Haible  <bruno@clisp.org>
63979
63980         Update to Unicode 5.0.
63981         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63982         code transform. Extend the name index field of unicode_name_to_code and
63983         unicode_code_to_name from 16 to 24 bits.
63984         * lib/uniname/uniname.c (unicode_character_name,
63985         unicode_name_character): Add the range 0x12xxx to the code transform.
63986         * lib/uniname/uninames.h: Regenerated.
63987         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63988
63989 2007-07-07  Bruno Haible  <bruno@clisp.org>
63990
63991         * modules/wcwidth-tests: New file.
63992         * tests/test-wcwidth.c: New file.
63993
63994         Work around MacOS X wcwidth() bug.
63995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63996         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63997         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63998         original wcwidth in non-UTF-8 locales.
63999         * modules/wcwidth (Depends-on): Add localcharset, streq,
64000         uniwidth/width.
64001         * doc/functions/wcwidth.texi: Update.
64002
64003 2007-07-07  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64006         (wcwidth): New declaration.
64007         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64008         macros.
64009         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64010         here. Prepare for creating <wchar.h> unconditionally.
64011         * modules/wchar (Depends-on): Add link-warning.
64012         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64013         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64014         * lib/wcwidth.h: Remove file.
64015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64016         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64017         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64018         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64019         (Include): Replace wcwidth.h with <wchar.h>.
64020         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64021         * lib/mbchar.h: Don't include wcwidth.h.
64022         * lib/mbswidth.c: Likewise.
64023         * NEWS: Mention the change.
64024
64025 2007-07-07  Bruno Haible  <bruno@clisp.org>
64026
64027         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64028         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64029         definition with an external declaration.
64030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64031         defined as a function. Remove AC_C_INLINE requirement.
64032         * modules/wcwidth (Files): Add lib/wcwidth.c.
64033         (Makefile.am): Remove redundant statement.
64034
64035 2007-07-07  Bruno Haible  <bruno@clisp.org>
64036
64037         * MODULES.html.sh (Unicode string functions): Add the new modules.
64038
64039         * tests/uniwidth/test-u32-strwidth.c: New file.
64040         * modules/uniwidth/u32-strwidth-tests: New file.
64041
64042         * lib/uniwidth/u32-strwidth.c: New file.
64043         * modules/uniwidth/u32-strwidth: New file.
64044
64045         * tests/uniwidth/test-u16-strwidth.c: New file.
64046         * modules/uniwidth/u16-strwidth-tests: New file.
64047
64048         * lib/uniwidth/u16-strwidth.c: New file.
64049         * modules/uniwidth/u16-strwidth: New file.
64050
64051         * tests/uniwidth/test-u8-strwidth.c: New file.
64052         * modules/uniwidth/u8-strwidth-tests: New file.
64053
64054         * lib/uniwidth/u8-strwidth.c: New file.
64055         * modules/uniwidth/u8-strwidth: New file.
64056
64057         * tests/uniwidth/test-u32-width.c: New file.
64058         * modules/uniwidth/u32-width-tests: New file.
64059
64060         * lib/uniwidth/u32-width.c: New file.
64061         * modules/uniwidth/u32-width: New file.
64062
64063         * tests/uniwidth/test-u16-width.c: New file.
64064         * modules/uniwidth/u16-width-tests: New file.
64065
64066         * lib/uniwidth/u16-width.c: New file.
64067         * modules/uniwidth/u16-width: New file.
64068
64069         * tests/uniwidth/test-u8-width.c: New file.
64070         * modules/uniwidth/u8-width-tests: New file.
64071
64072         * lib/uniwidth/u8-width.c: New file.
64073         * modules/uniwidth/u8-width: New file.
64074
64075         * tests/uniwidth/test-uc_width.c: New file.
64076         * modules/uniwidth/width-tests: New file.
64077
64078         * lib/uniwidth/width.c: New file, from GNU libiconv.
64079         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64080         * modules/uniwidth/width: New file.
64081
64082         * lib/uniwidth.h: New file, from GNU libiconv.
64083         * modules/uniwidth/base: New file.
64084
64085 2007-07-07  Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/uniname.h: New file, from GNU gettext.
64088         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64089         * lib/uniname/uninames.h: New file, from GNU gettext.
64090         * lib/uniname/uniname.c: New file, from GNU gettext.
64091         * tests/uniname/test-uninames.sh: New file.
64092         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64093         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64094         * modules/uniname/base: New file.
64095         * modules/uniname/uniname: New file.
64096         * modules/uniname/uniname-tests: New file.
64097         * MODULES.html.sh (Unicode string functions): Add the new modules.
64098
64099 2007-07-06  Bruno Haible  <bruno@clisp.org>
64100
64101         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64102
64103 2007-07-06  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64106         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64107         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64108         include <sys/time.h>.
64109         Reported by Eric Blake.
64110
64111 2007-07-06  Eric Blake  <ebb9@byu.net>
64112
64113         Fix testing canonicalize on cygwin.
64114         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64115         Revert patch from 2007-06-19.
64116         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64117         canonicalize module is also in use.
64118         * tests/test-canonicalize.c: New file.
64119         * tests/test-canonicalize.sh: Likewise.
64120         * modules/canonicalize-tests: Likewise.
64121
64122 2007-07-06  Jim Meyering  <jim@meyering.net>
64123
64124         * lib/getugroups.c (getugroups): Detect getgrent failure.
64125         Adjust comment to reflect reality: this function may return -1.
64126
64127 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64128
64129         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64130         the new TP address.
64131         (usage): Fix typo
64132         (gnulib_mk): New variable.
64133
64134 2007-07-05  Jim Meyering  <jim@meyering.net>
64135
64136         Don't let endgrent clobber errno, no matter how improbable.
64137         * lib/getugroups.c (getugroups): Save and restore errno around
64138         endgrent call.
64139
64140         Close the group DB even when failing with 2^31 or more members.
64141         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64142
64143 2007-07-04  Jim Meyering  <jim@meyering.net>
64144
64145         * lib/getugroups.h: New file.
64146         * lib/getugroups.c: Include "getugroups.h".
64147         Remove uses of "register" keyword.
64148         Move local variable, "cp", down into scope where used.
64149         Give "username" parameter the "const" attribute.
64150         * modules/getugroups (Files): Add lib/getugroups.h
64151
64152 2007-07-04  Karl Berry  <karl@gnu.org>
64153
64154         * MODULES.html.sh (func_all_modules): Complete rename of
64155         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64156
64157 2007-07-02  Bruno Haible  <bruno@clisp.org>
64158
64159         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64160         mode, when inttypes.h comes from gnulib.
64161         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64162
64163 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64164
64165         * NEWS: Mention lgpl module name change.
64166
64167         * modules/lgpl-2.1: Renamed from lgpl.
64168
64169         * NEWS: Mention gpl module name change.
64170
64171         * modules/gpl-3.0: New file, based on gpl-2.0.
64172
64173         * modules/gpl-2.0: Renamed from gpl.
64174
64175         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64176         doc/gpl-2.0.texi.
64177
64178 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64181         #define __STDC_LIMIT_MACROS temporarily while including
64182         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64183         Problem reported by Joel E. Denny in
64184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64185
64186 2007-07-01  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/unistdio.h: New file.
64189         * lib/unistdio/u-asnprintf.h: New file.
64190         * lib/unistdio/u-asprintf.h: New file.
64191         * lib/unistdio/u-printf-args.c: New file.
64192         * lib/unistdio/u-printf-args.h: New file.
64193         * lib/unistdio/u-printf-parse.h: New file.
64194         * lib/unistdio/u-snprintf.h: New file.
64195         * lib/unistdio/u-sprintf.h: New file.
64196         * lib/unistdio/u-vasprintf.h: New file.
64197         * lib/unistdio/u-vsnprintf.h: New file.
64198         * lib/unistdio/u-vsprintf.h: New file.
64199         * lib/unistdio/ulc-asnprintf.c: New file.
64200         * lib/unistdio/ulc-asprintf.c: New file.
64201         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64202         * lib/unistdio/ulc-printf-parse.c: New file.
64203         * lib/unistdio/ulc-snprintf.c: New file.
64204         * lib/unistdio/ulc-sprintf.c: New file.
64205         * lib/unistdio/ulc-vasnprintf.c: New file.
64206         * lib/unistdio/ulc-vasprintf.c: New file.
64207         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64208         * lib/unistdio/ulc-vsnprintf.c: New file.
64209         * lib/unistdio/ulc-vsprintf.c: New file.
64210         * lib/unistdio/u8-asnprintf.c: New file.
64211         * lib/unistdio/u8-asprintf.c: New file.
64212         * lib/unistdio/u8-printf-parse.c: New file.
64213         * lib/unistdio/u8-snprintf.c: New file.
64214         * lib/unistdio/u8-sprintf.c: New file.
64215         * lib/unistdio/u8-vasnprintf.c: New file.
64216         * lib/unistdio/u8-vasprintf.c: New file.
64217         * lib/unistdio/u8-vsnprintf.c: New file.
64218         * lib/unistdio/u8-vsprintf.c: New file.
64219         * lib/unistdio/u8-u8-asnprintf.c: New file.
64220         * lib/unistdio/u8-u8-asprintf.c: New file.
64221         * lib/unistdio/u8-u8-snprintf.c: New file.
64222         * lib/unistdio/u8-u8-sprintf.c: New file.
64223         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64224         * lib/unistdio/u8-u8-vasprintf.c: New file.
64225         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64226         * lib/unistdio/u8-u8-vsprintf.c: New file.
64227         * lib/unistdio/u16-asnprintf.c: New file.
64228         * lib/unistdio/u16-asprintf.c: New file.
64229         * lib/unistdio/u16-printf-parse.c: New file.
64230         * lib/unistdio/u16-snprintf.c: New file.
64231         * lib/unistdio/u16-sprintf.c: New file.
64232         * lib/unistdio/u16-vasnprintf.c: New file.
64233         * lib/unistdio/u16-vasprintf.c: New file.
64234         * lib/unistdio/u16-vsnprintf.c: New file.
64235         * lib/unistdio/u16-vsprintf.c: New file.
64236         * lib/unistdio/u16-u16-asnprintf.c: New file.
64237         * lib/unistdio/u16-u16-asprintf.c: New file.
64238         * lib/unistdio/u16-u16-snprintf.c: New file.
64239         * lib/unistdio/u16-u16-sprintf.c: New file.
64240         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64241         * lib/unistdio/u16-u16-vasprintf.c: New file.
64242         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64243         * lib/unistdio/u16-u16-vsprintf.c: New file.
64244         * lib/unistdio/u32-asnprintf.c: New file.
64245         * lib/unistdio/u32-asprintf.c: New file.
64246         * lib/unistdio/u32-printf-parse.c: New file.
64247         * lib/unistdio/u32-snprintf.c: New file.
64248         * lib/unistdio/u32-sprintf.c: New file.
64249         * lib/unistdio/u32-vasnprintf.c: New file.
64250         * lib/unistdio/u32-vasprintf.c: New file.
64251         * lib/unistdio/u32-vsnprintf.c: New file.
64252         * lib/unistdio/u32-vsprintf.c: New file.
64253         * lib/unistdio/u32-u32-asnprintf.c: New file.
64254         * lib/unistdio/u32-u32-asprintf.c: New file.
64255         * lib/unistdio/u32-u32-snprintf.c: New file.
64256         * lib/unistdio/u32-u32-sprintf.c: New file.
64257         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64258         * lib/unistdio/u32-u32-vasprintf.c: New file.
64259         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64260         * lib/unistdio/u32-u32-vsprintf.c: New file.
64261         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64262         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64263         * tests/unistdio/test-ulc-printf1.h: New file.
64264         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64265         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64266         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64267         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64268         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64269         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64270         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64271         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64272         * tests/unistdio/test-u8-asnprintf1.c: New file.
64273         * tests/unistdio/test-u8-asnprintf1.h: New file.
64274         * tests/unistdio/test-u8-printf1.h: New file.
64275         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64276         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64277         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64278         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64279         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64280         * tests/unistdio/test-u8-vasprintf1.c: New file.
64281         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64282         * tests/unistdio/test-u8-vsprintf1.c: New file.
64283         * tests/unistdio/test-u16-asnprintf1.c: New file.
64284         * tests/unistdio/test-u16-asnprintf1.h: New file.
64285         * tests/unistdio/test-u16-printf1.h: New file.
64286         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64287         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64288         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64289         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64290         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64291         * tests/unistdio/test-u16-vasprintf1.c: New file.
64292         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64293         * tests/unistdio/test-u16-vsprintf1.c: New file.
64294         * tests/unistdio/test-u32-asnprintf1.c: New file.
64295         * tests/unistdio/test-u32-asnprintf1.h: New file.
64296         * tests/unistdio/test-u32-printf1.h: New file.
64297         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64298         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64299         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64300         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64301         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64302         * tests/unistdio/test-u32-vasprintf1.c: New file.
64303         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64304         * tests/unistdio/test-u32-vsprintf1.c: New file.
64305         * modules/unistdio/base: New file.
64306         * modules/unistdio/u-printf-args: New file.
64307         * modules/unistdio/ulc-asnprintf: New file.
64308         * modules/unistdio/ulc-asprintf: New file.
64309         * modules/unistdio/ulc-fprintf: New file.
64310         * modules/unistdio/ulc-printf-parse: New file.
64311         * modules/unistdio/ulc-snprintf: New file.
64312         * modules/unistdio/ulc-sprintf: New file.
64313         * modules/unistdio/ulc-vasnprintf: New file.
64314         * modules/unistdio/ulc-vasprintf: New file.
64315         * modules/unistdio/ulc-vfprintf: New file.
64316         * modules/unistdio/ulc-vsnprintf: New file.
64317         * modules/unistdio/ulc-vsprintf: New file.
64318         * modules/unistdio/u8-asnprintf: New file.
64319         * modules/unistdio/u8-asprintf: New file.
64320         * modules/unistdio/u8-printf-parse: New file.
64321         * modules/unistdio/u8-snprintf: New file.
64322         * modules/unistdio/u8-sprintf: New file.
64323         * modules/unistdio/u8-vasnprintf: New file.
64324         * modules/unistdio/u8-vasprintf: New file.
64325         * modules/unistdio/u8-vsnprintf: New file.
64326         * modules/unistdio/u8-vsprintf: New file.
64327         * modules/unistdio/u8-u8-asnprintf: New file.
64328         * modules/unistdio/u8-u8-asprintf: New file.
64329         * modules/unistdio/u8-u8-snprintf: New file.
64330         * modules/unistdio/u8-u8-sprintf: New file.
64331         * modules/unistdio/u8-u8-vasnprintf: New file.
64332         * modules/unistdio/u8-u8-vasprintf: New file.
64333         * modules/unistdio/u8-u8-vsnprintf: New file.
64334         * modules/unistdio/u8-u8-vsprintf: New file.
64335         * modules/unistdio/u16-asnprintf: New file.
64336         * modules/unistdio/u16-asprintf: New file.
64337         * modules/unistdio/u16-printf-parse: New file.
64338         * modules/unistdio/u16-snprintf: New file.
64339         * modules/unistdio/u16-sprintf: New file.
64340         * modules/unistdio/u16-vasnprintf: New file.
64341         * modules/unistdio/u16-vasprintf: New file.
64342         * modules/unistdio/u16-vsnprintf: New file.
64343         * modules/unistdio/u16-vsprintf: New file.
64344         * modules/unistdio/u16-u16-asnprintf: New file.
64345         * modules/unistdio/u16-u16-asprintf: New file.
64346         * modules/unistdio/u16-u16-snprintf: New file.
64347         * modules/unistdio/u16-u16-sprintf: New file.
64348         * modules/unistdio/u16-u16-vasnprintf: New file.
64349         * modules/unistdio/u16-u16-vasprintf: New file.
64350         * modules/unistdio/u16-u16-vsnprintf: New file.
64351         * modules/unistdio/u16-u16-vsprintf: New file.
64352         * modules/unistdio/u32-asnprintf: New file.
64353         * modules/unistdio/u32-asprintf: New file.
64354         * modules/unistdio/u32-printf-parse: New file.
64355         * modules/unistdio/u32-snprintf: New file.
64356         * modules/unistdio/u32-sprintf: New file.
64357         * modules/unistdio/u32-vasnprintf: New file.
64358         * modules/unistdio/u32-vasprintf: New file.
64359         * modules/unistdio/u32-vsnprintf: New file.
64360         * modules/unistdio/u32-vsprintf: New file.
64361         * modules/unistdio/u32-u32-asnprintf: New file.
64362         * modules/unistdio/u32-u32-asprintf: New file.
64363         * modules/unistdio/u32-u32-snprintf: New file.
64364         * modules/unistdio/u32-u32-sprintf: New file.
64365         * modules/unistdio/u32-u32-vasnprintf: New file.
64366         * modules/unistdio/u32-u32-vasprintf: New file.
64367         * modules/unistdio/u32-u32-vsnprintf: New file.
64368         * modules/unistdio/u32-u32-vsprintf: New file.
64369         * modules/unistdio/ulc-asnprintf-tests: New file.
64370         * modules/unistdio/ulc-vasnprintf-tests: New file.
64371         * modules/unistdio/ulc-vasprintf-tests: New file.
64372         * modules/unistdio/ulc-vsnprintf-tests: New file.
64373         * modules/unistdio/ulc-vsprintf-tests: New file.
64374         * modules/unistdio/u8-asnprintf-tests: New file.
64375         * modules/unistdio/u8-vasnprintf-tests: New file.
64376         * modules/unistdio/u8-vasprintf-tests: New file.
64377         * modules/unistdio/u8-vsnprintf-tests: New file.
64378         * modules/unistdio/u8-vsprintf-tests: New file.
64379         * modules/unistdio/u16-asnprintf-tests: New file.
64380         * modules/unistdio/u16-vasnprintf-tests: New file.
64381         * modules/unistdio/u16-vasprintf-tests: New file.
64382         * modules/unistdio/u16-vsnprintf-tests: New file.
64383         * modules/unistdio/u16-vsprintf-tests: New file.
64384         * modules/unistdio/u32-asnprintf-tests: New file.
64385         * modules/unistdio/u32-vasnprintf-tests: New file.
64386         * modules/unistdio/u32-vasprintf-tests: New file.
64387         * modules/unistdio/u32-vsnprintf-tests: New file.
64388         * modules/unistdio/u32-vsprintf-tests: New file.
64389         * MODULES.html.sh (Unicode string functions): Add the new modules.
64390
64391 2007-07-01  Bruno Haible  <bruno@clisp.org>
64392
64393         * lib/sprintf.c (sprintf): Limit the available length estimation,
64394         to avoid address wraparound.
64395         * lib/vsprintf.c (vsprintf): Likewise.
64396         * modules/sprintf-posix (Dependencies): Add stdint.
64397         * modules/vsprintf-posix (Dependencies): Likewise.
64398
64399 2007-07-01  Bruno Haible  <bruno@clisp.org>
64400
64401         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64402         Windows PATH as well. Conservative double-quoting. Comments.
64403
64404 2007-07-01  Bruno Haible  <bruno@clisp.org>
64405             Eric Blake  <ebb9@byu.net>
64406             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64407
64408         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64409         empty components in $PATH, denoting '.'.
64410
64411 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64412
64413         * gnulib-tool: Fix indentation.
64414         (func_create_megatestdir): Likewise.
64415         Report by Bruno Haible.
64416
64417 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64418
64419         Sync from Automake.
64420         * build-aux/gnupload: Fix shell portability issues with for loops.
64421         Report by Karl Berry.
64422
64423 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64424
64425         * build-aux/maint.mk (POURL): Use translationproject.org.
64426
64427 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64428             Bruno Haible  <bruno@clisp.org>
64429
64430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64431         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64432         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64433         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64434         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64435
64436 2007-06-27  Bruno Haible  <bruno@clisp.org>
64437
64438         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64439         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64440
64441 2007-06-26  Karl Berry  <karl@gnu.org>
64442
64443         * MODULES.html.sh: remove xreadlink-with-size.
64444
64445 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64446
64447         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64448         method that I hope also handles the double-include problem noted
64449         by Bruno Haible in
64450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64451
64452 2007-06-23  Bruno Haible  <bruno@clisp.org>
64453
64454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64455         Don't let the 'mostlyclean' target fail if the last subdirectory could
64456         not be removed.
64457         Reported by Karl Berry.
64458
64459 2007-06-23  Bruno Haible  <bruno@clisp.org>
64460
64461         * gnulib-tool (echo): Add a speedier workaround for ksh.
64462         * tests/test-echo.sh: Likewise.
64463
64464 2007-06-23  Bruno Haible  <bruno@clisp.org>
64465
64466         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64467         * tests/test-echo.sh: Likewise.
64468
64469 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64470
64471         * gnulib-tool (IFS): Initialize early, so we don't set it to
64472         empty later.
64473         (self_abspathname): Rewrite algorithm to set it, reindent.
64474         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64475         (func_create_megatestdir): Merge some sed scripts.
64476
64477 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64480         exposed by Sun Studio 11 cc on Solaris 8.
64481
64482 2007-06-22  Bruno Haible  <bruno@clisp.org>
64483
64484         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64485         backslashes.
64486         * tests/test-echo.sh: New file.
64487
64488 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64489
64490         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64491         simplify `sed_replace_build_aux' scripts, they are portable but
64492         echoing them with `echo' is not.
64493         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64494
64495 2007-06-21  Karl Berry  <karl@gnu.org>
64496
64497         * config/srclist.txt: guess we can't handle the licenses via
64498         srclist at the moment.
64499
64500 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         * MODULES.html.sh: Add include_next.
64503         * modules/include_next: New file.
64504
64505 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64506
64507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64508         INCLUDE_NEXT.
64509         (gl_CHECK_NEXT_HEADERS): New macro.
64510         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64511         the obsolescent gl_ABSOLUTE_HEADER.
64512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64513         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64514         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64515         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64516         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64517         * m4/math_h.m4 (gl_MATH_H): Likewise.
64518         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64519         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64520         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64521         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64522         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64523         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64524         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64529         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64530         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64534         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64535         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64536         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64537         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64538         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64539         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64540         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64541         * lib/float_.h: Likewise.
64542         * lib/inttypes_.h: Likewise.
64543         * lib/math_.h: Likewise.
64544         * lib/search_.h: Likewise.
64545         * lib/signal_.h: Likewise.
64546         * lib/stdint_.h: Likewise.
64547         * lib/stdio_.h: Likewise.
64548         * lib/stdlib_.h: Likewise.
64549         * lib/string_.h: Likewise.
64550         * lib/sys_stat_.h: Likewise.
64551         * lib/sys_time_.h: Likewise.
64552         * lib/time_.h: Likewise.
64553         * lib/unistd_.h: Likewise.
64554         * lib/wchar_.h: Likewise.
64555         * lib/wctype_.h: Likewise.
64556         * lib/dirent_.h: Likewise.
64557         * lib/iconv_.h: Likewise.
64558         * lib/locale_.h: Likewise.
64559         * lib/netinet_in_.h: Likewise.
64560         * lib/sys_select_.h: Likewise.
64561         * lib/sys_socket_.h: Likewise.
64562         * lib/sysexits_.h: Likewise.
64563         * modules/fcntl (Depends-on): Depend on include_next, not
64564         absolute_header.
64565         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64566         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64567         * modules/fchdir: Likewise.
64568         * modules/float: Likewise.
64569         * modules/iconv_open: Likewise.
64570         * modules/inttypes: Likewise.
64571         * modules/locale: Likewise.
64572         * modules/math: Likewise.
64573         * modules/netinet_in: Likewise.
64574         * modules/search: Likewise.
64575         * modules/signal: Likewise.
64576         * modules/stdint: Likewise.
64577         * modules/stdio: Likewise.
64578         * modules/stdlib: Likewise.
64579         * modules/string: Likewise.
64580         * modules/sys_select: Likewise.
64581         * modules/sys_socket: Likewise.
64582         * modules/sys_stat: Likewise.
64583         * modules/sys_time: Likewise.
64584         * modules/sysexits: Likewise.
64585         * modules/time: Likewise.
64586         * modules/unistd: Likewise.
64587         * modules/wchar: Likewise.
64588         * modules/wctype: Likewise.
64589         * modules/sys_stat: Change maintainer to "all".
64590         * modules/unistd: Likewise.
64591
64592 2007-06-20  Karl Berry  <karl@gnu.org>
64593
64594         * config/srclist.txt: track www changes in license files.
64595
64596 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64597
64598         * build-aux/bootstrap: Remove stray dot.
64599         Make sure build_aux settings are honored when linking
64600         gnulib_extra_files.
64601
64602 2007-06-19  Eric Blake  <ebb9@byu.net>
64603
64604         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64605         Allow compilation on cygwin.
64606
64607 2007-06-19  Jim Meyering  <jim@meyering.net>
64608
64609         xreadlink-with-size: Remove module.  No longer used.
64610         Ex-callers now use xreadlink or mreadlink-with-size.
64611         * modules/xreadlink-with-size: Remove module.
64612         * lib/xreadlink-with-size.c: Remove file.
64613         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64614         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64615         just before the function definition *is* accurate.
64616
64617         Eliminate one way canonicalize_filename_mode could exit.
64618         * lib/canonicalize.c (canonicalize_filename_mode):
64619         Use mreadlink_with_size, not xreadlink_with_size.
64620
64621 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         Detect porting problems to FreeBSD/arm, which has time_t wider than
64624         long int.  Original problem reported for GNU diff by Xin Li in
64625         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64626         * modules/getdate (Depends-on): Add intprops, verify.
64627         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64628         is an integer type no wider than long int.
64629
64630 2007-06-18  Jim Meyering  <jim@meyering.net>
64631
64632         New module: mreadlink-with-size.
64633         * MODULES.html.sh: Add mreadlink-with-size.
64634         * modules/mreadlink-with-size: New module
64635         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64636         not xreadlink-with-size.
64637         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64638
64639 2007-06-16  Bruno Haible  <bruno@clisp.org>
64640
64641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64642         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64643         Reported by Gary V. Vaughan <gary@gnu.org>.
64644
64645 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         Revamp lchown so that it lives in unistd.h where it belongs.
64648         * lib/lchown.h: Remove.
64649         * lib/dirchownmod.c: Don't include lib/lchown.h.
64650         * lib/fchownat.c: Likewise.
64651         * lib/openat.c: Likewise.
64652         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64653         does not follow symlinks.
64654         (EOPNOTSUPP): Define if not defined.
64655         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64656         is defined to 0.
64657         (lchown): New decl.
64658         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64659         Do not check for lchown decl.
64660         Set REPLACE_LCHOWN.
64661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64662         REPLACE_LCHOWN.
64663         * modules/chown: Make it clear it follows symlinks.
64664         * modules/lchown: Make it clear it doesn't follow symlinks.
64665         (Files): Remove lib/lchown.h
64666         (Depends-on): Add unistd.
64667         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64668         (Include): Include <unistd.h>, not "lchown.h".
64669         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64670         REPLACE_LCHOWN.
64671
64672 2007-06-15  Jim Meyering  <jim@meyering.net>
64673
64674         Change license (GPL to LGPL) of fsusage and dependents.
64675         * modules/fsusage (License): Change to LGPL.
64676         * modules/full-read (License): Likewise.
64677         * modules/full-write (License): Likewise.
64678         * modules/safe-read (License): Likewise.
64679         * modules/safe-write (License): Likewise.
64680
64681 2007-06-14  Ben Pfaff  <blp@gnu.org>
64682
64683         Missing part of allocsa -> malloca transition.
64684         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64685         gl_MALLOCA.
64686
64687 2007-06-12  Bruno Haible  <bruno@clisp.org>
64688
64689         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64690         to ia64, x86_64, i386.
64691         Reported by Eric Blake.
64692
64693 2007-06-12  Bruno Haible  <bruno@clisp.org>
64694
64695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64696         cross-compiling to x86_64.
64697
64698 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64701         glitch reported by Ralf Wildenhues in
64702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64703
64704         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64705         Vin Shelton.
64706
64707 2007-06-11  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64710         replacement string.
64711         Reported by Eric Blake.
64712
64713 2007-06-10  Bruno Haible  <bruno@clisp.org>
64714
64715         Prepare vasnprintf code for use with Unicode strings.
64716         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64717         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64718         TYPE_U32_STRING.
64719         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64720         a_u32_string variants.
64721         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64722         * lib/printf-args.c: Don't include config.h and the specification
64723         header if PRINTF_FETCHARGS is already defined.
64724         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64725         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64726         TYPE_U16_STRING, TYPE_U32_STRING.
64727         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64728         u16_directive, u16_directives, u32_directive, u32_directives): New
64729         types.
64730         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64731         New declarations.
64732         * lib/printf-parse.c: Don't include config.h and the specification
64733         header if PRINTF_PARSE is already defined. Eliminate the set of
64734         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64735         them now. Include c-ctype.h.
64736         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64737         directive and CHAR_T_ONLY_ASCII.
64738         * lib/vasnprintf.c: Don't include config.h and the specification header
64739         if VASNPRINTF is already defined.
64740         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64741         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64742         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64743         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64744         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64745         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64746         code accordingly.
64747         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64748         pad_ourselves also in this case, with the 'c' and 's' directives, and
64749         with a different notion of "width".
64750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64751
64752 2007-06-10  Bruno Haible  <bruno@clisp.org>
64753
64754         * modules/unistr/u32-mbsnlen: New file.
64755         * lib/unistr/u32-mbsnlen.c: New file.
64756
64757         * modules/unistr/u16-mbsnlen: New file.
64758         * lib/unistr/u16-mbsnlen.c: New file.
64759
64760         * modules/unistr/u8-mbsnlen: New file.
64761         * lib/unistr/u8-mbsnlen.c: New file.
64762
64763         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64764         declarations.
64765
64766 2007-06-10  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/string_.h (mbsnlen): New declaration.
64769         * lib/mbsnlen.c: New file.
64770         * m4/mbsnlen.m4: New file.
64771         * modules/mbsnlen: New file.
64772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64773         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64774         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64775
64776 2007-06-10  Bruno Haible  <bruno@clisp.org>
64777
64778         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64779
64780 2007-06-10  Bruno Haible  <bruno@clisp.org>
64781
64782         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64783         * lib/mbuiter.h: Likewise.
64784
64785 2007-06-10  Bruno Haible  <bruno@clisp.org>
64786
64787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64788         declaration.
64789
64790 2007-06-10  Karl Berry  <karl@gnu.org>
64791
64792         * config/srclist.txt: remove gettext entries, Bruno prefers
64793         to update individually.
64794
64795 2007-06-10  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64798         'maxlen'. Ensure only length + width bytes are allocated, not
64799         length + 1 + width.
64800
64801 2007-06-09  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64804         (CHAR_T): Remove macro.
64805         (VASNPRINTF): Update.
64806
64807 2007-06-09  Bruno Haible  <bruno@clisp.org>
64808
64809         * MODULES.html.sh (Unicode string functions): Add the new modules.
64810
64811         * modules/uniconv/u32-conv-to-enc: New file.
64812         * lib/uniconv/u32-conv-to-enc.c: New file.
64813         * modules/uniconv/u32-conv-to-enc-tests: New file.
64814         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64815
64816         * modules/uniconv/u16-conv-to-enc: New file.
64817         * lib/uniconv/u16-conv-to-enc.c: New file.
64818         * lib/uniconv/u-conv-to-enc.h: New file.
64819         * modules/uniconv/u16-conv-to-enc-tests: New file.
64820         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64821
64822         * modules/uniconv/u8-conv-to-enc: New file.
64823         * lib/uniconv/u8-conv-to-enc.c: New file.
64824         * modules/uniconv/u8-conv-to-enc-tests: New file.
64825         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64826
64827         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64828         u32_conv_to_encoding): New declarations.
64829
64830 2007-06-09  Bruno Haible  <bruno@clisp.org>
64831
64832         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64833
64834 2007-06-09  Bruno Haible  <bruno@clisp.org>
64835
64836         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64837         * modules/malloca: Renamed from modules/allocsa, updated.
64838         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64839         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64840         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64841         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64842         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64843         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64844         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64845         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64846         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64847         * modules/c-strcasestr (Depends-on): Update.
64848         * lib/c-strcasestr.c: Update.
64849         * modules/c-strstr (Depends-on): Update.
64850         * lib/c-strstr.c: Update.
64851         * modules/canonicalize-lgpl (Depends-on): Update.
64852         * lib/canonicalize-lgpl.c: Update.
64853         * modules/clean-temp (Depends-on): Update.
64854         * lib/clean-temp.c: Update.
64855         * modules/csharpcomp (Depends-on): Update.
64856         * lib/csharpcomp.c: Update.
64857         * modules/csharpexec (Depends-on): Update.
64858         * lib/csharpexec.c: Update.
64859         * modules/javacomp (Depends-on): Update.
64860         * lib/javacomp.c: Update.
64861         * modules/javaexec (Depends-on): Update.
64862         * lib/javaexec.c: Update.
64863         * modules/mbscasestr (Depends-on): Update.
64864         * lib/mbscasestr.c: Update.
64865         * modules/mbsstr (Depends-on): Update.
64866         * lib/mbsstr.c: Update.
64867         * modules/setenv (Depends-on): Update.
64868         * lib/setenv.c: Update.
64869         * modules/strcasestr (Depends-on): Update.
64870         * lib/strcasestr.c: Update.
64871         * modules/striconveha (Depends-on): Update.
64872         * lib/striconveha.c: Update.
64873         * modules/relocatable-prog-wrapper (Files): Update.
64874         * lib/relocwrapper.c: Update.
64875         * build-aux/install-reloc: Update.
64876         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64877
64878 2007-06-08  Bruno Haible  <bruno@clisp.org>
64879
64880         Port to uClibc.
64881         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64882         * lib/fpurge.c (fpurge): Likewise.
64883         * lib/freading.c (freading): Likewise.
64884         * lib/fseeko.c (rpl_fseeko): Likewise.
64885         * lib/fseterr.c (fseterr): Likewise.
64886         * lib/fwriting.c (fwriting): Likewise.
64887         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64888
64889 2007-06-08  Bruno Haible  <bruno@clisp.org>
64890
64891         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64892         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64893         * modules/gettext (Files): Add m4/intlmacosx.m4.
64894
64895 2007-06-07  Bruno Haible  <bruno@clisp.org>
64896
64897         * modules/localename-tests: New file.
64898         * tests/test-localename.c: New file.
64899
64900         New module 'localename'.
64901         * lib/localename.h: New file.
64902         * lib/localename.c: New file, from GNU gettext.
64903         * m4/localename.m4: New file.
64904         * modules/localename: New file.
64905
64906 2007-06-07  Bruno Haible  <bruno@clisp.org>
64907
64908         Work around the lack of <wchar.h> on some builds of uClibc.
64909         * doc/headers/wchar.texi: Update.
64910         * lib/wchar_.h: Include <wchar.h> only if it exists.
64911         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64912         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64913         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64914         doesn't exist.
64915         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64916         * modules/mbfile (Depends-on): Add wchar.
64917         * modules/mbiter (Depends-on): Likewise.
64918         * modules/mbuiter (Depends-on): Likewise.
64919         Reported by Simon Josefsson.
64920
64921 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64922
64923         Work around problem reported by Steven M. Schweda in
64924         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64925         Tru64 5.1B with the Compaq compiler environment installed declares
64926         an 'isblank' function but does not define it in the C library.
64927         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64928         * lib/regex_internal.h (isblank): Likewise.
64929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64930         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64931
64932 2007-06-05  Bruno Haible  <bruno@clisp.org>
64933
64934         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64935         ia64.
64936         * modules/printf-safe: New file.
64937         * modules/fprintf-posix (Depends-on): Add printf-safe.
64938         * modules/printf-posix (Depends-on): Likewise.
64939         * modules/snprintf-posix (Depends-on): Likewise.
64940         * modules/sprintf-posix (Depends-on): Likewise.
64941         * modules/vasnprintf-posix (Depends-on): Likewise.
64942         * modules/vasprintf-posix (Depends-on): Likewise.
64943         * modules/vfprintf-posix (Depends-on): Likewise.
64944         * modules/vprintf-posix (Depends-on): Likewise.
64945         * modules/vsnprintf-posix (Depends-on): Likewise.
64946         * modules/vsprintf-posix (Depends-on): Likewise.
64947         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64948         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64949         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64950         "no" on i386, x86_64, ia64.
64951         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64952         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64953         on i386, x86_64, ia64.
64954         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64955         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64956         on i386, x86_64, ia64.
64957         * tests/test-vasnprintf-posix.c: Include float.h.
64958         (LDBL80_WORDS): New macro.
64959         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64960         on i386, x86_64, ia64.
64961         * tests/test-vasprintf-posix.c: Include float.h.
64962         (LDBL80_WORDS): New macro.
64963         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64964         on i386, x86_64, ia64.
64965         * tests/test-snprintf-posix.c: Include float.h.
64966         * tests/test-sprintf-posix.c: Likewise.
64967         * tests/test-vsnprintf-posix.c: Likewise.
64968         * tests/test-vsprintf-posix.c: Likewise.
64969
64970 2007-06-05  Bruno Haible  <bruno@clisp.org>
64971
64972         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64974         non-IEEE numbers on i386, x86_64, ia64.
64975         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64976         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64977         * tests/test-isnanl.h: Include float.h.
64978         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64979
64980 2007-06-05  Bruno Haible  <bruno@clisp.org>
64981
64982         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64983         also the %a / %A. Handle the %a / %A code before this extra handling.
64984
64985 2007-06-05  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64988         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64989
64990 2007-06-05  Bruno Haible  <bruno@clisp.org>
64991
64992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64993         typo in variable name.
64994
64995 2007-06-05  Eric Blake  <ebb9@byu.net>
64996
64997         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64998         Reported by Simon Josefsson.
64999
65000 2007-06-04  Bruno Haible  <bruno@clisp.org>
65001
65002         Avoid test failures on some PowerPC platforms.
65003         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65004         Define differently for PowerPC.
65005         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65006         Reported by Gary V. Vaughan <gary@gnu.org>.
65007
65008 2007-06-02  Bruno Haible  <bruno@clisp.org>
65009
65010         Fix test-stdint failure on FreeBSD/ia64.
65011         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65012         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65013         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65014         * doc/headers/stdint.texi: Update.
65015
65016 2007-06-01  Bruno Haible  <bruno@clisp.org>
65017
65018         * tests/test-binary-io.c (main): Pass a third argument to open().
65019         Reported by Gary V. Vaughan <gary@gnu.org>.
65020
65021 2007-06-01  Bruno Haible  <bruno@clisp.org>
65022
65023         * doc/functions/frexpl.texi: Update for mingw.
65024
65025 2007-06-01  Bruno Haible  <bruno@clisp.org>
65026
65027         * tests/test-lseek.c (main): Disable test of errno for invalid third
65028         argument.
65029         * doc/functions/lseek.texi: Update.
65030         Reported by Gary V. Vaughan <gary@gnu.org>.
65031
65032 2007-05-28  Bruno Haible  <bruno@clisp.org>
65033
65034         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65035
65036 2007-05-31  Eric Blake  <ebb9@byu.net>
65037
65038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65039         cross compiling.
65040
65041 2007-05-30  Eric Blake  <ebb9@byu.net>
65042         and Bruno Haible  <bruno@clisp.org>
65043
65044         Work around mingw test failures exposed by m4-1.4.9b.
65045         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65046         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65047         moment.
65048
65049 2007-05-30  Bruno Haible  <bruno@clisp.org>
65050
65051         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65052         assuming that they are closed. Needed on HP-UX 11.
65053
65054 2007-05-29  Bruno Haible  <bruno@clisp.org>
65055
65056         Fix a problem with #include_next.
65057         * lib/dirent_.h: Split the double-inclusion guard.
65058         * lib/fcntl_.h: Likewise.
65059         * lib/float_.h: Likewise.
65060         * lib/iconv_.h: Likewise.
65061         * lib/inttypes_.h: Likewise.
65062         * lib/locale_.h: Likewise.
65063         * lib/math_.h: Likewise.
65064         * lib/netinet_in_.h: Likewise.
65065         * lib/search_.h: Likewise.
65066         * lib/signal_.h: Likewise.
65067         * lib/stdint_.h: Likewise.
65068         * lib/stdio_.h: Likewise.
65069         * lib/stdlib_.h: Likewise.
65070         * lib/string_.h: Likewise.
65071         * lib/sys_select_.h: Likewise.
65072         * lib/sys_socket_.h: Likewise.
65073         * lib/sys_stat_.h: Likewise.
65074         * lib/sys_time_.h: Likewise.
65075         * lib/sysexits_.h: Likewise.
65076         * lib/time_.h: Likewise.
65077         * lib/unistd_.h: Likewise.
65078         * lib/wchar_.h: Likewise.
65079         * lib/wctype_.h: Likewise.
65080
65081 2007-05-29  Bruno Haible  <bruno@clisp.org>
65082
65083         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65084         for the moment.
65085
65086 2007-05-29  Bruno Haible  <bruno@clisp.org>
65087
65088         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65089         invocation.
65090         Reported by Eric Blake.
65091
65092 2007-05-29  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65095         compiling case.
65096
65097 2007-05-29  Eric Blake  <ebb9@byu.net>
65098             Bruno Haible  <bruno@clisp.org>
65099
65100         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65101         cross compiles.
65102
65103 2007-05-28  Eric Blake  <ebb9@byu.net>
65104
65105         * modules/closein-tests (test_closein_LDADD): Support test on
65106         cygwin with libtool.
65107
65108 2007-05-28  Bruno Haible  <bruno@clisp.org>
65109
65110         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65111         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65112         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65113         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65114         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65115         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65116         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65117         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65118         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65119
65120 2007-05-28  Eric Blake  <ebb9@byu.net>
65121
65122         Unconditionally include <config.h> in unit tests.
65123         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65124         * tests/test-allocsa.c, tests/test-arcfour.c,
65125         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65126         tests/test-array_list.c, tests/test-array_oset.c,
65127         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65128         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65129         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65130         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65131         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65132         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65133         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65134         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65135         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65136         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65137         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65138         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65139         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65140         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65141         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65142         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65143         test-md5.c, test-memmem.c, test-printf-posix.c,
65144         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65145         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65146         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65147         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65148         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65149         test-vasnprintf-posix2.c, test-vasnprintf.c,
65150         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65151         test-vfprintf-posix.c, test-vprintf-posix.c,
65152         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65153         test-xvasprintf.c: Likewise.
65154
65155 2007-05-28  Bruno Haible  <bruno@clisp.org>
65156
65157         * gnulib-tool (func_import): Remember the --with-tests command-line
65158         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65159         Reported by Eric Blake.
65160
65161 2007-05-28  Bruno Haible  <bruno@clisp.org>
65162
65163         * modules/ftell-tests: New file.
65164         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65165         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65166
65167         * lib/ftell.c: New file.
65168         * modules/ftell: New file.
65169         * m4/ftell.m4: New file.
65170         * doc/functions/ftell.texi: Update.
65171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65172         REPLACE_FTELL.
65173         * lib/stdio_.h (rpl_ftell): New declaration.
65174         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65175         REPLACE_FTELL.
65176
65177 2007-05-28  Eric Blake  <ebb9@byu.net>
65178
65179         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65180
65181 2007-05-28  Bruno Haible  <bruno@clisp.org>
65182
65183         * modules/fseek-tests: New file.
65184         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65185         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65186
65187         * lib/fseek.c: New file.
65188         * modules/fseek: New file.
65189         * m4/fseek.m4: New file.
65190         * doc/functions/fseek.texi: Update.
65191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65192         REPLACE_FSEEK.
65193         * lib/stdio_.h (rpl_fseek): New declaration.
65194         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65195         REPLACE_FSEEK.
65196
65197 2007-05-28  Bruno Haible  <bruno@clisp.org>
65198
65199         * lib/stdio_.h (fflush): More comments.
65200
65201 2007-05-28  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65204         runtime test.
65205
65206 2007-05-28  Eric Blake  <ebb9@byu.net>
65207
65208         Improve lseek module.
65209         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65210         * lib/unistd_.h (lseek): Scale back link warning message.
65211         * tests/test-lseek.c: Beef up test.
65212         * tests/test-lseek.sh: Exercise more facets of lseek.
65213         Reported by Bruno Haible.
65214
65215 2007-05-28  Bruno Haible  <bruno@clisp.org>
65216
65217         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65218         to define.
65219
65220 2007-05-27  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65223
65224 2007-05-27  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/openmp: New file.
65227         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65228         Noah Misch.
65229
65230 2007-05-26  Bruno Haible  <bruno@clisp.org>
65231
65232         * modules/chdir-long (Depends-on): Add fchdir.
65233         * modules/chdir-safer (Depends-on): Likewise.
65234         * modules/fts (Depends-on): Likewise.
65235         * modules/fts-lgpl (Depends-on): Likewise.
65236         * modules/openat (Depends-on): Likewise.
65237         * modules/savewd (Depends-on): Likewise.
65238
65239 2007-05-24  Eric Blake  <ebb9@byu.net>
65240
65241         Fix lseek on mingw.
65242         * modules/lseek: New module.
65243         * m4/lseek.m4: New file.
65244         * lib/lseek.c: New file.
65245         * modules/lseek-tests: New file.
65246         * tests/test-lseek.c: New file.
65247         * tests/test-lseek.sh: New file.
65248         * MODULES.html.sh: Document lseek module.
65249         * modules/fflush (Depends-on): Add lseek, fseeko.
65250         * modules/fseeko (Depends-on): Likewise.
65251         * modules/ftello (Depends-on): Likewise.
65252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65253         broken.
65254         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65255         broken.
65256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65257         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65258         * lib/ftello.c (rpl_ftello): Likewise.
65259         * tests/test-fseeko.c (main): Test this.
65260         * tests/test-fseeko.sh: Likewise.
65261         * tests/test-ftello.c (main): Likewise.
65262         * tests/test-ftello.sh: Likewise.
65263         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65264         implies replacing fseek.
65265         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65266         HAVE_FTELLO.
65267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65268         * modules/unistd (Makefile.am): Likewise.
65269         * lib/unistd_.h (lseek): Declare a replacement.
65270         * doc/functions/lseek.texi (lseek): Document this fix.
65271         * doc/functions/fseek.texi (fseek): Likewise.
65272         * doc/functions/ftell.texi (ftell): Likewise.
65273
65274 2007-05-24  Bruno Haible  <bruno@clisp.org>
65275
65276         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65277         in the printed representation of a NaN.
65278         * tests/test-vasprintf-posix.c (test_function): Likewise.
65279         * tests/test-snprintf-posix.h (test_function): Likewise.
65280         * tests/test-sprintf-posix.h (test_function): Likewise.
65281         Reported by Eric Blake.
65282
65283 2007-05-23  Eric Blake  <ebb9@byu.net>
65284
65285         Fix fseeko/ftello on cygwin 1.5.24.
65286         * doc/functions/fseeko.texi (fseeko): Document the fix.
65287         * doc/functions/ftello.texi (ftello): Document the fix.
65288         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65289         * doc/functions/stdout.text (stdout): New file.
65290         * doc/functions/stderr.text (stderr): New file.
65291         * doc/gnulib.texi (Function Substitutes): Use new files.
65292         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65293         prior to 1.7.0.
65294         * tests/test-ftello.c (main): Likewise for ftello.
65295         * tests/test-fseeko.sh: New file.
65296         * tests/test-ftello.sh: New file.
65297         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65298         with seekable stdin.
65299         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65301         (gl_REPLACE_FSEEKO): New macro.
65302         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65303         * modules/fseeko (Files): Distribute fseeko.c.
65304         * modules/ftello (Files): Distribute ftello.c.
65305         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65306         mode.
65307         * lib/ftello.c (rpl_ftello): New file.
65308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65309         fseeko, ftello.
65310         (gl_STDIN_LARGE_OFFSET): New macro.
65311         * modules/stdio (Makefile.am): Perform the replacement.
65312         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65313
65314 2007-05-23  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65317         GNULIB_POSIXCHECK is defined.
65318
65319 2007-05-21  Bruno Haible  <bruno@clisp.org>
65320
65321         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65322         Check also the output for NaN arguments. When cross-compiling, guess
65323         no on IRIX.
65324         * lib/vasnprintf.c: Update comments.
65325         * tests/test-vasnprintf-posix.c (strisnan): New function.
65326         (test_function): Use it.
65327         * tests/test-vasprintf-posix.c (strisnan): New function.
65328         (test_function): Use it.
65329         * tests/test-snprintf-posix.h (strisnan): New function.
65330         (test_function): Use it.
65331         * tests/test-sprintf-posix.h (strisnan): New function.
65332         (test_function): Use it.
65333         Reported by Eric Blake.
65334
65335 2007-05-20  Bruno Haible  <bruno@clisp.org>
65336
65337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65338         numbers that fails on BeOS.
65339         * doc/functions/frexpl.texi: Update.
65340
65341 2007-05-20  Jim Meyering  <jim@meyering.net>
65342
65343         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65344         forced upon us by glibc-2.6.
65345
65346 2007-05-20  Bruno Haible  <bruno@clisp.org>
65347
65348         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65349         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65350         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65351         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65352         NEED_PRINTF_INFINITE.
65353         (is_infinitel): New function.
65354         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65356         gl_PREREQ_VASNPRINTF_INFINITE.
65357         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65359         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65360         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65361         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65362         gl_PREREQ_VASNPRINTF_INFINITE.
65363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65370         * doc/functions/fprintf.texi: Update.
65371         * doc/functions/printf.texi: Update.
65372         * doc/functions/snprintf.texi: Update.
65373         * doc/functions/sprintf.texi: Update.
65374         * doc/functions/vfprintf.texi: Update.
65375         * doc/functions/vprintf.texi: Update.
65376         * doc/functions/vsnprintf.texi: Update.
65377         * doc/functions/vsprintf.texi: Update.
65378
65379 2007-05-20  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65382         was not found in libc.
65383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65384
65385 2007-05-20  Bruno Haible  <bruno@clisp.org>
65386
65387         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65388         printed as "-nan" instead of "nan".
65389         * tests/test-vasprintf-posix.c (test_function): Likewise.
65390         * tests/test-snprintf-posix.h (test_function): Likewise.
65391         * tests/test-sprintf-posix.h (test_function): Likewise.
65392         Needed for HP-UX 11.
65393
65394 2007-05-20  Jim Meyering  <jim@meyering.net>
65395
65396         Fix buggy test for the fchownat-deref bug.
65397         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65398         symlink required for the run-test.  Without it, this test would
65399         always declare that fchownat doesn't work, and client code would
65400         unnecessarily use the replacement function with fixed libc.
65401         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65402         Reported by Greg Schafer.
65403
65404 2007-05-19  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65407         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65408         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65409         Needed for IRIX 6.5 and Solaris 2.5.1.
65410
65411 2007-05-19  Bruno Haible  <bruno@clisp.org>
65412
65413         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65414         (test_function): Skip tests involving -0.0 on platforms where
65415         -0.0 = 0.0.
65416         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65417         (test_function): Skip tests involving -0.0 on platforms where
65418         -0.0 = 0.0.
65419         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65420         (test_function): Skip tests involving -0.0 on platforms where
65421         -0.0 = 0.0.
65422         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65423         (test_function): Skip tests involving -0.0 on platforms where
65424         -0.0 = 0.0.
65425         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65426         tests.
65427         * tests/test-printf-posix.h (test_function): Likewise.
65428         * tests/test-printf-posix.output: Remove all -0.0 related results.
65429         Needed for IRIX 6.5.
65430
65431 2007-05-19  Bruno Haible  <bruno@clisp.org>
65432
65433         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65434         printed as "nan0x7fffffff" instead of "nan".
65435         * tests/test-vasprintf-posix.c (test_function): Likewise.
65436         * tests/test-snprintf-posix.h (test_function): Likewise.
65437         * tests/test-sprintf-posix.h (test_function): Likewise.
65438         * tests/test-fprintf-posix.h (NaN): Remove macro.
65439         (test_function): Remove all NaN related tests.
65440         * tests/test-printf-posix.h (NaN): Remove macro.
65441         (test_function): Remove all NaN related tests.
65442         * tests/test-printf-posix.output: Remove all NaN related results.
65443         Needed for IRIX 6.5.
65444
65445 2007-05-19  Bruno Haible  <bruno@clisp.org>
65446
65447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65449
65450 2007-05-19  Bruno Haible  <bruno@clisp.org>
65451
65452         * lib/float_.h: New file.
65453         * m4/float_h.m4: New file.
65454         * modules/float: New file.
65455         * modules/isnanl (Dependencies): Add float.
65456         * modules/isnanl-nolibm (Dependencies): Likewise.
65457         * modules/mathl (Dependencies): Likewise.
65458         * modules/printf-frexpl (Dependencies): Likewise.
65459         * modules/signbit (Dependencies): Likewise.
65460         * modules/vasnprintf (Dependencies): Likewise.
65461         * doc/headers/float.texi: Update.
65462
65463 2007-05-19  Jim Meyering  <jim@meyering.net>
65464
65465         * lib/utimens.c (gl_futimens): Rename from futimens,
65466         now that glibc-2.6 declares futimens.
65467         * lib/utimens.h: Likewise.
65468
65469 2007-05-19  Bruno Haible  <bruno@clisp.org>
65470
65471         Avoid test failures on mingw.
65472         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65473         * tests/test-printf-posix.sh: Likewise.
65474         * tests/test-vfprintf-posix.sh: Likewise.
65475         * tests/test-vprintf-posix.sh: Likewise.
65476
65477 2007-05-19  Bruno Haible  <bruno@clisp.org>
65478
65479         Fix *printf result for NaN, Inf, -0.0 on mingw.
65480         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65481         * lib/vasnprintf.c: Include math.h and isnan.h.
65482         (is_infinite_or_zero): New function.
65483         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65484         values in the %f, %F, %e, %E, %g, %G directives.
65485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65487         gl_PRINTF_INFINITE and test its result. Invoke
65488         gl_PREREQ_VASNPRINTF_INFINITE.
65489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65496         * doc/functions/fprintf.texi: Update.
65497         * doc/functions/printf.texi: Update.
65498         * doc/functions/snprintf.texi: Update.
65499         * doc/functions/sprintf.texi: Update.
65500         * doc/functions/vfprintf.texi: Update.
65501         * doc/functions/vprintf.texi: Update.
65502         * doc/functions/vsnprintf.texi: Update.
65503         * doc/functions/vsprintf.texi: Update.
65504
65505 2007-05-19  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65508         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65509         Instead of multiplying with 10^k, set extra_zeroes to k.
65510         (scale10_round_long_double): Remove function.
65511
65512 2007-05-18  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65515         introduced on 2007-05-06.
65516
65517 2007-05-18  Bruno Haible  <bruno@clisp.org>
65518
65519         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65520         %g directives.
65521         * tests/test-vasprintf-posix.c (test_function): Likewise.
65522         * tests/test-snprintf-posix.h (test_function): Likewise.
65523         * tests/test-sprintf-posix.h (test_function): Likewise.
65524
65525 2007-05-18  Bruno Haible  <bruno@clisp.org>
65526
65527         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65528         (strmatch): New function.
65529         (test_function): Test the %f directive on numbers of various exponents.
65530         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65531         (strmatch): New function.
65532         (test_function): Test the %f directive on numbers of various exponents.
65533         * tests/test-snprintf-posix.h (strmatch): New function.
65534         (test_function): Test the %f directive on numbers of various exponents.
65535         * tests/test-sprintf-posix.h (strmatch): New function.
65536         (test_function): Test the %f directive on numbers of various exponents.
65537         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65538         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65539         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65540         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65541
65542 2007-05-18  Bruno Haible  <bruno@clisp.org>
65543
65544         Add support for 'long double' number output.
65545         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65546         * lib/vasnprintf.c: Include math.h and float+.h.
65547         (mp_limb_t): New type.
65548         (GMP_LIMB_BITS): New macro.
65549         (mp_twolimb_t): New type.
65550         (GMP_TWOLIMB_BITS): New macro.
65551         (mpn_t): New type.
65552         (multiply, divide, convert_to_decimal, decode_long_double,
65553         scale10_round_long_double, scale10_round_decimal_long_double,
65554         floorlog10l): New functions.
65555         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65556         for the %f, %F, %e, %E, %g, %G directives.
65557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65559         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65560         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65568         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65569         * modules/snprintf-posix (Depends-on): Likewise.
65570         * modules/sprintf-posix (Depends-on): Likewise.
65571         * modules/vasnprintf-posix (Depends-on): Likewise.
65572         * modules/vasprintf-posix (Depends-on): Likewise.
65573         * modules/vfprintf-posix (Depends-on): Likewise.
65574         * modules/vsnprintf-posix (Depends-on): Likewise.
65575         * modules/vsprintf-posix (Depends-on): Likewise.
65576         * modules/vasnprintf (Files): Add lib/float+.h.
65577         * doc/functions/fprintf.texi: Update.
65578         * doc/functions/printf.texi: Update.
65579         * doc/functions/snprintf.texi: Update.
65580         * doc/functions/sprintf.texi: Update.
65581         * doc/functions/vfprintf.texi: Update.
65582         * doc/functions/vprintf.texi: Update.
65583         * doc/functions/vsnprintf.texi: Update.
65584         * doc/functions/vsprintf.texi: Update.
65585
65586 2007-05-18  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65589
65590 2007-05-18  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65593         for printing 64-bit integers. Needed for mingw.
65594
65595 2007-05-18  Bruno Haible  <bruno@clisp.org>
65596
65597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65598         gl_FUNC_FREXPL_WORKS.
65599         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65600
65601 2007-05-18  Bruno Haible  <bruno@clisp.org>
65602
65603         * modules/frexpl-nolibm-tests: New file.
65604
65605         * modules/frexpl-nolibm: New file.
65606         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65607
65608 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65611         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65612         GCC 4.2, which otherwise issues a lot of warnings.
65613         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65614         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65615         Likewise.
65616         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65617         * modules/iconv_open (iconv.h): Likewise.
65618         * modules/locale (locale.h): Likewise.
65619         * modules/netinet_in (netinet/in.h): Likewise.
65620         * modules/sys_select (sys_select.h): Likewise.
65621         * modules/sys_socket (sys/socket.h): Likewise.
65622         * modules/sys_stat (sys/stat.h): Likewise.
65623         * modules/sysexits (sysexits.h): Likewise.
65624         * modules/unistd (unistd.h): Likewise.
65625
65626 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65627
65628         * modules/closein-tests (Makefile.am): Distribute
65629         `test-closein.sh'.
65630
65631 2007-05-17  Bruno Haible  <bruno@clisp.org>
65632
65633         * tests/test-printf-posix.output: Renamed from
65634         tests/test-fprintf-posix.out.
65635         * modules/fprintf-posix-tests: Update.
65636         * modules/printf-posix-tests: Update.
65637         * modules/vfprintf-posix-tests: Update.
65638         * modules/vprintf-posix-tests: Update.
65639         * tests/test-fprintf-posix.sh: Update.
65640         * tests/test-printf-posix.sh: Update.
65641         * tests/test-vfprintf-posix.sh: Update.
65642         * tests/test-vprintf-posix.sh: Update.
65643         Reported by Ralf Wildenhues.
65644
65645 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65648         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65649         GCC 4.2, which otherwise issues a lot of warnings.
65650         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65651         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65652         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65653         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65654         it should no longer be needed.
65655         * lib/string_.h: Likewise.
65656         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65657         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65658         * modules/inttypes (inttypes.h): Likewise.
65659         * modules/math (math.h): Likewise.
65660         * modules/search (search.h): Likewise.
65661         * modules/signal (signal.h): Likewise.
65662         * modules/stdint (stdint.h): Likewise.
65663         * modules/stdio (stdio.h): Likewise.
65664         * modules/stdlib (stdlib.h): Likewise.
65665         * modules/string (string.h): Likewise.
65666         * modules/sys_time (sys/time.h): Likewise.
65667         * modules/time (time.h): Likewise.
65668         * modules/wchar (wchar.h): Likewise.
65669         * modules/wctype (wtype.h): Likewise.
65670
65671 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65672
65673         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65674
65675 2007-05-13  Bruno Haible  <bruno@clisp.org>
65676
65677         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65678         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65679         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65680         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65681         (gl_PREREQ_STRTOK_R): Don't require it here.
65682
65683 2007-05-13  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65686         when used in C++ mode.
65687
65688 2007-05-12  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/linebuffer.h: Tweak doc.
65691         * lib/linebuffer.c: Likewise.
65692
65693 2007-05-12  James Youngman  <jay@gnu.org>
65694
65695         * lib/linebuffer.c (readlinebuffer_delim): New function,
65696         like readlinebuffer, but use a caller-specified delimiter.
65697         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65698         as the delimiter.
65699         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65700
65701 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65702
65703         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65704         * modules/openat (Files): Remove openat-die.c.
65705         (Depends-on): Add openat-die.
65706         * modules/openat-die: New module.
65707
65708 2007-05-06  Bruno Haible  <bruno@clisp.org>
65709
65710         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65711         Update with info about Cygwin.
65712         * doc/functions/fprintf.texi: Update.
65713         * doc/functions/printf.texi: Update.
65714         * doc/functions/snprintf.texi: Update.
65715         * doc/functions/sprintf.texi: Update.
65716         * doc/functions/vfprintf.texi: Update.
65717         * doc/functions/vprintf.texi: Update.
65718         * doc/functions/vsnprintf.texi: Update.
65719         * doc/functions/vsprintf.texi: Update.
65720         Reported by Eric Blake.
65721
65722 2007-05-06  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65725         padding ourselves for the floating-point directives.
65726         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65729         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65730         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65738         * tests/test-snprintf-posix.h (test_function): Also check the width
65739         and some flags in the %f directive.
65740         * tests/test-sprintf-posix.h (test_function): Likewise.
65741         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65742         * tests/test-vasprintf-posix.c (test_function): Likewise.
65743         * doc/functions/fprintf.texi: Update.
65744         * doc/functions/printf.texi: Update.
65745         * doc/functions/snprintf.texi: Update.
65746         * doc/functions/sprintf.texi: Update.
65747         * doc/functions/vfprintf.texi: Update.
65748         * doc/functions/vprintf.texi: Update.
65749         * doc/functions/vsnprintf.texi: Update.
65750         * doc/functions/vsprintf.texi: Update.
65751
65752 2007-05-06  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65755         pass the ' flag character to sprintf or snprintf.
65756         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65759         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65760         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65768         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65769         flag.
65770         * tests/test-sprintf-posix.h (test_function): Likewise.
65771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65772         * tests/test-vasprintf-posix.c (test_function): Likewise.
65773         * doc/functions/fprintf.texi: Update.
65774         * doc/functions/printf.texi: Update.
65775         * doc/functions/snprintf.texi: Update.
65776         * doc/functions/sprintf.texi: Update.
65777         * doc/functions/vfprintf.texi: Update.
65778         * doc/functions/vprintf.texi: Update.
65779         * doc/functions/vsnprintf.texi: Update.
65780         * doc/functions/vsprintf.texi: Update.
65781
65782 2007-05-01  Bruno Haible  <bruno@clisp.org>
65783
65784         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65785
65786 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65789         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65790
65791 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65794         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65796
65797 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65798
65799         * lib/argp-help.c (struct hol_entry): New member `ord'.
65800         (HOL_ENTRY_PTRCMP): Use ord for comparison
65801         (hol_sort): Initialize ord.
65802
65803 2007-05-01  Bruno Haible  <bruno@clisp.org>
65804
65805         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65806         Reported by Eric Blake.
65807         * doc/gnulib.texi (Function Substitutes): Update.
65808
65809 2007-05-01  Bruno Haible  <bruno@clisp.org>
65810
65811         * doc/functions.texi: Remove file, now redundant through
65812         doc/functions/*.texi.
65813
65814 2007-05-01  Bruno Haible  <bruno@clisp.org>
65815
65816         * modules/argp (Depends-on): Add sleep.
65817
65818 2007-05-01  Bruno Haible  <bruno@clisp.org>
65819
65820         * modules/sleep-tests: New file.
65821         * tests/test-sleep.c: New file.
65822
65823         * modules/sleep: New file.
65824         * lib/sleep.c: New file.
65825         * m4/sleep.m4: New file.
65826         * lib/unistd_.h (sleep): New declaration.
65827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65828         HAVE_SLEEP.
65829         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65830         * doc/functions/sleep.texi: Document the sleep module.
65831
65832 2007-05-01  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/sigprocmask.h: Remove file.
65835         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65836         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65837         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65838         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65839         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65840         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65841         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65842         HAVE_SIGSET_T as a shell variable.
65843         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65844         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65845         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65846         (Depends-on): Add signal. Remove verify.
65847         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65848         (Include): Mention <signal.h> instead of sigprocmask.h.
65849         * NEWS: Mention the change.
65850         * lib/fatal-signal.c: Don't include sigprocmask.h.
65851
65852 2007-05-01  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/signal: New file.
65855         * lib/signal_.h: New file.
65856         * m4/signal_h.m4: New file.
65857
65858 2007-05-01  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65861         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65862         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65863         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65864
65865 2007-05-01  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65868         configure time.
65869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65870         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65871         * modules/sys_stat (Makefile.am): Substitute their values into
65872         sys/stat.h.
65873
65874 2007-05-01  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65877         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65878         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65879
65880 2007-05-01  Bruno Haible  <bruno@clisp.org>
65881
65882         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65883         'assert' module here.
65884
65885 2007-05-01  Bruno Haible  <bruno@clisp.org>
65886
65887         * doc/functions/*.texi: New files.
65888         * doc/functions/google-ranking.txt: New file.
65889         * doc/gnulib.texi (Function Substitutes): New chapter.
65890         (ctime, inet_ntoa): Remove sections.
65891         * doc/ctime.texi: Remove file.
65892         * doc/inet_ntoa.texi: Remove file.
65893         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65894         dependencies.
65895         (%.info): New rule, specifying a --reference-limit.
65896
65897 2007-05-01  Bruno Haible  <bruno@clisp.org>
65898
65899         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65900
65901 2007-05-01  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65904         the portability of 'mkdir' to mingw systems.
65905
65906 2007-05-01  Bruno Haible  <bruno@clisp.org>
65907
65908         * doc/headers/google-ranking.txt: New file.
65909
65910 2007-04-30  Eric Blake  <ebb9@byu.net>
65911
65912         Prefer fseeko to fseek.
65913         * modules/getpass (Depends-on): Add fseeko.
65914         * lib/getpass.c (getpass): Use fseeko, not fseek.
65915
65916 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65917
65918         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65919         assumes the sorting is stable, while most qsort implementations
65920         are not.  Use argument addresses to ensure they never compare as
65921         equal.
65922
65923         * tests/test-argp-2.sh (usage-indent test): Fix output
65924         (func_compare): Restore diff options
65925         * tests/test-argp.c: Restore #include "progname.h"
65926
65927 2007-04-29  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65931         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65933         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65934         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65935         (TESTS, check_PROGRAMS): Add test-snprintf.
65936         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65937         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65938         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65939         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65940         assertions that fail on HP-UX, OSF/1, or IRIX.
65941         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65942
65943 2007-04-29  Bruno Haible  <bruno@clisp.org>
65944
65945         * MODULES.html.sh (posix_functions): Remove 'contents'.
65946
65947 2007-04-29  Karl Berry  <karl@gnu.org>
65948
65949         * config/srclist.txt (gendocs_template_min): new entry.
65950
65951 2007-04-29  Bruno Haible  <bruno@clisp.org>
65952
65953         Work around fpurge bug on BSD systems.
65954         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65955         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65956         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65957         fpurge to rpl_fpurge if the system already has this function.
65958         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65959         the case where the system already has this function. Correct invariants
65960         on BSD systems.
65961         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65962         BSD systems.
65963
65964 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65965
65966         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65967         proposed by Sven Verdoolaege.
65968
65969         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65970         options.
65971         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65972         (usage and help tests): Update
65973
65974 2007-04-29  Bruno Haible  <bruno@clisp.org>
65975
65976         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65977         Print more information in case of failure. Disable a test on BeOS.
65978
65979 2007-04-29  Bruno Haible  <bruno@clisp.org>
65980
65981         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65982         This helps debugging on systems on which no gdb is available.
65983
65984 2007-04-29  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/freading.h: Improve comments.
65987         * lib/fwriting.h: Likewise.
65988         * tests/test-freading.c (main): Don't check freading immediately after
65989         repositioning. Needed for glibc.
65990
65991 2007-04-29  Bruno Haible  <bruno@clisp.org>
65992
65993         * lib/freading.c (freading): Trivial simplification.
65994
65995 2007-04-28  Bruno Haible  <bruno@clisp.org>
65996
65997         * tests/test-fwriting.c (main): Also test the interaction between
65998         fflush and fwriting.
65999         * modules/fwriting-tests (Depends-on): Add fflush.
66000
66001         * tests/test-freading.c (main): Also test the interaction between
66002         fflush and freading.
66003         * modules/freading-tests (Depends-on): Add fflush.
66004
66005 2007-04-28  Bruno Haible  <bruno@clisp.org>
66006
66007         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66008         fseeko and ftello.
66009         Suggested by Eric Blake.
66010
66011 2007-04-28  Jim Meyering  <jim@meyering.net>
66012
66013         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66014         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66015         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66016
66017 2007-04-27  Eric Blake  <ebb9@byu.net>
66018
66019         * doc/headers/assert.texi (assert.h): Document assert module use.
66020
66021 2007-04-27  Bruno Haible  <bruno@clisp.org>
66022
66023         * doc/headers/*.texi: New files.
66024         * doc/gnulib.texi (Header File Substitutes): New chapter.
66025         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66026         dependencies.
66027         (standards.info ,standards.html, standards.dvi): Update dependencies.
66028         (mostlyclean, clean): New targets.
66029
66030 2007-04-27  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66033         * modules/sysexits (Files, Makefile.am): Update.
66034
66035         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66036         * modules/sys_socket (Files, Makefile.am): Update.
66037
66038         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66039         * modules/sys_stat (Files, Makefile.am): Update.
66040
66041 2007-04-27  Eric Blake  <ebb9@byu.net>
66042
66043         * lib/freading.h: Improve comments.
66044         * lib/fwriting.h: Likewise.
66045         * lib/fflush.c: Likewise.
66046
66047         Fix closein for mingw.
66048         * modules/closein-tests: Add tests for closein.
66049         * tests/test-closein.c: New file.
66050         * tests/test-closein.sh: Likewise.
66051         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66052         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66053
66054 2007-04-27  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66057         version is < 6.
66058         * lib/math_.h [__DECC]: Likewise.
66059         * lib/stdio_.h [__DECC]: Likewise.
66060         * lib/stdlib_.h [__DECC]: Likewise.
66061         * lib/string_.h [__DECC]: Likewise.
66062         * lib/time_.h [__DECC]: Likewise.
66063         * lib/wchar_.h [__DECC]: Likewise.
66064         * lib/wctype_.h [__DECC]: Likewise.
66065
66066 2007-04-27  Bruno Haible  <bruno@clisp.org>
66067
66068         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66069
66070 2007-04-27  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/fflush.c: Add comments.
66073         * modules/fpurge-tests (Depends-on): Add fflush.
66074         * modules/freadable-tests (Depends-on): Likewise.
66075         * modules/fwritable-tests (Depends-on): Likewise.
66076
66077 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66078
66079         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66080         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66081         Report by Bruno Haible <bruno@clisp.org>.
66082
66083 2007-04-26  Eric Blake  <ebb9@byu.net>
66084
66085         Fix fflush on mingw.
66086         * modules/fflush (Depends-on): Add freading.
66087         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66088         but unread data.
66089
66090 2007-04-26  Eric Blake  <ebb9@byu.net>
66091         and Bruno Haible  <bruno@clisp.org>
66092
66093         Implement freading and fwriting.
66094         * lib/freading.c: New file.
66095         * lib/freading.h: Likewise.
66096         * m4/freading.m4: Likewise.
66097         * modules/freading: Likewise.
66098         * modules/freading-tests: Likewise.
66099         * tests/test-freading.c: Likewise.
66100         * lib/fwriting.c: New file.
66101         * lib/fwriting.h: Likewise.
66102         * m4/fwriting.m4: Likewise.
66103         * modules/fwriting: Likewise.
66104         * modules/fwriting-tests: Likewise.
66105         * tests/test-fwriting.c: Likewise.
66106         * MODULES.html.sh (File stream based Input/Output): Mention them.
66107
66108 2007-04-26  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66111         'long' when we assume it.
66112         Suggested by Eric Blake.
66113
66114 2007-04-26  Bruno Haible  <bruno@clisp.org>
66115
66116         Ensure fseeko, ftello are declared on glibc systems.
66117         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66118         * modules/fseeko (configure.ac-early): Likewise.
66119         * modules/ftello (configure.ac-early): Likewise.
66120         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66121         AC_FUNC_FSEEKO for this.
66122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66123         (gl_CHECK_FSEEKO): Remove macro.
66124
66125 2007-04-26  Bruno Haible  <bruno@clisp.org>
66126
66127         * tests/test-fflush.c (main): Also check the ftell result after
66128         fflush and fseek/fseeko.
66129         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66130         file descriptor position cache in the stream.
66131         * lib/fseeko.c (rpl_fseeko): Likewise.
66132
66133 2007-04-26  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/fflush-tests (Depends-on): Add fseeko.
66136
66137 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66139
66140         * lib/argz_.h: ensure error_t definition is obtained in same
66141         mechanism system argz.h would have.
66142         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66143         argz facilities are known bad.  Err on the side of caution if
66144         cross-compiling.
66145
66146 2007-04-25  Eric Blake  <ebb9@byu.net>
66147
66148         * lib/fpurge.c (includes): Use stdlib.h for free.
66149         * tests/test-fflush.c (main): Also test fflush-fseeko.
66150
66151 2007-04-25  Bruno Haible  <bruno@clisp.org>
66152
66153         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66154         * lib/fseeko.c: New file.
66155         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66156         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66157         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66158         gl_FUNC_FSEEKO.
66159         (gl_FUNC_FSEEKO): Invoke it.
66160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66161         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66162         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66163
66164 2007-04-25  Bruno Haible  <bruno@clisp.org>
66165
66166         * modules/fflush (Depends-on): Add ftello.
66167
66168 2007-04-25  Bruno Haible  <bruno@clisp.org>
66169
66170         * modules/ftello-tests: New file.
66171         * tests/test-ftello.c: New file.
66172
66173         * modules/ftello: New file.
66174         * m4/ftello.m4: New file.
66175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66176         HAVE_FTELLO.
66177         * lib/stdio_.h (ftello): New declaration.
66178         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66179         HAVE_FTELLO.
66180
66181 2007-04-25  Bruno Haible  <bruno@clisp.org>
66182
66183         * modules/fseeko-tests: New file.
66184         * tests/test-fseeko.c: New file.
66185
66186         * modules/fseeko: New file.
66187         * m4/fseeko.m4: New file.
66188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66189         HAVE_FSEEKO.
66190         * lib/stdio_.h (fseeko): New declaration.
66191         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66192         HAVE_FSEEKO.
66193
66194 2007-04-25  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66197
66198 2007-04-25  Bruno Haible  <bruno@clisp.org>
66199
66200         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66201         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66202         * tests/test-unistd.c: Likewise.
66203         * tests/test-fcntl.c: Likewise.
66204
66205 2007-04-23  Eric Blake  <ebb9@byu.net>
66206
66207         * lib/fflush.c: Fix missing include.
66208         Reported by Bruno Haible.
66209
66210 2007-04-23  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66213         Reported by Eric Blake.
66214
66215 2007-04-23  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66218
66219 2007-04-23  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66222
66223 2007-04-23  Bruno Haible  <bruno@clisp.org>
66224
66225         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66226         Needed on HP-UX 11.
66227
66228 2007-04-16  Eric Blake  <ebb9@byu.net>
66229
66230         Make fflush rely on fpurge.
66231         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66232         open coding all variants.
66233         * modules/fflush (Depends-on): Add fpurge and unistd.
66234         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66235         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66236
66237         Fix --with-tests compilation on cygwin.
66238         * modules/argmatch-tests (Makefile.am): List gnulib library first
66239         in LDADD.
66240         * modules/argp-tests (Makefile.am): Likewise.
66241         * modules/array-list-tests (Makefile.am): Likewise.
66242         * modules/array-oset-tests (Makefile.am): Likewise.
66243         * modules/avltree-list-tests (Makefile.am): Likewise.
66244         * modules/avltree-oset-tests (Makefile.am): Likewise.
66245         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66246         * modules/carray-list-tests (Makefile.am): Likewise.
66247         * modules/dirname-tests (Makefile.am): Likewise.
66248         * modules/frexp-tests (Makefile.am): Likewise.
66249         * modules/isnanl-tests (Makefile.am): Likewise.
66250         * modules/linked-list-tests (Makefile.am): Likewise.
66251         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66252         * modules/lock-tests (Makefile.am): Likewise.
66253         * modules/rbtree-list-tests (Makefile.am): Likewise.
66254         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66255         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66256         * modules/tls-tests (Makefile.am): Likewise.
66257         * modules/tsearch-tests (Makefile.am): Likewise.
66258         * modules/xvasprintf-tests (Makefile.am): Likewise.
66259
66260         Fix fpurge for cygwin.
66261         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66262         value.
66263         * modules/fpurge-tests (Depends-on): Clean up trash.
66264
66265 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66266
66267         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66268
66269         * m4/autobuild.m4: Re-indent.
66270
66271 2007-04-13  Bruno Haible  <bruno@clisp.org>
66272
66273         * modules/fpurge-tests: New file.
66274         * tests/test-fpurge.c: New file.
66275
66276         * modules/fpurge: New file.
66277         * lib/fpurge.h: New file.
66278         * lib/fpurge.c: New file.
66279         * m4/fpurge.m4: New file.
66280
66281 2007-04-13  Bruno Haible  <bruno@clisp.org>
66282
66283         * modules/fbufmode-tests: New file.
66284         * tests/test-fbufmode.c: New file.
66285
66286         * modules/fbufmode: New file.
66287         * lib/fbufmode.h: New file.
66288         * lib/fbufmode.c: New file.
66289         * m4/fbufmode.m4: New file.
66290
66291 2007-04-13  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/fwritable-tests: New file.
66294         * tests/test-fwritable.c: New file.
66295
66296         * modules/fwritable: New file.
66297         * lib/fwritable.h: New file.
66298         * lib/fwritable.c: New file.
66299         * m4/fwritable.m4: New file.
66300
66301 2007-04-13  Bruno Haible  <bruno@clisp.org>
66302
66303         * modules/freadable-tests: New file.
66304         * tests/test-freadable.c: New file.
66305
66306         * modules/freadable: New file.
66307         * lib/freadable.h: New file.
66308         * lib/freadable.c: New file.
66309         * m4/freadable.m4: New file.
66310
66311 2007-04-13  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66314         MOSTLYCLEANFILES.
66315
66316 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66319         gzip bootstrap.conf to avoid dragging in i18n machinery.
66320         (gnulib_tool_option): Use it.
66321
66322 2007-04-13  Bruno Haible  <bruno@clisp.org>
66323
66324         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66325         %F directives.
66326         * tests/test-vasprintf-posix.c (test_function): Likewise.
66327         * tests/test-snprintf-posix.h (test_function): Likewise.
66328         * tests/test-sprintf-posix.h (test_function): Likewise.
66329         * tests/test-fprintf-posix.h (test_function): Likewise.
66330         * tests/test-printf-posix.h (test_function): Likewise.
66331         * tests/test-fprintf-posix.out: Likewise.
66332
66333 2007-04-13  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66336         * modules/tls-tests (configure.ac): Likewise.
66337         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66338
66339 2007-04-13  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/tls.c (glthread_tls_get): Fix return type.
66342         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66343
66344 2007-04-12  Eric Blake  <ebb9@byu.net>
66345
66346         * modules/gettime (Depends-on): Remove gettime.
66347         Reported by Dmitry V. Levin.
66348
66349 2007-04-12  Bruno Haible  <bruno@clisp.org>
66350
66351         * modules/fflush (Include): Mention <stdio.h>.
66352         * modules/strtoimax (Include): Mention <inttypes.h>.
66353         * modules/strtoumax (Include): Likewise.
66354
66355 2007-04-12  Eric Blake  <ebb9@byu.net>
66356
66357         * .cvsignore: New file.
66358         * .gitignore: Likewise.
66359
66360 2007-04-12  Bruno Haible  <bruno@clisp.org>
66361
66362         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66363         not before, since $(LDADD) often contains libgnu.a.
66364         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66365         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66366         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66367         Needed on Cygwin.
66368
66369 2007-04-12  Eric Blake  <ebb9@byu.net>
66370
66371         Work around glibc's failure to flush stdin on fclose.
66372         * lib/closein.c (close_stdin): Flush stdin before closing.
66373
66374         Work around glibc's failure to reset seekable stdin on exit.
66375         * modules/closein: New module.
66376         * lib/closein.c: New file.
66377         * lib/closein.h: Likewise.
66378         * m4/closein.m4: Likewise.
66379         * MODULES.html.sh (File stream based Input/Output): Document it.
66380
66381 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66382
66383         * gnulib-tool: Rename generated 'autobuild' script to
66384         'do-autobuild' in --create-megatestdir output.
66385
66386         * doc/gnulib.texi (Build robot for gnulib): Fix.
66387
66388 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66389
66390         * modules/sysexits (Depends-on): Add absolute-header.
66391
66392 2007-04-12  Eric Blake  <ebb9@byu.net>
66393
66394         No need to preserve errno on success.
66395         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66396         Reported by Bruno Haible.
66397
66398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66399
66400         * MODULES.html.sh (Support for maintaining and releasing
66401         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66402
66403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66404
66405         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66406
66407 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66408
66409         * modules/autobuild: New module.
66410
66411         * m4/autobuild.m4: New file.
66412
66413 2007-04-11  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66416         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66417         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66423         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66424         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66443         Reported by Eric Blake.
66444
66445 2007-04-11  Bruno Haible  <bruno@clisp.org>
66446
66447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66448
66449 2007-04-10  Bruno Haible  <bruno@clisp.org>
66450
66451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66452         for NaN and Infinity. Needed on FreeBSD 6.1.
66453         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66454         regarding results for "%010a" of Infinity and NaN.
66455         * tests/test-vasprintf-posix.c (test_function): Likewise.
66456         * tests/test-snprintf-posix.h (test_function): Likewise.
66457         * tests/test-sprintf-posix.h (test_function): Likewise.
66458         * tests/test-fprintf-posix.h (test_function): Likewise.
66459         * tests/test-printf-posix.h (test_function): Likewise.
66460         * tests/test-fprintf-posix.out: Likewise.
66461
66462 2007-04-10  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/locale-tests: New file.
66465         * tests/test-locale.c: New file.
66466
66467         * modules/locale: New file.
66468         * lib/locale_.h: New file.
66469         * m4/locale_h.m4: New file.
66470
66471 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66472             Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66475         be determined, test for availability of the copysignf, copysign,
66476         copysignl functions.
66477         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66478         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66479         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66480
66481 2007-04-09  Eric Blake  <ebb9@byu.net>
66482
66483         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66484         * modules/stdio (Makefile.am): Support fflush.
66485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66486         * modules/fflush: New file.
66487         * lib/fflush.c: Likewise.
66488         * m4/fflush.m4: Likewise.
66489         * modules/fflush-tests: New test.
66490         * tests/test-fflush.c: Likewise.
66491         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66492
66493 2007-04-06  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66496         (VASNPRINTF): Use signbit for faster determination whether to print a
66497         minus sign.
66498         * modules/vasnprintf (Files): Remove lib/float+.h.
66499         * modules/fprintf-posix (Depends-on): Add signbit.
66500         * modules/snprintf-posix (Depends-on): Likewise.
66501         * modules/sprintf-posix (Depends-on): Likewise.
66502         * modules/vasnprintf-posix (Depends-on): Likewise.
66503         * modules/vasprintf-posix (Depends-on): Likewise.
66504         * modules/vfprintf-posix (Depends-on): Likewise.
66505         * modules/vsnprintf-posix (Depends-on): Likewise.
66506         * modules/vsprintf-posix (Depends-on): Likewise.
66507
66508 2007-04-06  Bruno Haible  <bruno@clisp.org>
66509
66510         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66511         * tests/test-frexpl.c (main): Likewise.
66512         * tests/test-ldexpl.c (main): Likewise.
66513         * modules/frexp-tests (Depends-on): Add signbit.
66514         * modules/frexpl-tests (Depdends-on): Likewise.
66515         * modules/ldexpl-tests (Depdends-on): Likewise.
66516
66517 2007-04-06  Bruno Haible  <bruno@clisp.org>
66518
66519         * modules/signbit-tests: New file.
66520         * tests/test-signbit.c: New file.
66521
66522         * modules/signbit: New file.
66523         * lib/signbitf.c: New file.
66524         * lib/signbitd.c: New file.
66525         * lib/signbitl.c: New file.
66526         * m4/signbit.m4: New file.
66527         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66528         (signbit): New macro.
66529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66530         REPLACE_SIGNBIT.
66531         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66532         REPLACE_FREXPL into math.h.
66533
66534 2007-04-06  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/isnanf-nolibm-tests: New file.
66537         * tests/test-isnanf.c: New file.
66538
66539         * modules/isnanf-nolibm: New file.
66540         * lib/isnanf.h: New file.
66541         * lib/isnanf.c: New file.
66542         * lib/isnan.c: Consider the USE_FLOAT macro.
66543         * m4/isnanf.m4: New file.
66544
66545 2007-04-06  Bruno Haible  <bruno@clisp.org>
66546
66547         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66548         (Link): New section.
66549
66550         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66551
66552 2007-04-06  Bruno Haible  <bruno@clisp.org>
66553
66554         Assume the 'long double' type.
66555         * m4/longdouble.m4: Remove file.
66556         * config/srclist.txt: Don't mention longdouble.m4.
66557         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66558         * lib/float+.h: Likewise.
66559         * lib/frexp.c: Likewise.
66560         * lib/printf-args.h: Likewise.
66561         * lib/printf-args.c: Likewise.
66562         * lib/printf-frexp.c: Likewise.
66563         * lib/printf-parse.c: Likewise.
66564         * lib/vasnprintf.c: Likewise.
66565         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66566         * m4/intl.m4: Likewise.
66567         * m4/isnanl.m4: Likewise.
66568         * m4/printf.m4: Likewise.
66569         * m4/printf-frexpl.m4: Likewise.
66570         * m4/vasnprintf.m4: Likewise.
66571         * modules/allocsa (Files): Remove m4/longdouble.m4.
66572         * modules/gettext (Files): Likewise.
66573         * modules/relocatable-prog-wrapper (Files): Likewise.
66574         * modules/vasnprintf (Files): Likewise.
66575         * modules/isnanl (Files): Likewise.
66576         (Include): Simplify.
66577         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66578         (Include): Simplify.
66579         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66580         (Include): Simplify.
66581         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66582         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66583         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66585         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66587         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66589         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66591         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66593         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66594         * tests/test-isnanl.c: Likewise.
66595         * tests/test-snprintf-posix.h: Likewise.
66596         * tests/test-sprintf-posix.h: Likewise.
66597         * tests/test-vasnprintf-posix.c: Likewise.
66598         * tests/test-vasnprintf-posix2.c: Likewise.
66599         * tests/test-vasprintf-posix.c: Likewise.
66600
66601 2007-04-06  Bruno Haible  <bruno@clisp.org>
66602
66603         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66604         * lib/math_.h [__DECC]: Include the overridden include file through
66605         #include_next, outside the double-inclusion guard.
66606         * lib/stdio_.h [__DECC]: Likewise.
66607         * lib/stdlib_.h [__DECC]: Likewise.
66608         * lib/string_.h [__DECC]: Likewise.
66609         * lib/time_.h [__DECC]: Likewise.
66610         * lib/wchar_.h [__DECC]: Likewise.
66611         * lib/wctype_.h [__DECC]: Likewise.
66612         * lib/inttypes_.h [__DECC]: Likewise.
66613         Reported by Albert Chin <china@thewrittenword.com> in
66614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66615
66616 2007-04-04  Eric Blake  <ebb9@byu.net>
66617
66618         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66619         1.5.x.
66620
66621 2007-04-04  Bruno Haible  <bruno@clisp.org>
66622
66623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66624         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66625
66626 2007-04-04  Bruno Haible  <bruno@clisp.org>
66627
66628         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66629         results for "%010a" of Infinity and NaN.
66630         * tests/test-vasprintf-posix.c (test_function): Likewise.
66631         * tests/test-snprintf-posix.h (test_function): Likewise.
66632         * tests/test-sprintf-posix.h (test_function): Likewise.
66633         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66634         * tests/test-printf-posix.h (test_function): Likewise.
66635         * tests/test-fprintf-posix.out: Update.
66636         Needed for FreeBSD 6.1.
66637
66638 2007-04-04  Bruno Haible  <bruno@clisp.org>
66639
66640         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66641         directly used by the gnulib modules nor by gnulib-tool.
66642
66643 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * DEPENDENCIES: Give overall description of version dependency
66646         desirability.  Use more-typical names for apps.
66647         Add shell, coreutils, diffutils, grep, tar, gzip.
66648
66649 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66650
66651         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66652
66653 2007-04-04  Karl Berry  <karl@gnu.org>
66654
66655         * MODULES.html.sh (func_module): missing '.
66656
66657 2007-04-03  Bruno Haible  <bruno@clisp.org>
66658
66659         * modules/argmatch-tests (Makefile.am): New variable
66660         test_argmatch_LDADD.
66661         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66662         * modules/array-list-tests (Makefile.am): New variable
66663         test_array_list_LDADD.
66664         * modules/array-oset-tests (Makefile.am): New variable
66665         test_array_oset_LDADD.
66666         * modules/avltree-list-tests (Makefile.am): New variable
66667         test_avltree_list_LDADD.
66668         * modules/avltree-oset-tests (Makefile.am): New variable
66669         test_avltree_oset_LDADD.
66670         * modules/avltreehash-list-tests (Makefile.am): New variable
66671         test_avltreehash_list_LDADD.
66672         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66673         test_canonicalize_lgpl_LDADD.
66674         * modules/carray-list-tests (Makefile.am): New variable
66675         test_carray_list_LDADD.
66676         * modules/dirname-tests (Makefile.am): New variable
66677         test_dirname_LDADD.
66678         * modules/linked-list-tests (Makefile.am): New variable
66679         test_linked_list_LDADD.
66680         * modules/linkedhash-list-tests (Makefile.am): New variable
66681         test_linkedhash_list_LDADD.
66682         * modules/rbtree-list-tests (Makefile.am): New variable
66683         test_rbtree_list_LDADD.
66684         * modules/rbtree-oset-tests (Makefile.am): New variable
66685         test_rbtree_oset_LDADD.
66686         * modules/rbtreehash-list-tests (Makefile.am): New variable
66687         test_rbtreehash_list_LDADD.
66688         * modules/xvasprintf-tests (Makefile.am): New variable
66689         test_xvasprintf_LDADD.
66690         Reported by Eric Blake.
66691
66692 2007-04-03  Eric Blake  <ebb9@byu.net>
66693
66694         * DEPENDENCIES: Weaken m4 requirements.
66695
66696 2007-04-03  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66699         * modules/isnanl-tests (configure.ac): Likewise.
66700
66701 2007-04-03  Ben Pfaff  <blp@gnu.org>
66702
66703         * modules/iconv_open: Add $(srcdir)/ to source directory
66704         references in Makefile fragments that call gperf, to fix VPATH
66705         builds.
66706
66707 2007-04-03  Bruno Haible  <bruno@clisp.org>
66708
66709         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66710         * lib/ldexpl.c: Undo last change.
66711
66712 2007-04-03  Bruno Haible  <bruno@clisp.org>
66713
66714         * modules/printf-frexpl (Depends-on): Undo last change.
66715         (Files): Add m4/ldexpl.m4.
66716
66717 2007-04-03  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66720         * modules/isnanl (Link): New section.
66721
66722         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66723         * modules/frexp (Link): New section.
66724
66725         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66726         * modules/frexpl (Link): New section.
66727
66728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66729         * modules/ldexpl (Link): New section.
66730
66731 2007-04-03  Bruno Haible  <bruno@clisp.org>
66732
66733         * modules/TEMPLATE-EXTENDED: New file.
66734         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66735
66736 2007-04-03  Bruno Haible  <bruno@clisp.org>
66737
66738         * DEPENDENCIES: New file.
66739         Suggested by Simon Josefsson.
66740
66741 2007-04-03  Bruno Haible  <bruno@clisp.org>
66742
66743         * doc/gnulib.texi: Escape @.
66744
66745 2007-04-03  James Youngman  <jay@gnu.org>
66746         and Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66749         birthtime on all systems that have birthtime, not just those which
66750         use st_birthtimensec rather than st_birthtim.  Putting zero in
66751         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66752         that the birth time is not available for files on an NFS mount.
66753
66754 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66755
66756         * modules/memxor: Move back from crypto/, suggested by Bruno.
66757         * modules/crypto/hmac-sha1: Fix memxor dependency.
66758
66759         * modules/crypto/gc: Moved from ../.
66760
66761 2007-04-02  Eric Blake  <ebb9@byu.net>
66762
66763         * lib/ldexpl.c (includes): Avoid libm.
66764
66765         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66766
66767 2007-04-02  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66770         on IRIX.
66771
66772 2007-04-02  Bruno Haible  <bruno@clisp.org>
66773
66774         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66775         x86 or x86_64 platforms running MacOS X.
66776         Reported by Ryan Schmidt <@ryandesign.com>.
66777
66778 2007-04-02  Bruno Haible  <bruno@clisp.org>
66779
66780         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66781         i386.
66782
66783 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66784
66785         * modules/crypto/arcfour: Moved from ../.
66786         * modules/crypto/arcfour-tests: Moved from ../.
66787         * modules/crypto/arctwo: Moved from ../.
66788         * modules/crypto/arctwo-tests: Moved from ../.
66789         * modules/crypto/des: Moved from ../.
66790         * modules/crypto/des-tests: Moved from ../.
66791         * modules/crypto/gc-arcfour: Moved from ../.
66792         * modules/crypto/gc-arcfour-tests: Moved from ../.
66793         * modules/crypto/gc-arctwo: Moved from ../.
66794         * modules/crypto/gc-arctwo-tests: Moved from ../.
66795         * modules/crypto/gc-des: Moved from ../.
66796         * modules/crypto/gc-des-tests: Moved from ../.
66797         * modules/crypto/gc-hmac-md5: Moved from ../.
66798         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66799         * modules/crypto/gc-hmac-sha1: Moved from ../.
66800         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66801         * modules/crypto/gc-md2: Moved from ../.
66802         * modules/crypto/gc-md2-tests: Moved from ../.
66803         * modules/crypto/gc-md4: Moved from ../.
66804         * modules/crypto/gc-md4-tests: Moved from ../.
66805         * modules/crypto/gc-md5: Moved from ../.
66806         * modules/crypto/gc-md5-tests: Moved from ../.
66807         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66808         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66809         * modules/crypto/gc-random: Moved from ../.
66810         * modules/crypto/gc-rijndael: Moved from ../.
66811         * modules/crypto/gc-rijndael-tests: Moved from ../.
66812         * modules/crypto/gc-sha1: Moved from ../.
66813         * modules/crypto/gc-sha1-tests: Moved from ../.
66814         * modules/crypto/gc-tests: Moved from ../.
66815         * modules/crypto/hmac-md5: Moved from ../.
66816         * modules/crypto/hmac-md5-tests: Moved from ../.
66817         * modules/crypto/hmac-sha1: Moved from ../.
66818         * modules/crypto/hmac-sha1-tests: Moved from ../.
66819         * modules/crypto/md2: Moved from ../.
66820         * modules/crypto/md2-tests: Moved from ../.
66821         * modules/crypto/md4: Moved from ../.
66822         * modules/crypto/md4-tests: Moved from ../.
66823         * modules/crypto/md5: Moved from ../.
66824         * modules/crypto/md5-tests: Moved from ../.
66825         * modules/crypto/memxor: Moved from ../.
66826         * modules/crypto/rijndael: Moved from ../.
66827         * modules/crypto/rijndael-tests: Moved from ../.
66828         * modules/crypto/sha1: Moved from ../.
66829
66830 2007-03-30  James Youngman  <jay@gnu.org>
66831
66832         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66833         rename() to change the ctime of a file (because ctime is unaffected
66834         by rename on jfs2 on AIX 5.1).
66835         (main): Start by doing cleanup, in case a previous run failed leaving
66836         test files behind.
66837
66838 2007-03-31  Bruno Haible  <bruno@clisp.org>
66839
66840         Support old proprietary implementations of iconv.
66841         * modules/iconv_open: New file.
66842         * lib/iconv_.h: New file.
66843         * m4/iconv_h.m4: New file.
66844         * lib/iconv_open.c: New file.
66845         * lib/iconv_open-aix.gperf: New file.
66846         * lib/iconv_open-hpux.gperf: New file.
66847         * lib/iconv_open-irix.gperf: New file.
66848         * lib/iconv_open-osf.gperf: New file.
66849         * m4/iconv_open.m4: New file.
66850         * modules/linebreak (Depends-on): Add iconv_open.
66851         * modules/striconv (Depends-on): Likewise.
66852         * modules/striconveh (Depends-on): Likewise.
66853         * modules/unicodeio (Depends-on): Likewise.
66854         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66855         (iconv_t)(-1).
66856         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66857         conversion if cd is (iconv_t)(-1).
66858         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66859         is not possible.
66860
66861 2007-03-31  Bruno Haible  <bruno@clisp.org>
66862
66863         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66864         work on Solaris either. Protect also second use of "autodetect_jp".
66865
66866 2007-03-31  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66869         the function is not present.
66870
66871 2007-03-31  Bruno Haible  <bruno@clisp.org>
66872
66873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66874         the function is not present.
66875
66876 2007-03-31  Bruno Haible  <bruno@clisp.org>
66877
66878         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66879         a bug in HP-UX iconv_open().
66880
66881 2007-03-31  Bruno Haible  <bruno@clisp.org>
66882
66883         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66884         (Mathematics <math.h>): New section, add fpieee.
66885         (Input/output <stdio.h>): Add fseterr.
66886         (Mathematics <math.h>): New section, add printf-frexp.
66887         (Container data structures): Add sublist.
66888         (Core language properties): Add fpucw, inline.
66889         (Functions for greatest-width integer types <inttypes.h>): Add
66890         imaxabs, imaxdiv, inttypes.
66891         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66892         isnanl-nolibm, ldexp.
66893         (Mathematics <math.h>): New section, add printf-frexpl.
66894         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66895         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66896         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66897         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66898         (Unicode string functions): Add unistr/u*-mbtoucr.
66899         (Java): Add javacomp-script, javaexec-script.
66900         (C#): Add csharpcomp-script, csharpexec-script.
66901         (Support for building libraries and executables): Add havelib,
66902         relocatable-*.
66903         (Support for maintaining and releasing projects): Renamed from
66904         'Support for maintaining and release projects'. Add announce-gen.
66905
66906 2007-03-31  Bruno Haible  <bruno@clisp.org>
66907
66908         * README: Talk primarily about git.
66909         (git and CVS): Renamed from CVS.
66910         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66911         gnulib is available through git.
66912         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66913
66914 2007-03-30  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66917         * lib/poll_.h: Likewise.
66918         * lib/stat_.h: Likewise.
66919         * lib/sys_time_.h: Likewise.
66920         * lib/sysexit_.h: Likewise.
66921         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66922         * lib/stdbool_.h: Likewise.
66923         * lib/byteswap_.h: Add double-inclusion guard.
66924
66925 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66926
66927         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66928
66929 2007-03-30  Karl Berry  <karl@gnu.org>
66930
66931         * config/srclist-update: double space after USA in the license
66932         substitution, since that's how it's usually (?) written.
66933
66934 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66937         reported by Bruno Haible.
66938
66939 2007-03-29  Bruno Haible  <bruno@clisp.org>
66940
66941         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66942         a bug in AIX iconv().
66943
66944 2007-03-29  Bruno Haible  <bruno@clisp.org>
66945
66946         * modules/ldexpl-tests: New file.
66947         * tests/test-ldexpl.c: New file.
66948
66949 2007-03-29  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/ldexpl.c: Include fpucw.h.
66952         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66953         multiplication.
66954         * modules/ldexpl (Depends-on): Add fpucw.
66955
66956 2007-03-29  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/ldexpl: New file.
66959         * m4/ldexpl.m4: New file.
66960         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66961         set.
66962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66963         REPLACE_LDEXPL.
66964         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66965         REPLACE_LDEXPL.
66966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66967         gl_FUNC_LDEXPL_WORKS.
66968         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66969         * modules/mathl (Files): Remove lib/ldexpl.c.
66970         (Depends-on): Add ldexpl.
66971
66972 2007-03-29  Bruno Haible  <bruno@clisp.org>
66973
66974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66975
66976 2007-03-29  Bruno Haible  <bruno@clisp.org>
66977
66978         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66979         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66980         and possibly also HP-UX.
66981         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66982         work on AIX, IRIX, HP-UX, OSF/1.
66983         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66984         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66985         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66986         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66987         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66988         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66989
66990 2007-03-29  Bruno Haible  <bruno@clisp.org>
66991
66992         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66993
66994 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66997         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66998
66999 2007-03-29  Eric Blake  <ebb9@byu.net>
67000
67001         * lib/acl-internal.h: Remove redundant include.
67002         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67003         Cygwin when a file is locked.
67004
67005 2007-03-29  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67008         file.
67009         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67010
67011 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67014         try to remove a parent directory if the child couldn't be removed
67015         (except for the first rmdir, which could fail because the child
67016         doesn't exist).  Problem reported by Jeff Blaine in
67017         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67018
67019 2007-03-28  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/striconveh.c (utf8conv_carefully): New function.
67022         (mem_cd_iconveh_internal): Invoke it.
67023
67024 2007-03-28  Bruno Haible  <bruno@clisp.org>
67025
67026         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67027         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67028         input.
67029         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67030         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67031         unistr/u8-uctomb.
67032
67033 2007-03-28  Bruno Haible  <bruno@clisp.org>
67034
67035         * modules/unistr/u8-mbtoucr: New file.
67036         * lib/unistr/u8-mbtoucr.c: New file.
67037         * modules/unistr/u16-mbtoucr: New file.
67038         * lib/unistr/u16-mbtoucr.c: New file.
67039         * modules/unistr/u16-mbtoucr: New file.
67040         * lib/unistr/u16-mbtoucr.c: New file.
67041         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67042
67043 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67044             Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67047         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67048         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67049
67050         * m4/stdio_h.m4: Add stubs for vasprintf too.
67051
67052         * modules/stdio: Support vasprintf in sed command.
67053
67054         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67055         vasprintf.h.  Add stdio module indicator.
67056
67057         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67058         vasprintf.h.
67059
67060         * lib/vasprintf.h: File removed.
67061
67062         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67063         * lib/vasprintf.c: Ditto.
67064         * lib/xvasprintf.c: Ditto.
67065         * tests/test-vasprintf-posix.c: Ditto.
67066         * tests/test-vasprintf.c: Ditto.
67067
67068 2007-03-27  Bruno Haible  <bruno@clisp.org>
67069
67070         Make vasnprintf multithread-safe.
67071         * lib/vasnprintf.c (decimal_point_char): New function.
67072         (VASNPRINTF): Use it.
67073         Suggested by Simon Josefsson.
67074
67075 2007-03-27  Eric Blake  <ebb9@byu.net>
67076
67077         Support sub-second birthtime on cygwin.
67078         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67079         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67080         (get_stat_birthtime): Also work with st_birthtim.
67081
67082 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67085         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67086         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67087         (get_stat_birthtime_ns): Simplify compile-time tests.
67088         (get_stat_birthtime): Change the API to look like
67089         get_stat_mtime etc., except return a negative tv_nsec on error.
67090         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67091         Don't check for "spare" fields.
67092         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67093         or for struct stat.st_birthtime, as these tests aren't used.
67094         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67095
67096 2007-03-27  Bruno Haible  <bruno@clisp.org>
67097
67098         * lib/stat-time.h: Include <sys/stat.h>.
67099
67100 2007-03-27  James Youngman  <jay@gnu.org>
67101
67102         * lib/stat-time.h (get_stat_birthtime): New function for
67103           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67104         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67105           and its variants.
67106         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67107         * modules/stat-time-test: New file.
67108         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67109
67110 2007-03-26  Bruno Haible  <bruno@clisp.org>
67111
67112         Better support of signalling NaNs.
67113         * lib/atanl.c: Include isnanl.h.
67114         (atanl): Perform test for NaN at the beginning of the function and
67115         through a call to isnanl.
67116         * lib/cosl.c: Include isnanl.h.
67117         (cosl): Perform test for NaN at the beginning of the function and
67118         through a call to isnanl.
67119         * lib/ldexpl.c: Include isnanl.h.
67120         (ldexpl): Perform test for NaN through a call to isnanl.
67121         * lib/logl.c: Include isnanl.h.
67122         (logl): Perform test for NaN at the beginning of the function and
67123         through a call to isnanl.
67124         * lib/sinl.c: Include isnanl.h.
67125         (sinl): Perform test for NaN at the beginning of the function and
67126         through a call to isnanl.
67127         * lib/sqrtl.c: Include isnanl.h.
67128         (sqrtl): Perform test for NaN at the beginning of the function and
67129         through a call to isnanl.
67130         * lib/tanl.c: Include isnanl.h.
67131         (tanl): Perform test for NaN at the beginning of the function and
67132         through a call to isnanl.
67133         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67134         * modules/mathl (Depends-on): Add isnanl.
67135
67136 2007-03-26  Eric Blake  <ebb9@byu.net>
67137
67138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67139         regression in logic sense of previous patch.
67140
67141 2007-03-26  Bruno Haible  <bruno@clisp.org>
67142
67143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67144         unportable shell command "if ! ...".
67145         Reported by Ralf Wildenhues.
67146
67147 2007-03-25  Bruno Haible  <bruno@clisp.org>
67148
67149         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67150         <sysexits.h> file, and only add EX_CONFIG.
67151         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67152         absolute file name and whether it is sufficient. Substitute also
67153         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67154         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67155         ABSOLUTE_SYSEXITS_H into sysexits.h.
67156
67157 2007-03-25  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67160         hints is NULL.
67161
67162 2007-03-25  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67165         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67166
67167 2007-03-25  Bruno Haible  <bruno@clisp.org>
67168
67169         * lib/vasnprintf.c: Include langinfo.h.
67170         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67171         multithread-safe.
67172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67178         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67180         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67181         Reported by Simon Josefsson.
67182
67183 2007-03-25  Bruno Haible  <bruno@clisp.org>
67184
67185         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67186         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67187         * modules/vasnprintf (Depends-on): Add stdint.
67188
67189 2007-03-25  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/fpieee: New file.
67192         * m4/fpieee.m4: New file.
67193         * modules/isnan-nolibm (Depends-on): Add fpieee.
67194         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67195         * modules/isnanl (Depends-on): Add fpieee.
67196
67197 2007-03-25  Bruno Haible  <bruno@clisp.org>
67198
67199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67200
67201 2007-03-25  Bruno Haible  <bruno@clisp.org>
67202
67203         Avoid test failures on IRIX 6.5.
67204         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67205         (main): Use it.
67206         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67207         macros.
67208         (main): Use them.
67209
67210 2007-03-25  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67213         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67214         exists but doesn't work.
67215         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67216         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67218         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67219         math.h.
67220
67221 2007-03-25  Bruno Haible  <bruno@clisp.org>
67222
67223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67224         returns inf. Needed on IRIX 6.5.
67225
67226 2007-03-25  Bruno Haible  <bruno@clisp.org>
67227
67228         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67229         (main): Use isnanl instead of x != x idiom.
67230         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67231
67232         * tests/test-frexp.c: Include isnan.h.
67233         (main): Use isnan instead of x != x idiom.
67234         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67235
67236 2007-03-25  Bruno Haible  <bruno@clisp.org>
67237
67238         * tests/test-frexp.c (NaN): New function/macro.
67239         (main): Use it instead of 0.0 / 0.0.
67240         * tests/test-isnan.c (NaN): New function/macro.
67241         (main): Use it instead of 0.0 / 0.0.
67242         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67243         (test_function): Use it instead of 0.0 / 0.0.
67244         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67245         (test_function): Use it instead of 0.0 / 0.0.
67246         * tests/test-snprintf-posix.h (NaN): New function/macro.
67247         (test_function): Use it instead of 0.0 / 0.0.
67248         * tests/test-sprintf-posix.h (NaN): New function/macro.
67249         (test_function): Use it instead of 0.0 / 0.0.
67250         * tests/test-fprintf-posix.h (NaN): New function/macro.
67251         (test_function): Use it instead of 0.0 / 0.0.
67252         * tests/test-printf-posix.h (NaN): New function/macro.
67253         (test_function): Use it instead of 0.0 / 0.0.
67254
67255         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67256
67257 2007-03-25  Bruno Haible  <bruno@clisp.org>
67258
67259         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67260
67261 2007-03-25  Bruno Haible  <bruno@clisp.org>
67262
67263         * lib/regexec.c (merge_state_with_log): Make static.
67264
67265 2007-03-25  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/trigl.c (kernel_rem_pio2): Make static.
67268
67269 2007-03-25  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/sincosl.c (sincosl_table): Make static.
67272
67273 2007-03-25  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67276         if the compiler does not support C99.
67277
67278 2007-03-25  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/time (Makefile.am): Ensure all rule action lines start with a
67281         tab.
67282
67283 2007-03-24  Bruno Haible  <bruno@clisp.org>
67284
67285         * modules/tsearch-tests: New file.
67286         * tests/test-tsearch.sh: New file.
67287         * tests/test-tsearch.c: New file, mostly copied from glibc.
67288
67289         * modules/search-tests: New file.
67290         * tests/test-search.c: New file.
67291
67292         * modules/search: New file.
67293         * lib/search_.h: New file, incorporating lib/tsearch.h.
67294         * m4/search_h.m4: New file.
67295         * lib/tsearch.h: Remove file.
67296         * lib/tsearch.c: Include search.h instead of tsearch.h.
67297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67298         HAVE_TSEARCH.
67299         * modules/tsearch (Files): Remove lib/tsearch.h.
67300         (Depends-on): Add search.
67301         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67302         (Include): Change tsearch.h into search.h.
67303
67304 2007-03-24  Bruno Haible  <bruno@clisp.org>
67305
67306         * modules/fpucw: New file.
67307         * lib/fpucw.h: New file.
67308         * lib/frexp.c: Include fpucw.h.
67309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67310         (FUNC): Use them.
67311         * lib/printf-frexp.c: Include fpucw.h.
67312         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67313         (FUNC): Use them.
67314         * lib/vasnprintf.c: Include fpucw.h.
67315         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67316         'long double' calculations.
67317         * tests/test-frexpl.c: Include fpucw.h.
67318         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67319         * tests/test-printf-frexpl.c: Include fpucw.h.
67320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67321         * modules/frexpl (Depends-on): Add fpucw.
67322         * modules/printf-frexpl (Depends-on): Likewise.
67323         * modules/fprintf-posix (Depends-on): Likewise.
67324         * modules/snprintf-posix (Depends-on): Likewise.
67325         * modules/sprintf-posix (Depends-on): Likewise.
67326         * modules/vasnprintf-posix (Depends-on): Likewise.
67327         * modules/vasprintf-posix (Depends-on): Likewise.
67328         * modules/vfprintf-posix (Depends-on): Likewise.
67329         * modules/vsnprintf-posix (Depends-on): Likewise.
67330         * modules/vsprintf-posix (Depends-on): Likewise.
67331         * modules/frexpl-tests (Depends-on): Likewise.
67332         * modules/printf-frexpl-tests (Depends-on): Likewise.
67333
67334 2007-03-24  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/float+.h: New file.
67337         * lib/isnan.c: Include float+.h.
67338         (SIZE): New macro.
67339         (FUNC): Compare only SIZE bytes of the value.
67340         * lib/vasnprintf.c: Include float+.h.
67341         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67342         SIZEOF_LDBL or SIZEOF_DBL bytes.
67343         * modules/isnan-nolibm (Files): Add lib/float+.h.
67344         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67345         * modules/isnanl (Files): Add lib/float+.h.
67346         * modules/vasnprintf (Files): Add lib/float+.h.
67347
67348 2007-03-24  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67351         include isnanl-nolibm.h.
67352
67353 2007-03-24  Bruno Haible  <bruno@clisp.org>
67354
67355         * tests/test-read-file.c (main): Don't produce spurious output for
67356         expected situations. Make the test fail if it encountered unexpected
67357         results.
67358
67359 2007-03-24  Bruno Haible  <bruno@clisp.org>
67360
67361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67362         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67363
67364 2007-03-24  Bruno Haible  <bruno@clisp.org>
67365
67366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67367
67368 2007-03-24  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67371         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67372
67373         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67374         * modules/utf8-ucs4: Turn into a symbolic link to module
67375         unistr/u8-mbtouc.
67376
67377         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67378         utf8-ucs4-unsafe.
67379         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67380         unistr/u8-mbtouc-unsafe.
67381
67382         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67383         * modules/utf16-ucs4: Turn into a symbolic link to module
67384         unistr/u16-mbtouc.
67385
67386         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67387         utf16-ucs4-unsafe.
67388         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67389         unistr/u16-mbtouc-unsafe.
67390
67391         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67392         * modules/ucs4-utf8: Turn into a symbolic link to module
67393         unistr/u8-ubtomb.
67394
67395         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67396         * modules/ucs4-utf16: Turn into a symbolic link to module
67397         unistr/u16-ubtomb.
67398
67399 2007-03-24  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67402         Enable the function only if HAVE_INLINE.
67403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67404         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67405         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67406         Enable the function only if HAVE_INLINE.
67407         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67408         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67409         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67410         Enable the function only if HAVE_INLINE.
67411         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67412         Enable the function only if HAVE_INLINE.
67413         * modules/utf8-ucs4: Update.
67414         * modules/utf8-ucs4-unsafe: Update.
67415         * modules/utf16-ucs4: Update.
67416         * modules/utf16-ucs4-unsafe: Update.
67417         * modules/ucs4-utf8: Update.
67418         * modules/ucs4-utf16: Update.
67419
67420 2007-03-24  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/utf8-ucs4.h: Remove file.
67423         * lib/utf8-ucs4-unsafe.h: Remove file.
67424         * lib/utf16-ucs4.h: Remove file.
67425         * lib/utf16-ucs4-unsafe.h: Remove file.
67426         * lib/ucs4-utf8.h: Remove file.
67427         * lib/ucs4-utf16.h: Remove file.
67428         * lib/unistr.h: Include their previous contents.
67429         * m4/utf-ucs4.m4: Remove file.
67430         * m4/ucs4-utf.m4: Remove file.
67431         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67432         (Depends-on): Add unistr/base.
67433         (configure.ac): Remove gl_UTF_UCS4.
67434         (Makefile.am): Update.
67435         (Include): Change to unistr.h.
67436         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67437         (Depends-on): Add unistr/base.
67438         (configure.ac): Remove gl_UTF_UCS4.
67439         (Makefile.am): Update.
67440         (Include): Change to unistr.h.
67441         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67442         (Depends-on): Add unistr/base.
67443         (configure.ac): Remove gl_UTF_UCS4.
67444         (Makefile.am): Update.
67445         (Include): Change to unistr.h.
67446         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67447         (Depends-on): Add unistr/base.
67448         (configure.ac): Remove gl_UTF_UCS4.
67449         (Makefile.am): Update.
67450         (Include): Change to unistr.h.
67451         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67452         (Depends-on): Add unistr/base.
67453         (configure.ac): Remove gl_UCS4_UTF.
67454         (Makefile.am): Update.
67455         (Include): Change to unistr.h.
67456         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67457         (Depends-on): Add unistr/base.
67458         (configure.ac): Remove gl_UCS4_UTF.
67459         (Makefile.am): Update.
67460         (Include): Change to unistr.h.
67461         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67462         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67463         utf8-ucs4-unsafe.h.
67464         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67465         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67466         utf16-ucs4-unsafe.h.
67467         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67468         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67469         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67470         * lib/unistr/u8-strchr.c: Likewise.
67471         * lib/unistr/u8-strrchr.c: Likewise.
67472         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67473         * lib/unistr/u16-strchr.c: Likewise.
67474         * lib/unistr/u16-strrchr.c: Likewise.
67475         * lib/striconveh.c: Update.
67476         * lib/linebreak.c: Update.
67477
67478 2007-03-24  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67481         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67482
67483 2007-03-22  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67486
67487 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * MODULES.html.sh (File system functions): New module write-any-file.
67490         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67491         * m4/write-any-file.m4: New files.
67492
67493 2007-03-23  Eric Blake  <ebb9@byu.net>
67494
67495         * gnulib-tool: Rearrange space-tab sequences, since some editors
67496         like to eat them.
67497
67498 2007-03-23  Eric Blake  <ebb9@byu.net>
67499
67500         * lib/version-etc.c (version_etc_va): Update license wording to
67501         be more concise.  Recommended by Richard Stallman.
67502
67503 2007-03-22  Bruno Haible  <bruno@clisp.org>
67504
67505         * lib/poll.c (MSG_PEEK): New fallback definition.
67506
67507 2007-03-22  Bruno Haible  <bruno@clisp.org>
67508
67509         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67510         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67511         (main): Update.
67512         Fixes a compilation error on BeOS.
67513
67514 2007-03-22  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/frexpl-tests: New file.
67517         * tests/test-frexpl.c: New file.
67518
67519         * modules/frexpl: New file.
67520         * m4/frexpl.m4: New file.
67521         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67522         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67524         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67525         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67527
67528 2007-03-22  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/frexpl.c: Share code with lib/frexp.c.
67531         * modules/mathl (Files): Add lib/frexp.c.
67532         (Depends-on): Add isnanl-nolibm.
67533
67534 2007-03-22  Bruno Haible  <bruno@clisp.org>
67535
67536         * modules/printf-frexp (Files): Add m4/frexp.m4.
67537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67538         only if the found frexp function actually works.
67539
67540 2007-03-22  Bruno Haible  <bruno@clisp.org>
67541
67542         * lib/frexp.c: Remove older implementation that uses divisions.
67543
67544 2007-03-21  Bruno Haible  <bruno@clisp.org>
67545
67546         * modules/frexp-tests: New file.
67547         * tests/test-frexp.c: New file.
67548
67549         * modules/frexp: New file.
67550         * lib/frexp.c: New file.
67551         * m4/frexp.m4: New file.
67552         * lib/math_.h (frexp): New declaration.
67553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67554         REPLACE_FREXP.
67555         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67556
67557 2007-03-21  Bruno Haible  <bruno@clisp.org>
67558
67559         * modules/isnanl-tests: New file.
67560         * tests/test-isnanl.c: New file.
67561
67562         * modules/isnanl: New file.
67563         * lib/isnanl.h: New file.
67564         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67565         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67566         gl_FUNC_ISNANL_WORKS.
67567         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67568         New macros.
67569
67570 2007-03-21  Bruno Haible  <bruno@clisp.org>
67571
67572         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67573         lib/isnanl.h.
67574         (Include): Update.
67575         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67576         * lib/vasnprintf.c: Update.
67577         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67578         tests/test-isnanl.h, remove tests/test-isnanl.c.
67579         (Makefile.am): Update.
67580         * tests/test-isnanl-nolibm.c: New file.
67581         * tests/test-isnanl.h: New file.
67582         * tests/test-isnanl.c: Remove file.
67583
67584 2007-03-21  Jim Meyering  <jim@meyering.net>
67585
67586         When trying to open ".", treat ESTALE like EACCES.
67587         * lib/savewd.c (savewd_save): Resort to forking not just upon
67588         failure with EACCES, but also when errno is ESTALE.
67589
67590 2007-03-20  Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67593         Needed on AIX 5.1. Reported by Matthew Woehlke.
67594
67595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         Suggestions by Bruno Haible:
67598         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67599         our own.
67600         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67601         * modules/acl (Depends-on): Add gettext.
67602
67603 2007-03-19  Bruno Haible  <bruno@clisp.org>
67604
67605         * modules/iconvme: Remove file.
67606         * lib/iconvme.h: Remove file.
67607         * lib/iconvme.c: Remove file.
67608         * m4/iconvme.m4: Remove file.
67609
67610 2007-03-19  Bruno Haible  <bruno@clisp.org>
67611
67612         * doc/relocatable-maint.texi: Break long shell script line.
67613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67614
67615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67618         handle file_has_acl.
67619         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67620         * lib/acl.c: Move header inclusions and related macro defns into
67621         lib/acl-internal.h.
67622         (S_ISLNK): Remove defn, since that's now done for us.
67623         (file_has_acl): Move to lib/file-has-acl.c.
67624         Call acl_trivial if available.  This is the crucial part of the fix.
67625         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67626         shared within the library.  Rewrite a bit, partly to make it compatible
67627         with the GNU coding style.
67628         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67629         Remove unnecessary double-quotes.
67630         Don't test for acl_to_text; the build will catch that.
67631         Replace acl_entries if it doesn't exist and it is needed.
67632         Check for -lsec and acl_trivial (as used on Solaris 10).
67633         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67634         lib/file-has-acl.c.
67635         (Depends-on): Add sys_stat, for S_ISLNK.
67636
67637 2007-03-19  Ben Pfaff  <blp@gnu.org>
67638
67639         * doc/gnulib.texi: Fix typos.
67640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67641
67642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67645         If size is zero here, buf must be zero.
67646
67647 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67648
67649         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67650         <bruno@clisp.org>.
67651
67652 2007-03-18  Bruno Haible  <bruno@clisp.org>
67653
67654         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67655         Suggested by Eric Blake.
67656
67657 2007-03-18  Ben Pfaff  <blp@gnu.org>
67658
67659         * doc/relocatable.texi: Recommend using as prefix a directory
67660         that does not exist and will never be created.  Based on
67661         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67662         and others.
67663
67664 2007-03-17  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/fchownat.c: Include lchown.h.
67667
67668 2007-03-17  Bruno Haible  <bruno@clisp.org>
67669
67670         Fix endless loop when the given allocated size was > INT_MAX.
67671         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67672         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67673         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67674         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67675         * lib/sprintf.c (sprintf): Likewise.
67676
67677 2007-03-17  Bruno Haible  <bruno@clisp.org>
67678
67679         * tests/test-argp-2.sh (func_compare): Output a context diff.
67680
67681 2007-03-17  Bruno Haible  <bruno@clisp.org>
67682
67683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67684         locale's decimal-point character.
67685
67686 2007-03-17  Bruno Haible  <bruno@clisp.org>
67687
67688         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67689         before comparing it. Needed because on some platforms (e.g. x86) a
67690         'long double' occupies less bytes than sizeof (long double).
67691
67692 2007-03-17  Bruno Haible  <bruno@clisp.org>
67693
67694         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67695         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67696         * tests/test-getaddrinfo.c (simple): Likewise.
67697         * tests/test-read-file.c (main): Likewise.
67698
67699 2007-03-17  Bruno Haible  <bruno@clisp.org>
67700
67701         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67702
67703 2007-03-17  Bruno Haible  <bruno@clisp.org>
67704
67705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67706         unused variable.
67707
67708 2007-03-17  Bruno Haible  <bruno@clisp.org>
67709
67710         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67711         * tests/test-c-strncasecmp.c: Likewise.
67712
67713 2007-03-17  Bruno Haible  <bruno@clisp.org>
67714
67715         * modules/stdlib (Depends-on): Add unistd.
67716         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67717         Needed for MacOS X 10.3.
67718
67719 2007-03-17  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67722
67723 2007-03-17  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67726
67727 2007-03-17  Bruno Haible  <bruno@clisp.org>
67728
67729         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67730         to reflect files copied from gnulib (with or without modifications).
67731         Suggested by Jim Meyering.
67732
67733 2007-03-17  Eric Blake  <ebb9@byu.net>
67734
67735         * NEWS: Document stdlib change from 2007-02-18.
67736
67737 2007-03-17  Jim Meyering  <jim@meyering.net>
67738
67739         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67740         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67741         someone uses a name containing shell meta-characters.
67742         Reported by Alfred M. Szmidt.
67743
67744         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67745
67746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67747
67748         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67749         and copy gettext configuration files only if configure.ac contains
67750         a use of AM_GNU_GETTEXT_VERSION.
67751
67752 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67753
67754         * build-aux/bootstrap (gnulib_name): New variable.
67755         (gnulib_tool_options): Use it.
67756
67757 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67758
67759         * tests/test-des.c: Use new namespace.
67760
67761 2007-03-15  Bruno Haible  <bruno@clisp.org>
67762
67763         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67764         Reported by James Youngman <jay@gnu.org>.
67765
67766 2007-03-15  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67769         declared prototype. Needed with cc on OSF/1 5.1.
67770
67771 2007-03-15  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67774         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67775         (struct gl_list_implementation): Add dispose_fn argument to the
67776         'create_empty', 'create' methods.
67777         (struct gl_list_impl_base): Add field 'dispose_fn'.
67778         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67779         argument.
67780         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67781         dispose_fn argument.
67782         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67783         dispose_fn on the dropped values.
67784         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67785         dispose_fn argument.
67786         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67787         dropped values.
67788         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67789         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67790         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67792         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67793         argument.
67794         (gl_tree_list_free): Call dispose_fn on the dropped values.
67795         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67796         the dropped values.
67797         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67798         Add dispose_fn argument.
67799         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67800         Call dispose_fn on the dropped values.
67801         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67802         Add dispose_fn argument.
67803         (gl_sublist_create): Initialize the 'dispose_fn' field.
67804         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67805         * tests/test-array_list.c (main): Update.
67806         * tests/test-carray_list.c (main): Update.
67807         * tests/test-avltree_list.c (main): Update.
67808         * tests/test-rbtree_list.c (main): Update.
67809         * tests/test-avltreehash_list.c (main): Update.
67810         * tests/test-rbtreehash_list.c (main): Update.
67811         * tests/test-linked_list.c (main): Update.
67812         * tests/test-linkedhash_list.c (main): Update.
67813         * tests/test-array_oset.c (main): Update.
67814
67815 2007-03-15  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67818         (gl_oset_create_empty): Add dispose_fn argument.
67819         (struct gl_oset_implementation): Add dispose_fn argument to
67820         'create_empty' method.
67821         (struct gl_oset_impl_base): Add dispose_fn field.
67822         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67823         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67824         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67825         values.
67826         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67827         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67828         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67829         dropped value.
67830         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67831         dropped value.
67832         * tests/test-array_oset.c (main): Update.
67833         * tests/test-avltree_oset.c (main): Update.
67834         * tests/test-rbtree_oset.c (main): Update.
67835         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67836
67837 2007-03-13  Bruno Haible  <bruno@clisp.org>
67838
67839         * tests/test-stdbool.c (i): Update after last patch.
67840
67841 2007-03-12  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67844         the iswprint macro. Needed on Solaris 2.5.1.
67845
67846 2007-03-12  Bruno Haible  <bruno@clisp.org>
67847
67848         * tests/test-printf-frexp.c (main): Declare x as volatile.
67849
67850 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67851
67852         * doc/gnulib.texi (Build robot for gnulib): New section.
67853
67854 2007-03-12  Jim Meyering  <jim@meyering.net>
67855
67856         * build-aux/bootstrap: New file.
67857         * build-aux/bootstrap.conf: New file, from coreutils.
67858
67859 2007-03-11  Bruno Haible  <bruno@clisp.org>
67860
67861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67862
67863 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67864
67865         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67866         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67867         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67868
67869 2007-03-11  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67872         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67873
67874 2007-03-11  Bruno Haible  <bruno@clisp.org>
67875
67876         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67877         formula. Needed for SunPRO C 5.0.
67878
67879 2007-03-11  Bruno Haible  <bruno@clisp.org>
67880
67881         * modules/long-options (Depends-on): Add getopt.
67882
67883 2007-03-11  Bruno Haible  <bruno@clisp.org>
67884
67885         * modules/modechange (Depends-on): Add stdbool.
67886
67887 2007-03-11  Bruno Haible  <bruno@clisp.org>
67888
67889         * modules/i-ring (Depends-on): Add stdbool.
67890
67891 2007-03-11  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/gc-des (Depends-on): Add stdbool.
67894
67895 2007-03-11  Bruno Haible  <bruno@clisp.org>
67896
67897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67898
67899 2007-03-11  Bruno Haible  <bruno@clisp.org>
67900
67901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67902
67903 2007-03-11  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67906
67907 2007-03-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/vasnprintf.c (sprintf): Undefine.
67910
67911 2007-03-11  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67914         initializers in SunPRO C and Compaq C compilers.
67915
67916 2007-03-11  Bruno Haible  <bruno@clisp.org>
67917
67918         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67919         decrementing code ANSI C compliant.
67920
67921 2007-03-11  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67924         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67925
67926 2007-03-11  Bruno Haible  <bruno@clisp.org>
67927
67928         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67929         <stdbool.h> substitute doesn't pass.
67930
67931 2007-03-11  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67934
67935 2007-03-11  Bruno Haible  <bruno@clisp.org>
67936
67937         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67938         script, for submission to autobuild.josefsson.org.
67939
67940 2007-03-10  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/canonicalize-lgpl-tests: New file.
67943         * tests/test-canonicalize-lgpl.sh: New file.
67944         * tests/test-canonicalize-lgpl.c: New file.
67945
67946         * modules/c-strcase-tests: New file.
67947         * tests/test-c-strcase.sh: New file.
67948         * tests/test-c-strcasecmp.c: New file.
67949         * tests/test-c-strncasecmp.c: New file.
67950
67951         * modules/atexit-tests: New file.
67952         * tests/test-atexit.sh: New file.
67953         * tests/test-atexit.c: New file.
67954
67955 2007-03-10  Bruno Haible  <bruno@clisp.org>
67956
67957         * tests/test-binary-io.sh: Use temporary filenames that are not so
67958         likely to clash with those of other tests (in a parallel make).
67959         * tests/test-binary-io.c: Likewise.
67960
67961 2007-03-10  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67964         fallback; use #error instead.
67965         Suggested by Simon Josefsson.
67966
67967 2007-03-10  Bruno Haible  <bruno@clisp.org>
67968
67969         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67970         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67971         first and the last.
67972
67973 2007-03-10  Bruno Haible  <bruno@clisp.org>
67974
67975         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67976
67977 2007-03-10  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67980         "make distcheck".
67981         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67982         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67983         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67984
67985 2007-03-10  Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67988         variable.
67989         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67990         variable.
67991
67992 2007-03-09  Eric Blake  <ebb9@byu.net>
67993         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67994
67995         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67996         types are not being provided by gnulib.
67997         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67998         types are supported.
67999
68000 2007-03-10  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/stdio_.h (__attribute__): New macro.
68003         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68004         vsprintf): Specify __attribute__ __format__ for GCC.
68005         Suggested by Eric Blake.
68006
68007 2007-03-09  Bruno Haible  <bruno@clisp.org>
68008
68009         * modules/printf-posix-tests: New file.
68010         * tests/test-printf-posix.sh: New file.
68011         * tests/test-printf-posix.c: New file.
68012
68013         * modules/printf-posix: New file.
68014         * lib/printf.c: New file.
68015         * m4/printf-posix-rpl.m4: New file.
68016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68017         REPLACE_PRINTF.
68018         * lib/stdio_.h (printf): New declaration.
68019         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68020         ____strfmon____): New macros.
68021         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68022         REPLACE_PRINTF.
68023
68024 2007-03-09  Bruno Haible  <bruno@clisp.org>
68025
68026         * tests/test-vasnprintf-posix2.sh: New file.
68027         * tests/test-vasnprintf-posix2.c: New file.
68028         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68030         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68031
68032         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68033         a locale dependent decimal point, rather than always '.'.
68034
68035 2007-03-09  Eric Blake  <ebb9@byu.net>
68036
68037         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68038         spite of platforms like Tandem/NSK that define it to -1.
68039
68040 2007-03-08  Bruno Haible  <bruno@clisp.org>
68041
68042         * modules/vprintf-posix-tests: New file.
68043         * tests/test-vprintf-posix.sh: New file.
68044         * tests/test-vprintf-posix.c: New file.
68045         * tests/test-printf-posix.h: New file.
68046
68047         * modules/vprintf-posix: New file.
68048         * lib/vprintf.c: New file.
68049         * m4/vprintf-posix.m4: New file.
68050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68051         REPLACE_VPRINTF.
68052         * lib/stdio_.h (vprintf): New declaration.
68053         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68054         REPLACE_VPRINTF.
68055
68056 2007-03-08  Bruno Haible  <bruno@clisp.org>
68057
68058         * modules/fprintf-posix-tests: New file.
68059         * tests/test-fprintf-posix.sh: New file.
68060         * tests/test-fprintf-posix.c: New file.
68061
68062         * modules/fprintf-posix: New file.
68063         * lib/fprintf.c: New file.
68064         * m4/fprintf-posix.m4: New file.
68065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68066         REPLACE_FPRINTF.
68067         * lib/stdio_.h (fprintf): New declaration.
68068         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68069         REPLACE_FPRINTF.
68070
68071 2007-03-08  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/vfprintf-posix-tests: New file.
68074         * tests/test-vfprintf-posix.sh: New file.
68075         * tests/test-vfprintf-posix.c: New file.
68076         * tests/test-fprintf-posix.h: New file.
68077         * tests/test-fprintf-posix.out: New file.
68078
68079         * modules/vfprintf-posix: New file.
68080         * lib/vfprintf.c: New file.
68081         * m4/vfprintf-posix.m4: New file.
68082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68083         REPLACE_VFPRINTF.
68084         * lib/stdio_.h (vfprintf): New declaration.
68085         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68086         REPLACE_VFPRINTF.
68087
68088 2007-03-08  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68091
68092 2007-03-08  Bruno Haible  <bruno@clisp.org>
68093
68094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68095         instead of 'expr' invocations.
68096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68101         Suggested by Paul Eggert.
68102
68103 2007-03-08  Bruno Haible  <bruno@clisp.org>
68104
68105         * modules/fseterr-tests: New file.
68106         * tests/test-fseterr.c: New file.
68107
68108         * modules/fseterr: New file.
68109         * lib/fseterr.h: New file.
68110         * lib/fseterr.c: New file.
68111
68112 2007-03-08  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68115         * lib/getopt_.h: Likewise.
68116         * lib/mbswidth.h: Likewise.
68117         * lib/setenv.h: Likewise.
68118         * lib/vasnprintf.h: Likewise.
68119         * lib/vasprintf.h: Likewise.
68120         * lib/verror.h: Likewise.
68121         * lib/xsetenv.h: Likewise.
68122         * lib/xvasprintf.h: Likewise.
68123
68124 2007-03-08  Jim Meyering  <jim@meyering.net>
68125
68126         * users.txt: Add parted.
68127
68128         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68129
68130 2007-03-07  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/printf.m4: Make the shell script snippets copy&pastable.
68133
68134 2007-03-02  Bruno Haible  <bruno@clisp.org>
68135
68136         * lib/netinet_in_.h: New file.
68137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68138         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68139         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68140         (Depends-on): Add absolute-header.
68141         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68142         into netinet/in.h.
68143
68144 2007-03-03  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/sys_select_.h: New file.
68147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68148         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68149         * modules/sys_select (Files): Add lib/sys_select_.h.
68150         (Depends-on): Add absolute-header.
68151         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68152         into sys/select.h.
68153
68154 2007-03-02  Bruno Haible  <bruno@clisp.org>
68155
68156         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68157         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68158         values.
68159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68160         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68161         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68162         * modules/sys_socket (Depends-on): Add absolute-header.
68163         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68164         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68165         (Include): Remove requirement of inclusion of <sys/types.h>.
68166
68167 2007-03-02  Bruno Haible  <bruno@clisp.org>
68168
68169         * lib/byteswap_.h (bswap_32): Fix formula.
68170
68171 2007-03-06  Bruno Haible  <bruno@clisp.org>
68172
68173         * modules/sprintf-posix-tests: New file.
68174         * tests/test-sprintf-posix.c: New file.
68175
68176         * modules/sprintf-posix: New file.
68177         * lib/sprintf.c: New file.
68178         * m4/sprintf-posix.m4: New file.
68179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68180         REPLACE_SPRINTF.
68181         * lib/stdio_.h (sprintf): New declaration.
68182         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68183         REPLACE_SPRINTF.
68184
68185 2007-03-06  Bruno Haible  <bruno@clisp.org>
68186
68187         * modules/vsprintf-posix-tests: New file.
68188         * tests/test-vsprintf-posix.c: New file.
68189         * tests/test-sprintf-posix.h: New file.
68190
68191         * modules/vsprintf-posix: New file.
68192         * lib/vsprintf.c: New file.
68193         * m4/vsprintf-posix.m4: New file.
68194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68195         REPLACE_VSPRINTF.
68196         * lib/stdio_.h (vsprintf): New declaration.
68197         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68198         REPLACE_VSPRINTF.
68199
68200 2007-03-06  Bruno Haible  <bruno@clisp.org>
68201
68202         * modules/vsnprintf (Depend-on): Remove minmax.
68203
68204 2007-03-06  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/snprintf-posix-tests: New file.
68207         * tests/test-snprintf-posix.c: New file.
68208
68209         * modules/snprintf-posix: New file.
68210         * m4/snprintf-posix.m4: New file.
68211         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68212         gl_FUNC_SNPRINTF.
68213         (gl_FUNC_SNPRINTF): Invoke it.
68214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68215         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68216         is set.
68217         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68218
68219 2007-03-06  Bruno Haible  <bruno@clisp.org>
68220
68221         * modules/vsnprintf-posix-tests: New file.
68222         * tests/test-vsnprintf-posix.c: New file.
68223         * tests/test-snprintf-posix.h: New file.
68224
68225         * modules/vsnprintf-posix: New file.
68226         * m4/vsnprintf-posix.m4: New file.
68227         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68228         gl_FUNC_VSNPRINTF.
68229         (gl_FUNC_VSNPRINTF): Invoke it.
68230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68231         * lib/stdio_.h (vsnprintf): Define as a replacement if
68232         REPLACE_VSNPRINTF is set.
68233         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68234
68235 2007-03-06  Bruno Haible  <bruno@clisp.org>
68236
68237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68239
68240 2007-03-06  Bruno Haible  <bruno@clisp.org>
68241
68242         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68243         (asinl): Declare also if HAVE_DECL_ASINL is set.
68244         (atanl): Declare also if HAVE_DECL_ATANL is set.
68245         (ceill): Declare also if HAVE_DECL_CEILL is set.
68246         (cosl): Declare also if HAVE_DECL_COSL is set.
68247         (expl): Declare also if HAVE_DECL_EXPL is set.
68248         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68249         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68250         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68251         (logl): Declare also if HAVE_DECL_LOGL is set.
68252         (sinl): Declare also if HAVE_DECL_SINL is set.
68253         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68254         (tanl): Declare also if HAVE_DECL_TANL is set.
68255         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68258         declaration of frexpl, ldexpl.
68259         * modules/printf-frexpl (Depends-on): Add math.
68260         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68261
68262 2007-03-05  Bruno Haible  <bruno@clisp.org>
68263
68264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68265         frexpl and ldexpl are declared.
68266         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68267
68268 2007-03-05  Bruno Haible  <bruno@clisp.org>
68269
68270         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68271         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68272
68273 2007-03-05  Bruno Haible  <bruno@clisp.org>
68274
68275         * lib/stdio_.h: Include <stddef.h>.
68276
68277 2007-03-05  Bruno Haible  <bruno@clisp.org>
68278
68279         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68280
68281 2007-03-05  Bruno Haible  <bruno@clisp.org>
68282
68283         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68284         NetBSD 4, from Ralf Wildenhues.
68285
68286 2007-03-04  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/vasprintf.h: Update #if logic for the case when the functions
68289         exist but are overridden.
68290
68291 2007-03-04  Bruno Haible  <bruno@clisp.org>
68292
68293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68294         implementations: glibc-2.4 and MacOS X 10.3.
68295         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68296         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68297         * tests/test-vasprintf-posix.c (test_function): Likewise.
68298
68299 2007-03-04  Bruno Haible  <bruno@clisp.org>
68300
68301         * modules/vasprintf-posix-tests: New file.
68302         * tests/test-vasprintf-posix.c: New file.
68303
68304         * modules/vasprintf-posix: New file.
68305         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68306         defined.
68307         * m4/vasprintf-posix.m4: New file.
68308         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68309         gl_FUNC_VASPRINTF.
68310         (gl_FUNC_VASPRINTF): Invoke it.
68311         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68312         here.
68313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68314
68315 2007-03-04  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68318         REPLACE_GETTIMEOFDAY.
68319         * modules/sys_time (Makefile.am): Likewise.
68320         * m4/sys_time_h.m4: Likewise.
68321         * m4/gettimeofday.m4: Likewise.
68322
68323 2007-03-04  Bruno Haible  <bruno@clisp.org>
68324
68325         * modules/vasnprintf-posix-tests: New file.
68326         * tests/test-vasnprintf-posix.c: New file.
68327
68328         * modules/vasnprintf-posix: New file.
68329         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68330         printf-frexpl.h.
68331         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68332         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68333         REPLACE_VASNPRINTF is defined.
68334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68335         gl_FUNC_VASNPRINTF.
68336         (gl_FUNC_VASNPRINTF): Invoke it.
68337         * m4/vasnprintf-posix.m4: New file.
68338         * m4/printf.m4: New file.
68339
68340 2007-03-04  Bruno Haible  <bruno@clisp.org>
68341
68342         Compile progreloc.c only if --enable-relocatable is specified.
68343         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68344         if --enable-relocatable was specified.
68345         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68346         lib_SOURCES.
68347
68348 2007-03-04  Jim Meyering  <jim@meyering.net>
68349
68350         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68351         Use it consistently, rather than enumerating errno constants.
68352
68353 2007-03-04  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/xvasprintf-tests: New file.
68356         * tests/test-xvasprintf.c: New file.
68357
68358         * modules/vasprintf-tests: New file.
68359         * tests/test-vasprintf.c: New file.
68360
68361         * modules/vasnprintf-tests: New file.
68362         * tests/test-vasnprintf.c: New file.
68363
68364         * modules/vsnprintf-tests: New file.
68365         * tests/test-vsnprintf.c: New file.
68366
68367         * modules/snprintf-tests: New file.
68368         * tests/test-snprintf.c: New file.
68369
68370 2007-03-04  Bruno Haible  <bruno@clisp.org>
68371
68372         Compile relocatable.c only if --enable-relocatable is specified.
68373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68374         gl_RELOCATABLE_LIBRARY.
68375         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68376         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68377         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68378         gl_RELOCATABLE_LIBRARY.
68379         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68380         (Makefile.am): Remove lib_SOURCES.
68381         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68382         gl_RELOCATABLE_LIBRARY.
68383         (Makefile.am): Remove lib_SOURCES.
68384         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68385         always.
68386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68387         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68388
68389 2007-03-04  Bruno Haible  <bruno@clisp.org>
68390
68391         * modules/argmatch-tests: New file.
68392         * tests/test-argmatch.c: New file.
68393
68394         * tests/test-allocsa.c (main): Halve the number of loop runs.
68395
68396         * modules/alloca-opt-tests: New file.
68397         * tests/test-alloca-opt.c: New file.
68398
68399 2007-03-04  Jim Meyering  <jim@meyering.net>
68400
68401         Work around difference between Linux ACLs and Solaris 10 ZFS.
68402         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68403         for EINVAL.
68404
68405 2007-03-03  Bruno Haible  <bruno@clisp.org>
68406
68407         * modules/relocatable-prog (Depends-on): Add back progreloc's
68408         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68409
68410 2007-03-03  Bruno Haible  <bruno@clisp.org>
68411
68412         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68413         * modules/relocatable-lib: New file.
68414
68415 2007-03-03  Bruno Haible  <bruno@clisp.org>
68416
68417         * modules/relocatable-prog: Renamed from modules/relocatable.
68418         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68419
68420 2007-03-03  Bruno Haible  <bruno@clisp.org>
68421
68422         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68423         m4/relocatable-lib.m4.
68424         (Depends-on): Remove 'relocatable'.
68425         (configure.ac): Add gl_RELOCATABLE_NOP.
68426
68427 2007-03-03  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/relocatable-prog-wrapper: New file.
68430         * modules/relocatable (Depends-on): Add it. Remove all other
68431         dependencies except progname.
68432         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68433
68434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68435         (gl_FUNC_STRERROR): Nop.
68436         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68437
68438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68439         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68440
68441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68442         (gl_FUNC_READLINK): Update.
68443
68444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68445
68446 2007-03-03  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68449         * modules/xreadlink (Depends-on): Add unistd.
68450         * modules/xreadlink-with-size (Depends-on): Likewise.
68451
68452 2007-03-03  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68455         extracted from gt_FUNC_SETENV.
68456         (gt_FUNC_SETENV): Remove macro.
68457         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68458         remove gt_FUNC_SETENV.
68459
68460 2007-03-03  Bruno Haible  <bruno@clisp.org>
68461
68462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68463         ENABLE_RELOCATABLE here.
68464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68465
68466 2007-03-03  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68469         * tests/test-rbtreehash_list.c: Include progname.h.
68470         (main): Call set_program_name.
68471
68472         * modules/rbtree-oset-tests (Depends-on): Add progname.
68473         * tests/test-rbtree_oset.c: Include progname.h.
68474         (main): Call set_program_name.
68475
68476         * modules/rbtree-list-tests (Depends-on): Add progname.
68477         * tests/test-rbtree_list.c: Include progname.h.
68478         (main): Call set_program_name.
68479
68480         * modules/linked-list-tests (Depends-on): Add progname.
68481         * tests/test-linked_list.c: Include progname.h.
68482         (main): Call set_program_name.
68483
68484 2007-03-03  Bruno Haible  <bruno@clisp.org>
68485
68486         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68487         All uses of __restrict changed to _Restrict_.
68488         * lib/glob_.h (__restrict): Remove macro.
68489
68490 2007-03-02  Bruno Haible  <bruno@clisp.org>
68491
68492         * modules/gettext (configure.ac): Require gettext infrastructure
68493         from version 0.16.1.
68494
68495 2007-03-02  Bruno Haible  <bruno@clisp.org>
68496
68497         * modules/linkedhash-list-tests (Depends-on): Add progname.
68498         * tests/test-linkedhash_list.c: Include progname.h.
68499         (main): Call set_program_name.
68500
68501         * modules/carray-list-tests (Depends-on): Add progname.
68502         * tests/test-carray_list.c: Include progname.h.
68503         (main): Call set_program_name.
68504
68505         * modules/avltreehash-list-tests (Depends-on): Add progname.
68506         * tests/test-avltreehash_list.c: Include progname.h.
68507         (main): Call set_program_name.
68508
68509         * modules/avltree-oset-tests (Depends-on): Add progname.
68510         * tests/test-avltree_oset.c: Include progname.h.
68511         (main): Call set_program_name.
68512
68513         * modules/avltree-list-tests (Depends-on): Add progname.
68514         * tests/test-avltree_list.c: Include progname.h.
68515         (main): Call set_program_name.
68516
68517         * modules/array-oset-tests (Depends-on): Add progname.
68518         * tests/test-array_oset.c: Include progname.h.
68519         (main): Call set_program_name.
68520
68521         * modules/array-list-tests (Depends-on): Add progname.
68522         * tests/test-array_list.c: Include progname.h.
68523         (main): Call set_program_name.
68524
68525         * modules/argp-tests (Depends-on): Add progname.
68526         * tests/test-argp.c: Include argp.h first. Include progname.h.
68527         (main): Call set_program_name.
68528
68529 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * doc/gnulib-tool.texi (Initial import): Reword description of
68532         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68533         limited effect even if defined after the first system include.
68534
68535 2007-03-01  Bruno Haible  <bruno@clisp.org>
68536
68537         * build-aux/config.libpath: Update to libtool-1.5.22.
68538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68539
68540 2007-03-01  Bruno Haible  <bruno@clisp.org>
68541
68542         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68543         foo_CFLAGS.
68544         Reported by Ralf Wildenhues.
68545
68546 2007-03-01  Bruno Haible  <bruno@clisp.org>
68547
68548         * build-aux/install-reloc: Remove object files left over by some
68549         compilers.
68550         Reported by Ralf Wildenhues.
68551
68552 2007-03-01  Bruno Haible  <bruno@clisp.org>
68553
68554         * build-aux/install-reloc: Break long lines.
68555
68556 2007-03-01  Bruno Haible  <bruno@clisp.org>
68557
68558         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68559         Reported by Ralf Wildenhues.
68560
68561 2007-03-01  Bruno Haible  <bruno@clisp.org>
68562
68563         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68564         include ordering constraints.
68565
68566 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68570         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68571         as another example.
68572         * lib/time_.h: Fix misspelling.
68573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68574         Require gl_HEADER_TIME_H_DEFAULTS.
68575         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68576         * m4/time_r.m4 (gl_TIME_R): Likewise.
68577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68578
68579 2007-03-01  Bruno Haible  <bruno@clisp.org>
68580
68581         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68582         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68583
68584 2007-03-01  Jim Meyering  <jim@meyering.net>
68585
68586         * modules/xreadlink (Maintainer): Add my name.
68587         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68588
68589 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68590             Bruno Haible  <bruno@clisp.org>
68591
68592         * build-aux/install-reloc: Compile also c-ctype.c.
68593         * build-aux/relocatable.sh.in: New file.
68594         * doc/relocatable.texi: New file.
68595         * doc/relocatable-maint.texi: New file.
68596         * doc/gnulib.texi: Include relocatable-maint.texi.
68597         * lib/progreloc.c: Include unistd.h unconditionally.
68598         * lib/relocwrapper.c: Include unistd.h unconditionally.
68599         Include c-ctype.h.
68600         (add_dotbin): Use c_tolower.
68601         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68602         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68603         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68604         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68605         to m4/relocatable-lib.m4.
68606         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68607         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68608         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68609         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68610         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68611         * modules/relocatable: New file.
68612         * modules/relocatable-lib: New file.
68613         * modules/relocatable-script: New file.
68614
68615 2007-02-28  Bruno Haible  <bruno@clisp.org>
68616
68617         Import --enable-relocatable infrastructure.
68618         * build-aux/config.libpath: New file, from GNU gettext.
68619         * build-aux/install-reloc: New file, from GNU gettext.
68620         * build-aux/reloc-ldflags: New file, from GNU gettext.
68621         * lib/relocatable.h: New file, from GNU gettext.
68622         * lib/relocatable.c: New file, from GNU gettext.
68623         * lib/relocwrapper.c: New file, from GNU gettext.
68624         * m4/relocatable.m4: New file, from GNU gettext.
68625
68626 2007-02-28  Bruno Haible  <bruno@clisp.org>
68627
68628         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68629
68630         * modules/xreadlink: New file, from GNU gettext with modifications.
68631         * lib/xreadlink.c: New file, from GNU gettext.
68632         * lib/xreadlink.h: Add comments.
68633         (xreadlink): New declaration.
68634
68635         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68636         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68637         lib/xreadlink-with-size.c.
68638         (configure.ac): Remove gl_XREADLINK invocation.
68639         (Makefile.am): Augment lib_SOURCES.
68640         * m4/xreadlink.m4: Remove file.
68641         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68642         (xreadlink_with_size): Renamed from xreadink.
68643         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68644         * modules/canonicalize (Depends-on): Replace xreadlink with
68645         xreadlink-with-size.
68646         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68647
68648 2007-02-25  Jim Meyering  <jim@meyering.net>
68649
68650         * build-aux/announce-gen: When complaining about excess arguments,
68651         list them.
68652
68653 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         * README: Document signed integer overflow situation more
68656         accurately.
68657
68658 2007-02-25  Bruno Haible  <bruno@clisp.org>
68659
68660         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68661         'a' or 'A' conversion.
68662
68663 2007-02-25  Bruno Haible  <bruno@clisp.org>
68664
68665         * modules/filename: Renamed from modules/pathname.
68666         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68667         lib/concatpath.c with lib/concat-filename.c.
68668         (Makefile.am): Update.
68669         (Include): Replace pathname.h with filename.h.
68670         * lib/filename.h: Renamed from lib/pathname.h.
68671         (concatenated_filename): Renamed from concatenated_pathname.
68672         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68673         (concatenated_filename): Renamed from concatenated_pathname.
68674         * lib/findprog.c: Include filename.h instead of pathname.h.
68675         (find_in_path): Update.
68676         * lib/javacomp.c: Include filename.h instead of pathname.h.
68677         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68678         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68679         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68680         is_oldgcj_14_13_usable, is_javac_usable): Update.
68681         * lib/javaexec.c: Include filename.h instead of pathname.h.
68682         (execute_java_class): Update.
68683         * modules/findprog: Update.
68684         * modules/javacomp: Update.
68685         * modules/javaexec: Update.
68686         * MODULES.html.sh (File system functions): Add 'filename', remove
68687         'pathname'.
68688
68689 2007-02-25  Bruno Haible  <bruno@clisp.org>
68690
68691         * modules/printf-frexpl-tests: New file.
68692         * tests/test-printf-frexpl.c: New file.
68693
68694         * modules/printf-frexpl: New file.
68695         * lib/printf-frexpl.h: New file.
68696         * lib/printf-frexpl.c: New file.
68697         * m4/printf-frexpl.m4: New file.
68698
68699 2007-02-25  Bruno Haible  <bruno@clisp.org>
68700
68701         * modules/printf-frexp-tests: New file.
68702         * tests/test-printf-frexp.c: New file.
68703
68704         * modules/printf-frexp: New file.
68705         * lib/printf-frexp.h: New file.
68706         * lib/printf-frexp.c: New file.
68707         * m4/printf-frexp.m4: New file.
68708
68709 2007-02-25  Bruno Haible  <bruno@clisp.org>
68710
68711         Assume automake >= 1.10 for the tests.
68712         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68713         * modules/arctwo-tests: Likewise.
68714         * modules/argp-tests: Likewise.
68715         * modules/avltree-list-tests: Likewise.
68716         * modules/avltree-oset-tests: Likewise.
68717         * modules/avltreehash-list-tests: Likewise.
68718         * modules/carray-list-tests: Likewise.
68719         * modules/crc-tests: Likewise.
68720         * modules/des-tests: Likewise.
68721         * modules/gc-arcfour-tests: Likewise.
68722         * modules/gc-arctwo-tests: Likewise.
68723         * modules/gc-des-tests: Likewise.
68724         * modules/gc-hmac-md5-tests: Likewise.
68725         * modules/gc-hmac-sha1-tests: Likewise.
68726         * modules/gc-md2-tests: Likewise.
68727         * modules/gc-md4-tests: Likewise.
68728         * modules/gc-md5-tests: Likewise.
68729         * modules/gc-pbkdf2-sha1-tests: Likewise.
68730         * modules/gc-rijndael-tests: Likewise.
68731         * modules/gc-sha1-tests: Likewise.
68732         * modules/gc-tests: Likewise.
68733         * modules/getaddrinfo-tests: Likewise.
68734         * modules/hmac-md5-tests: Likewise.
68735         * modules/hmac-sha1-tests: Likewise.
68736         * modules/linked-list-tests: Likewise.
68737         * modules/linkedhash-list-tests: Likewise.
68738         * modules/lock-tests: Likewise.
68739         * modules/md2-tests: Likewise.
68740         * modules/md4-tests: Likewise.
68741         * modules/md5-tests: Likewise.
68742         * modules/rbtree-list-tests: Likewise.
68743         * modules/rbtree-oset-tests: Likewise.
68744         * modules/rbtreehash-list-tests: Likewise.
68745         * modules/read-file-tests: Likewise.
68746         * modules/rijndael-tests: Likewise.
68747         * modules/stdint-tests: Likewise.
68748         * modules/tls-tests: Likewise.
68749
68750 2007-02-24  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68753         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68754         function; instead check whether isnan with a double argument links.
68755         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68756         function; instead check whether isnan with a 'long double' argument
68757         links.
68758         Reported by Eric Blake <ebb9@byu.net>.
68759
68760 2007-02-24  Bruno Haible  <bruno@clisp.org>
68761
68762         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68763         defined.
68764         * lib/isnanl.c: Remove all code. Just include isnan.c.
68765         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68766
68767 2007-02-25  Jim Meyering  <jim@meyering.net>
68768
68769         Avoid conflicting types for 'unsetenv' on FreeBSD.
68770         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68771         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68772         in stdlib.h.
68773
68774 2007-02-24  Bruno Haible  <bruno@clisp.org>
68775
68776         * modules/isnanl-nolibm-tests: New file.
68777         * tests/test-isnanl.c: New file.
68778
68779         * modules/isnanl-nolibm: New file.
68780         * lib/isnanl.h: New file.
68781         * lib/isnanl.c: New file.
68782         * m4/isnanl.m4: New file.
68783
68784 2007-02-24  Bruno Haible  <bruno@clisp.org>
68785
68786         * modules/isnan-nolibm-tests: New file.
68787         * tests/test-isnan.c: New file.
68788
68789         * modules/isnan-nolibm: New file.
68790         * lib/isnan.h: New file.
68791         * lib/isnan.c: New file.
68792         * m4/isnan.m4: New file.
68793
68794 2007-02-24  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68797         assume that an exponent fits in 20 bits.
68798
68799 2007-02-24  Jim Meyering  <jim@meyering.net>
68800
68801         * m4/regex.m4: Update the description of the configure-time option,
68802         --without-included-regex, to state accurately what the defaults are,
68803         and perhaps to give people an idea why using this option is risky.
68804
68805 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68808         loops on small arguments.  This attempts to avoid the problem
68809         Bruno Haible reported for AIX 4.3.2 in
68810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68811
68812 2007-02-23  Bruno Haible  <bruno@clisp.org>
68813
68814         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68815         Needed for help2man.
68816
68817 2007-02-23  Karl Berry  <karl@gnu.org>
68818
68819         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68820         exists, foo.h should be cvs-ignored, not committed.
68821
68822 2007-02-23  Eric Blake  <ebb9@byu.net>
68823
68824         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68825         * lib/stat-time.h (includes): Likewise.
68826         * lib/utimecmp.c (includes): Likewise.
68827         * lib/utimens.h (includes): Likewise.
68828         * lib/getdate.y (includes): Also include "timespec.h" for use
68829         internal to the module.
68830         * modules/utimens (Depends-on): Revert yesterday's patch.
68831         * modules/nanosleep (Depends-on): Add missing dependency.
68832
68833 2007-02-22  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/glob.c: Don't include getlogin_r.h.
68836
68837 2007-02-22  Jim Meyering  <jim@meyering.net>
68838
68839         * modules/utimens (Depends-on): Add timespec, required for
68840         utimens.h's inclusion of timespec.h.
68841
68842 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68845         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68846         Schwab in
68847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68848         I'll try to think of a better way to fix the Solaris problem.
68849
68850         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68851         like glibc; on Solaris 10, it fails with errno == EINVAL.
68852         POSIX says the behavior is unspecified if the first argument is NULL,
68853         so play it safe and never pass NULL to the system getcwd.
68854
68855 2007-02-21  Jim Meyering  <jim@meyering.net>
68856
68857         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68858         of gettimeofday.  It would conflict with the one now always
68859         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68860         an IRIX 6.5 build failure.
68861
68862 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         Minor fixups to port to Solaris 10 with Sun C 5.8.
68865         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68866         * modules/getcwd (Depends-on): Add dirfd.
68867         * lib/putenv.c (putenv): #undef it.
68868         (rpl_putenv): New decl.
68869         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68870
68871 2007-02-20  Bruno Haible  <bruno@clisp.org>
68872
68873         * modules/stdio-tests: New file.
68874         * tests/test-stdio.c: New file.
68875
68876         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68877         (Depends-on): Add stdio.
68878         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68879         (Include): Use <stdio.h> instead of vsnprintf.h.
68880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68881         HAVE_DECL_VSNPRINTF.
68882         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68883
68884         * modules/snprintf (Files): Remove lib/snprintf.h.
68885         (Depends-on): Add stdio.
68886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68887         (Include): Use <stdio.h> instead of snprintf.h.
68888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68889         HAVE_DECL_SNPRINTF.
68890         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68891         * lib/getaddrinfo.c: Likewise.
68892
68893         * modules/stdio: New file.
68894         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68895         * lib/snprintf.h: Remove file.
68896         * lib/vsnprintf.h: Remove file.
68897         * lib/.cppi-disable: Remove snprintf.h.
68898         * m4/stdio_h.m4: New file.
68899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68900
68901 2007-02-20  Jim Meyering  <jim@meyering.net>
68902
68903         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68904         used by e.g., mingw.  From Bruno Haible.
68905
68906 2007-02-19  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68909         warnings.
68910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68911
68912 2007-02-19  Bruno Haible  <bruno@clisp.org>
68913
68914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68915         from mingw users.
68916
68917 2007-02-19  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68920         warnings.
68921         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68922
68923 2007-02-19  Jim Meyering  <jim@meyering.net>
68924
68925         Don't use FD after a successful "fdopendir (fd)".
68926         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68927         Reset it by calling dirfd on the just-obtained DIR*.
68928
68929         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68930         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68931
68932 2007-02-18  Bruno Haible  <bruno@clisp.org>
68933
68934         * lib/readlink.c: Include <unistd.h>.
68935         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68936         HAVE_READLINK.
68937         * modules/readlink (Depends-on): Add unistd.
68938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68939         (Include): Add <unistd.h>.
68940
68941         * lib/getlogin_r.h: Remove file.
68942         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68944         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68945         HAVE_DECL_GETLOGIN_R.
68946         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68948         (Include): Use <unistd.h> instead of getlogin_r.h.
68949
68950         * lib/getcwd.h: Remove file.
68951         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68952         * lib/xgetcwd.c: Likewise.
68953         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68954         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68955         * modules/getcwd (Files): Remove lib/getcwd.h.
68956         (Depends-on): Add unistd.
68957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68958         (Include): Use <unistd.h> instad of getcwd.h.
68959
68960         * lib/ftruncate.c: Include <unistd.h> first.
68961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68962         Set HAVE_FTRUNCATE.
68963         * modules/ftruncate (Depends-on): Add unistd.
68964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68965
68966         * lib/fchdir.c: Include <unistd.h> first.
68967         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68969         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68970         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68971         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68972
68973         * lib/dup2.c: Include <unistd.h> first.
68974         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68975         HAVE_DUP2.
68976         * modules/dup2 (Depends-on): Add unistd.
68977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68978
68979         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68980         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68981         REPLACE_CHOWN. Don't define chown as a macro here.
68982         * modules/chown (Depends-on): Add unistd.
68983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68984
68985         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68986         Add definition for GL_LINK_WARNING.
68987         (chown, dup2): New declarations.
68988         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68989         link warning.
68990         (ftruncate): New declaration.
68991         (getcwd): New declaration, taken from old getcwd.h.
68992         (getlogin_r): New declaration, taken from old getlogin_r.h.
68993         (readlink): New declaration.
68994         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68995         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68996         (gl_PREREQ_UNISTD): Remove macro.
68997         (gl_UNISTD_MODULE_INDICATOR): New macro.
68998         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68999         many new variables. Don't set UNISTD_H.
69000         * modules/unistd (Description): Change.
69001         (Depends-on): Add link-warning.
69002         (configure.ac): Update.
69003         (Makefile.am): Create unistd.h always. Substitute many new variables
69004         into it.
69005
69006 2007-02-18  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69009         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69010         HAVE_GETSUBOPT.
69011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69012         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69013         * lib/getsubopt.h: Remove file.
69014         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69015         (Depends-on): Add stdlib.
69016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69017         (Includes): Use <stdlib.h> instead of getsubopt.h.
69018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69019         Set HAVE_GETSUBOPT.
69020         * lib/getsubopt.c: Don't include getsubopt.h.
69021
69022 2007-02-18  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/fchdir (Depends-on): Add dup2.
69025
69026 2007-02-18  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/stdlib_.h: Handle glibc's special invocation convention
69029         specially.
69030
69031 2007-02-18  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/stdlib-tests: New file.
69034         * tests/test-stdlib.c: New file.
69035
69036         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69037         (Depends-on): Add stdlib.
69038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69039         (Includes): Use <stdlib.h> instead of mkstemp.h.
69040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69041         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69042         * lib/mkstemp.c: Don't include mkstemp.h.
69043         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69044         * lib/stdlib--.h: Don't include mkstemp.h.
69045
69046         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69047         (Depends-on): Add stdlib.
69048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69049         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69050         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69051         HAVE_MKDTEMP.
69052         * lib/mkdtemp.c: Don't include mkdtemp.h.
69053         * lib/clean-temp.c: Don't include mkdtemp.h.
69054
69055         * modules/exit (Files): Remove lib/exit.h.
69056         (Depends-on): Add stdlib.
69057         (Makefile.am): Remove lib_SOURCES.
69058         (Include): Use <stdlib.h> instead of exit.h.
69059         * lib/argmatch.c: Don't include exit.h.
69060         * lib/execute.c: Likewise.
69061         * lib/pagealign_alloc.c: Likewise.
69062         * lib/pipe.c: Likewise.
69063         * lib/wait-process.c: Likewise.
69064         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69065         * lib/exitfail.c: Likewise.
69066         * lib/savewd.c: Likewise.
69067         * lib/xsetenv.c: Likewise.
69068
69069         * modules/stdlib: New file.
69070         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69071         and extra comments about mkstemp().
69072         * lib/exit.h: Remove file.
69073         * lib/mkdtemp.h: Remove file.
69074         * lib/mkstemp.h: Remove file.
69075         * m4/stdlib_h.m4: New file.
69076         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69077
69078 2007-02-18  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/math-tests: New file.
69081         * tests/test-math.c: New file.
69082
69083         * modules/math: New file.
69084         * modules/mathl (Files): Remove lib/mathl.h.
69085         (Depends-on): Add math.
69086         (Makefile.am): Don't mention mathl.h.
69087         (Include): Use <math.h> instead of mathl.h.
69088         * lib/math_.h: New file.
69089         * lib/mathl.h: Remove file.
69090         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69091         mathl.h.
69092         * lib/asinl.c: Likewise.
69093         * lib/atanl.c: Likewise.
69094         * lib/ceill.c: Likewise.
69095         * lib/cosl.c: Likewise.
69096         * lib/expl.c: Likewise.
69097         * lib/floorl.c: Likewise.
69098         * lib/frexpl.c: Likewise.
69099         * lib/ldexpl.c: Likewise.
69100         * lib/logl.c: Likewise.
69101         * lib/sincosl.c: Likewise.
69102         * lib/sinl.c: Likewise.
69103         * lib/sqrtl.c: Likewise.
69104         * lib/tanl.c: Likewise.
69105         * lib/trigl.c: Likewise.
69106         * m4/math_h.m4: New file.
69107         * MODULES.html.sh (Mathematics): Add math.
69108
69109 2007-02-17  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/wctype-tests: New file.
69112         * tests/test-wctype.c: New file.
69113
69114         * modules/wchar-tests: New file.
69115         * tests/test-wchar.c: New file.
69116
69117         * modules/unistd-tests: New file.
69118         * tests/test-unistd.c: New file.
69119
69120         * modules/time-tests: New file.
69121         * tests/test-time.c: New file.
69122
69123         * modules/sysexits-tests: New file.
69124         * tests/test-sysexits.c: New file.
69125
69126         * modules/sys_time-tests: New file.
69127         * tests/test-sys_time.c: New file.
69128
69129         * modules/sys_stat-tests: New file.
69130         * tests/test-sys_stat.c: New file.
69131
69132         * modules/sys_socket-tests: New file.
69133         * tests/test-sys_socket.c: New file.
69134
69135         * modules/sys_select-tests: New file.
69136         * tests/test-sys_select.c: New file.
69137
69138         * modules/string-tests: New file.
69139         * tests/test-string.c: New file.
69140
69141         * modules/stdbool-tests: New file.
69142         * tests/test-stdbool.c: New file.
69143
69144         * modules/netinet_in-tests: New file.
69145         * tests/test-netinet_in.c: New file.
69146
69147         * modules/inttypes-tests: New file.
69148         * tests/test-inttypes.c: New file.
69149
69150         * modules/fcntl-tests: New file.
69151         * tests/test-fcntl.c: New file.
69152
69153         * modules/byteswap-tests: New file.
69154         * tests/test-byteswap.c: New file.
69155
69156         * modules/arpa_inet-tests: New file.
69157         * tests/test-arpa_inet.c: New file.
69158
69159 2007-02-17  Bruno Haible  <bruno@clisp.org>
69160
69161         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69162         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69163         if the corresponding module is not enabled. Emit link warnings if
69164         the function is used nevertheless.
69165         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69166         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69167         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69168         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69169         * modules/inttypes (Depends-on): Add link-warning.
69170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69171         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69172         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69173         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69174         * modules/imaxdiv (configure.ac): Likewise.
69175         * modules/strtoimax (configure.ac): Likewise.
69176         * modules/strtoumax (configure.ac): Likewise.
69177
69178 2007-02-17  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69181         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69183         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69184
69185 2007-02-17  Bruno Haible  <bruno@clisp.org>
69186
69187         * modules/link-warning: New file.
69188         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69189         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69190         * modules/string (Depends-on): Add link-warning.
69191         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69192         string.h.
69193         * MODULES.html.sh (Support for building libraries and executables): Add
69194         link-warning.
69195
69196 2007-02-17  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69199         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69200         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69201         long lines.
69202
69203 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69204             Bruno Haible  <bruno@clisp.org>
69205
69206         * modules/tmpfile: New file.
69207         * lib/tmpfile.c: New file.
69208         * m4/tmpfile.m4: New file.
69209         * MODULES.html.sh (func_all_modules): New section "Input/output".
69210
69211 2007-02-15  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69214         (supports_delete_on_close): New function.
69215         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69216
69217 2007-02-14  Bruno Haible  <bruno@clisp.org>
69218
69219         * modules/mbspcasecmp-tests: New file.
69220         * tests/test-mbspcasecmp.sh: New file.
69221         * tests/test-mbspcasecmp.c: New file.
69222
69223         New module mbspcasecmp.
69224         * modules/mbspcasecmp: New file.
69225         * lib/mbspcasecmp.c: New file.
69226         * lib/string_.h (strncasecmp): Change warning message.
69227         (mbspcasecmp): New declaration.
69228         * m4/mbspcasecmp.m4: New file.
69229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69230         GNULIB_MBSPCASECMP.
69231         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69232         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69233
69234 2007-02-14  Bruno Haible  <bruno@clisp.org>
69235
69236         * modules/mbsncasecmp-tests: New file.
69237         * tests/test-mbsncasecmp.sh: New file.
69238         * tests/test-mbsncasecmp.c: New file.
69239
69240         New module mbsncasecmp.
69241         * modules/mbsncasecmp: New file.
69242         * lib/mbsncasecmp.c: New file.
69243         * lib/string_.h (mbsncasecmp): New declaration.
69244         * m4/mbsncasecmp.m4: New file.
69245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69246         GNULIB_MBSNCASECMP.
69247         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69248         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69249
69250 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69253         Verify that it doesn't overlap with our flags.
69254         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69255         do not have the desired effect in multibyte locales; instead, use
69256         mbscasecmp.
69257         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69258         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69259         we don't require GNU fnmatch ourselves (if our users require it, they
69260         should do so explicitly).
69261
69262         Fix regex code so it doesn't rely on strcasecmp.
69263         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69264         Otherwise, include gnulib's langinfo.h.
69265         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69266         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69267         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69268         * modules/regex (FILES): Remove m4/codeset.m4.
69269         (Depends-on): Add localcharset.  Remove strcase.
69270
69271 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69272
69273         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69275
69276 2007-02-13  Bruno Haible  <bruno@clisp.org>
69277
69278         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69280
69281 2007-02-12  Bruno Haible  <bruno@clisp.org>
69282
69283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69285         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69286         time warning rather than a link error.
69287
69288 2007-02-12  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69293
69294 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69297         args, not 2.
69298
69299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         New module 'time', so that apps can include <time.h> as per
69302         POSIX and GNU instead of separate include files like time_r.h
69303         and timegm.h.  This implementation tries out a simpler approach
69304         for replacing decls in standard include files (as compared to
69305         the string module), somewhat as an experiment.
69306
69307         * config/srclist.txt: Comment out mktime.c for now.
69308         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69309         since it doesn't apply any more.  Use generic wording instead.
69310         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69311         'time'.
69312         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69313         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69314         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69315         Don't include <sys/types.h>; no longer needed since we assume C89.
69316         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69317         * lib/strftime.c: Likewise.
69318         * lib/time_r.c: Likewise.
69319         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69320         * lib/nanosleep.c: Include <time.h> first, to check interface.
69321         * lib/strptime.c: Likewise.
69322         * lib/time_r.c: Likewise.
69323         * lib/timegm.c: Likewise.
69324         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69325         needed.
69326         * lib/timegm.c: Don't include timegm.h; no longer needed.
69327         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69328         time.h now handles any problems in that area.
69329         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69330         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69331         that time.h defines struct timespec.
69332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69333         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69334         handles that.
69335         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69336         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69337         needed.  Set REPLACE_LOCALTIME.
69338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69339         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69340         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69341         nanosleep; time_h.m4 now does that.  Don't require
69342         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69343         module handles this now.
69344         * modules/getdate (Depends-on): Remove timespec.  Add time.
69345         * modules/nanosleep (Depends-on): Likewise.
69346         * modules/stat-time (Depends-on): Likewise.
69347         * modules/nanosleep (Include): Include time.h, not timespec.h.
69348         * modules/strptime (Files): Remove lib/strptime.h.
69349         (Depends-on): Add extensions, time.
69350         (Include): Include time.h, not strptime.h.
69351         * modules/time_r (Files): Remove lib/time_r.h.
69352         (Depends-on): Add time.
69353         (Include): Include time.h, not time_r.h.
69354         * modules/timegm: Likewise.
69355         * modules/timespec (Description): Now does timespec-related decls
69356         of our own, instead of struct timespec itself.
69357         (Depends-on): Add time; remove extensions.
69358         (Maintainer): Add self.
69359         * modules/utimecmp (Depends-on): Add time; remove timespec.
69360         * modules/utimens (Depends-on): Likewise.
69361         * modules/xnanosleep (Depends-on): Likewise.
69362
69363 2007-02-11  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/c-strstr.c: Include allocsa.h.
69366         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69367         * lib/c-strcasestr.c: Include allocsa.h.
69368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69369         * lib/strcasestr.c: Include allocsa.h.
69370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69371         * lib/mbsstr.c: Include allocsa.h.
69372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69373         allocsa/freesa instead of malloc/free.
69374         * lib/mbscasestr.c: Include allocsa.h.
69375         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69376         allocsa/freesa instead of malloc/free.
69377         * modules/c-strstr (Depends-on): Add allocsa.
69378         * modules/c-strcasestr (Depends-on): Likewise.
69379         * modules/strcasestr (Depends-on): Likewise.
69380         * modules/mbsstr (Depends-on): Likewise.
69381         * modules/mbscasestr (Depends-on): Likewise.
69382
69383 2007-02-11  Bruno Haible  <bruno@clisp.org>
69384
69385         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69386
69387         * modules/mbsspn-tests: New file.
69388         * tests/test-mbsspn.sh: New file.
69389         * tests/test-mbsspn.c: New file.
69390
69391 2007-02-11  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69394
69395         * modules/mbspbrk-tests: New file.
69396         * tests/test-mbspbrk.sh: New file.
69397         * tests/test-mbspbrk.c: New file.
69398
69399 2007-02-11  Bruno Haible  <bruno@clisp.org>
69400
69401         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69402         unneeded cast.
69403
69404         * modules/mbscspn-tests: New file.
69405         * tests/test-mbscspn.sh: New file.
69406         * tests/test-mbscspn.c: New file.
69407
69408 2007-02-11  Bruno Haible  <bruno@clisp.org>
69409
69410         * modules/mbscasecmp-tests: New file.
69411         * tests/test-mbscasecmp.sh: New file.
69412         * tests/test-mbscasecmp.c: New file.
69413
69414 2007-02-11  Bruno Haible  <bruno@clisp.org>
69415
69416         Ensure O(n) worst-case complexity of mbscasestr.
69417         * lib/mbscasestr.c: Include stdbool.h.
69418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69419         functions.
69420         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69421         the bookkeeping indicates that it's worth it.
69422         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69423
69424         * modules/mbscasestr-tests: New file.
69425         * tests/test-mbscasestr1.c: New file.
69426         * tests/test-mbscasestr2.sh: New file.
69427         * tests/test-mbscasestr2.c: New file.
69428         * tests/test-mbscasestr3.sh: New file.
69429         * tests/test-mbscasestr3.c: New file.
69430         * tests/test-mbscasestr4.sh: New file.
69431         * tests/test-mbscasestr4.c: New file.
69432         * m4/locale-tr.m4: New file.
69433
69434 2007-02-11  Bruno Haible  <bruno@clisp.org>
69435
69436         Ensure O(n) worst-case complexity of mbsstr.
69437         * lib/mbsstr.c: Include stdbool.h.
69438         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69439         functions.
69440         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69441         bookkeeping indicates that it's worth it.
69442         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69443
69444         * modules/mbsstr-tests: New file.
69445         * tests/test-mbsstr1.c: New file.
69446         * tests/test-mbsstr2.sh: New file.
69447         * tests/test-mbsstr2.c: New file.
69448         * tests/test-mbsstr3.sh: New file.
69449         * tests/test-mbsstr3.c: New file.
69450         * m4/locale-fr.m4: New file.
69451
69452 2007-02-11  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/mbsrchr.c (mbsrchr): Fix bug.
69455
69456         * modules/mbsrchr-tests: New file.
69457         * tests/test-mbsrchr.sh: New file.
69458         * tests/test-mbsrchr.c: New file.
69459
69460 2007-02-11  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/mbschr.c (mbschr): Fix bug.
69463
69464         * modules/mbschr-tests: New file.
69465         * tests/test-mbschr.sh: New file.
69466         * tests/test-mbschr.c: New file.
69467         * m4/locale-zh.m4: New file.
69468
69469 2007-02-11  Bruno Haible  <bruno@clisp.org>
69470
69471         Support for copying multibyte string iterators.
69472         * lib/mbiter.h: Include <string.h>.
69473         (mbiter_multi_copy): New function.
69474         (mbi_copy): New macro.
69475         * lib/mbuiter.h: Include <string.h>.
69476         (mbuiter_multi_copy): New function.
69477         (mbui_copy): New macro.
69478
69479 2007-02-11  Bruno Haible  <bruno@clisp.org>
69480
69481         New module mbslen.
69482         * modules/mbslen: New file.
69483         * lib/mbslen.c: New file.
69484         * lib/string_.h (mbslen): New declaration.
69485         * m4/mbslen.m4: New file.
69486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69487         GNULIB_MBSLEN.
69488         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69489         * MODULES.html.sh (Internationalization functions): Add mbslen.
69490
69491 2007-02-11  Bruno Haible  <bruno@clisp.org>
69492
69493         Ensure O(n) worst-case complexity of strcasestr substitute.
69494         * lib/strcasestr.c: Include stdbool.h.
69495         (knuth_morris_pratt): New function.
69496         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69497         bookkeeping indicates that it's worth it.
69498         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69499
69500         * modules/strcasestr-tests: New file.
69501         * tests/test-strcasestr.c: New file.
69502
69503 2007-02-11  Bruno Haible  <bruno@clisp.org>
69504
69505         Ensure O(n) worst-case complexity of c_strcasestr.
69506         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69507         (knuth_morris_pratt): New function.
69508         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69509         the bookkeeping indicates that it's worth it.
69510         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69511
69512         * modules/c-strcasestr-tests: New file.
69513         * tests/test-c-strcasestr.c: New file.
69514
69515 2007-02-11  Bruno Haible  <bruno@clisp.org>
69516
69517         Ensure O(n) worst-case complexity of c_strstr.
69518         * lib/c-strstr.c: Include stdbool.h, string.h.
69519         (knuth_morris_pratt): New function.
69520         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69521         bookkeeping indicates that it's worth it.
69522         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69523
69524         * lib/c-strstr.c: Complete rewrite for maintainability.
69525
69526         * modules/c-strstr-tests: New file.
69527         * tests/test-c-strstr.c: New file.
69528
69529 2007-02-11  Bruno Haible  <bruno@clisp.org>
69530
69531         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69532         5.2.1 and earlier, whereby \055 was treated just like the range
69533         delimiter '-'.
69534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69535
69536 2007-02-08  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/regex (Depends-on): Add stdbool.
69539         Reported by Dalibor Topic <robilad@kaffe.org>.
69540
69541 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69544         Prefer returning from main to exiting from it.
69545         Remove unnecessary parens after sizeof.
69546
69547 2007-02-05  Bruno Haible  <bruno@clisp.org>
69548
69549         New module mbssep.
69550         * modules/mbssep: New file.
69551         * lib/mbssep.c: New file.
69552         * lib/string_.h (strsep): Add a conditional link warning.
69553         (mbssep): New declaration.
69554         * m4/mbssep.m4: New file.
69555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69556         GNULIB_MBSSEP.
69557         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69558         * MODULES.html.sh (Internationalization functions): Add mbssep.
69559
69560 2007-02-05  Bruno Haible  <bruno@clisp.org>
69561
69562         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69563         Optimize search in case of 1 delimiter.
69564
69565 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69566
69567         * lib/acl.h: Include sys/types.h before sys/acl.h.
69568
69569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69570
69571         Merge upstream fix for glibc bugzilla #3957:
69572
69573         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69574
69575         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69576         bit for RE_HAT_LISTS_NOT_NEWLINE.
69577         (build_charclass_op): Remove bogus comment.
69578
69579 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69580
69581         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69582
69583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69586         * lib/memmem.c [!defined _LIBC]: Include config.h.
69587
69588 2007-02-04  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69591         warning message.
69592
69593 2007-02-04  Bruno Haible  <bruno@clisp.org>
69594
69595         New module mbstok_r.
69596         * modules/mbstok_r: New file.
69597         * lib/mbstok_r.c: New file.
69598         * lib/string_.h (strtok_r): Change argument names to match the
69599         comments. Add a conditional link warning.
69600         (mbstok_r): New declaration.
69601         * m4/mbstok_r.m4: New file.
69602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69603         GNULIB_MBSTOK_R.
69604         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69605         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69606
69607 2007-02-04  Bruno Haible  <bruno@clisp.org>
69608
69609         New module mbsspn.
69610         * modules/mbsspn: New file.
69611         * lib/mbsspn.c: New file.
69612         * lib/string_.h (strspn): Add a conditional link warning.
69613         (mbsspn): New declaration.
69614         * m4/mbsspn.m4: New file.
69615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69616         GNULIB_MBSSPN.
69617         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69618         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69619
69620 2007-02-04  Bruno Haible  <bruno@clisp.org>
69621
69622         New module mbspbrk.
69623         * modules/mbspbrk: New file.
69624         * lib/mbspbrk.c: New file.
69625         * lib/string_.h (strpbrk): Add a conditional link warning.
69626         (mbspbrk): New declaration.
69627         * m4/mbspbrk.m4: New file.
69628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69629         GNULIB_MBSPBRK.
69630         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69631         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69632
69633 2007-02-04  Bruno Haible  <bruno@clisp.org>
69634
69635         New module mbscspn.
69636         * modules/mbscspn: New file.
69637         * lib/mbscspn.c: New file.
69638         * lib/string_.h (strcspn): Add a conditional link warning.
69639         (mbscspn): New declaration.
69640         * m4/mbscspn.m4: New file.
69641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69642         GNULIB_MBSCSPN.
69643         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69644         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69645
69646 2007-02-04  Bruno Haible  <bruno@clisp.org>
69647
69648         New module mbscasestr, reduced goal of strcasestr.
69649         * modules/mbscasestr: New file.
69650         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69651         (mbscasestr): Renamed from strcasestr.
69652         * lib/strcasestr.c: Don't include mbuiter.h.
69653         (strcasestr): Remove support for multibyte locales.
69654         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69655         Change the conditional link warning.
69656         (mbscasestr): New declaration.
69657         * m4/mbscasestr.m4: New file.
69658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69659         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69660         REPLACE_STRCASESTR.
69661         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69663         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69665         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69666         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69667         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69668         (Depends-on): Remove mbuiter.
69669         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69670
69671 2007-02-04  Bruno Haible  <bruno@clisp.org>
69672
69673         Simplify handling of strncasecmp.
69674         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69675         the conditional link warning.
69676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69677         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69679         * modules/strcase (configure.ac): Don't invoke
69680         gl_STRING_MODULE_INDICATOR.
69681         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69682
69683 2007-02-04  Bruno Haible  <bruno@clisp.org>
69684
69685         New module mbscasecmp, reduced goal of strcasecmp.
69686         * modules/mbscasecmp: New file.
69687         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69688         (mbscasecmp): Renamed from strcasecmp.
69689         * lib/strcasecmp.c: Don't include mbuiter.h.
69690         (strcasecmp): Remove support for multibyte locales.
69691         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69692         Change the conditional link warning.
69693         (mbscasecmp): New declaration.
69694         * m4/mbscasecmp.m4: New file.
69695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69696         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69697         REPLACE_STRCASECMP.
69698         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69700         GNULIB_MBSCASECMP.
69701         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69702         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69703         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69704         (Depends-on): Remove mbuiter.
69705         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69706
69707 2007-02-04  Bruno Haible  <bruno@clisp.org>
69708
69709         New module mbsstr. Remove module strstr.
69710         * modules/mbsstr: New file.
69711         * modules/strstr: Remove file.
69712         * lib/mbsstr.c: Renamed from lib/strstr.c.
69713         (mbsstr): Renamed from strstr.
69714         * lib/string_.h (strstr): Remove declaration. Change the conditional
69715         link warning.
69716         (mbsstr): New declaration.
69717         * m4/mbsstr.m4: New file.
69718         * m4/strstr.m4: Remove file.
69719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69720         REPLACE_STRSTR.
69721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69722         Don't initialize GNULIB_STRSTR.
69723         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69724         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69725         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69726         (Support for systems lacking ANSI C 89): Remove strstr.
69727
69728 2007-02-04  Bruno Haible  <bruno@clisp.org>
69729
69730         New module mbsrchr.
69731         * modules/mbsrchr: New file.
69732         * lib/mbsrchr.c: New file.
69733         * lib/string_.h (strrchr): Add a conditional link warning.
69734         (mbsrchr): New declaration.
69735         * m4/mbsrchr.m4: New file.
69736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69737         GNULIB_MBSRCHR.
69738         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69739         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69740
69741 2007-02-04  Bruno Haible  <bruno@clisp.org>
69742
69743         New module mbschr.
69744         * modules/mbschr: New file.
69745         * lib/mbschr.c: New file.
69746         * lib/string_.h (strchr): Add a conditional link warning.
69747         (mbschr): New declaration.
69748         * m4/mbschr.m4: New file.
69749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69750         GNULIB_MBSCHR.
69751         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69752         * MODULES.html.sh (Internationalization functions): Add mbschr.
69753
69754 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69757
69758         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69759
69760 2007-02-04  Bruno Haible  <bruno@clisp.org>
69761
69762         New module description section 'configure.ac-early'.
69763         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69764         (func_get_autoconf_early_snippet): New function.
69765         (func_import, func_create_testdir): Use it. Remove special cases for
69766         modules 'extensions' and 'lock'.
69767         * modules/extensions (configure.ac-early): Require
69768         gl_USE_SYSTEM_EXTENSIONS.
69769         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69770
69771 2007-02-04  Bruno Haible  <bruno@clisp.org>
69772
69773         Make use of gcj-4.3's -fsource and -ftarget option.
69774         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69775         and if so try the options -fsource and -ftarget.
69776         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69777         source_version, ftarget_option, target_version arguments.
69778         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69779         (is_envjavac_oldgcj_14_14_usable): Renamed from
69780         is_envjavac_gcj_14_14_usable.
69781         (is_envjavac_oldgcj_14_13_usable): Renamed from
69782         is_envjavac_gcj_14_13_usable.
69783         (is_gcj_present): Update.
69784         (is_gcj_43, is_gcj43_usable): New functions.
69785         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69786         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69787         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69788         try the options -fsource and -ftarget.
69789
69790 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69793         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69794         larger value.
69795
69796 2007-02-03  Jim Meyering  <jim@meyering.net>
69797
69798         Give tools a better chance to allocate space for very large buffers.
69799         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69800
69801         Make pwd and readlink work also when run with an unreadable parent dir
69802         on systems with openat support.
69803         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69804         provided getcwd function, even when we have openat support.
69805         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69806
69807 2007-02-02  Bruno Haible  <bruno@clisp.org>
69808
69809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69811         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69812         portability problems if one of these functions is only used on specific
69813         platforms.
69814         Reported by Paul Eggert.
69815
69816 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69819         is causing more trouble than it's curing.
69820         * lib/regex_internal.h (__mempcpy): Remove.
69821         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69822         (and make the code a tad smaller to boot).
69823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69824
69825 2007-02-02  Jim Meyering  <jim@meyering.net>
69826
69827         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69828         section, not in the Makefile.am: one.
69829
69830 2007-02-02  Eric Blake  <ebb9@byu.net>
69831
69832         * lib/strchrnul.c: Always include config.h first.
69833
69834         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69835         gnulib strstr is not necessary here.
69836
69837 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69838
69839         * m4/socklen.m4: Fix typo.
69840
69841 2007-02-02  Eric Blake  <ebb9@byu.net>
69842
69843         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69844         * modules/netinet_in (Makefile.am): Likewise.
69845
69846 2007-02-01  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/string_.h (GL_LINK_WARNING): New macro.
69849         (strcasecmp, strstr, strcasestr): If provided by the system,
69850         conditionally define as a macro that leads to a warning instead of to
69851         an error.
69852         (strncasecmp): Conditionally define as a macro that leads to a warning.
69853
69854 2007-02-01  Karl Berry  <karl@gnu.org>
69855
69856         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69857
69858 2007-02-01  Bruno Haible  <bruno@clisp.org>
69859
69860         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69861         renamings.
69862
69863 2007-02-01  Eric Blake  <ebb9@byu.net>
69864
69865         * modules/regex (Depends-on): Revert dependence on mempcpy.
69866         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69867         module's definition of mempcpy.
69868         Reported by Paul Eggert.
69869
69870 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69873         the symbol XYZ before redefining it.  This fixes a problem with
69874         programs that don't use XYZ, when compiled on systems that define
69875         XYZ to something else.
69876
69877 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69878
69879         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69880         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69881         writeable to group or other and (2) is intended to have a special
69882         mode bit that is set or cleared.  In such a case, the directory
69883         should be neither group- nor other-writeable until the special
69884         mode bits are right.
69885
69886 2007-01-31  Eric Blake  <ebb9@byu.net>
69887
69888         * modules/mountlist (Depends-on): Add strstr.
69889
69890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69891         bug.
69892         * modules/string (Makefile.am): Remove redundant replacement.
69893         * modules/regex (Depends-on): Add mempcpy.
69894
69895 2007-01-31  Bruno Haible  <bruno@clisp.org>
69896
69897         New module description field 'Link'.
69898         * gnulib-tool (func_usage): Document --extract-link-directive.
69899         (sed_extract_prog): Recognize 'Link' directive.
69900         (func_get_link_directive): New function.
69901         (func_import): Show summary of link directives.
69902         Handle --extract-link-directive option.
69903         * modules/acl (Link): New section.
69904         * modules/clock-time (Link): New section.
69905         * modules/euidaccess (Link): New section.
69906         * modules/gettext (Link): New section.
69907         * modules/iconv (Link): New section.
69908         * modules/lock (Link): New section.
69909         * modules/nanosleep (Link): New section.
69910         * modules/readline (Link): New section.
69911
69912 2007-01-27  Bruno Haible  <bruno@clisp.org>
69913
69914         Enforce the use of gnulib modules for unportable <string.h> functions.
69915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69917         (gl_HEADER_STRING_H_BODY): Require it.
69918         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69919         the symbol XYZ to one that gives a link error.
69920         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69921         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69922         * modules/mempcpy (configure.ac): Likewise.
69923         * modules/memrchr (configure.ac): Likewise.
69924         * modules/stpcpy (configure.ac): Likewise.
69925         * modules/stpncpy (configure.ac): Likewise.
69926         * modules/strcase (configure.ac): Likewise.
69927         * modules/strcasestr (configure.ac): Likewise.
69928         * modules/strchrnul (configure.ac): Likewise.
69929         * modules/strdup (configure.ac): Likewise.
69930         * modules/strndup (configure.ac): Likewise.
69931         * modules/strnlen (configure.ac): Likewise.
69932         * modules/strpbrk (configure.ac): Likewise.
69933         * modules/strsep (configure.ac): Likewise.
69934         * modules/strstr (configure.ac): Likewise.
69935         * modules/strtok_r (configure.ac): Likewise.
69936
69937 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69938
69939         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69940
69941 2007-01-30  Jim Meyering  <jim@meyering.net>
69942
69943         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69944
69945 2007-01-29  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69948         * lib/execute.c: Likewise.
69949         * lib/pipe.c: Likewise.
69950         * lib/printf-args.h: Likewise.
69951         * lib/printf-args.c: Likewise.
69952         * lib/printf-parse.c: Likewise.
69953         * lib/vasnprintf.c: Likewise.
69954
69955 2007-01-29  Eric Blake  <ebb9@byu.net>
69956
69957         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69958         declaration.
69959
69960 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69961
69962         * lib/strptime.h (strptime): Use 'restrict' for args where
69963         POSIX requires this.
69964         * lib/strptime.c (strptime): Likewise.
69965         Change license notice from LGPL to GPL, since gnulib-tool will
69966         change this as needed.
69967         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69968         defined.
69969         Include "strptime.h" first, to check interface.
69970         Do not #undef _LIBC and _NL_CURRENT.
69971         Do not include <stdlib.h>; no longer needed.
69972         Include "time_r.h" and declare ptime_locale_status
69973         only if _LIBC is not defined.
69974         (__P): Remove unused macro.
69975         (match_string): Bring back glibc version, but use it only if _LIBC
69976         is defined.
69977         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69978         Remove unnecessary assertion and abort() call.
69979         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69980         * m4/strptime.m4: Fix serial number comment.
69981         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69982         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69983         (Depends-on): Add time_r.
69984
69985 2007-01-29  Bruno Haible  <bruno@clisp.org>
69986
69987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69988         strptime.
69989         * modules/strptime (Depends-on): Add stdbool.
69990         * lib/strptime.h: Include <time.h> always. Add comments.
69991
69992 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69993
69994         * modules/strptime: New file.
69995         * lib/strptime.h: New file.
69996         * lib/strptime.c: New file.
69997         * m4/strptime.m4: New file.
69998
69999 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         * MODULES.html.sh: New module mpsort.
70002         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70003
70004         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70005         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70007         All uses changed.
70008         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70009         All uses changed.
70010         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70011         to _Restrict_.
70012         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70013         the parameter matches the prototype.
70014
70015 2007-01-28  Jim Meyering  <jim@meyering.net>
70016
70017         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70018         sys/time.h here, reverting that part of the previous patch:
70019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70020
70021 2007-01-28  Bruno Haible  <bruno@clisp.org>
70022
70023         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70024         value of $(SYS_TIME_H).
70025         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70026         remove it conditionally, too. [added by Jim Meyering]
70027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70030         GETTIMEOFDAY_REPLACEMENT to 1.
70031
70032 2007-01-28  Bruno Haible  <bruno@clisp.org>
70033
70034         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70035         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70037         Set UNISTD_H instead of UNISTD_H2.
70038         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70039
70040 2007-01-28  Bruno Haible  <bruno@clisp.org>
70041
70042         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70043         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70044
70045 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70046
70047         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70048         (func_create_testdir): Ensure C locale for `grep' and `tr'
70049         character ranges.
70050         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70051         ACLOCAL_AMFLAGS parsing state machine.
70052
70053 2007-01-27  Bruno Haible  <bruno@clisp.org>
70054
70055         * modules/unistr/base: Update.
70056
70057 2007-01-27  Bruno Haible  <bruno@clisp.org>
70058
70059         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70060         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70061         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70062         modules/unistr/u32-mbtouc.
70063         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70064         * lib/unistr.h: Update.
70065         * lib/linebreak.c: Update.
70066         * modules/unistr/u32-mbtouc: Renamed from
70067         modules/unistr/u32-mbtouc-safe.
70068         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70069         * lib/unistr.h: Update.
70070         * lib/unistr/u32-to-u8.c: Update.
70071         * lib/unistr/u32-to-u16.c: Update.
70072
70073 2007-01-27  Bruno Haible  <bruno@clisp.org>
70074
70075         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70076         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70077         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70078         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70079         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70080         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70081         modules/unistr/u16-mbtouc.
70082         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70083         * lib/unistr.h: Update.
70084         * lib/linebreak.c: Update.
70085         * modules/linebreak: Update.
70086         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70087         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70088         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70089         * modules/unistr/u16-mbtouc: Renamed from
70090         modules/unistr/u16-mbtouc-safe.
70091         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70092         * lib/unistr.h: Update.
70093         * lib/unistr/u16-to-u8.c: Update.
70094         * modules/unistr/u16-to-u8: Update.
70095         * lib/unistr/u16-to-u32.c: Update.
70096         * modules/unistr/u16-to-u32: Update.
70097
70098 2007-01-27  Bruno Haible  <bruno@clisp.org>
70099
70100         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70101         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70102         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70103         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70104         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70105         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70106         modules/unistr/u8-mbtouc.
70107         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70108         * lib/unistr.h: Update.
70109         * lib/striconveh.c: Update.
70110         * modules/striconveh: Update.
70111         * lib/linebreak.c: Update.
70112         * modules/linebreak: Update.
70113         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70114         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70115         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70116         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70117         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70118         * lib/unistr.h: Update.
70119         * lib/striconveh.c: Update.
70120         * modules/striconveh: Update.
70121         * lib/unistr/u8-to-u16.c: Update.
70122         * modules/unistr/u8-to-u16: Update.
70123         * lib/unistr/u8-to-u32.c: Update.
70124         * modules/unistr/u8-to-u32: Update.
70125
70126 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70127
70128         Sync from Libtool.
70129         * lib/argz.c: Do not include strings.h nor memory.h, include
70130         string.h unconditionally.  Patch by Simon Josefsson.
70131
70132 2007-01-27  Bruno Haible  <bruno@clisp.org>
70133
70134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70135         from gl_HEADER_STRING_H_BODY.
70136         (gl_HEADER_STRING_H_BODY): Require it.
70137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70145         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70148         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70150         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70152
70153 2007-01-27  Bruno Haible  <bruno@clisp.org>
70154
70155         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70156         check_PROGRAMS into noinst_PROGRAMS.
70157         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70158         check_PROGRAMS in this case.
70159         (func_import): Set for_test to false.
70160         (func_create_testdir): Set for_test to true.
70161
70162 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70163             Bruno Haible  <bruno@clisp.org>
70164
70165         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70166         (Depends-on): Add string.
70167         (Includes): Use <string.h> instead of strcasestr.h.
70168         * modules/string (Makefile.am): Also substitute the value of
70169         REPLACE_STRCASESTR.
70170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70171         assume strcasestr is declared in <string.h> not <strings.h>. Also
70172         set REPLACE_STRCASESTR.
70173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70174         REPLACE_STRCASESTR.
70175         * lib/strcasestr.h: Remove file.
70176         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70177         * lib/string_.h (strcasestr): New declaration.
70178
70179 2007-01-27  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/string_.h: Use 'extern'.
70182
70183 2007-01-27  Jim Meyering  <jim@meyering.net>
70184
70185         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70186         of set-but-not-used local, "q".
70187
70188         * lib/mempcpy.c: Include <config.h> before <string.h>.
70189         This fixes a compilation error on HP-UX, due to the system's
70190         "restrict"-using mempcpy prototype.
70191
70192 2007-01-26  Bruno Haible  <bruno@clisp.org>
70193
70194         Small optimization.
70195         * lib/javacomp.c: Include c-strstr.h.
70196          (is_envjavac_gcj): Use c_strstr instead of strstr.
70197         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70198
70199 2007-01-26  Bruno Haible  <bruno@clisp.org>
70200
70201         * MODULES.html.sh (Unicode string functions): Add the new modules.
70202
70203         * modules/uniconv/u32-strconv-to-locale: New file.
70204         * lib/uniconv/u32-strconv-to-locale.c: New file.
70205
70206         * modules/uniconv/u16-strconv-to-locale: New file.
70207         * lib/uniconv/u16-strconv-to-locale.c: New file.
70208
70209         * modules/uniconv/u8-strconv-to-locale: New file.
70210         * lib/uniconv/u8-strconv-to-locale.c: New file.
70211
70212         * modules/uniconv/u32-strconv-from-locale: New file.
70213         * lib/uniconv/u32-strconv-from-locale.c: New file.
70214
70215         * modules/uniconv/u16-strconv-from-locale: New file.
70216         * lib/uniconv/u16-strconv-from-locale.c: New file.
70217
70218         * modules/uniconv/u8-strconv-from-locale: New file.
70219         * lib/uniconv/u8-strconv-from-locale.c: New file.
70220
70221         * modules/uniconv/u32-strconv-to-enc: New file.
70222         * lib/uniconv/u32-strconv-to-enc.c: New file.
70223         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70224         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70225
70226         * modules/uniconv/u16-strconv-to-enc: New file.
70227         * lib/uniconv/u16-strconv-to-enc.c: New file.
70228         * lib/uniconv/u-strconv-to-enc.h: New file.
70229         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70230         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70231
70232         * modules/uniconv/u8-strconv-to-enc: New file.
70233         * lib/uniconv/u8-strconv-to-enc.c: New file.
70234         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70235         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70236
70237         * modules/uniconv/u32-strconv-from-enc: New file.
70238         * lib/uniconv/u32-strconv-from-enc.c: New file.
70239         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70240         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70241
70242         * modules/uniconv/u16-strconv-from-enc: New file.
70243         * lib/uniconv/u16-strconv-from-enc.c: New file.
70244         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70245         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70246
70247         * modules/uniconv/u8-strconv-from-enc: New file.
70248         * lib/uniconv/u8-strconv-from-enc.c: New file.
70249         * lib/uniconv/u-strconv-from-enc.h: New file.
70250         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70251         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70252
70253         * modules/uniconv/u32-conv-from-enc: New file.
70254         * lib/uniconv/u32-conv-from-enc.c: New file.
70255         * modules/uniconv/u32-conv-from-enc-tests: New file.
70256         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70257
70258         * modules/uniconv/u16-conv-from-enc: New file.
70259         * lib/uniconv/u16-conv-from-enc.c: New file.
70260         * lib/uniconv/u-conv-from-enc.h: New file.
70261         * modules/uniconv/u16-conv-from-enc-tests: New file.
70262         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70263
70264         * modules/uniconv/u8-conv-from-enc: New file.
70265         * lib/uniconv/u8-conv-from-enc.c: New file.
70266         * modules/uniconv/u8-conv-from-enc-tests: New file.
70267         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70268
70269         * modules/uniconv/base: New file.
70270         * lib/uniconv.h: New file.
70271
70272 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         * doc/gnulib-tool.texi (Initial import): Update to match current
70275         behavior with strdup module.
70276         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70277         * lib/memmem.h: Remove; all uses removed.  This is now done
70278         by <string.h>.
70279         * lib/mempcpy.h: Likewise.
70280         * lib/memrchr.h: Likewise.
70281         * lib/stpcpy.h: Likewise.
70282         * lib/stpncpy.h: Likewise.
70283         * lib/strcase.h: Likewise.
70284         * lib/strchrnul.h: Likewise.
70285         * lib/strdup.h: Likewise.
70286         * lib/strndup.h: Likewise.
70287         * lib/strnlen.h: Likewise.
70288         * lib/strpbrk.h: Likewise.
70289         * lib/strsep.h: Likewise.
70290         * lib/strstr.h: Likewise.
70291         * lib/strtok_r.h: Likewise.
70292         * lib/string_.h: New file.
70293         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70294         Rely on <string.h> instead.
70295         * lib/canon-host.c: Likewise.
70296         * lib/chdir-long.c: Likewise.
70297         * lib/concatpath.c: Likewise.
70298         * lib/exclude.c: Likewise.
70299         * lib/fchdir.c: Likewise.
70300         * lib/getaddrinfo.c: Likewise.
70301         * lib/getcwd.c: Likewise.
70302         * lib/getsubopt.c: Likewise.
70303         * lib/glob.c: Likewise.
70304         * lib/hard-locale.c: Likewise.
70305         * lib/iconvme.c: Likewise.
70306         * lib/javacomp.c: Likewise.
70307         * lib/mempcpy.c: Likewise.
70308         * lib/memrchr.c: Likewise.
70309         * lib/regex_internal.h: Likewise.
70310         * lib/stpncpy.c: Likewise.
70311         * lib/strcasecmp.c: Likewise.
70312         * lib/strchrnul.c: Likewise.
70313         * lib/strdup.c: Likewise.
70314         * lib/striconv.c: Likewise.
70315         * lib/striconveh.c: Likewise.
70316         * lib/striconveha.c: Likewise.
70317         * lib/strncasecmp.c: Likewise.
70318         * lib/strndup.c: Likewise.
70319         * lib/strnlen.c: Likewise.
70320         * lib/strsep.c: Likewise.
70321         * lib/strstr.c: Likewise.
70322         * lib/strtok_r.c: Likewise.
70323         * lib/userspec.c: Likewise.
70324         * lib/w32spawn.h: Likewise.
70325         * lib/xstrndup.c: Likewise.
70326         * lib/mountlist.c (strstr): Remove decl.
70327         * m4/string_h.m4: New file.
70328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70332         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70333         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70334         Set REPLACE_STRCASECMP if necessary.
70335         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70337         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70339         HAVE_DECL_STRDUP if necessary.
70340         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70341         since gl_FUNC_STRNDUP does that now.
70342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70343         Check for decl here...
70344         (gl_PREREQ_STRNLEN): ... not here.
70345         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70346         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70347         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70349         necessary.
70350         * modules/string: New file.
70351         * modules/memmem (Files): Remove special-purpose include file.
70352         (Depends-on): Add string.
70353         (Include): Include <string.h>, not the removed file.
70354         * modules/mempcpy: Likewise.
70355         * modules/memrchr: Likewise.
70356         * modules/stpcpy: Likewise.
70357         * modules/stpncpy: Likewise.
70358         * modules/strcase: Likewise.
70359         * modules/strchrnul: Likewise.
70360         * modules/strdup: Likewise.
70361         * modules/strndup: Likewise.
70362         * modules/strnlen: Likewise.
70363         * modules/strpbrk: Likewise.
70364         * modules/strsep: Likewise.
70365         * modules/strstr: Likewise.
70366         * modules/strtok_r: Likewise.
70367         * tests/test-dirname.c: Don't include "strdup.h", since
70368         <string.h> now suffices.
70369         * tests/test-memmem.c: Don't include "memmem.h", since
70370         <string.h> now suffices.
70371
70372 2007-01-25  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70375         *resultp is 0.
70376
70377         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70378         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70379         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70380         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70381
70382         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70383         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70384         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70385         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70386         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70387         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70388
70389 2007-01-24  Bruno Haible  <bruno@clisp.org>
70390
70391         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70393         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70394         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70395         gl_FUNC_FTS_CORE.
70396         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70397         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70399         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70400         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70401         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70402         gl_FUNC_FCHOWNAT.
70403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70404         gl_FUNC_STRFTIME.
70405         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70406         Reported by Ralf Wildenhues.
70407
70408 2007-01-24  Bruno Haible  <bruno@clisp.org>
70409
70410         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70411         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70412         gl_GETADDRINFO.
70413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70414         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70415         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70416
70417 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70418
70419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70420         Don't use 'exit'; just return from 'main'.
70421         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70422
70423         * lib/fnmatch_.h: Readjust white space and comments to match
70424         glibc, to avoid spurious diffs.
70425
70426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70429         2004-12-01 change by Jakub Jelinek, since this code won't compile
70430         if !LIBC.  Problem reported by Bob Proulx.
70431
70432 2007-01-23  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/striconveh.c: Include c-strcaseeq.h.
70435         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70436         * modules/striconveh (Depends-on): Add c-strcaseeq.
70437
70438 2007-01-23  Bruno Haible  <bruno@clisp.org>
70439
70440         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70441
70442         * modules/c-strcaseeq: New file.
70443         * lib/c-strcaseeq.h: New file.
70444
70445         * modules/streq: New file.
70446         * lib/streq.h: New file.
70447
70448 2007-01-23  Bruno Haible  <bruno@clisp.org>
70449
70450         * modules/striconveha-tests: New file.
70451         * tests/test-striconveha.c: New file.
70452
70453         * lib/striconveha.h: Include <stdbool.h>.
70454         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70455         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70456         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70457         (mem_iconveha): New function.
70458         (str_iconveha_notranslit): Renamed from str_iconveha.
70459         (str_iconveha): New function.
70460         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70461         c-strcase.
70462
70463 2007-01-23  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70466         encodings without forgiving before trying any encoding with handler.
70467         (str_iconveha): Try all encodings without forgiving before trying any
70468         encoding with handler.
70469
70470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         Import the following changes from libc.
70473
70474         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70475
70476         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70477
70478         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70479
70480         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70481         normal_bracket label.
70482
70483         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70484
70485         [BZ #361]
70486         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70487         to normal_bracket after fetching the next character.
70488
70489 2007-01-22  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70492         argument.
70493         * lib/striconveh.c (iconv_carefully_1): New function.
70494         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70495         argument.
70496         (str_cd_iconveh): Update.
70497         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70498         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70499         * tests/test-striconveh.c (MAGIC): New macro.
70500         (new_offsets): New function.
70501         (main): Test call with and without offsets.
70502
70503 2007-01-22  Bruno Haible  <bruno@clisp.org>
70504
70505         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70506         * modules/sys_select (Makefile.am): Likewise.
70507         * modules/sys_socket (Makefile.am): Likewise.
70508         * modules/sys_time (Makefile.am): Likewise.
70509
70510 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * modules/gettimeofday (License): Change from GPL to LGPL, since
70513         gettimeofday is a library function.
70514
70515 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70516
70517         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70518
70519 2007-01-21  Bruno Haible  <bruno@clisp.org>
70520
70521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70522
70523 2007-01-21  Bruno Haible  <bruno@clisp.org>
70524
70525         * modules/striconveha: New file.
70526         * lib/striconveha.h: New file.
70527         * lib/striconveha.c: New file.
70528         * MODULES.html.sh (Internationalization functions): Add striconveha.
70529         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70530         string.
70531         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70532
70533 2007-01-21  Bruno Haible  <bruno@clisp.org>
70534
70535         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70536         * lib/striconveh.c (str_iconveh): Likewise.
70537
70538 2007-01-21  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/striconveh.h (mem_iconveh): New declaration.
70541         * lib/striconveh.c (mem_iconveh): New function.
70542         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70543
70544 2007-01-21  Bruno Haible  <bruno@clisp.org>
70545
70546         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70547
70548         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70549         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70550         original result buffer.
70551         (str_cd_iconveh): Update.
70552         * tests/test-striconveh.c (main): Update.
70553
70554         * lib/striconv.h (mem_cd_iconv): Change specification.
70555         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70556         result buffer.
70557         (str_cd_iconv): Update.
70558         * tests/test-striconv.c (main): Update.
70559
70560 2007-01-21  Bruno Haible  <bruno@clisp.org>
70561
70562         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70563
70564 2007-01-20  Jim Meyering  <jim@meyering.net>
70565
70566         * lib/userspec.c (parse_with_separator): If a user or group string
70567         starts with "+", skip the corresponding name-to-ID look-up, since
70568         such a look-up must fail: user and group names may not include "+".
70569
70570 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70573         since we now assume the sys_time module.
70574         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70575         check for sys/time.h; no longer needed.
70576         * modules/poll (Depends-on): Depend on sys_time.
70577
70578 2007-01-18  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70582
70583         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70584         gettimeofday.
70585
70586         * tests/test-gettimeofday.c: Include <time.h>.
70587         (dummy): Remove variable.
70588
70589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70590         gl_HEADER_SYS_TIME_H.
70591         (gl_HEADER_SYS_TIME_H): New macro.
70592
70593         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70596         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70597         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70599         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70600         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70601         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70602         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70603         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70604
70605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70606         last change; it caused a compilation error when cross-compiling to
70607         Cygwin.
70608
70609 2007-01-18  Jim Meyering  <jim@meyering.net>
70610
70611         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70612         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70613         than the race-prone "test -d sys || mkdir sys".
70614         (configure.ac): Use AC_PROG_MKDIR_P.
70615         * modules/sys_select: Likewise.
70616         * modules/sys_socket: Likewise.
70617         * modules/sys_time: Likewise.
70618
70619 2007-01-18  Eric Blake  <ebb9@byu.net>
70620
70621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70622         replace gettimeofday.
70623         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70624         name, to avoid infinite recursion.
70625
70626 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70629         module sys_time.
70630         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70631         assume timespec.h defines struct timeval.
70632         * lib/settime.c: Likewise.
70633         * lib/utimens.c: Likewise.
70634         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70635         since we now assume the gettimeofday module.
70636         * lib/tempname.c (__gen_tempname): Likewise.
70637         * lib/gettimeofday.h: Remove.
70638         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70639         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70640         Include <time.h>, for 'time()'.
70641         (localtime_buffer_addr): Also use this workaround if
70642         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70643         to simplify the uses.  All uses changed.
70644         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70645         that #undef is inside {}, and 'const' follows type name consistently.
70646         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70647         (gettimeofday): Do not use the maximum possible value for
70648         tv->tv_usec, since that might break usages other than ls.c.
70649         Instead, we'll leave ls.c alone.  This undoes today's patch
70650         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70651         we've never observed the problem but might as well keep the
70652         canary.
70653         * lib/nanosleep.c: Include timespec.h first, for interface check.
70654         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70655         now assume the sys_time module.
70656         * lib/tempname.c: Likewise.
70657         * lib/timespec.h: Likewise.
70658         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70659         needed.
70660         * lib/strftime.c: Likewise.
70661         * lib/timespec.h: Likewise.
70662         * lib/posixtm.c: Include posixtm.h first, for interface check.
70663         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70664         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70665         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70666         * lib/sys_time_.h: New file.
70667         * lib/timespec.h (struct timespec): Use long int, not long.
70668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70669         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70670         Remove obsolescent call to AC_HEADER_TIME.
70671         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70674         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70675         Likewise.
70676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70677         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70679         into the sys_time module.  Check for gettimeofday just once.
70680         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70681         for gettimeofday signature to just check the signature.  Merely
70682         compile it, since linking doesn't test signature.  Improve test for
70683         whether gettimeofday.o is actually needed.
70684         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70685         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70686         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70687         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70689         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70690         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70691         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70692         than worrying about sys/time.h.
70693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70694         Don't bother worrying about TIME_WITH_SYS_TIME.
70695         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70696         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70697         * m4/sys_time_h.m4: New file.
70698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70699         Don't include sys/time.h.  Return from main rather than exiting.
70700         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70701         all uses changed.
70702         * modules/gethrxtime (Depends-on): Add sys_time.
70703         * modules/gettime (Depends-on): Likewise.
70704         * modules/gettimeofday (Depends-on): Likewise.
70705         * modules/nanosleep (Depends-on): Likewise.
70706         * modules/settime (Depends-on): Likewise.
70707         * modules/tempname (Depends-on): Likewise.
70708         * modules/utimens (Depends-on): Likewise.
70709         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70710         (Include): Change back to <sys/time.h>.
70711         (Maintainer): Add self.
70712         * modules/sys_time: New file.
70713         * modules/tempname (Depends-on): Add gettimeofday.
70714         * tests/test-gettimeofday.c: Include <sys/time.h>
70715         rather than gettimeofday.h.
70716
70717 2007-01-17  Bruno Haible  <bruno@clisp.org>
70718
70719         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70720         the license default to GPL.
70721         (func_create_testdir): Don't complain if a module is LGPL and its
70722         tests module depends on GPLed modules.
70723
70724 2007-01-17  Bruno Haible  <bruno@clisp.org>
70725
70726         * lib/gettimeofday.c (gettimeofday): Add code for the case
70727         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70728         maximum possible value for tv->tv_usec, rather than the minimum one.
70729
70730 2005-10-08  Martin Lambers  <marlam@marlam.de>
70731 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70732 2007-01-16  Bruno Haible  <bruno@clisp.org>
70733
70734         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70735         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70736         gl_FUNC_GETTIMEOFDAY.
70737         (Include): Add gettimeofday.h.
70738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70741         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70742         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70743         * lib/gettimeofday.h: New file.
70744         * lib/gettimeofday.c: Include <sys/timeb.h>.
70745         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70746         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70747         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70748         fall back on time().
70749
70750         * tests/test-gettimeofday.c: New file.
70751         * modules/gettimeofday-tests: New file.
70752
70753 2007-01-16  Eric Blake  <ebb9@byu.net>
70754
70755         * modules/fnmatch (Depends-on): Depend on wchar.
70756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70757         * m4/fnmatch.m4: Likewise.
70758         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70759         * m4/mbchar.m4: Likewise.
70760         * modules/mbswidth (Depends-on): Depend on wchar.
70761         * lib/mbswidth.c: Assume <wchar.h>.
70762         * m4/mbswidth.m4: Likewise.
70763         * modules/quotearg (Depends-on): Depend on wchar.
70764         * lib/quotearg.c: Assume <wchar.h>.
70765         * m4/quotearg.m4: Likewise.
70766         * modules/regex (Depends-on): Depend on wchar.
70767         * lib/regex_internal.h: Assume <wchar.h>.
70768         * m4/regex.m4: Likewise.
70769         * modules/stdint (Depends-on): Depend on wchar.
70770         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70771         * m4/stdint.m4: Likewise.
70772         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70773         * modules/strftime (Depends-on): Depend on wchar.
70774         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70775         * modules/strtol (Depends-on): Depend on wchar.
70776         * lib/strtol.c: Assume <wchar.h>.
70777         * modules/wcwidth (Depends-on): Depend on wchar.
70778         * lib/wcwidth.h: Assume <wchar.h>.
70779         * m4/wcwidth.m4: Likewise.
70780
70781 2007-01-16  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/csharpexec-script: New, created from...
70784         * modules/csharpexec: ... this.
70785
70786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70787
70788         * modules/javaexec-script: New, created from...
70789         * modules/javaexec: ... this.
70790
70791 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70792
70793         * modules/poll (Dependencies): Add sys_select.
70794
70795 2007-01-15  Jim Meyering  <jim@meyering.net>
70796
70797         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70798         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70799         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70800         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70801
70802 2007-01-15  Bruno Haible  <bruno@clisp.org>
70803
70804         * modules/striconveh: New file.
70805         * lib/striconveh.h: New file.
70806         * lib/striconveh.c: New file.
70807         * MODULES.html.sh (Internationalization functions): Add striconveh.
70808
70809         * modules/striconveh-tests: New file.
70810         * tests/test-striconveh.c: New file.
70811
70812 2007-01-15  Bruno Haible  <bruno@clisp.org>
70813
70814         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70815         not from GNU libiconv or GNU libc.
70816
70817 2007-01-15  Bruno Haible  <bruno@clisp.org>
70818
70819         * doc/gnulib-intro.texi (Copyright): Explain the different license
70820         terms for module descriptions, autoconf macros, tests, documentation.
70821
70822 2007-01-14  Bruno Haible  <bruno@clisp.org>
70823
70824         * modules/striconv-tests: New file.
70825         * tests/test-striconv.c: New file.
70826
70827 2007-01-14  Bruno Haible  <bruno@clisp.org>
70828
70829         * modules/iconv-tests: New file.
70830         * tests/test-iconv.c: New file.
70831
70832 2007-01-14  Bruno Haible  <bruno@clisp.org>
70833
70834         * gnulib-tool (func_get_license): For test modules, use the license of
70835         the main module.
70836
70837 2007-01-14  Bruno Haible  <bruno@clisp.org>
70838
70839         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70840         if iconv is found to exist.
70841
70842 2007-01-14  Bruno Haible  <bruno@clisp.org>
70843
70844         * modules/c-ctype-tests: New file.
70845         * tests/test-c-ctype.c: New file.
70846
70847 2007-01-14  Bruno Haible  <bruno@clisp.org>
70848
70849         * modules/binary-io-tests: New file.
70850         * tests/test-binary-io.sh: New file.
70851         * tests/test-binary-io.c: New file.
70852
70853 2007-01-14  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/array-oset-tests: New file.
70856         * tests/test-array_oset.c: New file.
70857
70858 2007-01-14  Bruno Haible  <bruno@clisp.org>
70859
70860         * modules/array-list-tests: New file.
70861         * tests/test-array_list.c: New file.
70862
70863 2007-01-14  Bruno Haible  <bruno@clisp.org>
70864
70865         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70866         and make.
70867         Reported by Simon Josefsson in
70868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70869
70870 2007-01-14  Bruno Haible  <bruno@clisp.org>
70871
70872         * modules/allocsa-tests: New file.
70873         * tests/test-allocsa.c: New file.
70874
70875 2007-01-14  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/fchdir (Depends-on): Add absolute-header.
70878         * modules/unistd (Depends-on): Likewise.
70879
70880 2006-12-30  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/fchdir: New file.
70883         * modules/unistd (Files): Add lib/unistd_.h.
70884         (Makefile.am): Generate unistd.h from unistd_.h.
70885         * lib/fchdir.c: New file.
70886         * lib/dirent_.h: New file.
70887         * lib/unistd_.h: New file.
70888         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70889         * m4/fchdir.m4: New file.
70890         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70891         (gl_HEADER_UNISTD): Invoke it.
70892         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70893         function.
70894         * lib/backupfile.c (opendir, closedir): Undefine.
70895         * lib/chown.c (open, close): Undefine.
70896         * lib/clean-temp.c (open, close): Undefine.
70897         * lib/copy-file.c (open, close): Undefine.
70898         * lib/execute.c (open, close): Undefine.
70899         * lib/fsusage.c (open, close): Undefine.
70900         * lib/gc-gnulib.c (open, close): Undefine.
70901         * lib/getcwd.c (opendir, closedir): Undefine.
70902         * lib/glob.c (opendir, closedir): Undefine.
70903         * lib/javacomp.c (open, close): Undefine.
70904         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70905         * lib/openat-proc.c (open, close): Undefine.
70906         * lib/pagealign_alloc.c (open, close): Undefine.
70907         * lib/pipe.c (open, close): Undefine.
70908         * lib/progreloc.c (open, close): Undefine.
70909         * lib/savedir.c (opendir, closedir): Undefine.
70910         * lib/utime.c (open, close): Undefine.
70911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70912
70913 2007-01-10  Bruno Haible  <bruno@clisp.org>
70914
70915         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70916
70917 2007-01-12  Eric Blake  <ebb9@byu.net>
70918
70919         Provide a robust <wchar.h>.  Further simplifications are now
70920         possible in other modules, but not included here.
70921         * modules/wchar: New module.
70922         * m4/wchar.m4: New file.
70923         * lib/wchar_.h: Likewise.
70924         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70925         of the new module.
70926         * MODULES.html.sh (Extended multibyte and wide character utilities):
70927         New section.
70928
70929 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70932         to a reasonable default for memory allocation.
70933         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70934         file system that reports garbage st_size values for symlinks.
70935         Problem reported by Liyang Hu.
70936
70937 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70938
70939         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70940         Emacs .#* auto-save files).
70941
70942 2007-01-11  Bruno Haible  <bruno@clisp.org>
70943
70944         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70945         directory.
70946
70947 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         Use @...@ consistently in lib/wctype_.h.
70950         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70951         on it being set to 1 or 0.
70952         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70953         go back to AC_SUBSTing it.
70954         * modules/wctype (Makefile.am): Undo previous change.
70955
70956 2007-01-10  Eric Blake  <ebb9@byu.net>
70957
70958         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70959         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70960         * modules/wctype (Makefile.am): Likewise.
70961         Reported by Chris McGuire.
70962
70963 2007-01-10  Jim Meyering  <jim@meyering.net>
70964
70965         fts.c: a small readability/maintainability improvement
70966         * lib/fts.c (fts_read): Make this code slightly more readable and
70967         maintainable by hoisting the "sp->fts_cur = p" assignments to
70968         immediately follow the statements that set P.  Derived from
70969         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70970
70971 2007-01-10  Eric Blake  <ebb9@byu.net>
70972
70973         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70974         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70976         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70977         Reported by Chris McGuire.
70978
70979 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70980
70981         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70982         in sed script.
70983
70984 2007-01-09  Bruno Haible  <bruno@clisp.org>
70985
70986         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70987         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70988         variables.
70989         (func_module): Use them.
70990
70991 2007-01-09  Bruno Haible  <bruno@clisp.org>
70992
70993         * modules/unistr/base: New file.
70994         * lib/unistr.h: New file.
70995
70996         * modules/unistr/u8-to-u16: New file.
70997         * lib/unistr/u8-to-u16.c: New file.
70998
70999         * modules/unistr/u8-to-u32: New file.
71000         * lib/unistr/u8-to-u32.c: New file.
71001
71002         * modules/unistr/u16-to-u8: New file.
71003         * lib/unistr/u16-to-u8.c: New file.
71004
71005         * modules/unistr/u16-to-u32: New file.
71006         * lib/unistr/u16-to-u32.c: New file.
71007
71008         * modules/unistr/u32-to-u8: New file.
71009         * lib/unistr/u32-to-u8.c: New file.
71010
71011         * modules/unistr/u32-to-u16: New file.
71012         * lib/unistr/u32-to-u16.c: New file.
71013
71014         * modules/unistr/u8-check: New file.
71015         * modules/unistr/u16-check: New file.
71016         * modules/unistr/u32-check: New file.
71017         * lib/unistr/u8-check.c: New file.
71018         * lib/unistr/u16-check.c: New file.
71019         * lib/unistr/u32-check.c: New file.
71020
71021         * modules/unistr/u8-chr: New file.
71022         * modules/unistr/u16-chr: New file.
71023         * modules/unistr/u32-chr: New file.
71024         * lib/unistr/u8-chr.c: New file.
71025         * lib/unistr/u16-chr.c: New file.
71026         * lib/unistr/u32-chr.c: New file.
71027
71028         * modules/unistr/u8-cmp: New file.
71029         * modules/unistr/u16-cmp: New file.
71030         * modules/unistr/u32-cmp: New file.
71031         * lib/unistr/u8-cmp.c: New file.
71032         * lib/unistr/u16-cmp.c: New file.
71033         * lib/unistr/u32-cmp.c: New file.
71034
71035         * modules/unistr/u8-cpy: New file.
71036         * modules/unistr/u16-cpy: New file.
71037         * modules/unistr/u32-cpy: New file.
71038         * lib/unistr/u8-cpy.c: New file.
71039         * lib/unistr/u16-cpy.c: New file.
71040         * lib/unistr/u32-cpy.c: New file.
71041         * lib/unistr/u-cpy.h: New file.
71042
71043         * modules/unistr/u8-cpy-alloc: New file.
71044         * modules/unistr/u16-cpy-alloc: New file.
71045         * modules/unistr/u32-cpy-alloc: New file.
71046         * lib/unistr/u8-cpy-alloc.c: New file.
71047         * lib/unistr/u16-cpy-alloc.c: New file.
71048         * lib/unistr/u32-cpy-alloc.c: New file.
71049         * lib/unistr/u-cpy-alloc.h: New file.
71050
71051         * modules/unistr/u8-endswith: New file.
71052         * modules/unistr/u16-endswith: New file.
71053         * modules/unistr/u32-endswith: New file.
71054         * lib/unistr/u8-endswith.c: New file.
71055         * lib/unistr/u16-endswith.c: New file.
71056         * lib/unistr/u32-endswith.c: New file.
71057         * lib/unistr/u-endswith.h: New file.
71058
71059         * modules/unistr/u8-mblen: New file.
71060         * modules/unistr/u16-mblen: New file.
71061         * modules/unistr/u32-mblen: New file.
71062         * lib/unistr/u8-mblen.c: New file.
71063         * lib/unistr/u16-mblen.c: New file.
71064         * lib/unistr/u32-mblen.c: New file.
71065
71066         * modules/unistr/u8-mbtouc: New file.
71067         * modules/unistr/u16-mbtouc: New file.
71068         * modules/unistr/u32-mbtouc: New file.
71069         * lib/unistr/u8-mbtouc.c: New file.
71070         * lib/unistr/u16-mbtouc.c: New file.
71071         * lib/unistr/u32-mbtouc.c: New file.
71072
71073         * modules/unistr/u8-mbtouc-safe: New file.
71074         * modules/unistr/u16-mbtouc-safe: New file.
71075         * modules/unistr/u32-mbtouc-safe: New file.
71076         * lib/unistr/u8-mbtouc-safe.c: New file.
71077         * lib/unistr/u16-mbtouc-safe.c: New file.
71078         * lib/unistr/u32-mbtouc-safe.c: New file.
71079
71080         * modules/unistr/u8-move: New file.
71081         * modules/unistr/u16-move: New file.
71082         * modules/unistr/u32-move: New file.
71083         * lib/unistr/u8-move.c: New file.
71084         * lib/unistr/u16-move.c: New file.
71085         * lib/unistr/u32-move.c: New file.
71086         * lib/unistr/u-move.h: New file.
71087
71088         * modules/unistr/u8-next: New file.
71089         * modules/unistr/u16-next: New file.
71090         * modules/unistr/u32-next: New file.
71091         * lib/unistr/u8-next.c: New file.
71092         * lib/unistr/u16-next.c: New file.
71093         * lib/unistr/u32-next.c: New file.
71094
71095         * modules/unistr/u8-prev: New file.
71096         * modules/unistr/u16-prev: New file.
71097         * modules/unistr/u32-prev: New file.
71098         * lib/unistr/u8-prev.c: New file.
71099         * lib/unistr/u16-prev.c: New file.
71100         * lib/unistr/u32-prev.c: New file.
71101
71102         * modules/unistr/u8-set: New file.
71103         * modules/unistr/u16-set: New file.
71104         * modules/unistr/u32-set: New file.
71105         * lib/unistr/u8-set.c: New file.
71106         * lib/unistr/u16-set.c: New file.
71107         * lib/unistr/u32-set.c: New file.
71108         * lib/unistr/u-set.h: New file.
71109
71110         * modules/unistr/u8-startswith: New file.
71111         * modules/unistr/u16-startswith: New file.
71112         * modules/unistr/u32-startswith: New file.
71113         * lib/unistr/u8-startswith.c: New file.
71114         * lib/unistr/u16-startswith.c: New file.
71115         * lib/unistr/u32-startswith.c: New file.
71116         * lib/unistr/u-startswith.h: New file.
71117
71118         * modules/unistr/u8-stpcpy: New file.
71119         * modules/unistr/u16-stpcpy: New file.
71120         * modules/unistr/u32-stpcpy: New file.
71121         * lib/unistr/u8-stpcpy.c: New file.
71122         * lib/unistr/u16-stpcpy.c: New file.
71123         * lib/unistr/u32-stpcpy.c: New file.
71124         * lib/unistr/u-stpcpy.h: New file.
71125
71126         * modules/unistr/u8-stpncpy: New file.
71127         * modules/unistr/u16-stpncpy: New file.
71128         * modules/unistr/u32-stpncpy: New file.
71129         * lib/unistr/u8-stpncpy.c: New file.
71130         * lib/unistr/u16-stpncpy.c: New file.
71131         * lib/unistr/u32-stpncpy.c: New file.
71132         * lib/unistr/u-stpncpy.h: New file.
71133
71134         * modules/unistr/u8-strcat: New file.
71135         * modules/unistr/u16-strcat: New file.
71136         * modules/unistr/u32-strcat: New file.
71137         * lib/unistr/u8-strcat.c: New file.
71138         * lib/unistr/u16-strcat.c: New file.
71139         * lib/unistr/u32-strcat.c: New file.
71140         * lib/unistr/u-strcat.h: New file.
71141
71142         * modules/unistr/u8-strchr: New file.
71143         * modules/unistr/u16-strchr: New file.
71144         * modules/unistr/u32-strchr: New file.
71145         * lib/unistr/u8-strchr.c: New file.
71146         * lib/unistr/u16-strchr.c: New file.
71147         * lib/unistr/u32-strchr.c: New file.
71148
71149         * modules/unistr/u8-strcmp: New file.
71150         * modules/unistr/u16-strcmp: New file.
71151         * modules/unistr/u32-strcmp: New file.
71152         * lib/unistr/u8-strcmp.c: New file.
71153         * lib/unistr/u16-strcmp.c: New file.
71154         * lib/unistr/u32-strcmp.c: New file.
71155
71156         * modules/unistr/u8-strcpy: New file.
71157         * modules/unistr/u16-strcpy: New file.
71158         * modules/unistr/u32-strcpy: New file.
71159         * lib/unistr/u8-strcpy.c: New file.
71160         * lib/unistr/u16-strcpy.c: New file.
71161         * lib/unistr/u32-strcpy.c: New file.
71162         * lib/unistr/u-strcpy.h: New file.
71163
71164         * modules/unistr/u8-strcspn: New file.
71165         * modules/unistr/u16-strcspn: New file.
71166         * modules/unistr/u32-strcspn: New file.
71167         * lib/unistr/u8-strcspn.c: New file.
71168         * lib/unistr/u16-strcspn.c: New file.
71169         * lib/unistr/u32-strcspn.c: New file.
71170         * lib/unistr/u-strcspn.h: New file.
71171
71172         * modules/unistr/u8-strdup: New file.
71173         * modules/unistr/u16-strdup: New file.
71174         * modules/unistr/u32-strdup: New file.
71175         * lib/unistr/u8-strdup.c: New file.
71176         * lib/unistr/u16-strdup.c: New file.
71177         * lib/unistr/u32-strdup.c: New file.
71178         * lib/unistr/u-strdup.h: New file.
71179
71180         * modules/unistr/u8-strlen: New file.
71181         * modules/unistr/u16-strlen: New file.
71182         * modules/unistr/u32-strlen: New file.
71183         * lib/unistr/u8-strlen.c: New file.
71184         * lib/unistr/u16-strlen.c: New file.
71185         * lib/unistr/u32-strlen.c: New file.
71186         * lib/unistr/u-strlen.h: New file.
71187
71188         * modules/unistr/u8-strmblen: New file.
71189         * modules/unistr/u16-strmblen: New file.
71190         * modules/unistr/u32-strmblen: New file.
71191         * lib/unistr/u8-strmblen.c: New file.
71192         * lib/unistr/u16-strmblen.c: New file.
71193         * lib/unistr/u32-strmblen.c: New file.
71194
71195         * modules/unistr/u8-strmbtouc: New file.
71196         * modules/unistr/u16-strmbtouc: New file.
71197         * modules/unistr/u32-strmbtouc: New file.
71198         * lib/unistr/u8-strmbtouc.c: New file.
71199         * lib/unistr/u16-strmbtouc.c: New file.
71200         * lib/unistr/u32-strmbtouc.c: New file.
71201
71202         * modules/unistr/u8-strncat: New file.
71203         * modules/unistr/u16-strncat: New file.
71204         * modules/unistr/u32-strncat: New file.
71205         * lib/unistr/u8-strncat.c: New file.
71206         * lib/unistr/u16-strncat.c: New file.
71207         * lib/unistr/u32-strncat.c: New file.
71208         * lib/unistr/u-strncat.h: New file.
71209
71210         * modules/unistr/u8-strncmp: New file.
71211         * modules/unistr/u16-strncmp: New file.
71212         * modules/unistr/u32-strncmp: New file.
71213         * lib/unistr/u8-strncmp.c: New file.
71214         * lib/unistr/u16-strncmp.c: New file.
71215         * lib/unistr/u32-strncmp.c: New file.
71216
71217         * modules/unistr/u8-strncpy: New file.
71218         * modules/unistr/u16-strncpy: New file.
71219         * modules/unistr/u32-strncpy: New file.
71220         * lib/unistr/u8-strncpy.c: New file.
71221         * lib/unistr/u16-strncpy.c: New file.
71222         * lib/unistr/u32-strncpy.c: New file.
71223         * lib/unistr/u-strncpy.h: New file.
71224
71225         * modules/unistr/u8-strnlen: New file.
71226         * modules/unistr/u16-strnlen: New file.
71227         * modules/unistr/u32-strnlen: New file.
71228         * lib/unistr/u8-strnlen.c: New file.
71229         * lib/unistr/u16-strnlen.c: New file.
71230         * lib/unistr/u32-strnlen.c: New file.
71231         * lib/unistr/u-strnlen.h: New file.
71232
71233         * modules/unistr/u8-strpbrk: New file.
71234         * modules/unistr/u16-strpbrk: New file.
71235         * modules/unistr/u32-strpbrk: New file.
71236         * lib/unistr/u8-strpbrk.c: New file.
71237         * lib/unistr/u16-strpbrk.c: New file.
71238         * lib/unistr/u32-strpbrk.c: New file.
71239         * lib/unistr/u-strpbrk.h: New file.
71240
71241         * modules/unistr/u8-strrchr: New file.
71242         * modules/unistr/u16-strrchr: New file.
71243         * modules/unistr/u32-strrchr: New file.
71244         * lib/unistr/u8-strrchr.c: New file.
71245         * lib/unistr/u16-strrchr.c: New file.
71246         * lib/unistr/u32-strrchr.c: New file.
71247
71248         * modules/unistr/u8-strspn: New file.
71249         * modules/unistr/u16-strspn: New file.
71250         * modules/unistr/u32-strspn: New file.
71251         * lib/unistr/u8-strspn.c: New file.
71252         * lib/unistr/u16-strspn.c: New file.
71253         * lib/unistr/u32-strspn.c: New file.
71254         * lib/unistr/u-strspn.h: New file.
71255
71256         * modules/unistr/u8-strstr: New file.
71257         * modules/unistr/u16-strstr: New file.
71258         * modules/unistr/u32-strstr: New file.
71259         * lib/unistr/u8-strstr.c: New file.
71260         * lib/unistr/u16-strstr.c: New file.
71261         * lib/unistr/u32-strstr.c: New file.
71262         * lib/unistr/u-strstr.h: New file.
71263
71264         * modules/unistr/u8-strtok: New file.
71265         * modules/unistr/u16-strtok: New file.
71266         * modules/unistr/u32-strtok: New file.
71267         * lib/unistr/u8-strtok.c: New file.
71268         * lib/unistr/u16-strtok.c: New file.
71269         * lib/unistr/u32-strtok.c: New file.
71270         * lib/unistr/u-strtok.h: New file.
71271
71272         * modules/unistr/u8-uctomb: New file.
71273         * modules/unistr/u16-uctomb: New file.
71274         * modules/unistr/u32-uctomb: New file.
71275         * lib/unistr/u8-uctomb.c: New file.
71276         * lib/unistr/u16-uctomb.c: New file.
71277         * lib/unistr/u32-uctomb.c: New file.
71278
71279         * MODULES.html.sh (Unicode string functions): Add the new modules.
71280
71281 2007-01-08  Bruno Haible  <bruno@clisp.org>
71282
71283         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71284         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71285         subdirectories.
71286
71287 2007-01-08  Karl Berry  <karl@gnu.org>
71288
71289         * doc/error.texi: mention that main() fns must set program_name
71290         when progname is used.
71291
71292 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71295         WCTYPE_H is empty, for the benefit of builds from non-distclean
71296         directories.  Problem reported by Eric Blake in
71297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71298
71299 2007-01-08  Bruno Haible  <bruno@clisp.org>
71300
71301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71302         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71303         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71304         PROVIDE_CANONICALIZE_FILENAME_MODE.
71305         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71306
71307 2007-01-08  Bruno Haible  <bruno@clisp.org>
71308
71309         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71310         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71311         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71312         * lib/fts.c: Likewise.
71313         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71314
71315 2006-12-25  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/utf8-ucs4-safe: New file.
71318         * lib/utf8-ucs4-safe.h: New file.
71319         * lib/unistr/utf8-ucs4-safe.c: New file.
71320
71321         * modules/utf16-ucs4-safe: New file.
71322         * lib/utf16-ucs4-safe.h: New file.
71323         * lib/unistr/utf16-ucs4-safe.c: New file.
71324
71325         * MODULES.html.sh (Unicode string functions): Add the new modules.
71326
71327 2007-01-08  Bruno Haible  <bruno@clisp.org>
71328
71329         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71330         (Depends-on): Add unitypes.
71331         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71332         (u8_mbtouc_aux): Move out to separate file.
71333         (u8_mbtouc): Use ucs4_t, uint8_t types.
71334         * lib/unistr/utf8-ucs4.c: New file.
71335
71336         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71337         (Depends-on): Add unitypes.
71338         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71339         (u16_mbtouc_aux): Move out to separate file.
71340         (u16_mbtouc): Use ucs4_t, uint16_t types.
71341         * lib/unistr/utf16-ucs4.c: New file.
71342
71343         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71344         (Depends-on): Add unitypes.
71345         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71346         (u8_uctomb_aux): Move out to separate file.
71347         (u8_uctomb): Use ucs4_t, uint8_t types.
71348         * lib/unistr/ucs4-utf8.c: New file.
71349
71350         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71351         (Depends-on): Add unitypes.
71352         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71353         (u16_uctomb_aux): Move out to separate file.
71354         (u16_uctomb): Use ucs4_t, uint16_t types.
71355         * lib/unistr/ucs4-utf16.c: New file.
71356
71357 2006-12-25  Bruno Haible  <bruno@clisp.org>
71358
71359         * modules/unitypes: New file.
71360         * lib/unitypes.h: New file.
71361         * MODULES.html.sh (func_all_modules): New section "Unicode string
71362         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71363         this section. Add unitypes.
71364
71365 2007-01-08  Bruno Haible  <bruno@clisp.org>
71366
71367         Avoid variable names that conflict with those from libtool.
71368         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71369         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71370         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71371         library_names_spec to acl_library_names_spec, hardcode_* to
71372         acl_hardcode_*.
71373         Reported by Ralf Wildenhues.
71374
71375 2007-01-08  Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71378         definition.
71379         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71380         definition.
71381         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71382         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71383         definition.
71384         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71385         definition.
71386         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71387         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71388         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71389         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71390         definition.
71391         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71392         definition.
71393         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71394         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71395         GC_USE_<algorithm>.
71396         * lib/gc-libgcrypt.c: Likewise.
71397         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71398         * modules/gc-arctwo (configure.ac): Likewise.
71399         * modules/gc-des (configure.ac): Likewise.
71400         * modules/gc-hmac-md5 (configure.ac): Likewise.
71401         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71402         * modules/gc-md2 (configure.ac): Likewise.
71403         * modules/gc-md4 (configure.ac): Likewise.
71404         * modules/gc-md5 (configure.ac): Likewise.
71405         * modules/gc-random (configure.ac): Likewise.
71406         * modules/gc-rijndael (configure.ac): Likewise.
71407         * modules/gc-sha1 (configure.ac): Likewise.
71408
71409 2007-01-08  Bruno Haible  <bruno@clisp.org>
71410
71411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71412         macro definition.
71413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71414         definition.
71415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71416         definition.
71417         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71418         * modules/fcntl-safer (configure.ac): Likewise.
71419         * modules/fopen-safer (configure.ac): Likewise.
71420         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71421         GNULIB_FWRITEERROR macro definition.
71422
71423 2007-01-08  Bruno Haible  <bruno@clisp.org>
71424
71425         * m4/gnulib-common.m4: New file.
71426         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71427         (func_get_filelist): Add m4/gnulib-common.m4.
71428
71429 2007-01-08  Bruno Haible  <bruno@clisp.org>
71430
71431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71432         command.
71433
71434 2007-01-08  Jim Meyering  <jim@meyering.net>
71435
71436         Use a more robust test for a "can't happen" condition.
71437         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71438         narrowed the st_size value.  Presuming the "can't happen" condition
71439         is true, that narrowing could conceivably convert an invalid st_size
71440         value into a valid one.  Instead, use a change based on Matthew
71441         Woehlke's original patch.
71442
71443         Slight readability improvement: use an assert-like macro
71444         in place of literal "abort ()" uses.
71445         * lib/fts.c (fts_assert): Define.
71446         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71447         Use this macro instead of a bare 'abort'.
71448
71449 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71452         simply work around them.
71453         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71455         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71456         declaring.
71457         Don't bother to define as macros, since the standard doesn't require it.
71458         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71459         longer worry about IRIX 5.3.
71460         (HAVE_WCTYPE_CTMP_BUG): Remove.
71461
71462 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71465         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71467         Problems reported by Georg Schwarz for IRIX 5.3.
71468
71469         * gnulib-tool (autoconf_minversion): Take the maximum version number
71470         found, not the minimum.  Problem reported by James Youngman.
71471
71472 2007-01-03  Karl Berry  <karl@gnu.org>
71473
71474         * doc/error.texi: new file, explaining interaction with progname.
71475         * doc/gnulib.texi: include it.  Update copyright.
71476
71477 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71478
71479         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71480         AC_CANONICAL_HOST, to improve autobuild outputs.
71481
71482 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71483             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71484
71485         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71486         sockets, server sockets, and other file descriptors.  Count errors
71487         to compute the return value.  Reorder the code a bit to be easier
71488         to follow.  Don't set event bits that were not requested (except
71489         POLLERR and POLLHUP).
71490
71491 2007-01-01  Bruno Haible  <bruno@clisp.org>
71492
71493         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71494
71495 2007-01-03  Jim Meyering  <jim@meyering.net>
71496
71497         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71498
71499 2007-01-02  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/settime (Include): Require timespec.h.
71502         * modules/nanosleep (Include): Likewise.
71503
71504 2007-01-01  Bruno Haible  <bruno@clisp.org>
71505
71506         * gnulib-tool (func_emit_copyright_notice): Bump year.
71507         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71508
71509 2007-01-01  Bruno Haible  <bruno@clisp.org>
71510
71511         Improve support for OpenBSD.
71512         * build-aux/config.rpath (libname_spec): Export.
71513         (library_names_spec): New variable. Export.
71514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71515         library_names_spec from the config.rpath output. Locate shared library
71516         through the name pattern in library_names_spec.
71517
71518 2007-01-01  Eric Blake  <ebb9@byu.net>
71519
71520         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71521
71522 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71523
71524         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71525         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71526         assume the C locale, and avoid an "eval" that could cause trouble.
71527         Problem with SORT reported by Bob Proulx.
71528
71529         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71530         Define.  Trivial patch from Henning Nielsen Lund, originally
71531         sent to bug-grep@gnu.org today.
71532
71533 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71536         struct stat.  Problem reported by Henning Nielsen Lund.
71537         * lib/acl.c: Include acl.h first, to check interface.  Don't
71538         bother to include sys/types.h and sys/stat.h again.
71539
71540 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         Import the following change from libc; problem reported by
71543         Sven Verdoolaege.
71544
71545         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71546
71547         [BZ #1373]
71548         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71549
71550 2006-12-28  Jim Meyering  <jim@meyering.net>
71551
71552         * build-aux/announce-gen: Do not assume that the package
71553         builds any of tar.gz, tar.bz2, and .xdelta files.
71554         Suggestion from Simon Josefsson.
71555
71556 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71557
71558         * modules/announce-gen: New file.
71559
71560 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71563         handles its gotchas now.
71564         * lib/mbswidth.c: Likewise.
71565         * lib/wcwidth.h: Likewise.
71566         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71567         and iswcntrl; the wctype module does this stuff now.
71568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71570         * modules/mbchar (Depends-on): Add wctype.
71571         * modules/mbswidth (Depends-on): Likewise.
71572         * modules/wcwidth (Depends-on): Likewise.
71573
71574 2006-12-27  Eric Blake  <ebb9@byu.net>
71575
71576         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71577         module uses more than what <wctype.h> is required to provide.
71578
71579 2006-12-26  Eric Blake  <ebb9@byu.net>
71580
71581         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71582
71583 2006-12-26  Eric Blake  <ebb9@byu.net>
71584
71585         * modules/absolute-header: New module.
71586         * modules/fcntl (Depends-on): Depend on it.
71587         * modules/inttypes (Depends-on): Likewise.
71588         * modules/stdint (Depends-on): Likewise.
71589         * modules/sys_stat (Depends-on): Likewise.
71590         * modules/wctype (Depends-on): Likewise.
71591         * MODULES.html.sh (Support for building libraries and
71592         executables): Document it.
71593
71594 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * gnulib-tool (SED): Remove, undoing previous change.
71597         The problem was that it broke coreutils on Solaris, because
71598         "sed --posix" leaked into a makefile.
71599         (sed): New alias, if 'alias' and GNU sed.
71600
71601 2006-12-24  Jim Meyering  <jim@meyering.net>
71602
71603         Work around an fchownat bug in glibc-2.4:
71604         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71605         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71606         in spite of the -P option.
71607         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71608         New macros.
71609         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71610         * modules/openat (Files): Add lib/fchownat.c.
71611         * lib/openat.c (fchownat): Don't define here.  Move to...
71612         * lib/fchownat.c: ...this new file.
71613
71614 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         Fix bug reported by Bruno Haible in
71617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71618         where quotearg.c didn't compile on Mac OS X 10.2 because it
71619         lacks <wchar.h> and wint_t.
71620         * lib/wctype_.h (__wctype_wint_t): New type.
71621         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71622         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71623         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71624         Arg is now of type __wctype_wint_t, not wint_t.
71625         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71626         substitute HAVE_WINT_T.
71627         * modules/wctype (Files): Add m4/wint_t.m4.
71628         (wctype.h): Substitute HAVE_WINT_T.
71629
71630 2006-12-23  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71633
71634 2006-12-23  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71637         S_ISLNK.
71638         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71639         mingw.
71640
71641 2006-12-22  Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/copy-file.c: Include acl.h.
71644         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71645         Close the file descriptors only after being done with copy_acl.
71646         * modules/copy-file (Depends-on): Add acl.
71647
71648 2006-12-22  Bruno Haible  <bruno@clisp.org>
71649
71650         * gnulib-tool (SED): New variable.
71651         Use $SED instead of sed everywhere.
71652
71653 2006-12-22  Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/no-c++: New file.
71656         * m4/no-c++.m4: New file.
71657         * MODULES.html.sh (Support for building libraries and executables):
71658         Add no-c++.
71659
71660 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71663         Include <limits.h>, and use its INT_MAX to rewrite the
71664         j loop so that it does not overflow 'int'.  Problem reported by
71665         Ralf Wildenhues in
71666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71667         Play it safe by shifting left by 1 rather than multiplying by 2,
71668         as GCC is less likely to optimize this away when the value
71669         is signed (when it assumes overflow leads to undefined behavior).
71670         Also, don't assume time_t uses two's complement.
71671
71672 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * MODULES.html.sh: New module wctype.
71675         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71676         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71677         <wctype.h>, since the new wctype module should fix this.
71678         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71679         the wctype module should arrange for it.
71680         * lib/regex_internal.h: Likewise.
71681         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71682         since the wctype module should handle this now.
71683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71684         * modules/fnmatch (Depends-on): Add wctype.
71685         * modules/quotearg (Depends-on): Likewise.
71686         * modules/regex (Depends-on): Likewise.
71687
71688 2006-12-19  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71691         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71692
71693 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71694
71695         * modules/savewd (Depends-on): Fix dependency on fcntl.
71696
71697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71700         conforms to C99, rather than relying on the user's environment
71701         setting of STDINT_H.
71702
71703 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71704         and Eric Blake  <ebb9@byu.net>
71705
71706         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71707         This is more consistent with the other defines here.
71708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71709         Port to z/OS.  Problem reported by Paul Gilmartin.
71710         Change local vars to use gl_ prefix rather than ac_.
71711         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71712         with other defines.
71713         * modules/double-slash-root: New module.
71714         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71715         (Depends-on): Add double-slash-root.
71716         * MODULES.html.sh (File system functions): Mention new module.
71717
71718 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71721         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71722         This is for the benefit of gzip, which doesn't do i18n.
71723
71724 2006-12-12  Jim Meyering  <jim@meyering.net>
71725
71726         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71727         Reported by Andreas Schwab <schwab@suse.de>.
71728
71729 2006-12-12  Bruno Haible  <bruno@clisp.org>
71730
71731         Merge these changes.
71732         2006-09-05  Bruno Haible  <bruno@clisp.org>
71733         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71734         iconv_alloc succeeded.
71735         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71736         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71737         test for " && dest " at the end - dest is always != NULL there. Call
71738         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71739         with 2xNULL arguments, also to flush the state storage. Handle the
71740         IRIX iconv behaviour. Realloc the final result, to throw away unused
71741         memory.
71742
71743 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71746         and fchmodat unconditionally, since glibc 2.4 has them.
71747         Problem reported by Arkadiusz Miskiewicz.
71748
71749 2006-12-10  Bruno Haible  <bruno@clisp.org>
71750
71751         * gnulib-tool (func_import): Show the include files only for those
71752         modules that are copied and specified.
71753         Reported by Karl Berry.
71754
71755 2006-12-08  Jim Meyering  <jim@meyering.net>
71756
71757         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71758         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71759
71760         * build-aux/announce-gen: Add two new options, both optional:
71761         --bootstrap-tools=TOOL_LIST
71762               a comma-separated list of tools, e.g.,
71763               autoconf,automake,bison,gnulib
71764         --gnulib-snapshot-date=DATE
71765               if gnulib is in the bootstrap tool list,
71766               then report this as the snapshot date.
71767               If not specified, use the current date/time.
71768               If you specify a date here, be sure it's UTC.
71769
71770 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71771
71772         * tests/test-argp-2.sh: Fix test to match actual output.
71773         (func_compare): Fix sed script to be portable.
71774
71775 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71778         workaround for this case.  It is not autoconfigured now; offhand
71779         it's hard to see how to autoconfigure it.
71780
71781 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71784         a directory that is about to be chowned.  Such a directory's
71785         initial file permissions should permit the owner only and this
71786         should not be changed until after the chown, since the group and
71787         other bits would be incorrect if they granted permission before
71788         the chown.
71789
71790         Fix porting problem for iswctype reported by Georg Schwarz in:
71791         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71793         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71796
71797 2006-12-03  Jim Meyering  <jim@meyering.net>
71798
71799         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71800         p->fts_statp may not yet be defined.
71801         (fts_read): Instead, set it in the caller, once p->fts_statp is
71802         sure to be defined, and corresponds to a top-level directory.
71803         This bug made du -x fail.  Here's the coreutils test case:
71804         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71805         Reported by Mike Frysinger.
71806
71807 2006-12-01  Jim Meyering  <jim@meyering.net>
71808
71809         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71810         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71811         Reported by Simon Josefsson.
71812
71813 2006-11-30  Jim Meyering  <jim@meyering.net>
71814
71815         * m4/warning.m4: Use the all-permissive copyright notice
71816         recommended by RMS (rather than LGPL).
71817         * m4/vararrays.m4: Likewise.
71818         * m4/flexmember.m4: Likewise.
71819
71820 2006-11-29  Bruno Haible  <bruno@clisp.org>
71821
71822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71823         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71824         using +=.
71825         Reported by Simon Josefsson <simon@josefsson.org>.
71826
71827 2006-11-28  James Youngman <jay@gnu.org>
71828
71829         * README: Advise users that they might find the bug-gnulib@gnu.org
71830         and autotools-announce@gnu.org mailing lists useful.
71831
71832 2006-11-28  Bruno Haible  <bruno@clisp.org>
71833
71834         * m4/ptrdiff_max.m4: Remove file.
71835
71836 2006-11-21  Bruno Haible  <bruno@clisp.org>
71837
71838         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71839         _AC_COMPUTE_INT.
71840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71841         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71842         _AC_COMPUTE_INT.
71843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71845         _AC_COMPUTE_INT.
71846         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71847
71848 2006-11-28  Jim Meyering  <jim@meyering.net>
71849
71850         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71851         warning from "gcc -Wshadow" about shadowing the builtin.
71852
71853 2006-11-27  Bruno Haible  <bruno@clisp.org>
71854
71855         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71856         _AC_COMPUTE_INT.
71857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71858
71859 2006-11-27  Bruno Haible  <bruno@clisp.org>
71860             Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71863
71864 2006-11-26  Bruno Haible  <bruno@clisp.org>
71865
71866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71867         noinst_LTLIBRARIES.
71868
71869 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71870             Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71873         if compiling with "gcc -ansi".
71874
71875 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         Fix some incompatibilities with gcc -ansi -pedantic.
71878         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71879         if compiling pedantically with GCC, unless it's C99 or later.
71880         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71881         it mishandles gcc -ansi -pedantic as well.
71882         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71883         if gcc -pedantic.
71884         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71885         initializers for struct if -pedantic, unless it's C99 or later.
71886
71887 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71888
71889         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71890         Don't close an fd more than once. Identical atimes indicate
71891         success, not failure.
71892
71893 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71894
71895         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71896
71897 2006-11-23  Jim Meyering  <jim@meyering.net>
71898
71899         * build-aux/announce-gen: New file.  From coreutils.
71900
71901 2006-11-22  Jim Meyering  <jim@meyering.net>
71902
71903         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71904         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71905         (fts_read): Use a temporary to narrow the overused st_size member
71906         before using it in a switch statement.  Reported by Matthew Woehlke.
71907
71908         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71910
71911 2006-11-20  Bruno Haible  <bruno@clisp.org>
71912
71913         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71914         changequote instead of pairs of brackets.
71915         Reported by Andreas Schwab <schwab@suse.de>.
71916
71917 2006-11-21  Jim Meyering  <jim@meyering.net>
71918
71919         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71920         so as to remain compatible with older compilers.
71921         Patch from Michael Deutschmann.
71922
71923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * MODULES.html.sh (File system functions): Add openat.
71926
71927         * lib/openat.h (rpl_fstatat): New macro, if
71928         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71929         (fstatat): Define to rpl_fstatat under the same conditions,
71930         unless COMPILING_FSTATAT.
71931         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71932         seems to have the bug.
71933         * lib/fstatat.c: New file.
71934         * modules/openat (Files): Add it.
71935
71936 2006-11-20  Bruno Haible  <bruno@clisp.org>
71937
71938         * Makefile: New file.
71939
71940 2006-11-20  Jim Meyering  <jim@meyering.net>
71941
71942         The beginnings of syntax-related checks for gnulib.
71943         * lib/Makefile: New file.
71944         * lib/t-idcache: New script.  Ensure that the two halves of
71945         idcache.c stay in sync.
71946
71947         * lib/idcache.c: Adjust comments in user- and group- portions to
71948         be more accurate, and to be consistent with one another.
71949
71950 2006-11-20  Jim Meyering  <jim@meyering.net>
71951
71952         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71953         continue using the flexible array member (thus, this module performs
71954         half as many malloc calls), with the addition that...
71955         (getgroup, getuser): Consistently record a non-match via an empty
71956         "name" string, and map an empty string match to a NULL return value.
71957         * modules/idcache (Depends-on): Re-add flexmember.
71958
71959         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71960         (getuidbyname, getgroup, getgidbyname): Likewise.
71961
71962         Use cleaner syntax: NULL rather than 0.
71963         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71964
71965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71968         It mishandled the case where the group was missing.
71969         Problem reported by Greg Schafer.
71970         * modules/idcache: Likewise.
71971
71972 2006-11-18  Jim Meyering  <jim@meyering.net>
71973
71974         * check-module (%exempt_header): Add exception for some
71975         conditionally-included headers.
71976
71977         * modules/i-ring (Depends-on): Add verify.
71978         (License): Change to LGPL.
71979
71980 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71983         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71984         and inttostr.h.  Use snprintf rather than uinttostr, so that
71985         LGPLed code doesn't depend on GPLed.
71986
71987 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * modules/inline (License): Change from GPL to LGPL.
71990
71991 2006-11-17  Jim Meyering  <jim@meyering.net>
71992
71993         * modules/d-type (License): Switch to LGPL.
71994
71995 2006-11-15  Bruno Haible  <bruno@clisp.org>
71996
71997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71998
71999 2006-11-15  Eric Blake  <ebb9@byu.net>
72000
72001         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72002         the module dependency.
72003
72004 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72005             Bruno Haible  <bruno@clisp.org>
72006
72007         * gnulib-tool (func_create_testdir): Add license consistency check.
72008
72009 2006-11-15  Eric Blake  <ebb9@byu.net>
72010
72011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72012         random "(cached)" in configure output.
72013
72014 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72015
72016         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72017         test for conforming inttypes.h is both announced and cached.
72018
72019         * MODULES.html.sh (seen_modules, seen_files): New variables.
72020         (func_module): Rewrite to use a few less gnulib-tool and sed
72021         invocations.  Avoid a couple of quadratic algorithms for ...
72022         (missed_modules, missed_files): ... these, with ...
72023         (func_append, func_tmpdir): ... these new functions, from
72024         gnulib-tool.  Analogously, install traps for cleanup.
72025
72026         * tests/test-gc.c (main): Remove unused variables.
72027         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72028
72029 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * modules/inttostr (License): Change to LGPL.
72032
72033 2006-11-14  Eric Blake  <ebb9@byu.net>
72034
72035         * modules/tempname (License): Change to LGPL.
72036
72037 2006-11-14  Eric Blake  <ebb9@byu.net>
72038
72039         * doc/functions.texi (Function Portability): *printf functions on
72040         Cygwin now understand all POSIX size specifiers.
72041
72042 2006-11-14  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/c-ctype (License): Change to LGPL.
72045
72046 2006-11-12  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72049         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72050         for GNOME libraries, for which the include files are installed in
72051         subdirectories of $prefix/include.
72052
72053 2006-11-12  Bruno Haible  <bruno@clisp.org>
72054
72055         * m4/lib-link.m4: Require at least autoconf-2.54.
72056         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72057         name to underscores for the --with option.
72058
72059 2006-11-13  Bruno Haible  <bruno@clisp.org>
72060
72061         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72062         the tests directory.
72063         Reported by Ralf Wildenhues.
72064
72065 2006-11-13  Bruno Haible  <bruno@clisp.org>
72066
72067         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72068         (func_emit_initmacro_end): Undo the override here.
72069         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72070         Works around the famous automake error in coreutils.
72071
72072 2006-11-13  Eric Blake  <ebb9@byu.net>
72073
72074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72075         element, not its node.
72076
72077 2006-11-12  Bruno Haible  <bruno@clisp.org>
72078
72079         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72080         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72081
72082 2006-11-12  Bruno Haible  <bruno@clisp.org>
72083
72084         * gnulib-tool: New option --local-symlink.
72085         (func_usage): Document it.
72086         (lsymbolic): New variable.
72087         (func_import, func_create_testdir): If --symlink was not specified,
72088         test whether --local-symlink was specified and the file comes from
72089         the local_gnulib_dir.
72090
72091 2006-11-12  Bruno Haible  <bruno@clisp.org>
72092
72093         * gnulib-tool (func_ln): New function.
72094         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72095
72096 2006-11-12  Bruno Haible  <bruno@clisp.org>
72097
72098         Finish support for source files in subdirectories.
72099         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72100         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72101         AUTOMAKE_OPTIONS.
72102         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72103
72104 2006-11-12  Bruno Haible  <bruno@clisp.org>
72105
72106         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72107         EXTRA_lib_SOURCES augmentation.
72108         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72109
72110 2006-11-12  Jim Meyering  <jim@meyering.net>
72111
72112         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72113         file descriptors.  This also averts a failure on systems with
72114         native openat support when a traversed directory lacks "x" access.
72115         * lib/fts_.h: Include "i-ring.h"
72116         (struct FTS) [fts_fd_ring]: New member.
72117         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72118         (FCHDIR): Add parentheses.
72119         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72120         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72121         When descending, rather than simply closing the previous
72122         fts_cwd_fd value, push that file descriptor onto the ring.
72123         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72124         (fts_open): Initialize the new fd_ring member.
72125         (fts_close): Clear the ring.
72126         (fts_safe_changedir): When possible, use our new fd_ring to skip
72127         the diropen and fstat and dev/ino comparison that would normally
72128         accompany a virtual `chdir ("..")'.
72129
72130         * modules/fts (Depends-on): Add i-ring.
72131         * modules/i-ring: New module.
72132         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72133         * m4/i-ring.m4: New file.
72134
72135 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72136
72137         * gnulib-tool (func_create_testdir): Fix replacement of
72138         `build-aux' in configure.ac.  Run autotools in gltests
72139         subdirectory.
72140         (func_create_testdir, func_create_megatestdir, test): There is
72141         no need for '--force' in most autotool invocations in a new
72142         tree.  Actually fail the whole test if any of the tools, or the
72143         configure or make stages fail.
72144
72145         Sync from Automake.
72146         * build-aux/gnupload: Revert last change.  Add pointer to upload
72147         instructions of the GNU Maintenance Instructions.
72148         Suggestion by Karl Berry.
72149
72150 2006-11-10  Jim Meyering  <jim@meyering.net>
72151
72152         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72153
72154 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72157         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72158         (bind_textdomain_codeset) [! ENABLE_NLS]:
72159         Evaluate all the arguments.  That way, callers get compatible behavior
72160         if the arguments have side effects.  Also, it avoids some GCC
72161         diagnostics in some cases; Joel E. Denny reported problems when Bison
72162         was configured with --enable-gcc-warnigs.
72163
72164 2006-11-10  Jim Meyering  <jim@meyering.net>
72165
72166         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72167         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72168         account.
72169
72170 2006-11-10  Jim Meyering  <jim@meyering.net>
72171
72172         * modules/inline: New file/module.
72173         * modules/xalloc (Files): Remove m4/inline.m4.
72174         (Depends-on): Add inline, instead.
72175         * modules/oset: Likewise.
72176         * modules/list: Likewise.
72177
72178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72181         Problem reported by Matthew Woehlke.
72182
72183 2006-11-09  Bruno Haible  <bruno@clisp.org>
72184
72185         * lib/tempname.c (gen_tempname): Remove variant that invokes
72186         __gen_tempname.
72187         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72188         __gen_tempname.
72189
72190 2006-11-08  Bruno Haible  <bruno@clisp.org>
72191
72192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72193         to 'yes' instead of 'cross-compiling'.
72194
72195 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72196
72197         * lib/quotearg.h (quotearg_free): New decl.
72198         * lib/quotearg.c (quotearg_free): New function.
72199         (slot0, nslots, slotvec0, slotvec):
72200         Now file-scope so that quotearg_free can get at them.
72201
72202 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72203
72204         Sync from Automake.
72205         * build-aux/gnupload: Add missing 'gnu' to example URL.
72206         Report by Karl Berry.
72207
72208 2006-11-08  Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72211         Suggested by Paul Eggert.
72212
72213 2006-11-08  Jim Meyering  <jim@meyering.net>
72214
72215         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72216         It's already included if !_LIBC.
72217         (fts_safe_changedir): Add a comment.
72218
72219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72222         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72223         Matthew Woehlke.
72224
72225         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72226         definitions up, to avoid colliding with change below.
72227         (static_inline) [HAVE_INLINE]: New macro.
72228         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72229         Provide extern decls when !HAVE_INLINE.  Do not define unless
72230         static_inline is defined, either by us or by xmalloc.c.  Use
72231         static_inline rather than static inline.
72232         (XCALLOC): Optimize sizeof(T) = 1 case.
72233         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72234
72235 2006-11-07  Bruno Haible  <bruno@clisp.org>
72236
72237         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72239         AC_C_INLINE.
72240         * modules/xalloc (Files): Add m4/inline.m4.
72241
72242 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72243
72244         * README: Fix typo.
72245         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72246         (Miscellanous Notes): ...from this.
72247
72248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72249
72250         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72251         Mention that offsetof should be used instead of sizeof.
72252         From Bruno Haible.
72253
72254 2006-11-07  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72257
72258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72261         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72262         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72263         (gl_tree_add_before, gl_tree_add_after):
72264         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72265         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72268         (gl_linked_add_after, gl_linked_add_at): Likewise.
72269         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72271         (gl_tree_add_before, gl_tree_add_after): Likewise.
72272         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72273         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72274         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72275
72276 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72277
72278         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72279
72280 2006-11-06  Bruno Haible  <bruno@clisp.org>
72281
72282         * m4/inline.m4: New file.
72283         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72284         * modules/list (Files): Add m4/inline.m4.
72285         * modules/oset (Files): Likewise.
72286
72287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * lib/idcache.c: Include <stddef.h>, for offsetof.
72290         (struct userid.name): Change from char * to a flexible array member.
72291         All uses changed.
72292         * modules/idcache (Depends-on): Add flexmember.
72293
72294         * MODULES.html.sh (Core language properties): New module flexmember.
72295         * modules/flexmember, m4/flexmember.m4: New files.
72296
72297         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72298         inline functions that are identical with the old xnmalloc_inline,
72299         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72300         that we can avoid some unnecessary integer multiplications and
72301         divisions in the common case where the element size is known at
72302         compile time.
72303         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72304         needed.
72305         (xnboundedmalloc): Remove.
72306         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72307         arguments, for consistency with rest of this header.
72308         (xcharalloc): Rewrite using XNMALLOC.
72309         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72310         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72311         versions have been moved to lib/xalloc.h and renamed to be the
72312         non-*_inline versions.
72313         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72314         and xnrealloc functions, since those functions are now inline and
72315         now call us.
72316         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72317         renaming described above.
72318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72319         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72320         captures the dependency in AC_C_INLINE.
72321
72322         New module canonicalize-lgpl, proposed by Charles Wilson in
72323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72324         with a few small changes afterwards.
72325         * MODULES.html.sh (File system functions): New module
72326         canonicalize-lgpl.
72327         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72328         and canonicalize_file_name.
72329         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72330         * modules/canonicalize-lgpl: New files.
72331
72332 2006-11-05  Bruno Haible  <bruno@clisp.org>
72333
72334         * gnulib-tool (func_import, func_create_testdir): Create directories
72335         also for files in subdirectories of lib/.
72336
72337 2006-11-05  Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72340         ANSI C compliant.
72341
72342 2006-11-03  Bruno Haible  <bruno@clisp.org>
72343
72344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72346         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72347         (xnboundedmalloc): New inline function.
72348         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72349         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72350         xmalloc.
72351         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72352         xmalloc.
72353         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72354         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72355         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72356         xmalloc.
72357         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72358         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72359         xmalloc.
72360         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72361         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72362         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72363         xmalloc.
72364         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72365         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72367         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72368         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72369         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72370         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72371
72372 2006-11-03  Bruno Haible  <bruno@clisp.org>
72373
72374         * lib/c-ctype.h [C++]: Define functions without name mangling.
72375         * lib/fwriteerror.h [C++]: Likewise.
72376         * lib/gcd.h [C++]: Likewise.
72377         * lib/linebreak.h [C++]: Likewise.
72378
72379 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72382         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72383         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72385         Check for functions and headers just once.
72386         Check for declaration of canonicalize_file_name.
72387         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72388
72389 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72390
72391         * gnulib-tool (func_import): Fix typo in actioncmd.
72392
72393 2006-11-02  Bruno Haible  <bruno@clisp.org>
72394
72395         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72396         newline sequence in the Makefile.am snippet as a space, like "make"
72397         does.
72398         Reported by Roger Persson <perrog@gmail.com>.
72399
72400 2006-11-01  Bruno Haible  <bruno@clisp.org>
72401
72402         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72403         already declared in <string.h>.
72404         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72405
72406 2006-11-01  Bruno Haible  <bruno@clisp.org>
72407
72408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72409         * lib/strcase.h: Include <string.h>.
72410         (strcasecmp): Define to rpl_strcasecmp here.
72411
72412 2006-11-01  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72415
72416 2006-11-01  Eric Blake  <ebb9@byu.net>
72417
72418         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72419
72420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72421
72422 2006-10-29  Bruno Haible  <bruno@clisp.org>
72423
72424         Make it compile in C++ mode.
72425         * lib/full-write.c (full_rw): Add a cast.
72426
72427 2006-11-01  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72430         be POSIX compliant.
72431         Reported by Roger Persson <perrog@gmail.com>.
72432
72433 2006-11-01  Eric Blake  <ebb9@byu.net>
72434
72435         * lib/getopt_.h: Fix comments.
72436
72437 2006-10-31  Eric Blake  <ebb9@byu.net>
72438
72439         * modules/tmpdir (Depends-on): Add sys_stat.
72440         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72441         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72442         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72443         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72444         tempname.
72445
72446 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         Avoid some C++ diagnostics reported by Bruno Haible.
72449         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72450         xmalloc.
72451         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72452         (struct slotvec): Move to top level.
72453         (quotearg_n_options): Rewrite to avoid xmalloc.
72454         * lib/xalloc.h (xcharalloc): New function.
72455         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72456         [defined __cplusplus]: Add function template that provides result
72457         type propagation.  This part of the change is from Bruno Haible.
72458
72459 2006-10-29  Bruno Haible  <bruno@clisp.org>
72460
72461         Make it compile in C++ mode.
72462         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72463         * lib/strnlen1.c (strnlen1): Cast memchr result.
72464         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72465         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72466         (create_temp_dir): Rename local variable 'template'.
72467         (compile_csharp_using_sscli): Add cast.
72468         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72469         * lib/findprog.c (find_in_path): Likewise.
72470         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72471         * lib/wait-process.c (register_slave_subprocess): Likewise.
72472
72473 2006-10-22  Bruno Haible  <bruno@clisp.org>
72474
72475         * modules/tsearch: New file.
72476         * lib/tsearch.h: New file.
72477         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72478         * m4/tsearch.m4: New file.
72479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72480
72481 2006-10-29  Eric Blake  <ebb9@byu.net>
72482
72483         * lib/arcfour.c: Assume config.h.
72484         * lib/arctwo.c: Likewise.
72485         * lib/base64.c: Likewise.
72486         * lib/check-version.c: Likewise.
72487         * lib/crc.c: Likewise.
72488         * lib/des.c: Likewise.
72489         * lib/gc-gnulib.c: Likewise.
72490         * lib/gc-libgcrypt.c: Likewise.
72491         * lib/gc-pbkdf2-sha1.c: Likewise.
72492         * lib/getaddrinfo.c: Likewise.
72493         * lib/getdelim.c: Likewise.
72494         * lib/getline.c: Likewise.
72495         * lib/hmac-md5.c: Likewise.
72496         * lib/hmac-sha1.c: Likewise.
72497         * lib/iconvme.c: Likewise.
72498         * lib/md2.c: Likewise.
72499         * lib/md4.c: Likewise.
72500         * lib/memxor.c: Likewise.
72501         * lib/read-file.c: Likewise.
72502         * lib/readline.c: Likewise.
72503         * lib/rijndael-alg-fst.c: Likewise.
72504         * lib/rijndael-api-fst.c: Likewise.
72505         * lib/xgetdomainname.c: Likewise.
72506
72507 2006-10-28  Eric Blake  <ebb9@byu.net>
72508
72509         * lib/xstrndup.c: Assume config.h.
72510
72511 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72512
72513         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72514         stat-macros.h is now for our own macros, whereas stat_h is for
72515         macros in the <sys/stat.h> name space.
72516         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72517         (STAT_MACROS_H): Remove.
72518         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72519         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72520         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72521         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72522         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72523         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72524         Move these macros to ...
72525         * lib/stat_.h: here.  Don't include stat-macros.h.
72526         * lib/canonicalize.c: Don't include stat-macros.h.
72527         * lib/chown.c: Likewise.
72528         * lib/euidaccess.c: Likewise.
72529         * lib/file-type.c: Likewise.
72530         * lib/filemode.c: Likewise.
72531         * lib/glob.c: Likewise.
72532         * lib/isapipe.c: Likewise.
72533         * lib/lchown.c: Likewise.
72534         * lib/lstat.c: Likewise.
72535         * lib/mkdir-p.c: Likewise.
72536         * lib/rmdir.c: Likewise.
72537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72539         unless mkdir isn't declared, to speed up 'configure'.
72540         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72541         would define all the S_* symbols.
72542         * modules/canonicalize (Depends-on):
72543         Depend on sys_stat, not stat-macros.
72544         * modules/chown: Likewise.
72545         * modules/euidaccess: Likewise.
72546         * modules/filemode: Likewise.
72547         * modules/file-type: Likewise.
72548         * modules/glob: Likewise.
72549         * modules/isapipe: Likewise.
72550         * modules/lchown: Likewise.
72551         * modules/lstat: Likewise.
72552         * modules/mkancesdirs: Likewise.
72553         * modules/rmdir: Likewise.
72554         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72555         * modules/modechange: Likewise.
72556         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72557         (configure.ac): Remove gl_STAT_MACROS.
72558         * modules/sys_stat (Depends-on): Remove stat-macros.
72559
72560 2006-10-27  Bruno Haible  <bruno@clisp.org>
72561
72562         * m4/signed.m4: Remove file.
72563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72564         invocation.
72565         * modules/vasnprintf (Files): Remove m4/signed.m4.
72566
72567 2006-10-27  Bruno Haible  <bruno@clisp.org>
72568
72569         Update to GNU gettext 0.16.
72570         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72571         m4/inttypes-h.m4, m4/signed.m4.
72572         * m4/gettext.m4: Update to GNU gettext 0.16.
72573         * m4/intl.m4: New file, from GNU gettext.
72574         * m4/intldir.m4: New file, from GNU gettext.
72575         * config/srclist.txt: Update
72576
72577 2006-10-27  Eric Blake  <ebb9@byu.net>
72578
72579         * MODULES.html.sh: Document tempname.
72580         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72581         dependencies.
72582         (Files): Move lib/tempname.c...
72583         * modules/tempname: ...to this new module.
72584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72585         (gl_PREREQ_TEMPNAME): Move...
72586         * m4/tempname.m4: ...to this new file.
72587         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72588         * modules/sys_stat (Depends-on): Add stat-macros.
72589         * lib/stat_.h (includes): Pick up stat macros.
72590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72591         if stat macros are broken.
72592         * lib/tempname.c (includes): No need to include "stat-macros.h".
72593         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72594         (direxists, __path_search) [!_LIBC]: Don't compile these in
72595         gnulib; the tmpdir module covers that.
72596         * lib/tempname.h: New file.
72597
72598 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * COPYING: Explain how gnulib-tool converts licence headers.
72601         Almost all wording by Eric Blake.
72602
72603 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * lib/mbchar.h (is_basic_table): Make read-only.
72606         * lib/mbchar.c (is_basic_table): Likewise.
72607         Reported by John Darrington.
72608
72609 2006-10-25  Bruno Haible  <bruno@clisp.org>
72610
72611         * lib/progname.h (set_program_name): Undefine before defining.
72612
72613 2006-10-25  Bruno Haible  <bruno@clisp.org>
72614
72615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72616         false for non-gcc C++ compilers.
72617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72618
72619 2006-10-24  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72622         iconv implementations like Irix iconv.
72623
72624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * modules/vararrays: New file.
72627         * m4/vararrays.m4: New file, taken from diffutils.
72628         * MODULES.html.sh: New module vararrays.
72629
72630 2006-10-24  Karl Berry  <karl@gnu.org>
72631
72632         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72633         Don't call GNU Unix.
72634
72635 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72636
72637         * users.txt: Add Libtool.
72638
72639         Sync from Libtool:
72640
72641         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72644         to gnulib's policy of including config.h unconditionally.
72645
72646 2006-10-24  Bruno Haible  <bruno@clisp.org>
72647
72648         * modules/wcwidth (Files): Add m4/wint_t.m4.
72649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72650         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72651
72652 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72655         to pacify GCC with some -W flags enabled.  Problem reported by
72656         Bruno Haible.
72657
72658 2006-10-24  Jim Meyering  <jim@meyering.net>
72659
72660         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72661         Reported by Karl Berry.
72662
72663 2006-10-23  Bruno Haible  <bruno@clisp.org>
72664
72665         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72666
72667 2006-10-24  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/gl_list.h: Use C comment style, not C++ comment style.
72670
72671 2006-10-23  Eric Blake  <ebb9@byu.net>
72672
72673         * lib/getaddrinfo.c (includes): Add missing include.
72674
72675 2006-10-23  Bruno Haible  <bruno@clisp.org>
72676             Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         Ability to rename obstack_free.
72679         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72680         obstack_free.
72681         (obstack_free): Invoke the __obstack_free macro.
72682         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72683
72684 2006-10-23  Bruno Haible  <bruno@clisp.org>
72685             Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72688         __argc, __argv from the declaration. (They are defined as macros on
72689         mingw.)
72690
72691 2006-10-22  Bruno Haible  <bruno@clisp.org>
72692
72693         * doc/gnulib-intro.texi: New file.
72694         * doc/gnulib.texi: Include it.
72695
72696 2006-10-21  Bruno Haible  <bruno@clisp.org>
72697
72698         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72699         "Introduction", "Miscellanous Notes", "Particular Modules".
72700
72701 2006-10-21  Bruno Haible  <bruno@clisp.org>
72702
72703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72704         Change mostlyclean-local rule to avoid sh syntax error from bash
72705         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72706
72707 2006-10-23  Jim Meyering  <jim@meyering.net>
72708
72709         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72710         in place of snprintf.
72711
72712         * modules/inttostr (Files): Add lib/uinttostr.c.
72713         * lib/uinttostr.c (inttostr): New file/function.
72714         * lib/inttostr.h (uinttostr): Declare.
72715         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72716         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72717         Add uinttostr.
72718         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72719
72720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * lib/canonicalize.c (ELOOP): Define if not already defined.
72723         Problem reported by Bruno Haible in
72724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72725
72726 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72729         Problem reported by Perry Smith and Ville Laurikari.
72730
72731         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72732         uses.
72733
72734 2006-10-19  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72737         for mingw.
72738
72739 2006-10-19  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72742         Needed for mingw.
72743
72744 2006-10-19  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72747
72748 2006-10-19  Bruno Haible  <bruno@clisp.org>
72749
72750         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72751         it.
72752
72753 2006-10-19  Bruno Haible  <bruno@clisp.org>
72754
72755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72756         invocation.
72757
72758 2006-10-19  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72761         mountlist by default.
72762
72763 2006-10-16  Bruno Haible  <bruno@clisp.org>
72764
72765         * lib/c-strstr.c: Include c-strstr.h.
72766
72767 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72768
72769         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72770         in a slash.
72771
72772 2006-10-18  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/lock.h [C++]: Wrap definitions in extern "C".
72775
72776 2006-10-18  Bruno Haible  <bruno@clisp.org>
72777
72778         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72779         gl_LIBOBJS list.
72780
72781 2006-10-18  Bruno Haible  <bruno@clisp.org>
72782
72783         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72784
72785 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/xstrtol.h: Include gettext.h.
72788         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72789         Problem reported by Eric Blake.
72790         * modules/xstrtol (Depends-on): Add gettext-h.
72791
72792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72793
72794         * lib/strftime.c (advance): New macro.
72795         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72796         incomplete type, so you can't add 0 to it.  Problem and patch
72797         reported by Eelco Dolstra for dietlibc.
72798
72799 2006-10-18  Jim Meyering  <jim@meyering.net>
72800
72801         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72802         type for a local, and rename it: s/up/user_proc/.
72803
72804 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72805
72806         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72807         READ_UTMP_USER_PROCESS.
72808         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72809
72810 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72813         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72814
72815 2006-10-17  Eric Blake  <ebb9@byu.net>
72816
72817         * lib/sigprocmask.c (sigprocmask): Fix typo.
72818
72819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72820
72821         * modules/clean-temp (Makefile.am): Don't add to make output...
72822         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72823         config.h.
72824
72825 2006-10-17  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72828         differently if DEFAULT_TEXT_DOMAIN is set.
72829
72830 2006-10-16  Bruno Haible  <bruno@clisp.org>
72831
72832         * lib/clean-temp.c: Include fwriteerror.h.
72833
72834 2006-10-16  Bruno Haible  <bruno@clisp.org>
72835
72836         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72837
72838 2006-10-16  Bruno Haible  <bruno@clisp.org>
72839
72840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72841         * lib/sigprocmask.h: Include <sys/types.h>.
72842         (sigset_t): Use the system's definition if present.
72843
72844 2006-10-17  Eric Blake  <ebb9@byu.net>
72845
72846         * lib/xvasprintf.c (includes): Assume config.h.
72847         * lib/xasprintf.c (includes): Likewise.
72848
72849 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72852         at least as wide as intmax_t.
72853
72854 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72855
72856         (Imported from Automake.)
72857         * build-aux/gnupload: Update to version 1.1 of directive file.
72858
72859 2006-10-16  Eric Blake  <ebb9@byu.net>
72860
72861         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72862         match Automake 1.10a.
72863
72864 2006-10-14  Bruno Haible  <bruno@clisp.org>
72865
72866         * modules/sigprocmask: New file.
72867         * lib/sigprocmask.h: New file.
72868         * lib/sigprocmask.c: New file.
72869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72870         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72871         request sigprocmask.o.
72872         (gl_PREREQ_SIGPROCMASK): New macro.
72873         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72874         (Depends-on): Add sigprocmask.
72875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72876         gt_SIGNALBLOCKING. Test for 'raise' only once.
72877         * lib/fatal-signal.c: Include sigprocmask.h.
72878         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72879         unblock_fatal_signals): Define always.
72880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72881         sigprocmask.
72882
72883 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         Sync from Automake.
72886         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72887         which incorrectly sets the mode of an existing destination
72888         directory.  In some cases the unpatched install-sh could do the
72889         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72890         system.  We hope this is rare in practice, but it's clearly worth
72891         fixing.  Problem reported by Alex Unleashed in
72892         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72893         Also, don't bother to check for -m bugs unless we're using -m;
72894         suggested by Stepan Kasal.
72895
72896 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72897
72898         Sync from Automake.
72899         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72900         `-c' flag, so they appear at the same position as in %FASTDEP%
72901         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72902         which ignores unknown options only after the first non-option.
72903         Bug report against M4 by Nelson H. F. Beebe.
72904
72905 2006-10-13  Jim Meyering  <jim@meyering.net>
72906
72907         Fix a bug in yesterday's change.
72908         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72909         p->fts_statp->st_dev would be used uninitialized.
72910         Ensures that we always call fts_stat on the very first entry.
72911         Miklos Szeredi reported that find -xdev stopped working.
72912
72913 2006-10-12  Bruno Haible  <bruno@clisp.org>
72914
72915         * gnulib-tool (func_get_automake_snippet): Append an automatically
72916         computed EXTRA_DIST augmentation.
72917         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72918         * modules/alloca-opt (Makefile.am): Likewise.
72919         * modules/allocsa (Makefile.am): Likewise.
72920         * modules/arcfour (Makefile.am): Likewise.
72921         * modules/arctwo (Makefile.am): Likewise.
72922         * modules/argmatch (Makefile.am): Likewise.
72923         * modules/argz (Makefile.am): Likewise.
72924         * modules/atexit (Makefile.am): Likewise.
72925         * modules/backupfile (Makefile.am): Likewise.
72926         * modules/byteswap (Makefile.am): Likewise.
72927         * modules/c-strtod (Makefile.am): Likewise.
72928         * modules/c-strtold (Makefile.am): Likewise.
72929         * modules/calloc (Makefile.am): Likewise.
72930         * modules/canon-host (Makefile.am): Likewise.
72931         * modules/canonicalize (Makefile.am): Likewise.
72932         * modules/chdir-long (Makefile.am): Likewise.
72933         * modules/chdir-safer (Makefile.am): Likewise.
72934         * modules/check-version (Makefile.am): Likewise.
72935         * modules/chown (Makefile.am): Likewise.
72936         * modules/cloexec (Makefile.am): Likewise.
72937         * modules/close-stream (Makefile.am): Likewise.
72938         * modules/closeout (Makefile.am): Likewise.
72939         * modules/crc (Makefile.am): Likewise.
72940         * modules/csharpexec (Makefile.am): Likewise.
72941         * modules/cycle-check (Makefile.am): Likewise.
72942         * modules/des (Makefile.am): Likewise.
72943         * modules/dev-ino (Makefile.am): Likewise.
72944         * modules/dirfd (Makefile.am): Likewise.
72945         * modules/dirname (Makefile.am): Likewise.
72946         * modules/dup2 (Makefile.am): Likewise.
72947         * modules/eealloc (Makefile.am): Likewise.
72948         * modules/error (Makefile.am): Likewise.
72949         * modules/euidaccess (Makefile.am): Likewise.
72950         * modules/exclude (Makefile.am): Likewise.
72951         * modules/exitfail (Makefile.am): Likewise.
72952         * modules/fcntl-safer (Makefile.am): Likewise.
72953         * modules/fcntl (Makefile.am): Likewise.
72954         * modules/file-type (Makefile.am): Likewise.
72955         * modules/fileblocks (Makefile.am): Likewise.
72956         * modules/filemode (Makefile.am): Likewise.
72957         * modules/filenamecat (Makefile.am): Likewise.
72958         * modules/fnmatch (Makefile.am): Likewise.
72959         * modules/fopen-safer (Makefile.am): Likewise.
72960         * modules/fpending (Makefile.am): Likewise.
72961         * modules/fprintftime (Makefile.am): Likewise.
72962         * modules/free (Makefile.am): Likewise.
72963         * modules/fsusage (Makefile.am): Likewise.
72964         * modules/ftruncate (Makefile.am): Likewise.
72965         * modules/fts (Makefile.am): Likewise.
72966         * modules/gc-arcfour (Makefile.am): Likewise.
72967         * modules/gc-des (Makefile.am): Likewise.
72968         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72969         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72970         * modules/gc-md4 (Makefile.am): Likewise.
72971         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72972         * modules/gc-sha1 (Makefile.am): Likewise.
72973         * modules/gc (Makefile.am): Likewise.
72974         * modules/getaddrinfo (Makefile.am): Likewise.
72975         * modules/getcwd (Makefile.am): Likewise.
72976         * modules/getdelim (Makefile.am): Likewise.
72977         * modules/getdomainname (Makefile.am): Likewise.
72978         * modules/getgroups (Makefile.am): Likewise.
72979         * modules/gethostname (Makefile.am): Likewise.
72980         * modules/gethrxtime (Makefile.am): Likewise.
72981         * modules/getline (Makefile.am): Likewise.
72982         * modules/getloadavg (Makefile.am): Likewise.
72983         * modules/getlogin_r (Makefile.am): Likewise.
72984         * modules/getndelim2 (Makefile.am): Likewise.
72985         * modules/getopt (Makefile.am): Likewise.
72986         * modules/getpagesize (Makefile.am): Likewise.
72987         * modules/getpass-gnu (Makefile.am): Likewise.
72988         * modules/getpass (Makefile.am): Likewise.
72989         * modules/getsubopt (Makefile.am): Likewise.
72990         * modules/gettime (Makefile.am): Likewise.
72991         * modules/gettimeofday (Makefile.am): Likewise.
72992         * modules/getugroups (Makefile.am): Likewise.
72993         * modules/getusershell (Makefile.am): Likewise.
72994         * modules/glob (Makefile.am): Likewise.
72995         * modules/group-member (Makefile.am): Likewise.
72996         * modules/hard-locale (Makefile.am): Likewise.
72997         * modules/hash (Makefile.am): Likewise.
72998         * modules/hmac-md5 (Makefile.am): Likewise.
72999         * modules/hmac-sha1 (Makefile.am): Likewise.
73000         * modules/human (Makefile.am): Likewise.
73001         * modules/idcache (Makefile.am): Likewise.
73002         * modules/imaxabs (Makefile.am): Likewise.
73003         * modules/imaxdiv (Makefile.am): Likewise.
73004         * modules/inet_ntop (Makefile.am): Likewise.
73005         * modules/inet_pton (Makefile.am): Likewise.
73006         * modules/intprops (Makefile.am): Likewise.
73007         * modules/inttostr (Makefile.am): Likewise.
73008         * modules/inttypes (Makefile.am): Likewise.
73009         * modules/isapipe (Makefile.am): Likewise.
73010         * modules/javaversion (Makefile.am): Likewise.
73011         * modules/lchmod (Makefile.am): Likewise.
73012         * modules/lchown (Makefile.am): Likewise.
73013         * modules/localcharset (Makefile.am): Likewise.
73014         * modules/long-options (Makefile.am): Likewise.
73015         * modules/lstat (Makefile.am): Likewise.
73016         * modules/malloc (Makefile.am): Likewise.
73017         * modules/mathl (Makefile.am): Likewise.
73018         * modules/mbchar (Makefile.am): Likewise.
73019         * modules/md2 (Makefile.am): Likewise.
73020         * modules/md4 (Makefile.am): Likewise.
73021         * modules/md5 (Makefile.am): Likewise.
73022         * modules/memcasecmp (Makefile.am): Likewise.
73023         * modules/memchr (Makefile.am): Likewise.
73024         * modules/memcmp (Makefile.am): Likewise.
73025         * modules/memcoll (Makefile.am): Likewise.
73026         * modules/memcpy (Makefile.am): Likewise.
73027         * modules/memmem (Makefile.am): Likewise.
73028         * modules/memmove (Makefile.am): Likewise.
73029         * modules/mempcpy (Makefile.am): Likewise.
73030         * modules/memrchr (Makefile.am): Likewise.
73031         * modules/memset (Makefile.am): Likewise.
73032         * modules/memxor (Makefile.am): Likewise.
73033         * modules/mkancesdirs (Makefile.am): Likewise.
73034         * modules/mkdir-p (Makefile.am): Likewise.
73035         * modules/mkdir (Makefile.am): Likewise.
73036         * modules/mkdtemp (Makefile.am): Likewise.
73037         * modules/mkstemp (Makefile.am): Likewise.
73038         * modules/mktime (Makefile.am): Likewise.
73039         * modules/modechange (Makefile.am): Likewise.
73040         * modules/mountlist (Makefile.am): Likewise.
73041         * modules/nanosleep (Makefile.am): Likewise.
73042         * modules/obstack (Makefile.am): Likewise.
73043         * modules/openat (Makefile.am): Likewise.
73044         * modules/pagealign_alloc (Makefile.am): Likewise.
73045         * modules/pathmax (Makefile.am): Likewise.
73046         * modules/physmem (Makefile.am): Likewise.
73047         * modules/poll (Makefile.am): Likewise.
73048         * modules/posixtm (Makefile.am): Likewise.
73049         * modules/posixver (Makefile.am): Likewise.
73050         * modules/putenv (Makefile.am): Likewise.
73051         * modules/quote (Makefile.am): Likewise.
73052         * modules/quotearg (Makefile.am): Likewise.
73053         * modules/raise (Makefile.am): Likewise.
73054         * modules/read-file (Makefile.am): Likewise.
73055         * modules/readline (Makefile.am): Likewise.
73056         * modules/readlink (Makefile.am): Likewise.
73057         * modules/readtokens (Makefile.am): Likewise.
73058         * modules/readutmp (Makefile.am): Likewise.
73059         * modules/realloc (Makefile.am): Likewise.
73060         * modules/regex (Makefile.am): Likewise.
73061         * modules/rename-dest-slash (Makefile.am): Likewise.
73062         * modules/rename (Makefile.am): Likewise.
73063         * modules/rijndael (Makefile.am): Likewise.
73064         * modules/rmdir (Makefile.am): Likewise.
73065         * modules/rpmatch (Makefile.am): Likewise.
73066         * modules/safe-read (Makefile.am): Likewise.
73067         * modules/safe-write (Makefile.am): Likewise.
73068         * modules/same-inode (Makefile.am): Likewise.
73069         * modules/same (Makefile.am): Likewise.
73070         * modules/save-cwd (Makefile.am): Likewise.
73071         * modules/savedir (Makefile.am): Likewise.
73072         * modules/setenv (Makefile.am): Likewise.
73073         * modules/settime (Makefile.am): Likewise.
73074         * modules/sha1 (Makefile.am): Likewise.
73075         * modules/sig2str (Makefile.am): Likewise.
73076         * modules/snprintf (Makefile.am): Likewise.
73077         * modules/stat-macros (Makefile.am): Likewise.
73078         * modules/stat-time (Makefile.am): Likewise.
73079         * modules/stdbool (Makefile.am): Likewise.
73080         * modules/stdint (Makefile.am): Likewise.
73081         * modules/stdlib-safer (Makefile.am): Likewise.
73082         * modules/stpcpy (Makefile.am): Likewise.
73083         * modules/stpncpy (Makefile.am): Likewise.
73084         * modules/strcase (Makefile.am): Likewise.
73085         * modules/strcasestr (Makefile.am): Likewise.
73086         * modules/strchrnul (Makefile.am): Likewise.
73087         * modules/strcspn (Makefile.am): Likewise.
73088         * modules/strdup (Makefile.am): Likewise.
73089         * modules/strerror (Makefile.am): Likewise.
73090         * modules/strftime (Makefile.am): Likewise.
73091         * modules/strndup (Makefile.am): Likewise.
73092         * modules/strnlen (Makefile.am): Likewise.
73093         * modules/strpbrk (Makefile.am): Likewise.
73094         * modules/strsep (Makefile.am): Likewise.
73095         * modules/strstr (Makefile.am): Likewise.
73096         * modules/strtod (Makefile.am): Likewise.
73097         * modules/strtoimax (Makefile.am): Likewise.
73098         * modules/strtok_r (Makefile.am): Likewise.
73099         * modules/strtol (Makefile.am): Likewise.
73100         * modules/strtoll (Makefile.am): Likewise.
73101         * modules/strtoul (Makefile.am): Likewise.
73102         * modules/strtoull (Makefile.am): Likewise.
73103         * modules/strtoumax (Makefile.am): Likewise.
73104         * modules/strverscmp (Makefile.am): Likewise.
73105         * modules/sys_socket (Makefile.am): Likewise.
73106         * modules/sys_stat (Makefile.am): Likewise.
73107         * modules/sysexits (Makefile.am): Likewise.
73108         * modules/time_r (Makefile.am): Likewise.
73109         * modules/timegm (Makefile.am): Likewise.
73110         * modules/timespec (Makefile.am): Likewise.
73111         * modules/tmpfile-safer (Makefile.am): Likewise.
73112         * modules/trim (Makefile.am): Likewise.
73113         * modules/unistd-safer (Makefile.am): Likewise.
73114         * modules/unlinkdir (Makefile.am): Likewise.
73115         * modules/unlocked-io (Makefile.am): Likewise.
73116         * modules/userspec (Makefile.am): Likewise.
73117         * modules/utime (Makefile.am): Likewise.
73118         * modules/utimecmp (Makefile.am): Likewise.
73119         * modules/utimens (Makefile.am): Likewise.
73120         * modules/vasnprintf (Makefile.am): Likewise.
73121         * modules/vasprintf (Makefile.am): Likewise.
73122         * modules/vsnprintf (Makefile.am): Likewise.
73123         * modules/xalloc (Makefile.am): Likewise.
73124         * modules/xgetcwd (Makefile.am): Likewise.
73125         * modules/xnanosleep (Makefile.am): Likewise.
73126         * modules/xreadlink (Makefile.am): Likewise.
73127         * modules/xstrtod (Makefile.am): Likewise.
73128         * modules/xstrtol (Makefile.am): Likewise.
73129         * modules/xstrtold (Makefile.am): Likewise.
73130         * modules/yesno (Makefile.am): Likewise.
73131         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73132
73133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * modules/error (Makefile.am): Distribute files through
73136         EXTRA_DIST, not lib_SOURCES.
73137
73138 2006-10-12  Eric Blake  <ebb9@byu.net>
73139
73140         * modules/error (Makefile.am): Distribute files in /lib.
73141         * modules/obstack (Makefile.am): Likewise.
73142
73143 2006-10-12  Bruno Haible  <bruno@clisp.org>
73144
73145         * modules/acl (Makefile.am): Distribute all files in lib/ through
73146         EXTRA_DIST.
73147         * modules/arcfour (Makefile.am): Likewise.
73148         * modules/arctwo (Makefile.am): Likewise.
73149         * modules/argmatch (Makefile.am): Likewise.
73150         * modules/argz (Makefile.am): Likewise.
73151         * modules/atexit (Makefile.am): Likewise.
73152         * modules/backupfile (Makefile.am): Likewise.
73153         * modules/c-strtod (Makefile.am): Likewise.
73154         * modules/c-strtold (Makefile.am): Likewise.
73155         * modules/calloc (Makefile.am): Likewise.
73156         * modules/canon-host (Makefile.am): Likewise.
73157         * modules/canonicalize (Makefile.am): Likewise.
73158         * modules/chdir-long (Makefile.am): Likewise.
73159         * modules/chdir-safer (Makefile.am): Likewise.
73160         * modules/check-version (Makefile.am): Likewise.
73161         * modules/chown (Makefile.am): Likewise.
73162         * modules/cloexec (Makefile.am): Likewise.
73163         * modules/close-stream (Makefile.am): Likewise.
73164         * modules/closeout (Makefile.am): Likewise.
73165         * modules/crc (Makefile.am): Likewise.
73166         * modules/cycle-check (Makefile.am): Likewise.
73167         * modules/des (Makefile.am): Likewise.
73168         * modules/dirfd (Makefile.am): Likewise.
73169         * modules/dirname (Makefile.am): Likewise.
73170         * modules/dup2 (Makefile.am): Likewise.
73171         * modules/euidaccess (Makefile.am): Likewise.
73172         * modules/exclude (Makefile.am): Likewise.
73173         * modules/exitfail (Makefile.am): Likewise.
73174         * modules/fcntl-safer (Makefile.am): Likewise.
73175         * modules/file-type (Makefile.am): Likewise.
73176         * modules/fileblocks (Makefile.am): Likewise.
73177         * modules/filemode (Makefile.am): Likewise.
73178         * modules/filenamecat (Makefile.am): Likewise.
73179         * modules/fnmatch (Makefile.am): Likewise.
73180         * modules/fopen-safer (Makefile.am): Likewise.
73181         * modules/fpending (Makefile.am): Likewise.
73182         * modules/fprintftime (Makefile.am): Likewise.
73183         * modules/free (Makefile.am): Likewise.
73184         * modules/fsusage (Makefile.am): Likewise.
73185         * modules/ftruncate (Makefile.am): Likewise.
73186         * modules/fts (Makefile.am): Likewise.
73187         * modules/gc (Makefile.am): Likewise.
73188         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73189         * modules/getaddrinfo (Makefile.am): Likewise.
73190         * modules/getcwd (Makefile.am): Likewise.
73191         * modules/getdelim (Makefile.am): Likewise.
73192         * modules/getdomainname (Makefile.am): Likewise.
73193         * modules/getgroups (Makefile.am): Likewise.
73194         * modules/gethostname (Makefile.am): Likewise.
73195         * modules/gethrxtime (Makefile.am): Likewise.
73196         * modules/getline (Makefile.am): Likewise.
73197         * modules/getloadavg (Makefile.am): Likewise.
73198         * modules/getlogin_r (Makefile.am): Likewise.
73199         * modules/getopt (Makefile.am): Likewise.
73200         * modules/getpass (Makefile.am): Likewise.
73201         * modules/getpass-gnu (Makefile.am): Likewise.
73202         * modules/getsubopt (Makefile.am): Likewise.
73203         * modules/gettime (Makefile.am): Likewise.
73204         * modules/gettimeofday (Makefile.am): Likewise.
73205         * modules/getugroups (Makefile.am): Likewise.
73206         * modules/getusershell (Makefile.am): Likewise.
73207         * modules/glob (Makefile.am): Likewise.
73208         * modules/group-member (Makefile.am): Likewise.
73209         * modules/hard-locale (Makefile.am): Likewise.
73210         * modules/hash (Makefile.am): Likewise.
73211         * modules/hmac-md5 (Makefile.am): Likewise.
73212         * modules/hmac-sha1 (Makefile.am): Likewise.
73213         * modules/human (Makefile.am): Likewise.
73214         * modules/idcache (Makefile.am): Likewise.
73215         * modules/imaxabs (Makefile.am): Likewise.
73216         * modules/imaxdiv (Makefile.am): Likewise.
73217         * modules/inet_ntop (Makefile.am): Likewise.
73218         * modules/inet_pton (Makefile.am): Likewise.
73219         * modules/inttostr (Makefile.am): Likewise.
73220         * modules/isapipe (Makefile.am): Likewise.
73221         * modules/lchown (Makefile.am): Likewise.
73222         * modules/long-options (Makefile.am): Likewise.
73223         * modules/lstat (Makefile.am): Likewise.
73224         * modules/malloc (Makefile.am): Likewise.
73225         * modules/mathl (Makefile.am): Likewise.
73226         * modules/mbchar (Makefile.am): Likewise.
73227         * modules/md2 (Makefile.am): Likewise.
73228         * modules/md4 (Makefile.am): Likewise.
73229         * modules/md5 (Makefile.am): Likewise.
73230         * modules/memcasecmp (Makefile.am): Likewise.
73231         * modules/memchr (Makefile.am): Likewise.
73232         * modules/memcmp (Makefile.am): Likewise.
73233         * modules/memcoll (Makefile.am): Likewise.
73234         * modules/memcpy (Makefile.am): Likewise.
73235         * modules/memmem (Makefile.am): Likewise.
73236         * modules/memmove (Makefile.am): Likewise.
73237         * modules/mempcpy (Makefile.am): Likewise.
73238         * modules/memrchr (Makefile.am): Likewise.
73239         * modules/memset (Makefile.am): Likewise.
73240         * modules/memxor (Makefile.am): Likewise.
73241         * modules/mkancesdirs (Makefile.am): Likewise.
73242         * modules/mkdir (Makefile.am): Likewise.
73243         * modules/mkdir-p (Makefile.am): Likewise.
73244         * modules/mkdtemp (Makefile.am): Likewise.
73245         * modules/mkstemp (Makefile.am): Likewise.
73246         * modules/mktime (Makefile.am): Likewise.
73247         * modules/modechange (Makefile.am): Likewise.
73248         * modules/mountlist (Makefile.am): Likewise.
73249         * modules/nanosleep (Makefile.am): Likewise.
73250         * modules/openat (Makefile.am): Likewise.
73251         * modules/pagealign_alloc (Makefile.am): Likewise.
73252         * modules/physmem (Makefile.am): Likewise.
73253         * modules/poll (Makefile.am): Likewise.
73254         * modules/posixtm (Makefile.am): Likewise.
73255         * modules/posixver (Makefile.am): Likewise.
73256         * modules/putenv (Makefile.am): Likewise.
73257         * modules/quote (Makefile.am): Likewise.
73258         * modules/quotearg (Makefile.am): Likewise.
73259         * modules/raise (Makefile.am): Likewise.
73260         * modules/read-file (Makefile.am): Likewise.
73261         * modules/readline (Makefile.am): Likewise.
73262         * modules/readlink (Makefile.am): Likewise.
73263         * modules/readtokens (Makefile.am): Likewise.
73264         * modules/readutmp (Makefile.am): Likewise.
73265         * modules/realloc (Makefile.am): Likewise.
73266         * modules/regex (Makefile.am): Likewise.
73267         * modules/rename (Makefile.am): Likewise.
73268         * modules/rename-dest-slash (Makefile.am): Likewise.
73269         * modules/rijndael (Makefile.am): Likewise.
73270         * modules/rmdir (Makefile.am): Likewise.
73271         * modules/rpmatch (Makefile.am): Likewise.
73272         * modules/safe-read (Makefile.am): Likewise.
73273         * modules/safe-write (Makefile.am): Likewise.
73274         * modules/same (Makefile.am): Likewise.
73275         * modules/save-cwd (Makefile.am): Likewise.
73276         * modules/savedir (Makefile.am): Likewise.
73277         * modules/setenv (Makefile.am): Likewise.
73278         * modules/settime (Makefile.am): Likewise.
73279         * modules/sha1 (Makefile.am): Likewise.
73280         * modules/sig2str (Makefile.am): Likewise.
73281         * modules/snprintf (Makefile.am): Likewise.
73282         * modules/stdlib-safer (Makefile.am): Likewise.
73283         * modules/stpcpy (Makefile.am): Likewise.
73284         * modules/stpncpy (Makefile.am): Likewise.
73285         * modules/strcase (Makefile.am): Likewise.
73286         * modules/strcasestr (Makefile.am): Likewise.
73287         * modules/strchrnul (Makefile.am): Likewise.
73288         * modules/strcspn (Makefile.am): Likewise.
73289         * modules/strdup (Makefile.am): Likewise.
73290         * modules/strerror (Makefile.am): Likewise.
73291         * modules/strftime (Makefile.am): Likewise.
73292         * modules/strndup (Makefile.am): Likewise.
73293         * modules/strnlen (Makefile.am): Likewise.
73294         * modules/strpbrk (Makefile.am): Likewise.
73295         * modules/strsep (Makefile.am): Likewise.
73296         * modules/strstr (Makefile.am): Likewise.
73297         * modules/strtod (Makefile.am): Likewise.
73298         * modules/strtoimax (Makefile.am): Likewise.
73299         * modules/strtok_r (Makefile.am): Likewise.
73300         * modules/strtol (Makefile.am): Likewise.
73301         * modules/strtoll (Makefile.am): Likewise.
73302         * modules/strtoul (Makefile.am): Likewise.
73303         * modules/strtoull (Makefile.am): Likewise.
73304         * modules/strtoumax (Makefile.am): Likewise.
73305         * modules/strverscmp (Makefile.am): Likewise.
73306         * modules/time_r (Makefile.am): Likewise.
73307         * modules/timegm (Makefile.am): Likewise.
73308         * modules/tmpfile-safer (Makefile.am): Likewise.
73309         * modules/unistd-safer (Makefile.am): Likewise.
73310         * modules/unlinkdir (Makefile.am): Likewise.
73311         * modules/userspec (Makefile.am): Likewise.
73312         * modules/utime (Makefile.am): Likewise.
73313         * modules/utimecmp (Makefile.am): Likewise.
73314         * modules/utimens (Makefile.am): Likewise.
73315         * modules/vasnprintf (Makefile.am): Likewise.
73316         * modules/vasprintf (Makefile.am): Likewise.
73317         * modules/vsnprintf (Makefile.am): Likewise.
73318         * modules/xalloc (Makefile.am): Likewise.
73319         * modules/xgetcwd (Makefile.am): Likewise.
73320         * modules/xnanosleep (Makefile.am): Likewise.
73321         * modules/xreadlink (Makefile.am): Likewise.
73322         * modules/xstrtod (Makefile.am): Likewise.
73323         * modules/xstrtol (Makefile.am): Likewise.
73324         * modules/xstrtold (Makefile.am): Likewise.
73325         * modules/yesno (Makefile.am): Likewise.
73326
73327 2006-10-12  Jim Meyering  <jim@meyering.net>
73328
73329         * m4/getloadavg.m4: Revert the change below.
73330
73331         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73332         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73333         fail with a symlink, which is what coreutils' ./bootstrap now
73334         creates by default.
73335
73336 2006-10-12  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73339         mingw.
73340         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73341         MSVC and mingw explicitly.
73342
73343 2006-10-11  Simon Josefsson  <jas@extundo.com>
73344             Bruno Haible  <bruno@clisp.org>
73345
73346         Add support for multiple gnulib-tool invocations in the scope of a
73347         single configure.ac file.
73348         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73349         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73350         with the same contents as the _LIBADD variable.
73351         (func_emit_initmacro_start, func_emit_initmacro_end,
73352         func_emit_initmacro_done): New functions.
73353         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73354         gl_LIBOBJS and gl_LTLIBOBJS.
73355
73356 2006-10-11  Bruno Haible  <bruno@clisp.org>
73357
73358         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73359         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73360         autoreconf. Instead, invoke autopoint explicitly but move back the
73361         *.m4 files from gnulib.
73362
73363 2006-10-11  Bruno Haible  <bruno@clisp.org>
73364
73365         * gnulib-tool (func_usage): Make module names after --create-testdir
73366         optional.
73367         (func_create_testdir): If no module was specified, use nearly all
73368         modules.
73369
73370 2006-10-12  Jim Meyering  <jim@meyering.net>
73371
73372         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73373         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73374         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73375         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73376         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73377         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73378         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73379         (fts_set_stat_required): New function.
73380         (fts_open): Defer the calls to fts_stat, if possible or requested.
73381         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73382         into fts_stat itself.
73383         (fts_read): Perform any required (deferred) fts_stat call.
73384         (fts_build): Likewise, for the directory we're about to open and read.
73385         In the readdir loop, carefully decide whether each entry will require
73386         an eventual call to fts_stat, using dirent.d_type info if available.
73387         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73388         a command line argument into this function.  Update all callers.
73389         Map a return value of FTS_DOT to FTS_D for a command line argument.
73390         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73391         Thanks to Miklos Szeredi for his tenacity and for the initial
73392         bug report about "find" failing on a FUSE-based file system.
73393
73394         * lib/fts.c (fts_open): Use consistent indentation.
73395
73396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73399         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73400         reported by Jim Meyering.  All uses of cache variables renamed
73401         to match Autoconf's.
73402         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73403         the other one.
73404
73405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73406         Fix misspelling in diagnostic.
73407
73408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73409
73410         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73411         defined.  Problem reported by Matthew Woehlke.
73412
73413         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73414         Add support for Tandem NonStop R series.
73415         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73416         Use new macro.
73417
73418         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73419         (has_trailing_slash): Omit size arg; all callers changed.
73420         Omit 'inline', since it doesn't help performance and we'd
73421         need to configure it.
73422         Don't count //, ///, etc. as having a trailing slash.
73423         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73424         (rpl_rename_dest_slash): On failure, use rename's errno rather
73425         than (in some cases) an incorrect or junk errno.
73426         Simplify code by removing need to compute length; this does
73427         cause it to make two passes instead of one over the file name,
73428         but it's worth it.
73429
73430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73431         change, since Autoconf's version may no longer be appropriate now
73432         that we are using CVS Autoconf's version.  Add support for Tandem.
73433
73434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73435             Bruno Haible  <bruno@clisp.org>
73436
73437         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73438         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73440         gl_AC_TYPE_LONG_LONG.
73441
73442         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73443         instead of HAVE_LONG_LONG.
73444         * lib/printf-args.c (printf_fetchargs): Likewise.
73445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73446         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73448         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73449         gl_AC_TYPE_LONG_LONG.
73450
73451 2006-10-11  Bruno Haible  <bruno@clisp.org>
73452
73453         * m4/longlong.m4: Add comments.
73454         * m4/ulonglong.m4: Likewise.
73455
73456 2006-10-10  Bruno Haible  <bruno@clisp.org>
73457
73458         Make it possible to #define stpcpy, strdup to aliases.
73459         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73460         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73461
73462 2006-10-10  Bruno Haible  <bruno@clisp.org>
73463
73464         Make it possible to #define gcd to an alias.
73465         * lib/gcd.c: Include config.h.
73466
73467 2006-10-10  Bruno Haible  <bruno@clisp.org>
73468
73469         Make it possible to #define c_isascii to an alias.
73470         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73471         defined. Undefine the macros before defining them, to avoid gcc
73472         warnings.
73473         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73474         define NO_C_CTYPE_MACROS early.
73475
73476 2006-10-10  Bruno Haible  <bruno@clisp.org>
73477
73478         Make it possible to #define set_program_name to an alias.
73479         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73480         ENABLE_RELOCATABLE early.
73481
73482 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73485         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73486         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73487         More generally, don't assume that 64-bit signed int is available
73488         if unsigned int is, and vice versa.
73489         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73490         unsigned symbols, not on their signed counterparts.
73491         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73492         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73493         (UINT64_C, UINTMAX_C):
73494         Likewise.
73495         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73496         unsigned counterparts.
73497         (Have_long_long, Unsigned): New macros.
73498         (Int): Renamed from INT.
73499         (strtoimax): Use the new macros.
73500         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73501         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73502         * modules/inttypes (inttypes.h): Substitute
73503         HAVE_UNSIGNED_LONG_LONG_INT.
73504         * modules/stdint (stdint.h): Likewise.
73505         (Files): Add m4/ulonglong.m4.
73506
73507 2006-10-10  Bruno Haible  <bruno@clisp.org>
73508
73509         Fix a gcc -Wshadow warning.
73510         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73511         to 'bucket'.
73512         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73513         gl_linked_indexof_from_to): Likewise.
73514         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73515         Likewise.
73516         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73517         Likewise.
73518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73519         Reported by Eric Blake.
73520
73521 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73524         for NetBSD.  Problem reported by Bruno Haible.
73525
73526 2006-10-09  Jim Meyering  <jim@meyering.net>
73527
73528         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73529         Patch from Bruno Haible.
73530
73531 2006-10-09  Jim Meyering  <jim@meyering.net>
73532
73533         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73534         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73535         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73536
73537 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         Don't include <config.h> twice; this doesn't work in some cases,
73540         e.g., when config.h has "#define intmax_t long long int" and
73541         we include <config.h>, <inttypes.h>, <config.h> in that order.
73542         Problem reported by Matthew Woehlke in:
73543         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73544         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73545         * lib/fts-cycle.c: Don't include config.h.
73546         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73547         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73548         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73549         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73550         inttypes.h.
73551         * lib/xstrtoumax.c: Likewise.
73552         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73553         __strtol and the like, so that this module is more like its siblings.
73554         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73555         Remove; no longer needed now that we assume gnulib inttypes.h.
73556
73557 2006-10-08  Bruno Haible  <bruno@clisp.org>
73558
73559         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73560         option.
73561
73562 2006-10-07  Jim Meyering  <jim@meyering.net>
73563
73564         * modules/inttypes (inttypes.h): Revert what seems to have been
73565         an inadvertent part of today's change: use "|", not "/" in the
73566         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73567
73568 2006-10-07  Bruno Haible  <bruno@clisp.org>
73569
73570         * modules/sublist: New file.
73571
73572 2006-10-07  Bruno Haible  <bruno@clisp.org>
73573
73574         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73575         * modules/argz (argz.h): Likewise.
73576         * modules/arpa_inet (arpa/inet.h): Likewise.
73577         * modules/byteswap (byteswap.h): Likewise.
73578         * modules/configmake (configmake.h): Likewise.
73579         * modules/fcntl (fcntl.h): Likewise.
73580         * modules/fnmatch (fnmatch.h): Likewise.
73581         * modules/getopt (getopt.h): Likewise.
73582         * modules/glob (glob.h): Likewise.
73583         * modules/inttypes (inttypes.h): Likewise.
73584         * modules/netinet_in (netinet/in.h): Likewise.
73585         * modules/poll (poll.h): Likewise.
73586         * modules/stdbool (stdbool.h): Likewise.
73587         * modules/stdint (stdint.h): Likewise.
73588         * modules/sys_select (sys/select.h): Likewise.
73589         * modules/sys_socket (sys/socket.h): Likewise.
73590         * modules/sys_stat (sys/stat.h): Likewise.
73591         * modules/sysexits (sysexits.h): Likewise.
73592         * modules/unistd (unistd.h): Likewise.
73593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73594         Add a "DO NOT EDIT" comment to the generated file.
73595         (func_import): Likewise for gnulib-comp.m4.
73596
73597 2006-10-07  Bruno Haible  <bruno@clisp.org>
73598
73599         * lib/gl_sublist.h: New file.
73600         * lib/gl_sublist.c: New file.
73601
73602 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73605         name (relative to the original working directory) and the file
73606         name component (relative to the temporary working directory).  All
73607         callers changed.
73608         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73609         * lib/mkdir-p.c (make_dir_parents): Likewise.
73610         * lib/mkdir-p.h (make_dir_parents): Likewise.
73611
73612 2006-10-06  Eric Blake  <ebb9@byu.net>
73613
73614         Define several macros for use by the clean-temp module.
73615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73618
73619         * lib/clean-temp.h (close_stream_temp): New declaration.
73620         * lib/clean-temp.c (includes): Pull in headers according to what
73621         other modules are in use.
73622         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73623
73624 2006-10-06  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73627         instead of fopen, fwriteerror.
73628
73629 2006-10-06  Bruno Haible  <bruno@clisp.org>
73630
73631         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73632         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73633         int.
73634         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73635         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73636         Return an error indicator.
73637         Suggested by Eric Blake.
73638
73639 2006-10-06  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73642         Reported by Eric Blake.
73643
73644 2006-10-06  Bruno Haible  <bruno@clisp.org>
73645
73646         * modules/closeout (Description): Mention stderr too.
73647
73648 2006-10-06  Bruno Haible  <bruno@clisp.org>
73649         and Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * lib/closeout.c (close_stdout): Also close stderr.
73652         * lib/closeout.h: Update comment.
73653
73654 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73657         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73658         * lib/dirchownmod.c: Include lchown.h.
73659         * lib/lchown.c: Don't include files that lchown.h now includes.
73660         Don't declare chown, since lchown.h now does that.
73661         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73662         (lchown): Define to rpl_chown if lchown is declared but
73663         does not exist.  Declare using a prototype if lchown is not
73664         declared.  Add a copyright notice.
73665         * lib/mkstemp.h: Include <unistd.h>.
73666         * lib/openat.c: Include lchown.h.
73667
73668         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73669         we now test for that separately.
73670         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73671         rather than O_NOFOLLOW, when testing whether it's possible to
73672         avoid a race condition reliably.
73673         * lib/savewd.c (savewd_chdir): Likewise.
73674
73675         Remove macros that are no longer needed now that stdint.h is
73676         reliable.
73677         * lib/fsusage.c (UINTMAX_MAX): Remove.
73678         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73679         * lib/utimecmp.c (SIZE_MAX): Remove.
73680
73681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73682
73683         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73684         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73685         O_NOATIME works.
73686
73687 2006-10-05  Bruno Haible  <bruno@clisp.org>
73688
73689         * lib/gl_list.h (gl_sortedlist_search_from_to,
73690         gl_sortedlist_indexof_from_to): New declarations.
73691         (gl_list_implementation): New fields sortedlist_search_from_to,
73692         sortedlist_indexof_from_to.
73693         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73694         inline functions.
73695         * lib/gl_list.c (gl_sortedlist_search_from_to,
73696         gl_sortedlist_indexof_from_to): New functions.
73697         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73698         function.
73699         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73700         (gl_array_sortedlist_search_from_to): New function.
73701         (gl_array_list_implementation): Update.
73702         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73703         function.
73704         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73705         (gl_carray_sortedlist_search_from_to): New function.
73706         (gl_carray_list_implementation): Update.
73707         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73708         gl_linked_sortedlist_indexof_from_to): New functions.
73709         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73710         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73711         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73712         gl_tree_sortedlist_indexof_from_to): New functions.
73713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73715         Update.
73716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73717         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73718         Update.
73719
73720 2006-10-05  Bruno Haible  <bruno@clisp.org>
73721
73722         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73723         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73724         (struct gl_list_implementation): Add fields search_from_to,
73725         indexof_from_to. Remove fields search, indexof.
73726         (gl_list_search): Use the search_from_to method.
73727         (gl_list_search_from, gl_list_search_from_to): New functions.
73728         (gl_list_indexof): Use the indexof_from_to method.
73729         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73730         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73731         (gl_list_search_from, gl_list_search_from_to): New functions.
73732         (gl_list_indexof): Use the indexof_from_to method.
73733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73734         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73735         gl_array_indexof. Add start_index, end_index arguments.
73736         (gl_array_search_from_to): Renamed from gl_array_search. Add
73737         start_index, end_index arguments.
73738         (gl_array_remove, gl_array_list_implementation): Update.
73739         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73740         gl_carray_indexof. Add start_index, end_index arguments.
73741         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73742         start_index, end_index arguments.
73743         (gl_carray_remove, gl_carray_list_implementation): Update.
73744         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73745         gl_linked_search. Add start_index, end_index arguments.
73746         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73747         start_index, end_index arguments.
73748         (gl_linked_remove): Update.
73749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73751         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73752         field to 'size_t'.
73753         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73754         gl_tree_search. Add start_index, end_index arguments.
73755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73756         start_index, end_index arguments.
73757         (gl_tree_remove): Update.
73758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73760         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73761         function.
73762         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73763         gl_tree_search. Add start_index, end_index arguments.
73764         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73765         start_index, end_index arguments.
73766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73767         Update.
73768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73769
73770 2006-10-05  Bruno Haible  <bruno@clisp.org>
73771
73772         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73773
73774         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73775         fwriteerror_temp): New declarations.
73776         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73777         (descriptors): New variable.
73778         (cleanup): First, close the descriptors.
73779         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73780         fclose_temp, fwriteerror_temp): New functions.
73781
73782 2006-10-04  Jim Meyering  <jim@meyering.net>
73783
73784         * lib/fts.c (fts_open): Tiny comment change.
73785
73786 2006-10-04  Bruno Haible  <bruno@clisp.org>
73787
73788         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73790         gl_LOCK_BODY.
73791         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73792         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73793         gl_LOCK_EARLY_BODY.
73794         (gl_LOCK): Require gl_LOCK_BODY.
73795
73796 2006-10-04  Bruno Haible  <bruno@clisp.org>
73797
73798         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73799         (gl_oset_search_atleast): New declaration.
73800         (struct gl_oset_implementation): Add field 'search_atleast'.
73801         (gl_oset_search_atleast): New inline function.
73802         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73803         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73804         (gl_array_oset_implementation): Update.
73805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73806         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73807         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73808
73809 2006-10-04  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73812
73813 2006-10-03  Bruno Haible  <bruno@clisp.org>
73814
73815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73816         from gl_avltreehash_list_implementation.
73817
73818 2006-10-03  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/gl_oset.c (gl_oset_add): Fix return type.
73821
73822 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73823
73824         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73825
73826 2006-10-02  Eric Blake  <ebb9@byu.net>
73827
73828         * modules/strnlen (Depends-on): Add extensions.
73829
73830 2006-10-02  Eric Blake  <ebb9@byu.net>
73831
73832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73833         definition in 2.60+.
73834
73835 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73836
73837         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73838         checks.
73839
73840 2006-10-02  Bruno Haible  <bruno@clisp.org>
73841
73842         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73843         to the AUTOMAKE_OPTIONS.
73844         Reported by Jim Meyering.
73845
73846 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         Work around bug in Solaris 10 /proc file system:
73849         /proc/self/fd/NNN/.. isn't the parent directory of
73850         the directory whose file descriptor is NNN.  This needs to
73851         be worked around at run time, not compile time, since a
73852         program might be built on Solaris 8, where things work, and
73853         run on Solaris 10.
73854         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73855         to use the following interface instead:
73856         (OPENAT_BUFFER_SIZE): New macro.
73857         (openat_proc_name): New function.
73858         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73859         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73860         Likewise.
73861         * lib/openat-proc.c: New file.
73862         * modules/openat (Files): Add lib/openat-proc.c.
73863         (Depends-on): Add same-inode, stdbool.
73864         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73865
73866 2006-09-29  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73869         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73870         argument. Set stdout_closed before testing for ferror, not after.
73871         (fwriteerror, fwriteerror_no_ebadf): New functions.
73872
73873 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73874
73875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73876
73877 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73878
73879         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73880         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73881
73882 2006-09-28  Jim Meyering  <jim@meyering.net>
73883
73884         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73885         Include <unistd.h>.
73886
73887 2006-09-28  Bruno Haible  <bruno@clisp.org>
73888
73889         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73890         * modules/linkedhash-list (Depends-on): Likewise.
73891         * modules/rbtreehash-list (Depends-on): Likewise.
73892
73893 2006-09-28  Bruno Haible  <bruno@clisp.org>
73894
73895         * lib/strndup.h: Simplify the redefinition of strndup.
73896         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73898
73899 2006-09-28  Bruno Haible  <bruno@clisp.org>
73900
73901         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73902         * lib/gl_linkedhash_list.c: Likewise.
73903         * lib/gl_rbtreehash_list.c: Likewise.
73904
73905 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73908         getaddrinfo.
73909
73910         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73911         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73912         it causes <stdio_ext.h> to cause a compile-time error.
73913         Problem reported by Nelson H. F. Beebe.
73914         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73915         of HAVE_DECL___PENDING.
73916
73917         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73919         declaration.
73920
73921 2006-09-27  Jim Meyering  <jim@meyering.net>
73922
73923         This file could end up with a definition for a function
73924         named __strndup, rather than rpl_strndup on a system with
73925         incomplete weak_alias support.
73926         * lib/strndup.c (strndup): Rename from __strndup.
73927         Remove #defines that used to map __strndup to strndup.
73928         Don't use K&R prototypes.
73929         Remove LIBC-related code, since this file is not sync'd with glibc.
73930         * lib/strndup.h: Revamp, accordingly.
73931         * m4/strndup.m4: Modernize.
73932
73933 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * modules/savewd (Depends-on): Add 'raise'.
73936         * lib/savewd.c: Include <signal.h>, for 'raise'.
73937
73938 2006-09-26  Jim Meyering  <jim@meyering.net>
73939
73940         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73941         when we detect Darwin 8.7.0's acl_get_file bug.
73942         Rearrange to perform the new (below) run-test while $LIBS
73943         contains any acl-related library.  Set USE_ACL at the end.
73944         (gl_ACL_GET_FILE): New function.
73945
73946 2006-09-26  Eric Blake  <ebb9@byu.net>
73947
73948         * lib/verror.c: Include <config.h> unconditionally.
73949
73950 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         * modules/clock-time (Maintainer): Add self.
73953         * modules/getlogin_r (Depends-on): Add extensions.
73954
73955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73956
73957         * modules/clock-time: New module.
73958         * modules/nanosleep (Depends-on): Add clock-time.
73959         * modules/gethrxtime (Depends-on): Likewise.
73960         * modules/gettime (Depends-on): Likewise.
73961         * modules/settime (Depends-on): Likewise.
73962
73963         * modules/fts-lgpl: Depend on openat.
73964         * modules/mkancesdirs: Depend on savewd.
73965         * modules/mkdir-p: Likewise.
73966
73967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73968
73969         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73970
73971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73972         `gl_have_arbitrary_file_name_length_limit' to
73973         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73974         actually works between configure runs.
73975
73976 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73977             Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73980
73981 2006-09-25  Jim Meyering  <jim@meyering.net>
73982
73983         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73984         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73985
73986 2006-09-25  Eric Blake  <ebb9@byu.net>
73987
73988         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73989         exec's in 2006-09-18 patch when shuffling fds.
73990
73991 2006-09-25  Bruno Haible  <bruno@clisp.org>
73992
73993         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73994         Reported by Jim Meyering.
73995
73996 2006-09-24  Jim Meyering  <jim@meyering.net>
73997
73998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73999         compare a pointer against a literal "0".  That caused failures with
74000         at least HP-UX's hpcc.
74001
74002 2006-09-22  Simon Josefsson  <jas@extundo.com>
74003
74004         * modules/gc-sha1:
74005         * modules/gc-md4:
74006         * modules/gc-hmac-sha1:
74007         * modules/gc-hmac-md5:
74008         * modules/gc-des:
74009         * modules/gc-arcfour: Distribute more files.
74010
74011 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74012
74013         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74014         (gl_linked_iterator_from_to): Initialize struct completely.
74015         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74016         (gl_tree_iterator_from_to): Likewise
74017         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74018         * lib/gl_array_list.c [lint] (gl_array_iterator)
74019         (gl_array_iterator_from_to): Likewise.
74020         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74021         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74022         (gl_carray_iterator_from_to): Likewise.
74023
74024         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74025         * lib/md4.c (md4_process_block): Remove unused variable.
74026         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74027         parentheses for clarity.
74028
74029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74030
74031         * modules/bison-i18n (Depends-on): Add gettext.
74032
74033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74034
74035         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74037         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74038         also add missing comma that caused broken test.
74039         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74040         stdlib.h, for `abort'.
74041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74042         variables.
74043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74044         include unistd.h if present, for `rmdir'.
74045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74046         variables.
74047         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74048         in the process include standard headers for prototypes.
74049         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74050         gets declared on GNU/Linux.
74051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74052         unistd.h, for `rmdir'.
74053         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74054
74055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74056         always true.
74057         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74058
74059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74060
74061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74062
74063         * gnulib-tool (func_version): Create output all at once.  This
74064         may help avoid triggering unnecessary SIGPIPEs, and at any
74065         rate it doesn't hurt.
74066
74067 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74068             Bruno Haible  <bruno@clisp.org>
74069
74070         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74072         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74073
74074         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74075         (gl_FUNC_VASPRINTF): Invoke it.
74076
74077 2006-09-22  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74080         getloadavg.c as first argument.
74081
74082 2006-09-22  Bruno Haible  <bruno@clisp.org>
74083
74084         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74085         at the beginning of the gl_INIT macro.
74086         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74087         gl_GETLOADAVG.
74088
74089 2006-09-22  Bruno Haible  <bruno@clisp.org>
74090
74091         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74092         module.
74093         Suggested by Ralf Wildenhues.
74094
74095 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         Import this patch from libc:
74098
74099         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74100
74101         * lib/regex_internal.c (re_string_reconstruct): Handle
74102         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74103         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74104         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74105         re_string_context_at.
74106
74107         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74108         now requires it.
74109         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74110         gl_REGEX now does it for us.
74111         (gl_REGEX): Add test taken from
74112         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74113
74114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74115         Check that large offsets work.  Modernize Autoconf usages.
74116         Prefer "yes" to mean a good thing rather than a bad.
74117         Don't put "#define mkstemp" in config.h, as this might interfere
74118         with standard system headers that "#define mkstemp mkstemp64".
74119
74120         * modules/mkstemp (Depends-on): Add extensions, so that
74121         mkstemp is visible on some platforms.
74122         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74123         (Include): Change to "mkstemp.h" from <stdlib.h>.
74124         (Files): Add mkstemp.h.
74125
74126         * lib/mkstemp.h: New file, since some standard headers
74127         #define mkstemp.
74128         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74129         Include "mkstemp.h".
74130         Make the _LIBC code resemble glibc original more,
74131         e.g., use K&R style.
74132         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74133         (mkstemp): Remove, since mkstemp.h does this for us.
74134         * lib/stdlib--.h: Include mkstemp.h.
74135
74136         Import this patch from libc:
74137
74138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74139
74140         * lib/tempname.c (__gen_tempname): Change attempts_min
74141         into a macro.  Use preprocessor to decide how to initialize
74142         attempts [Coverity CID 67].
74143
74144 2006-09-20  Bruno Haible  <bruno@clisp.org>
74145
74146         * lib/mkdtemp.c: Import from libc.
74147         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74148                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74149                 attempts_min into a macro.  Use preprocessor to decide how to
74150                 initialize attempts [Coverity CID 67].
74151         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74152                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74153                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74154
74155 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74156
74157         * gnulib-tool (func_exit): New function, to allow to pass the
74158         exit status portably through the trap.  Use everywhere.
74159         (--help, --version): Signal a write error.
74160         (trap): catch SIGPIPE, for write errors.
74161         Exit at the end of the trap, with the correct exit status.
74162
74163 2006-09-19  Karl Berry  <karl@gnu.org>
74164
74165         * doc/gnulib.texi: note about the license texinfo files.
74166
74167 2006-09-19  Eric Blake  <ebb9@byu.net>
74168
74169         * gnulib-tool: Avoid space-tab.
74170
74171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74174         that prevented coreutils 6.1 from building.  Problem reported
74175         by Petter Reinholdtsen.
74176
74177 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * gnulib-tool (avoidlist): Fix typo that broke options like
74180         --avoid=lock that are used by coreutils bootstrap.
74181
74182 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74183
74184         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74185         more systematically.
74186
74187 2006-09-18  Jim Meyering  <jim@meyering.net>
74188
74189         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74190
74191 2006-09-18  Bruno Haible  <bruno@clisp.org>
74192
74193         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74194
74195 2006-09-18  Bruno Haible  <bruno@clisp.org>
74196
74197         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74198         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74199         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74200         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74201         * m4/gettext.m4: Require autoconf >= 2.52.
74202         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74203         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74204         of gl_cv_header_inttypes_h.
74205
74206 2006-09-18  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/javaversion.c: Include configmake.h.
74209
74210 2006-09-18  Bruno Haible  <bruno@clisp.org>
74211
74212         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74213         avoid that the while loops be executed in a subshell.
74214
74215 2006-09-18  Bruno Haible  <bruno@clisp.org>
74216
74217         * MODULES.html.sh (func_module): Break long lines.
74218         Suggested by Bruce Korb <bkorb@gnu.org>.
74219
74220 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74221
74222         Speed up by a factor of 1.12.
74223         * gnulib-tool (nl): New variable.
74224         (func_import): Rewrite include directive extraction to only read each
74225         directive once.
74226
74227 2006-09-17  Bruno Haible  <bruno@clisp.org>
74228
74229         * modules/javaversion (Makefile.am): Remove DEFS setting.
74230         (Depends-on): Add configmake, for PKGDATADIR definition.
74231
74232 2006-09-17  Bruno Haible  <bruno@clisp.org>
74233
74234         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74235
74236 2006-09-17  Bruno Haible  <bruno@clisp.org>
74237
74238         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74239         (func_modules_transitive_closure, func_modules_add_dummy,
74240         func_modules_to_filelist, func_import, func_create_testdir,
74241         func_create_megatestdir, ...): Use it wherever possible.
74242         Suggested by Ralf Wildenhues.
74243
74244 2006-09-16  Karl Berry  <karl@gnu.org>
74245
74246         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74247         to avoid sectioning errors.
74248         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74249         [ifinfo]: blank line after @center-ed titles.
74250         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74251         Spell FSF address consistently with others.
74252         (These changes approved by rms.)
74253
74254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74255
74256         Speed up by a factor of 1.61.
74257         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74258         already checked module names again.
74259
74260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74261
74262         Speed up by a factor of 1.13.
74263         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74264         for new_files, and the input to func_add_or_update.
74265
74266 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74267
74268         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74269         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74270
74271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * modules/mkancesdirs (Depends-on): Add fcntl.
74274         * modules/savewd: New file.
74275         * MODULES.html.sh (File system functions): Add savewd.
74276
74277         * modules/configmake (Makefile.am): Add support for the
74278         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74279
74280 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74281
74282         * m4/savewd.m4: New file.
74283
74284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74287         (dirchownmod): New arg FD.  All callers changed.
74288         Use FD rather than opening the directory ourself, as opening is
74289         now the caller's responsibility.
74290         * lib/dirchownmod.h: Likewise.
74291         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74292         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74293         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74294         (test_dir): Remove.
74295         (mkancesdirs): Return length of prefix of FILE that has already
74296         been made, or -2 if there is a child doing the work.  Redo
74297         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74298         ".", and treat ".." specially since it might stray back into
74299         already-created areas.  Use a subprocess if necessary.  New arg
74300         WD; all users changed.  MAKE_DIR function should now return 1
74301         if it creates a directory that is not readable.  Return -2 if
74302         a child process is spun off.
74303         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74304         Adjust signature to match code.
74305         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74306         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74307         all users changed.
74308         * lib/savewd.c, lib/savewd.h: New files.
74309
74310 2006-09-15  Jim Meyering  <jim@meyering.net>
74311
74312         * modules/rename-dest-slash: New module.
74313         * MODULES.html.sh (posix_compat): Add it here.
74314
74315         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74316
74317 2006-09-15  Jim Meyering  <jim@meyering.net>
74318
74319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74320         file.
74321
74322         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74323
74324 2006-09-15  Jim Meyering  <jim@meyering.net>
74325
74326         * lib/rename-dest-slash.c (has_trailing_slash): Use
74327         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74328         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74329         test before testing whether SRC is a directory.
74330         Suggestions from Bruno Haible.
74331
74332         Avoid a warning about an unused variable.
74333         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74334         into the #ifdef block where it's used.
74335
74336         * lib/rename-dest-slash.c: New file.
74337
74338 2006-09-14  Bruno Haible  <bruno@clisp.org>
74339
74340         * lib/allocsa.c: Include <config.h> unconditionally.
74341         * lib/asnprintf.c: Likewise.
74342         * lib/asprintf.c: Likewise.
74343         * lib/c-strcasecmp.c: Likewise.
74344         * lib/c-strcasestr.c: Likewise.
74345         * lib/c-strncasecmp.c: Likewise.
74346         * lib/c-strstr.c: Likewise.
74347         * lib/classpath.c: Likewise.
74348         * lib/clean-temp.c: Likewise.
74349         * lib/concatpath.c: Likewise.
74350         * lib/copy-file.c: Likewise.
74351         * lib/csharpcomp.c: Likewise.
74352         * lib/csharpexec.c: Likewise.
74353         * lib/execute.c: Likewise.
74354         * lib/fatal-signal.c: Likewise.
74355         * lib/findprog.c: Likewise.
74356         * lib/fwriteerror.c: Likewise.
74357         * lib/gl_array_list.c: Likewise.
74358         * lib/gl_array_oset.c: Likewise.
74359         * lib/gl_avltree_list.c: Likewise.
74360         * lib/gl_avltree_oset.c: Likewise.
74361         * lib/gl_avltreehash_list.c: Likewise.
74362         * lib/gl_carray_list.c: Likewise.
74363         * lib/gl_linked_list.c: Likewise.
74364         * lib/gl_linkedhash_list.c: Likewise.
74365         * lib/gl_list.c: Likewise.
74366         * lib/gl_oset.c: Likewise.
74367         * lib/gl_rbtree_list.c: Likewise.
74368         * lib/gl_rbtree_oset.c: Likewise.
74369         * lib/gl_rbtreehash_list.c: Likewise.
74370         * lib/imaxabs.c: Likewise.
74371         * lib/imaxdiv.c: Likewise.
74372         * lib/javacomp.c: Likewise.
74373         * lib/javaexec.c: Likewise.
74374         * lib/javaversion.c: Likewise.
74375         * lib/linebreak.c: Likewise.
74376         * lib/localcharset.c: Likewise.
74377         * lib/lock.c: Likewise.
74378         * lib/mbchar.c: Likewise.
74379         * lib/mbswidth.c: Likewise.
74380         * lib/mkdtemp.c: Likewise.
74381         * lib/pipe.c: Likewise.
74382         * lib/printf-args.c: Likewise.
74383         * lib/printf-parse.c: Likewise.
74384         * lib/progname.c: Likewise.
74385         * lib/progreloc.c: Likewise.
74386         * lib/readlink.c: Likewise.
74387         * lib/sh-quote.c: Likewise.
74388         * lib/stpcpy.c: Likewise.
74389         * lib/stpncpy.c: Likewise.
74390         * lib/strcasecmp.c: Likewise.
74391         * lib/strcasestr.c: Likewise.
74392         * lib/strcspn.c: Likewise.
74393         * lib/striconv.c: Likewise.
74394         * lib/strncasecmp.c: Likewise.
74395         * lib/strnlen1.c: Likewise.
74396         * lib/strstr.c: Likewise.
74397         * lib/strtok_r.c: Likewise.
74398         * lib/tls.c: Likewise.
74399         * lib/tmpdir.c: Likewise.
74400         * lib/unicodeio.c: Likewise.
74401         * lib/unsetenv.c: Likewise.
74402         * lib/vasnprintf.c: Likewise.
74403         * lib/vasprintf.c: Likewise.
74404         * lib/wait-process.c: Likewise.
74405         * lib/xallocsa.c: Likewise.
74406         * lib/xsetenv.c: Likewise.
74407         * lib/xstriconv.c: Likewise.
74408
74409 2006-09-13  Simon Josefsson  <jas@extundo.com>
74410
74411         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74412         that internally, suggested by Ralf Wildenhues
74413         <Ralf.Wildenhues@gmx.de>.
74414
74415 2006-09-13  Simon Josefsson  <jas@extundo.com>
74416
74417         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74418         @LIBOBJS@.
74419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74420
74421 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74424         longer worry about uses that don't define HAVE_CONFIG_H.
74425         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74426         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74427         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74428         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74429         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74430         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74431         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74432         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74433         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74434         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74435         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74436         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74437         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74438         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74439         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74440         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74441         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74442         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74443         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74444         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74445         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74446         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74447         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74448         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74449         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74450         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74451         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74452         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74453         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74454         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74455         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74456         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74457         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74458         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74459         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74460         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74461         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74462         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74463         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74464         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74465         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74466         Likewise.
74467
74468 2006-09-13  Eric Blake  <ebb9@byu.net>
74469
74470         * lib/getopt.c: Fix typo in last commit.
74471
74472 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74473
74474         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74475         dgettext.
74476
74477 2006-09-12  Jim Meyering  <jim@meyering.net>
74478
74479         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74480         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74481         Reported by Nelson H. F. Beebe.
74482
74483 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74484
74485         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74486         program_invocation_name and program_invocation_short_name are
74487         initialized.
74488         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74489         and program_invocation_short_name to argp.h, so they are visible
74490         to user programs.
74491         * lib/argp.h: Likewise
74492
74493 2006-09-10  Bruno Haible  <bruno@clisp.org>
74494
74495         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74496         m4/inttypes_h.m4, m4/uintmax_t.m4.
74497
74498 2006-09-10  Bruno Haible  <bruno@clisp.org>
74499
74500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74501         gl_AC_TYPE_UINTMAX_T.
74502
74503 2006-09-10  Bruno Haible  <bruno@clisp.org>
74504
74505         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74506
74507 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74508
74509         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74510         convention.  Text proposed by Bruno Haible.
74511         (struct argp_option): Document the use of N_() wrappers.
74512
74513         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74514         '\v', and translate the two parts separately, instead of feeding
74515         the whole string to gettext.  This allows to exclude
74516         '\v' from the strings visible to the translator by writing doc
74517         strings as N_("..") "\v" N_("..").
74518
74519 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * config/srclist.txt: Undo latest change; the bug was fixed.
74522
74523 2006-09-09  Bruno Haible  <bruno@clisp.org>
74524
74525         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74526         assignments if building a library without libtool.
74527         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74528         in func_emit_lib_Makefile_am.
74529         (func_import): When building a static library libfoo.a, arrange to
74530         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74531         (func_create_testdir): Likewise.
74532         * modules/gc (configure.ac, Makefile.am): If building statically,
74533         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74534         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74535         * modules/striconv (configure.ac, Makefile.am): Likewise.
74536         Based on a suggestion by Ralf Wildenhues.
74537
74538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74541         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74542         Also:
74543
74544         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74545         Add year_2050_test to catch glibc bug 2821
74546         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74547
74548         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74549         Prefer #ifdef to #if.
74550
74551         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74552         Return from 'main' instead of calling 'exit'.
74553
74554 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74557         returned the maximum time_t value rather than (time_t) -1.
74558         Problem originally reported by William Bardwell
74559         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74560
74561         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74562         Moved to here ...
74563         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74564         ... from here.
74565
74566 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74569         2821 is fixed.
74570
74571 2006-09-08  Jim Meyering  <jim@meyering.net>
74572
74573         Don't make generated files read-only.  That would bother too many
74574         people.  However, do retain the ability to work when targets are
74575         read-only: remove the destination and temporary files before writing
74576         them (when generated via sed or echo), or by using the -f option for
74577         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74578         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74579         * modules/byteswap, modules/configmake, modules/fcntl:
74580         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74581         * modules/localcharset, modules/netinet_in, modules/poll:
74582         * modules/stdbool, modules/stdint, modules/sys_select:
74583         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74584
74585 2006-09-08  Jim Meyering  <jim@meyering.net>
74586
74587         Avoid new build failure on FreeBSD 6.0.
74588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74589         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74590         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74591
74592 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74593
74594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74595
74596 2006-09-07  Jim Meyering  <jim@meyering.net>
74597
74598         Fix global typo in last change: use chmod u-w, not chmod u-x.
74599         Spotted by Paul Eggert and Bruce Korb.
74600         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74601         * modules/byteswap, modules/configmake, modules/fcntl:
74602         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74603         * modules/localcharset, modules/netinet_in, modules/poll:
74604         * modules/stdbool, modules/stdint, modules/sys_select:
74605         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74606
74607 2006-09-06  Jim Meyering  <jim@meyering.net>
74608
74609         Make generated files be read-only.
74610         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74611         Ensure that each generated file is now read-only.
74612         * modules/argz: Likewise.
74613         * modules/arpa_inet: Likewise.
74614         * modules/byteswap: Likewise.
74615         * modules/configmake: Likewise.
74616         * modules/fcntl: Likewise.
74617         * modules/fnmatch: Likewise.
74618         * modules/getopt: Likewise.
74619         * modules/glob: Likewise.
74620         * modules/inttypes: Likewise.
74621         * modules/netinet_in: Likewise.
74622         * modules/poll: Likewise.
74623         * modules/stdbool: Likewise.
74624         * modules/stdint: Likewise.
74625         * modules/sys_select: Likewise.
74626         * modules/sys_socket: Likewise.
74627         * modules/sys_stat: Likewise.
74628         * modules/sysexits: Likewise.
74629         * modules/localcharset: Same as above, but continue using temporary
74630         file named "t-$@" (why different?) rather than the "$@-t" used
74631         everywhere else.
74632
74633         * modules/sysexits (Makefile.am): Replace literal occurrences
74634         of "sysexit.h" more readable, and more consistent, "$@".
74635
74636 2006-09-06  Bruno Haible  <bruno@clisp.org>
74637
74638         * modules/striconv: New file.
74639         * modules/xstriconv: New file.
74640         * MODULES.html.sh (Internationalization functions): Add striconv,
74641         xstriconv.
74642
74643 2006-09-06  Bruno Haible  <bruno@clisp.org>
74644
74645         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74646         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74647         not using libtool correctly.
74648
74649 2006-09-06  Bruno Haible  <bruno@clisp.org>
74650
74651         * lib/striconv.h: New file.
74652         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74653         iconvstring.c.
74654         * lib/xstriconv.h: New file.
74655         * lib/xstriconv.c: New file.
74656
74657 2006-09-06  Bruno Haible  <bruno@clisp.org>
74658
74659         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74660         lib_..._LDFLAGS.
74661
74662 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74663
74664         * lib/argz_.h: Sync from Libtool.
74665
74666         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74667                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74668
74669         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74670
74671 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74672
74673         * modules/trim: New file.
74674
74675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74676
74677         * lib/trim.h: New file.
74678         * lib/trim.c: New file.
74679
74680 2006-09-05  Bruno Haible  <bruno@clisp.org>
74681
74682         * MODULES.html.sh (String handling): Add trim.
74683
74684 2006-09-04  Karl Berry  <karl@gnu.org>
74685
74686         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74687         until next release.
74688
74689 2006-09-03  Bruno Haible  <bruno@clisp.org>
74690
74691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74692         correctly.
74693
74694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74697         not gl_GETLOADAVG.  Omit unneeded semicolons.
74698         Problems reported by Ralf Wildenhues in
74699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74700         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74701         at the end, which is the usual gnulib style.
74702
74703         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74704         of doing all the work ourselves.
74705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74706         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74707
74708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74711         Problem reported by Ralf Wildenhues in
74712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74713
74714         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74715         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74716
74717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74718
74719         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74720         yesterday's patch by changing test -n to test -z.
74721
74722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74725         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74726         the former is now obsolescent.
74727
74728         * modules/chdir-long (Depends-on): Add fcntl.
74729
74730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74733         obsolescent, and programs should use gnulib instead.
74734         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74735         but with prefixes changed.
74736
74737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74740         or stdbool.h, because they might not exist while configuring.
74741
74742         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74743         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74744         does that for us.
74745         (O_DIRECTORY): Remove.
74746
74747 2006-08-31  Eric Blake  <ebb9@byu.net>
74748
74749         * gnulib-tool: Don't let emacs change spaces to TAB.
74750
74751 2006-08-31  Bruno Haible  <bruno@clisp.org>
74752
74753         * gnulib-tool: When calling func_import more than once, do it in a
74754         subshell.
74755         Reported by Eric Blake <ebb9@byu.net>.
74756
74757 2006-08-31  Bruno Haible  <bruno@clisp.org>
74758
74759         * gnulib-tool (nl): Remove variable.
74760         (sed_transform_lib_file): Use more robust test for config-h module.
74761         (func_import): Fix typo in 2006-08-25 patch.
74762
74763 2006-08-31  Bruno Haible  <bruno@clisp.org>
74764
74765         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74766         specified, augment Makefile.am variables instead of assigning them.
74767
74768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         Work around a bug in both the Linux and SunOS 64-bit kernels:
74771         nanosleep mishandles sleeps for longer than 2**31 seconds.
74772         Problem reported by Frank v Waveren in
74773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74775         Check for nanosleep bug.
74776         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74777
74778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74779
74780         Work around a bug in both the Linux and SunOS 64-bit kernels:
74781         nanosleep mishandles sleeps for longer than 2**31 seconds.
74782         Problem reported by Frank v Waveren in
74783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74784         * lib/nanosleep.c (BILLION): New constant.
74785         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74786         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74787         implementation.
74788
74789 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * modules/nanosleep (Depends-on): Add gettime.
74792
74793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74794         and Simon Josefsson  <jas@extundo.com>
74795         and Oskar Liljeblad  <oskar@osk.mine.nu>
74796
74797         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74798         * gnulib-tool (func_import): New license type 'unmodifiable license
74799         text'.
74800         * modules/fdl: Use it.  Longer description.
74801         * module/gpl, module/lgpl: New files.
74802
74803 2006-08-30  Jim Meyering  <jim@meyering.net>
74804
74805         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74806         shadowing the parameter.
74807
74808 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74809
74810         Sync from Libtool:
74811
74812         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74813
74814         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74815         sharing with gnulib.  Report by Eric Blake.
74816
74817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * modules/isapipe: New file.
74820         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74821
74822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * modules/configmake (Makefile.am): Add a comment, and omit
74825         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74826         by Bruno Haible.
74827
74828 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * m4/isapipe.m4: New file.
74831
74832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * lib/isapipe.c, lib/isapipe.h: New files.
74835
74836 2006-08-29  Jim Meyering  <jim@meyering.net>
74837
74838         * modules/configmake (Makefile.am): Make configmake.h depend on
74839         Makefile.  Otherwise, a stale configmake.h could hang around.
74840
74841 2006-08-29  Eric Blake  <ebb9@byu.net>
74842
74843         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74844         resolution of upstream bug 3044.
74845
74846 2006-08-29  Bruno Haible  <bruno@clisp.org>
74847
74848         * modules/localcharset (Depends-on): Add configmake.
74849         (Makefile.am): Remove setting of LIBDIR through DEFS.
74850
74851 2006-08-29  Bruno Haible  <bruno@clisp.org>
74852
74853         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74854         defined.
74855
74856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * modules/fcntl: New file.
74859         * modules/chdir-safer (Depends-on): Add fcntl.
74860         * modules/fts: Likewise.
74861         * modules/mkdir-p: Likewise.
74862
74863         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74864         This undoes the most recent change, since we're now addressing the
74865         problem in a different way.
74866
74867         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74868         into output, since the output might be called Makefile.am even
74869         if $makefile_name is something different.
74870         (func_import): Use $makefile_am rather than
74871         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74872         empty.
74873
74874         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74875
74876 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74879         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74880         recent change to stdint.m4, since we're now addressing the problem in a
74881         different way.
74882
74883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * m4/fcntl_h.m4: New file.
74886
74887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * lib/fcntl_.h: New file.
74890         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74891         the fcntl module.
74892         * lib/dirchownmod.c: Likewise.
74893         * lib/fts.c: Likewise.
74894
74895         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74896         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74897         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74898         just before including <inttypes.h>, to avoid circular inclusion.
74899
74900 2006-08-28  Jim Meyering  <jim@meyering.net>
74901
74902         * doc/visibility.texi: Actually read and correct the grammar of the
74903         sentence affected by yesterday's change.
74904
74905 2006-08-28  Eric Blake  <ebb9@byu.net>
74906
74907         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74908         needs wrapper.
74909
74910 2006-08-28  Eric Blake  <ebb9@byu.net>
74911
74912         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74913
74914 2006-08-28  Eric Blake  <ebb9@byu.net>
74915
74916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74917
74918 2006-08-28  Bruno Haible  <bruno@clisp.org>
74919
74920         * modules/c-strstr: New file, from GNU gettext.
74921         * MODULES.html.sh (String handling): Add c-strstr.
74922
74923 2006-08-28  Bruno Haible  <bruno@clisp.org>
74924
74925         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74926         macros.
74927         Reported by Eric Blake.
74928
74929 2006-08-28  Bruno Haible  <bruno@clisp.org>
74930
74931         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74932         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74933         * lib/vasprintf.c: Include errno.h, limits.h.
74934         (EOVERFLOW): New fallback definition.
74935         (vasprintf): Test here whether the string length is > INT_MAX.
74936         * lib/vsnprintf.c: Include errno.h, limits.h.
74937         (EOVERFLOW): New fallback definition.
74938         (vsnprintf): Fix bug when generated string was too long for the buffer.
74939         Test here whether the string length is > INT_MAX.
74940
74941 2006-08-28  Bruno Haible  <bruno@clisp.org>
74942
74943         * lib/inttypes_.h (SCNX*): Remove definitions.
74944         Reported by Eric Blake.
74945
74946 2006-08-28  Bruno Haible  <bruno@clisp.org>
74947
74948         * lib/c-strstr.h: New file, from GNU gettext.
74949         * lib/c-strstr.c: New file, from GNU gettext.
74950
74951 2006-08-28  Bruno Haible  <bruno@clisp.org>
74952
74953         * gnulib-tool: Reorder some statements.
74954
74955 2006-08-28  Bruno Haible  <bruno@clisp.org>
74956
74957         * gnulib-tool: New option --makefile-name.
74958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74959         $makefile_name.
74960         (func_import): Write $makefile_name to the cache file, and read it from
74961         there unless explicitly specified. Use $makefile_name as file name
74962         instead of Makefile.am. Adjust the recommendations accordingly.
74963
74964 2006-08-28  Bruno Haible  <bruno@clisp.org>
74965
74966         * gnulib-tool (func_verify_module): Check against misapplying patch.
74967
74968 2006-08-28  Bruno Haible  <bruno@clisp.org>
74969
74970         * gnulib-tool (func_relativize, func_relconcat): New functions.
74971         Give an error if --local-dir is given with --update.
74972         Remove trailing slashes from $local_gnulib_dir.
74973         (func_import): Store the relativized $local_gnulib_dir in
74974         gnulib-cache.m4, and read it from there if not specified explicitly.
74975
74976 2006-08-28  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74979         is the current directory. Respect also $local_gnulib_dir.
74980
74981 2006-08-28  Bruno Haible  <bruno@clisp.org>
74982             Simon Josefsson  <jas@extundo.com>
74983
74984         BeOS portability.
74985         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74986
74987 2006-08-27  Jim Meyering  <jim@meyering.net>
74988
74989         * doc/visibility.texi: Remove duplicate word: "pointer".
74990
74991 2006-08-26  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74994         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74995         (Makefile.am): Create inttypes.h from inttypes_.h.
74996         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74997
74998         * modules/imaxabs: New file.
74999
75000         * modules/imaxdiv: New file.
75001
75002 2006-08-26  Bruno Haible  <bruno@clisp.org>
75003
75004         * m4/inttypes.m4: New file.
75005         * m4/_inttypes_h.m4: Remove file.
75006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75007         PRI_MACROS_BROKEN.
75008         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75009
75010         * m4/imaxabs.m4: New file.
75011
75012         * m4/imaxdiv.m4: New file.
75013
75014 2006-08-26  Bruno Haible  <bruno@clisp.org>
75015
75016         * lib/inttypes_.h: New file.
75017         * lib/inttypes.h: Remove file.
75018         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75019
75020         * lib/imaxabs.c: New file.
75021
75022         * lib/imaxdiv.c: New file.
75023
75024 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         New config-h module, so that "make" output needn't be cluttered
75027         by -DHAVE_CONFIG_H.
75028         * MODULES.html.sh (Support for building libraries and executables):
75029         Add config-h.
75030         * modules/config-h: New file.
75031         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75032         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75033         the config-h module is used.
75034
75035         New configmake module, so that "make" output needn't be cluttered
75036         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75037         * MODULES.html.sh (Support for building libraries and executables):
75038         Add configmake.
75039         * modules/configmake: New file.
75040
75041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * m4/config-h.m4: New file.
75044
75045 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * config/srclist.txt: Add elisp-comp.
75048
75049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         * MODULES.html.sh (Support for building libraries and executables):
75052         Add elisp-comp.
75053         * build-aux/elisp-comp: New file.
75054         * modules/elisp-comp: New file.
75055
75056 2006-08-24  Bruno Haible  <bruno@clisp.org>
75057
75058         * gnulib-tool (func_create_testdir): Use non-default values of
75059         sourcebase and m4base.
75060
75061 2006-08-24  Bruno Haible  <bruno@clisp.org>
75062
75063         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75064         HTML structure.
75065
75066 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * modules/openat (Depends-on): Add lchown.
75069
75070 2006-08-23  Bruno Haible  <bruno@clisp.org>
75071
75072         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75073         of gl_LOCK_EARLY instead of gl_LOCK.
75074
75075 2006-08-23  Bruno Haible  <bruno@clisp.org>
75076
75077         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75078         on OSF/1 to no.
75079         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75080
75081 2006-08-23  Bruno Haible  <bruno@clisp.org>
75082
75083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75084         as unusable.
75085
75086         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75087         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75088         (gl_LOCK): New macro.
75089
75090 2006-08-22  Simon Josefsson  <jas@extundo.com>
75091
75092         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75093         to md5 module.
75094
75095 2006-08-22  Simon Josefsson  <jas@extundo.com>
75096
75097         * MODULES.html.sh: Add "Support for maintaining and release
75098         projects".
75099
75100         * build-aux/gnupload: New file, from coreutils.
75101
75102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         Avoid the need for AC_LIBSOURCES in m4 macros.
75105         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75106         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75107         * modules/check-version (EXTRA_DIST): Add check-version.h.
75108         * modules/crc (EXTRA_DIST): Add crc.h.
75109         * modules/des (EXTRA_DIST): Add des.h.
75110         * modules/gc (EXTRA_DIST): Add gc.h.
75111         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75112         * modules/getline (EXTRA_DIST): Add getline.h.
75113         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75114         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75115         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75116         * modules/md2 (EXTRA_DIST): Add md2.h.
75117         * modules/md4 (EXTRA_DIST): Add md4.h.
75118         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75119         * modules/read-file (EXTRA_DIST): Add read-file.h.
75120         * modules/readline (EXTRA_DIST): Add readline.h.
75121         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75122         rijndael-api-fst.h.
75123
75124 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * m4/rijndael.m4 (gl_ARCFOUR):
75127         * m4/arctwo.m4 (gl_ARCTWO):
75128         * m4/check-version.m4 (gl_CHECK_VERSION):
75129         * m4/crc.m4 (gl_CRC):
75130         * m4/des.m4 (gl_DES):
75131         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75132         * m4/gc.m4 (gl_GC):
75133         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75134         * m4/getline.m4 (gl_FUNC_GETLINE):
75135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75136         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75137         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75138         * m4/md2.m4 (gl_MD2):
75139         * m4/md4.m4 (gl_MD4):
75140         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75141         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75142         * m4/readline.m4 (gl_FUNC_READLINE):
75143         * m4/rijndael.m4 (gl_RIJNDAEL):
75144         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75145         to get the necessary .h files and whatnot.
75146
75147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75150         gnulib rather than the other way around.
75151         * config/srclistvars.sh (COREUTILS): Remove.
75152
75153 2006-08-22  Jim Meyering  <jim@meyering.net>
75154
75155         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75156
75157         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75158
75159 2006-08-22  Eric Blake  <ebb9@byu.net>
75160
75161         * modules/regexprops-generic: New file.
75162         * MODULES.html.sh (Support for building documentation): List it.
75163
75164 2006-08-22  Eric Blake  <ebb9@byu.net>
75165
75166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75167         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75170
75171 2006-08-22  Bruno Haible  <bruno@clisp.org>
75172
75173         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75174         and lib_LTLIBRARIES like the other lib_* variables.
75175
75176 2006-08-22  Bruno Haible  <bruno@clisp.org>
75177
75178         * build-aux/x-to-1.in: New file, from GNU gettext.
75179
75180 2006-08-22  Bruno Haible  <bruno@clisp.org>
75181
75182         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75183         <utmpx.h> exists.
75184
75185 2006-08-22  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75188         <utmpx.h> exists.
75189
75190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         BeOS portability.
75193         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75194         exist.
75195         Problem reported by Bruno Haible.
75196
75197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         Avoid the need for AC_LIBSOURCES in m4 macros.
75200         * modules/acl (EXTRA_DIST): Add acl.h.
75201         * modules/argmatch (Files): Add m4/argmatch.m4.
75202         (configure.ac): Add gl_ARGMATCH.
75203         (EXTRA_DIST): Renamed from lib_SOURCES, for
75204         consistency with the other modules.  Remove argmatch.c.
75205         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75206         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75207         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75208         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75209         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75210         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75211         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75212         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75213         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75214         * modules/closeout (EXTRA_DIST): Add closeout.h.
75215         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75216         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75217         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75218         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75219         dirname.h; remove basename.c and stripslash.c.
75220         * modules/exclude (EXTRA_DIST): Add exclude.h.
75221         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75222         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75223         * modules/file-type (EXTRA_DIST): Add file-type.h.
75224         * modules/filemode (EXTRA_DIST): Add filemode.h.
75225         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75226         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75227         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75228         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75229         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75230         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75231         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75232         * modules/getdate (EXTRA_DIST): Add getdate.c.
75233         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75234         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75235         * modules/getpass (EXTRA_DIST): Add getpass.h.
75236         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75237         * modules/group-member (EXTRA_DIST): Add group-member.h.
75238         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75239         * modules/hash (EXTRA_DIST): Add hash.h.
75240         * modules/human (EXTRA_DIST): Add human.h.
75241         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75242         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75243         * modules/lchown (EXTRA_DIST): Add lchown.h.
75244         * modules/long-options (EXTRA_DIST): Add long-options.h.
75245         * modules/lstat (EXTRA_DIST): Add lstat.h.
75246         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75247         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75248         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75249         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75250         * modules/memxor (EXTRA_DIST): Add memxor.h.
75251         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75252         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75253         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75254         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75255         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75256         * modules/physmem (EXTRA_DIST): Add physmem.h.
75257         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75258         * modules/posixver (EXTRA_DIST): Add posixver.h.
75259         * modules/quote (EXTRA_DIST): Add quote.h.
75260         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75261         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75262         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75263         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75264         regex_internal.h regexec.c.
75265         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75266         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75267         * modules/same (EXTRA_DIST): Add same.h.
75268         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75269         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75270         * modules/savedir (EXTRA_DIST): Add savedir.h.
75271         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75272         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75273         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75274         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75275         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75276         * modules/strdup (EXTRA_DIST): Add strdup.h.
75277         * modules/strftime (EXTRA_DIST): Add strftime.h.
75278         * modules/strndup (EXTRA_DIST): Add strndup.h.
75279         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75280         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75281         * modules/time_r (EXTRA_DIST): Add time_r.h.
75282         * modules/timespec (EXTRA_DIST): Add timespec.h.
75283         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75284         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75285         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75286         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75287         * modules/userspec (EXTRA_DIST): Add userspec.h.
75288         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75289         * modules/utimens (EXTRA_DIST): Add utimens.h.
75290         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75291         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75292         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75293         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75294         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75295         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75296         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75297         * modules/yesno (EXTRA_DIST): Add yesno.h.
75298
75299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75302
75303         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75304         * m4/dev-ino.m4, same-inode.m4: Remove.
75305
75306         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75307         * m4/acl.m4 (AC_FUNC_ACL):
75308         * m4/backupfile.m4 (gl_BACKUPFILE):
75309         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75310         * m4/canon-host.m4 (gl_CANON_HOST):
75311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75314         * m4/cloexec.m4 (gl_CLOEXEC):
75315         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75316         * m4/closeout.m4 (gl_CLOSEOUT):
75317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75318         * m4/dirname.m4 (gl_DIRNAME):
75319         * m4/exclude.m4 (gl_EXCLUDE):
75320         * m4/exitfail.m4 (gl_EXITFAIL):
75321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75322         * m4/file-type.m4 (gl_FILE_TYPE):
75323         * m4/filemode.m4 (gl_FILEMODE):
75324         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75325         * m4/fpending.m4 (gl_FUNC_FPENDING):
75326         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75327         * m4/fts.m4 (gl_FUNC_FTS):
75328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75329         * m4/getdate.m4 (gl_GETDATE):
75330         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75331         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75332         * m4/getpass.m4 (gl_FUNC_GETPASS):
75333         * m4/gettime.m4 (gl_GETTIME):
75334         * m4/getugroups.m4 (gl_GETUGROUPS):
75335         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75337         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75338         * m4/hash.m4 (gl_HASH):
75339         * m4/idcache.m4 (gl_IDCACHE):
75340         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75341         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75342         * m4/long-options.m4 (gl_LONG_OPTIONS):
75343         * m4/lstat.m4 (gl_FUNC_LSTAT):
75344         * m4/md5.m4 (gl_MD5):
75345         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75346         * m4/memcoll.m4 (gl_MEMCOLL):
75347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75349         * m4/memxor.m4 (gl_MEMXOR):
75350         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75352         * m4/modechange.m4 (gl_MODECHANGE):
75353         * m4/mountlist.m4 (gl_MOUNTLIST):
75354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75355         * m4/openat.m4 (gl_FUNC_OPENAT):
75356         * m4/pathmax.m4 (gl_PATHMAX):
75357         * m4/physmem.m4 (gl_PHYSMEM):
75358         * m4/posixtm.m4 (gl_POSIXTM):
75359         * m4/posixver.m4 (gl_POSIXVER):
75360         * m4/quote.m4 (gl_QUOTE):
75361         * m4/quotearg.m4 (gl_QUOTEARG):
75362         * m4/readtokens.m4 (gl_READTOKENS):
75363         * m4/readutmp.m4 (gl_READUTMP):
75364         * m4/regex.m4 (gl_REGEX):
75365         * m4/safe-read.m4 (gl_SAFE_READ):
75366         * m4/safe-write.m4 (gl_SAFE_WRITE):
75367         * m4/same.m4 (gl_SAME):
75368         * m4/save-cwd.m4 (gl_SAVE_CWD):
75369         * m4/savedir.m4 (gl_SAVEDIR):
75370         * m4/settime.m4 (gl_SETTIME):
75371         * m4/sha1.m4 (gl_SHA1):
75372         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75373         * m4/stat-macros.m4 (gl_STAT_MACROS):
75374         * m4/stat-time.m4 (gl_STAT_TIME):
75375         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75376         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75377         * m4/strdup.m4 (gl_FUNC_STRDUP):
75378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75379         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75380         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75382         * m4/time_r.m4 (gl_TIME_R):
75383         * m4/timespec.m4 (gl_TIMESPEC):
75384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75385         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75387         * m4/userspec.m4 (gl_USERSPEC):
75388         * m4/utimecmp.m4 (gl_UTIMECMP):
75389         * m4/utimens.m4 (gl_UTIMENS):
75390         * m4/xalloc.m4 (gl_XALLOC):
75391         * m4/xgetcwd.m4 (gl_XGETCWD):
75392         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75393         * m4/xreadlink.m4 (gl_XREADLINK):
75394         * m4/xstrtod.m4 (gl_XSTRTOD):
75395         * m4/yesno.m4 (gl_YESNO):
75396         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75397         to get the necessary .h files and whatnot.
75398
75399 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75400             Bruno Haible  <bruno@clisp.org>
75401
75402         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75403         /bin/sh understanding of '!' conditional negation.
75404
75405 2006-08-21  Jim Meyering  <jim@meyering.net>
75406
75407         * modules/openat (Depends-on): Really alphabetize.
75408
75409         * modules/acl (Depends-on): Add error and quote.
75410
75411         * check-module (find_included_lib_files): Add at-func.c to the
75412         ok-to-include-more-than-once white list.
75413
75414         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75415
75416 2006-08-21  Bruno Haible  <bruno@clisp.org>
75417
75418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75419         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75420         Reported by Martin Lambers <marlam@marlam.de>.
75421
75422 2006-08-21  Bruno Haible  <bruno@clisp.org>
75423
75424         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75425         specify an installation location, don't emit a noinst_LIBRARIES or
75426         noinst_LTLIBRARIES assignment.
75427
75428 2006-08-21  Bruno Haible  <bruno@clisp.org>
75429
75430         BeOS portability.
75431         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75432         BeOS has mbrtowc() but no <wctype.h>.
75433
75434 2006-08-21  Bruno Haible  <bruno@clisp.org>
75435
75436         BeOS portability.
75437         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75438         exist.
75439
75440 2006-08-21  Bruno Haible  <bruno@clisp.org>
75441
75442         BeOS portability.
75443         * lib/mbchar.h: Include <wctype.h> only if it exists.
75444
75445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         Remove files that are no longer needed by their respective modules.
75448         * m4/obstack.m4: Remove.
75449         * m4/strerror_r.m4: Remove.
75450         * m4/uint32_t.m4: Remove.
75451         * m4/uintptr_t.m4: Remove.
75452         * m4/ullong_max.m4: Remove.
75453         * m4/xstrtoimax.m4: Remove.
75454         * m4/xstrtoumax.m4: Remove.
75455
75456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75457         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75458         dependencies now capture this.
75459
75460         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75461         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75462         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75463         * m4/human.m4 (gl_HUMAN): Likewise.
75464         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75465         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75466
75467         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75468
75469         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75470         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75471         stdint.
75472         * m4/human.m4 (gl_HUMAN): Likewise.
75473         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75476         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75477         * m4/xstrtol (gl_XSTRTOL): Likewise.
75478
75479         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75480         AC_TYPE_LONG_LONG_INT.
75481         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75482         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75483         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75485
75486         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75487         on stdbool.
75488
75489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75490         (gl_PREREQ_XSTRTOUL): Remove.
75491
75492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75493
75494         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75495         mode.
75496
75497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         Add and change modules to make it easier for coreutils to use
75500         gnulib-tool.
75501         * modules/backupfile (Files): Remove m4/d-ino.m4.
75502         (Depends-on): Add d-ino.
75503         * modules/cycle-check (Depends-on): Add stdint.
75504         (lib_SOURCES): Add cycle-check.h.
75505         * modules/d-ino: New module.
75506         * modules/d-type: New module.
75507         * modules/error (Files): Remove m4/strerror_r.m4.
75508         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75509         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75510         m4/inttypes_h.m4, m4/uintmax_t.m4.
75511         (Depends-on): Add stdint.
75512         (lib_SOURCES): Add fsusage.h.
75513         * modules/getcwd (Files): Remove d-ino.m4.
75514         (Depends-on): Add d-ino.
75515         * modules/getndelim2 (Depends-on): Add stdint.
75516         * modules/glob (Files): Remove m4/d-type.m4.
75517         (Depends-on): Add d-type.
75518         * modules/host-os: New module.
75519         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75520         m4/inttypes_h.m4, m4/uintmax_t.m4.
75521         * Depends-on: Add stdint.
75522         (lib_SOURCES): Add human.h.
75523         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75524         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75525         m4/uintmax_t.m4, m4/ulonglong.m4.
75526         (Depends-on): Add stdint.
75527         (EXTRA_DIST): Add inttostr.h.
75528         * modules/lchmod: New module.
75529         * modules/link-follow: New module.
75530         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75531         (Depends-on): Add lchmod.
75532         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75533         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75534         (Depends-on): Add stdint.
75535         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75536         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75537         (Depends-on): Add stdint.
75538         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75539         * modules/perl: New module.
75540         * modules/regex (Depends-on): Add stdint.
75541         * modules/rmdir-errno: New module.
75542         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75543         m4/intmax_t.m4.
75544         (Depends-on): Add stdint.
75545         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75546         m4/uintmax_t.m4.
75547         (Depends-on): Add stdint.
75548         * modules/unlink-busy: New module.
75549         * modules/utimecmp (Depends-on): Add stdint.
75550         * modules/uptime: New module.
75551         * modules/winsz-ioctl: New module.
75552         * modules/winsz-termios: New module.
75553         * modules/xnanosleep (Depends-on): Add nanosleep.
75554         * modules/ullong_max: Remove.
75555         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75556         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75557         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75559         (Depends-on): Add inttypes.
75560         (lib_SOURCES): Add xstrtol.h.
75561         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75562         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75563         * MODULES.html.sh: Move 'assert' into the assert section.
75564         Move 'dummy' into the linking section.
75565         Remove ullong_max.
75566         Add section for compatibility checks for POSIX:2001 functions,
75567         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75568         winsz-ioctl, and winsz-termios into it.
75569         Add lchmod.
75570         Add top-level Misc section and put host-os, perl, and uptime
75571         into it.
75572
75573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75576         now assume the stdint module.  Do not include inttypes.h.
75577         * lib/fsusage.h: Likewise.
75578         * lib/getndelim2.c: Likewise.
75579         * lib/human.h: Likewise.
75580         * lib/inttostr.h: Likewise.
75581         * lib/obstack.c: Likewise.
75582         * lib/regex_internal.h: Likewise.
75583         * lib/tempname.c: Likewise.
75584         * lib/utimecmp.c: Likewise.
75585         * lib/xstrtol.h: Likewise.
75586
75587         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75588
75589         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75590         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75591         * lib/xtime.h: Likewise.
75592
75593 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * modules/openat (Files): Add lib/fchmodat.c.
75596         Fixes problem reported by Jay Youngman.
75597
75598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75601         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75602
75603 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75604             Bruno Haible  <bruno@clisp.org>
75605
75606         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75607         and is a script that invokes bison. Tighten the code. Add comments.
75608
75609 2006-08-18  Jim Meyering  <jim@meyering.net>
75610
75611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75612         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75613         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75614         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75615
75616 2006-08-18  Bruno Haible  <bruno@clisp.org>
75617
75618         * modules/bison-i18n: New file.
75619         * MODULES.html.sh (Internationalization functions): Add it.
75620
75621 2006-08-18  Bruno Haible  <bruno@clisp.org>
75622
75623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75624         sys/statvfs.h. When getmntinfo was found, check its declaration and
75625         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75626
75627 2006-08-18  Bruno Haible  <bruno@clisp.org>
75628
75629         * m4/bison-i18n.m4: New file, from bison.
75630
75631 2006-08-18  Bruno Haible  <bruno@clisp.org>
75632
75633         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75634         (ME_DUMMY): Treat "kernfs" as a dummy.
75635         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75636
75637 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         Update from coreutils.
75640
75641         2006-08-15  Jim Meyering  <jim@meyering.net>
75642
75643         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75644
75645         2006-01-17  Jim Meyering  <jim@meyering.net>
75646
75647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75648
75649         2006-01-11  Jim Meyering  <jim@meyering.net>
75650
75651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75652         Check for the lchmod function.
75653
75654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         Update from coreutils.
75657
75658         * lib/__fpending.h: Add copyright notice.
75659         * lib/fprintftime.h: Likewise.
75660         * lib/savedir.c: Use (C) in copyright notice.
75661         * lib/savedir.h: Likewise.
75662
75663         2006-08-15  Jim Meyering  <jim@meyering.net>
75664
75665         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75666         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75667         in support of the EXPECTED_ERRNO macro.
75668         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75669         definitions.  Instead, define the appropriate symbols and include
75670         "at-func.c".
75671         * lib/mkdirat.c (mkdirat): Likewise.
75672         * lib/fchmodat.c (fchmodat): Likewise.
75673         (ENOSYS): Remove definition.
75674         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75675         it.  Don't include "unistd--.h" -- it wasn't ever used.
75676
75677         2006-01-17  Jim Meyering  <jim@meyering.net>
75678
75679         Rewrite fts.c not to change the current working directory,
75680         by using openat, fstatat, fdopendir, etc..
75681
75682         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75683         (HAVE_OPENAT_SUPPORT): Define.
75684         [_LIBC] (fchdir): Don't undef or define; no longer used.
75685         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75686         Now, this `function' always succeeds, and consumes its file descriptor
75687         parameter -- so callers must not close such FDs.  Update callers.
75688         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75689         (diropen): Add parameter, SP.  Adjust all callers.
75690         Implement using diropen_fd, rather than open.
75691         (fts_open): Initialize new member, fts_cwd_fd.
75692         Remove fts_rft-setting code.
75693         (fts_close): Close fts_cwd_fd, if necessary.
75694         (__opendir2): Define in terms of opendir or opendirat,
75695         depending on whether the FST_NOCHDIR flag is set.
75696         (fts_build): Since fts_safe_changedir consumes its FD, and since
75697         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75698         and close the dup'd file descriptor upon failure.
75699         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75700         (fts_safe_changedir): Tweak semantics to reflect that this function
75701         now calls cwd_advance_fd and hence consumes its FD argument.
75702         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75703         [struct FTS] (fts_rft): Remove now-unused member.
75704         [struct FTS] (fts_cycle.state): Improve comment.
75705
75706         * lib/openat.c (openat_needs_fchdir): New function.
75707         * lib/openat.h (openat_needs_fchdir): Declare it.
75708
75709 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75712         Problem and fix reported by Pádraig Brady in
75713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75714
75715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75718
75719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75720
75721         * lib/memcoll.c (memcoll): Optimize for the common case where the
75722         arguments are bytewise equal.
75723
75724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * doc/regexprops-generic.texi: Add a copyright notice.
75727
75728 2006-08-15  Bruno Haible  <bruno@clisp.org>
75729
75730         * modules/tmpdir (License): Change to LGPL.
75731
75732 2006-08-15  Bruno Haible  <bruno@clisp.org>
75733
75734         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75735         module.
75736
75737 2006-08-14  Simon Josefsson  <jas@extundo.com>
75738
75739         * config/srclist.txt: Add gnupload.
75740
75741 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75742
75743         Change copyright notice from LGPL 2 to GPL 2, since that's the
75744         standard form used in the gnulib repository.
75745         * tests/test-lock.c: Likewise.
75746         * tests/test-stdint.c: Likewise.
75747         * tests/test-tls.c: Likewise.
75748
75749         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75750         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75751         Add copyright notice.
75752
75753         * check-module: Add copyright notice.  Output a copyright
75754         notice if "--version" is specified.
75755         * modules/COPYING: New file.
75756         * tests/test-getaddrinfo.c: Add copyright notice.
75757         * tests/test-verify.c: Likewise.
75758
75759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         Change copyright notice from LGPL 2 to GPL 2, since that's the
75762         standard form used in the gnulib repository.
75763         * lib/lock.c: LGPL -> GPL.
75764         * lib/lock.h: Likewise.
75765         * lib/strnlen1.c: Likewise.
75766         * lib/strnlen1.h: Likewise.
75767         * lib/tls.c: Likewise.
75768         * lib/tls.h: Likewise.
75769         * lib/tmpdir.c: Likewise.
75770
75771         * lib/TODO: Remove; this belongs only in coreutils.
75772
75773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75774
75775         Add copyright notices to long-enough files that lack them, since
75776         otherwise the files aren't clearly free.  Use the same notice that
75777         getdate.texi already uses.
75778         * doc/alloca-opt.texi: Add copyright notice.
75779         * doc/alloca.texi: Likewise.
75780         * doc/ctime.texi: Likewise.
75781         * doc/functions.texi: Likewise.
75782         * doc/gcd.texi: Likewise.
75783         * doc/gnulib-tool.texi: Likewise.
75784         * doc/inet_ntoa.texi: Likewise.
75785         * doc/visibility.texi: Likewise.
75786
75787         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75788         * doc/quote.texi: Add copyright notice.
75789
75790         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75791         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75792         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75793         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75794         is now obsolete, and give a pointer to the Sun list.
75795         Add copyright notice.
75796
75797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         * config/srclistvars.sh: Add copyright notice.
75800
75801 2006-08-14  Eric Blake  <ebb9@byu.net>
75802
75803         Import the following change from libc:
75804
75805         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75806
75807         Upstream bug 2997.
75808         * lib/misc/error.c: Add space between program name and message if file
75809         name is missing.
75810
75811 2006-08-12  Karl Berry  <karl@gnu.org>
75812
75813         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75814         remove, these originate in gnulib now.
75815
75816 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75817
75818         * doc/Makefile (standards.info standards.html standards.dvi):
75819         Also depend on make-stds.texi.
75820
75821 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75824         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75825
75826         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75827         in wchar_t.  Problem reported by Eric Blake.
75828
75829         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75830         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75831         Also, help the compiler to keep LEN in a register.
75832
75833 2006-08-11  Eric Blake  <ebb9@byu.net>
75834
75835         * users.txt: Sort.  Add tar.
75836
75837 2006-08-11  Bruno Haible  <bruno@clisp.org>
75838
75839         * users.txt: New file.
75840
75841 2006-08-11  Bruno Haible  <bruno@clisp.org>
75842
75843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75844         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75845
75846 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * modules/snprintf (Depends-on): Remove minmax.
75849         (Maintainer): Add self and Bruno.
75850
75851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75854         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75855         (EOVERFLOW): Define if the system does not.
75856         Do not include "minmax.h"; it wasn't used.
75857         (snprintf): Don't assume size_t promotes to an unsigned type.
75858         Fix bug when generated string was too long for the buffer: the
75859         buffer's contents are supposed to be the initial prefix of the
75860         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75861         exceeds INT_MAX; do the check ourselves.
75862
75863         Import the following changes from libc:
75864
75865         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75866
75867         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75868         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75869         set wc to the byte which couldn't be converted.
75870         (re_string_reconstruct): Don't clear valid_raw_len before calling
75871         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75872         tip_context using re_string_context_at.
75873
75874         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75875
75876         * lib/posix/regex.h: g++ still cannot handled [restrict].
75877
75878         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75879
75880         * lib/posix/regex.h: Remove special handling for VMS.
75881
75882 2006-08-10  Jim Meyering  <jim@meyering.net>
75883
75884         * modules/same-inode: New module.
75885         * modules/dev-ino: New module.
75886         * modules/cycle-check: Depend on these modules, rather than simply
75887         including their .h files.
75888         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75889         required via m4/cycle-check.m4.
75890         * modules/same: Depend on new same-inode module, rather than
75891         including same-inode.h.
75892         * modules/chdir-safer: New file.
75893
75894         * modules/chown (Depends-on): Add stat-macros.
75895
75896 2006-08-10  Jim Meyering  <jim@meyering.net>
75897
75898         * m4/cycle-check.m4: New file.
75899         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75900         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75901
75902 2006-08-10  Eric Blake  <ebb9@byu.net>
75903
75904         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75905         in from original proposal.
75906
75907 2006-08-10  Eric Blake  <ebb9@byu.net>
75908         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75909
75910         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75911         namespace.
75912
75913 2006-08-10  Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75916         as well.
75917
75918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         Sync from coreutils.
75921
75922         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75923
75924         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75925         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75926
75927 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * modules/restrict: Remove; no longer needed now that we assume
75930         Autoconf 2.59 or later.
75931         * MODULES.html.sh: Remove 'restrict'.
75932         * modules/argp (Depends-on): Remove 'restrict'.
75933         * modules/base64 (Depends-on): Likewise.
75934         * modules/gc (Depends-on): Likewise.
75935         * modules/getaddrinfo (Depends-on): Likewise.
75936         * modules/glob (Depends-on): Likewise.
75937         * modules/inet_ntop (Depends-on): Likewise.
75938         * modules/inet_pton (Depends-on): Likewise.
75939         * modules/memxor (Depends-on): Likewise.
75940         * modules/regex (Depends-on): Likewise.
75941         * modules/strtok_r (Depends-on): Likewise.
75942         * modules/time_r (Depends-on): Likewise.
75943
75944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75947         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75949         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75951         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75952         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75953         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75954
75955         Merge from coreutils.
75956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75957         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75959         * m4/time_r.m4 (gl_TIME_R): Likewise.
75960
75961 2006-08-09  Karl Berry  <karl@gnu.org>
75962
75963         * config/srclist.txt: no more gettext-tools, per Bruno.
75964
75965 2006-08-08  Eric Blake  <ebb9@byu.net>
75966
75967         * modules/verror: New module.
75968         * MODULES.html.sh: Document it.
75969
75970 2006-08-08  Eric Blake  <ebb9@byu.net>
75971
75972         * lib/verror.h, lib/verror.c: New files.
75973
75974 2006-08-08  Eric Blake  <ebb9@byu.net>
75975
75976         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75977         verror_at_line output complies with GNU Coding Standards even when
75978         file is NULL.
75979
75980 2006-08-07  Bruno Haible  <bruno@clisp.org>
75981
75982         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75983         versions of AIX.
75984         Reported by Ralf Wildenhues.
75985
75986 2006-08-07  Bruno Haible  <bruno@clisp.org>
75987
75988         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75989         in an AC_DEFUN. Needed so that the autoconf snippets can use
75990         AC_REQUIRE.
75991
75992 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75993
75994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75995         Initialize pkgdata_DATA.
75996         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75997         overriding it.
75998
75999 2006-08-06  Eric Blake  <ebb9@byu.net>
76000
76001         * lib/error.h: Fold in some upstream changes from glibc.
76002         * lib/error.c: Likewise.
76003
76004 2006-08-04  Bruno Haible  <bruno@clisp.org>
76005
76006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76007         Make the mostlyclean-local rule depend on mostlyclean-generic.
76008         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76009
76010 2006-07-31  Bruno Haible  <bruno@clisp.org>
76011
76012         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76013         <stdlib.h>, <string.h>.
76014
76015 2006-07-30  Bruno Haible  <bruno@clisp.org>
76016
76017         * modules/readlink (License): Change to LGPL.
76018
76019 2006-07-30  Bruno Haible  <bruno@clisp.org>
76020
76021         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76022         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76023         set PKGDATADIR to point to it.
76024
76025 2006-07-30  Bruno Haible  <bruno@clisp.org>
76026
76027         * modules/csharpexec (configure.ac): Comment out macro invocation.
76028         * modules/javaexec (configure.ac): Likewise.
76029         * modules/javacomp-script (configure.ac): Likewise.
76030
76031         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76032
76033 2006-07-30  Bruno Haible  <bruno@clisp.org>
76034
76035         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76036         linked-list.
76037
76038 2006-07-30  Bruno Haible  <bruno@clisp.org>
76039
76040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76041
76042 2006-07-30  Bruno Haible  <bruno@clisp.org>
76043
76044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76045         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76046         get removed.
76047
76048 2006-07-29  Bruno Haible  <bruno@clisp.org>
76049
76050         Make it possible for gnulib-tool to work with locally modified or
76051         augmented gnulib repositories.
76052         * gnulib-tool (func_usage): Document --local-dir option.
76053         (local_gnulib_dir): New variable.
76054         Handle --local-dir option.
76055         (func_lookup_file): New function.
76056         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76057         (func_get_description, func_get_filelist, func_get_description,
76058         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76059         func_get_automake_snippet, func_get_include_directive,
76060         func_get_license, func_get_maintainer): Use func_lookup_file.
76061         (func_import, func_create_testdir): Use func_lookup_file.
76062
76063 2006-07-29  Bruno Haible  <bruno@clisp.org>
76064
76065         * modules/setenv (Depends-on): Add unistd.
76066
76067 2006-07-29  Bruno Haible  <bruno@clisp.org>
76068
76069         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76070
76071 2006-07-29  Bruno Haible  <bruno@clisp.org>
76072
76073         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76074
76075 2006-07-29  Bruno Haible  <bruno@clisp.org>
76076
76077         * gnulib-tool (import, update): If there is no Makefile.am, look at
76078         aclocal.m4, instead of bailing out.
76079
76080 2006-07-29  Bruno Haible  <bruno@clisp.org>
76081
76082         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76083         Categorize the options by when they are useful.
76084
76085 2006-07-29  Bruno Haible  <bruno@clisp.org>
76086
76087         * gnulib-tool (func_usage): Document option --no-libtool.
76088         Handle option --no-libtool.
76089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76090         for changed semantics of $libtool variable.
76091         (func_import): Likewise. If libtool is not used, show this through
76092         an option --no-libtool.
76093         (func_create_testdir): Update.
76094
76095 2006-07-29  Bruno Haible  <bruno@clisp.org>
76096
76097         * gnulib-tool (func_import): Extend error message about missing
76098         --doc-base.
76099
76100 2006-07-29  Bruno Haible  <bruno@clisp.org>
76101
76102         * gnulib-tool (func_import): Don't create the $docbase directory if
76103         there is no file to store there.
76104
76105 2006-07-29  Bruno Haible  <bruno@clisp.org>
76106
76107         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76108         relevant, look for configure.ac there, not in the current directory.
76109         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76110
76111 2006-07-29  Bruno Haible  <bruno@clisp.org>
76112
76113         * gnulib-tool (SORT): New variable.
76114         (func_usage): Undocument --assume-autoconf option.
76115         Remove --assume-autoconf option handling.
76116         (autoconf_minversion): Determine from the contents of configure.ac.
76117         (func_import): Remove autoconf_minversion handling.
76118         Suggested by Eric Blake.
76119
76120 2006-07-29  Bruno Haible  <bruno@clisp.org>
76121
76122         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76123
76124 2006-07-29  Bruno Haible  <bruno@clisp.org>
76125
76126         * config/srclist.txt (*setenv.[ch]): Remove rules.
76127
76128 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76129
76130         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76131
76132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76133
76134         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76135         arpa/inet.h.
76136
76137 2006-07-28  Simon Josefsson  <jas@extundo.com>
76138
76139         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76140         * modules/inet_pton (Depends-on): Likewise.
76141
76142 2006-07-28  Simon Josefsson  <jas@extundo.com>
76143
76144         * m4/netinet_in_h.m4: New file.
76145
76146 2006-07-28  Simon Josefsson  <jas@extundo.com>
76147
76148         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76149         #include's.
76150
76151 2006-07-28  Simon Josefsson  <jas@extundo.com>
76152
76153         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76154         #include's.
76155
76156 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76159         setgid on directories only if they set these bits.
76160         * lib/modechange.h: Remove obsolete comment about masks.
76161
76162 2006-07-28  Eric Blake  <ebb9@byu.net>
76163
76164         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76165         macro expansion.
76166
76167 2006-07-28  Bruno Haible  <bruno@clisp.org>
76168
76169         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76170
76171 2006-07-28  Bruno Haible  <bruno@clisp.org>
76172
76173         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76174
76175 2006-07-28  Bruno Haible  <bruno@clisp.org>
76176
76177         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76179         Define fallbacks.
76180         Avoids link error on FreeBSD 4.x.
76181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76182
76183         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76184         encoding.
76185         * lib/mbswidth.c (iswcntrl): Likewise.
76186
76187 2006-07-27  Bruno Haible  <bruno@clisp.org>
76188
76189         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76190         test.
76191
76192 2006-07-27  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76195         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76196         defined.
76197
76198 2006-07-26  Eric Blake  <ebb9@byu.net>
76199
76200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76201
76202 2006-07-26  Eric Blake  <ebb9@byu.net>
76203
76204         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76205         like mingw that lack mkstemp.
76206         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76207         avoid compilation warning on mingw.
76208
76209 2006-07-26  Bruno Haible  <bruno@clisp.org>
76210
76211         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76212         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76213         INT_FAST*_MIN, INTPTR_MIN.
76214
76215 2006-07-25  Bruno Haible  <bruno@clisp.org>
76216
76217         * modules/version-etc (Depends-on): Add stdarg.
76218
76219 2006-07-25  Bruno Haible  <bruno@clisp.org>
76220
76221         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76222         complex commands.
76223
76224 2006-07-25  Bruno Haible  <bruno@clisp.org>
76225
76226         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76227         defined in <stdarg.h> or config.h.
76228
76229 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76232         (gl_STDIO_SAFER): Remove.
76233
76234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * MODULES.html.sh (File stream based Input/Output):
76237         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76238         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76239         * modules/fopen-safer, modules/tmpfile-safer: New files.
76240         * modules/stdio-safer: Remove.
76241
76242 2006-07-24  Bruno Haible  <bruno@clisp.org>
76243
76244         * modules/tmpdir: New file.
76245         * MODULES.html.sh (File system functions): Add it.
76246
76247 2006-07-24  Bruno Haible  <bruno@clisp.org>
76248
76249         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76250         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76251
76252 2006-07-24  Bruno Haible  <bruno@clisp.org>
76253
76254         * modules/clean-temp: New file.
76255
76256 2006-07-24  Bruno Haible  <bruno@clisp.org>
76257
76258         * m4/tmpdir.m4: New file, from GNU gettext.
76259
76260 2006-07-24  Bruno Haible  <bruno@clisp.org>
76261
76262         * lib/tmpdir.h: New file, from GNU gettext.
76263         * lib/tmpdir.c: New file, from GNU gettext.
76264
76265 2006-07-24  Bruno Haible  <bruno@clisp.org>
76266
76267         * lib/clean-temp.h: New file, from GNU gettext.
76268         * lib/clean-temp.c: New file, from GNU gettext.
76269
76270 2006-07-23  Eric Blake  <ebb9@byu.net>
76271
76272         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76273         (Depends-on): Add binary-io.
76274
76275 2006-07-23  Eric Blake  <ebb9@byu.net>
76276
76277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76278
76279 2006-07-23  Eric Blake  <ebb9@byu.net>
76280
76281         * lib/tmpfile-safer.c: New file.
76282         * lib/stdio-safer.h (fopen_safer): Add prototype.
76283         * lib/stdio--.h (tmpfile): Make safer.
76284
76285 2006-07-23  Bruno Haible  <bruno@clisp.org>
76286
76287         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76288         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76289         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76290         gl_linked_remove_at): Use it.
76291
76292 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76293         and Simon Josefsson <jas@extundo.com>
76294
76295         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76296
76297         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76298
76299 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * modules/close-stream: New file.
76302         * modules/closeout (Description): Make it clear that it exits
76303         with a diagnostic on error.
76304         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76305         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76306
76307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         * m4/close-stream.m4: New file.
76310
76311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * lib/close-stream.c, lib/close-stream.h: New files.
76314
76315 2006-07-22  Bruno Haible  <bruno@clisp.org>
76316
76317         Merge from GNU gettext 0.15.
76318
76319         2006-05-01  Bruno Haible  <bruno@clisp.org>
76320
76321                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76322
76323         2006-07-22  Bruno Haible  <bruno@clisp.org>
76324
76325                 * modules/javaversion: New file.
76326                 * MODULES.html.sh (Java): Add javaversion.
76327
76328         2006-03-12  Bruno Haible  <bruno@clisp.org>
76329
76330                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76331
76332         2005-12-04  Bruno Haible  <bruno@clisp.org>
76333
76334                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76335                 (untested).
76336
76337         2006-06-21  Bruno Haible  <bruno@clisp.org>
76338
76339                 Avoid warnings from recent versions of mcs.
76340                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76341                 -o, -L, -r any more. Use options documented since mcs-1.0
76342                 instead. Similarly for -g.
76343
76344         2005-12-04  Bruno Haible  <bruno@clisp.org>
76345
76346                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76347                 .resources, not .resource.
76348
76349         2005-07-09  Bruno Haible  <bruno@clisp.org>
76350
76351                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76352                 add a .dll suffix.
76353                 Reported by Mark Junker <mjscod@gmx.de>.
76354
76355         2006-07-22  Bruno Haible  <bruno@clisp.org>
76356
76357                 * modules/gettext: Upgrade to gettext-0.15.
76358                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76359                 m4/visibility.m4.
76360                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76361
76362 2006-07-22  Bruno Haible  <bruno@clisp.org>
76363
76364         Merge from GNU gettext 0.15.
76365
76366         2006-03-25  Bruno Haible  <bruno@clisp.org>
76367
76368                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76369
76370         2006-07-21  Bruno Haible  <bruno@clisp.org>
76371
76372                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76373                 "1.1".
76374
76375         2006-05-09  Bruno Haible  <bruno@clisp.org>
76376
76377                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76378                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76379                 for the conftestver execution.
76380
76381         2006-05-01  Bruno Haible  <bruno@clisp.org>
76382
76383                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76384                 optional target-version argument. Verify that the compiler
76385                 groks source of the specified source-version, or add -source
76386                 option as necessary. Verify that the compiler produces
76387                 bytecode in the specified target-version, or add -target and
76388                 -source options as necessary. Make the result of the test
76389                 available as variable CONF_JAVAC. Also log error output in
76390                 config.log.
76391
76392         2006-03-11  Bruno Haible  <bruno@clisp.org>
76393
76394                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76395
76396         2006-05-09  Bruno Haible  <bruno@clisp.org>
76397
76398                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76399                 CLASSPATH_SEPARATOR to a semicolon.
76400
76401         2006-03-12  Bruno Haible  <bruno@clisp.org>
76402
76403                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76404                 available as variable CONF_JAVA, for subsequent autoconf
76405                 tests. Also log error output in config.log.
76406
76407         2006-07-19  Bruno Haible  <bruno@clisp.org>
76408
76409                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76410                 that getline works on glibc2 systems. Needed to avoid trouble
76411                 in relocatable.c.
76412                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76413
76414         2005-12-04  Bruno Haible  <bruno@clisp.org>
76415
76416                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76417                 launcher (untested).
76418
76419         2005-12-04  Bruno Haible  <bruno@clisp.org>
76420
76421                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76422
76423         2006-07-22  Bruno Haible  <bruno@clisp.org>
76424
76425                 * gettext.m4: Update from GNU gettext-0.15.
76426                 * nls.m4: Likewise.
76427                 * po.m4: Likewise.
76428                 * inttypes-pri.m4: Likewise.
76429                 * inttypes-h.m4: Renamed from inttypes.m4.
76430                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76431
76432 2006-07-22  Bruno Haible  <bruno@clisp.org>
76433
76434         Merge from GNU gettext 0.15.
76435
76436         2005-07-05  Bruno Haible  <bruno@clisp.org>
76437
76438                 * printf-args.c (printf_fetchargs): Work around broken
76439                 definition of wint_t on mingw.
76440
76441         2005-02-12  Bruno Haible  <bruno@clisp.org>
76442
76443                 * xallocsa.h: Add extern "C" for C++.
76444
76445         2006-05-17  Bruno Haible  <bruno@clisp.org>
76446
76447                 Cygwin portability.
76448                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76449
76450         2006-04-30  Bruno Haible  <bruno@clisp.org>
76451
76452                 * progreloc.c: Include <mach-o/dyld.h> if available.
76453                 (find_executable): Use _NSGetExecutablePath when possible.
76454
76455         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76456
76457                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76458                 function.
76459
76460         2005-12-29  Bruno Haible  <bruno@clisp.org>
76461
76462                 * progreloc.c (set_program_name_and_installdir): Fix
76463                 compilation error.
76464
76465         2005-12-04  Bruno Haible  <bruno@clisp.org>
76466
76467                 Cygwin portability.
76468                 * progreloc.c: Include <windows.h> also on Cygwin.
76469                 (find_executable): Add support for Cygwin.
76470                 (set_program_name_and_installdir): Handle also platforms with
76471                 nonempty EXEEXT.
76472
76473         2006-07-11  Bruno Haible  <bruno@clisp.org>
76474
76475                 * javacomp.c: Fix a comment.
76476                 Reported by Jim Meyering.
76477
76478         2006-04-30  Bruno Haible  <bruno@clisp.org>
76479
76480                 * javacomp.h (compile_java_class): Add source_version,
76481                 target_version arguments.
76482                 * javacomp.c: Rewritten to choose only a compiler that
76483                 respects the specified source_version and target_version.
76484
76485         2006-06-27  Bruno Haible  <bruno@clisp.org>
76486
76487                 Assume correct S_ISDIR macro.
76488                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76489
76490         2006-07-22  Bruno Haible  <bruno@clisp.org>
76491
76492                 * javaversion.h: New file, from GNU gettext.
76493                 * javaversion.c: New file, from GNU gettext.
76494                 * javaversion.java: New file, from GNU gettext.
76495                 * javaversion.class: New file, from GNU gettext.
76496
76497         2006-05-17  Bruno Haible  <bruno@clisp.org>
76498
76499                 Cygwin portability.
76500                 * javaexec.c (execute_java_class): Test for jview program
76501                 also on Cygwin.
76502
76503         2006-04-09  Bruno Haible  <bruno@clisp.org>
76504
76505                 * fatal-signal.c: Don't include string.h.
76506                 (at_fatal_signal): Use a copying loop instead of memcpy.
76507
76508         2005-12-04  Bruno Haible  <bruno@clisp.org>
76509
76510                 * csharpexec.c: Add support for 'clix' launcher (untested).
76511                 (execute_csharp_using_sscli): New function.
76512                 (execute_csharp_program): Call it.
76513
76514         2006-06-21  Bruno Haible  <bruno@clisp.org>
76515
76516                 Avoid warnings from recent versions of mcs.
76517                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76518                 -o, -L, -r any more. Use options documented since mcs-1.0
76519                 instead. Similarly for -g.
76520
76521         2005-07-09  Bruno Haible  <bruno@clisp.org>
76522
76523                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76524                 add a .dll suffix.
76525                 Reported by Mark Junker <mjscod@gmx.de>.
76526
76527         2006-06-17  Bruno Haible  <bruno@clisp.org>
76528
76529                 * config.charset: Update for NetBSD 3.0.
76530
76531         2006-05-17  Bruno Haible  <bruno@clisp.org>
76532
76533                 Cygwin portability.
76534                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76535
76536         2006-05-16  Bruno Haible  <bruno@clisp.org>
76537
76538                 * localcharset.c [CYGWIN]: Include <windows.h>.
76539                 (get_charset_aliases): For Cygwin, return the same CPxxx
76540                 aliases list as under WIN32.
76541                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76542                 the environment variables. Fall back to GetACP().
76543
76544         2006-04-05  Bruno Haible  <bruno@clisp.org>
76545
76546                 * config.charset: Update Juan Manuel Guerrero's address.
76547
76548         2005-02-12  Bruno Haible  <bruno@clisp.org>
76549
76550                 * allocsa.h: Add extern "C" for C++.
76551
76552         2005-02-10  Bruno Haible  <bruno@clisp.org>
76553
76554                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76555                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76556
76557         2006-07-22  Bruno Haible  <bruno@clisp.org>
76558
76559                 * gettext.h: Update to GNU gettext-0.15.
76560
76561 2006-07-22  Bruno Haible  <bruno@clisp.org>
76562
76563         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76564         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76565         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76566
76567 2006-07-21  Eric Blake  <ebb9@byu.net>
76568
76569         * modules/stdlib-safer: New file.
76570         * MODULES.html.sh (File stream based Input/Output): Add
76571         stdlib-safer.
76572
76573 2006-07-21  Eric Blake  <ebb9@byu.net>
76574
76575         * lib/stdlib-safer.h: New file from coreutils, required by
76576         stdlib--.h.
76577
76578 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76581
76582 2006-07-20  Bruno Haible  <bruno@clisp.org>
76583
76584         * gnulib-tool: Recognize new option --assume-autoconf.
76585         (autoconf_minversion): New variable.
76586         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76587
76588 2006-07-20  Bruno Haible  <bruno@clisp.org>
76589
76590         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76591
76592 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76593
76594         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76595         Reindent and repaginate.
76596
76597 2006-07-19  Derek Price  <derek@ximbiot.com>
76598
76599         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76600         Correct grammar.
76601
76602 2006-07-17  Bruno Haible  <bruno@clisp.org>
76603
76604         * modules/list: New file.
76605         * modules/array-list: New file.
76606         * modules/carray-list, modules/carray-list-tests: New files.
76607         * modules/linked-list, modules/linked-list-tests: New files.
76608         * modules/avltree-list, modules/avltree-list-tests: New files.
76609         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76610         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76611         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76612         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76613         * modules/oset: New file.
76614         * modules/array-oset: New file.
76615         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76616         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76617         * tests/test-carray_list.c: New file.
76618         * tests/test-linked_list.c: New file.
76619         * tests/test-avltree_list.c: New file.
76620         * tests/test-rbtree_list.c: New file.
76621         * tests/test-linkedhash_list.c: New file.
76622         * tests/test-avltreehash_list.c: New file.
76623         * tests/test-rbtreehash_list.c: New file.
76624         * tests/test-avltree_oset.c: New file.
76625         * tests/test-rbtree_oset.c: New file.
76626         * MODULES.html.sh (Container data structures): New section.
76627
76628 2006-07-17  Bruno Haible  <bruno@clisp.org>
76629
76630         * m4/gl_list.m4: New file.
76631
76632 2006-07-17  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/gl_list.h: New file.
76635         * lib/gl_list.c: New file.
76636         * lib/gl_array_list.h: New file.
76637         * lib/gl_array_list.c: New file.
76638         * lib/gl_carray_list.h: New file.
76639         * lib/gl_carray_list.c: New file.
76640         * lib/gl_linked_list.h: New file.
76641         * lib/gl_linked_list.c: New file.
76642         * lib/gl_anylinked_list1.h: New file.
76643         * lib/gl_anylinked_list2.h: New file.
76644         * lib/gl_avltree_list.h: New file.
76645         * lib/gl_avltree_list.c: New file.
76646         * lib/gl_anyavltree_list1.h: New file.
76647         * lib/gl_anyavltree_list2.h: New file.
76648         * lib/gl_rbtree_list.h: New file.
76649         * lib/gl_rbtree_list.c: New file.
76650         * lib/gl_anyrbtree_list1.h: New file.
76651         * lib/gl_anyrbtree_list2.h: New file.
76652         * lib/gl_anytree_list1.h: New file.
76653         * lib/gl_anytree_list2.h: New file.
76654         * lib/gl_linkedhash_list.h: New file.
76655         * lib/gl_linkedhash_list.c: New file.
76656         * lib/gl_anyhash_list1.h: New file.
76657         * lib/gl_anyhash_list2.h: New file.
76658         * lib/gl_avltreehash_list.h: New file.
76659         * lib/gl_avltreehash_list.c: New file.
76660         * lib/gl_rbtreehash_list.h: New file.
76661         * lib/gl_rbtreehash_list.c: New file.
76662         * lib/gl_anytreehash_list1.h: New file.
76663         * lib/gl_anytreehash_list2.h: New file.
76664
76665         * lib/gl_oset.h: New file.
76666         * lib/gl_oset.c: New file.
76667         * lib/gl_array_oset.h: New file.
76668         * lib/gl_array_oset.c: New file.
76669         * lib/gl_avltree_oset.h: New file.
76670         * lib/gl_avltree_oset.c: New file.
76671         * lib/gl_rbtree_oset.h: New file.
76672         * lib/gl_rbtree_oset.c: New file.
76673         * lib/gl_anytree_oset.h: New file.
76674
76675 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         * m4/mkancesdirs.m4: New file.
76678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76679         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76680         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76681         it.
76682
76683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76686         * lib/mkancesdirs.h: New files.
76687         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76688         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76689         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76690         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76691         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76692         callers changed.  Revamp internals significantly, by not
76693         attempting to create directories that are temporarily more
76694         permissive than the final results.  Do not attempt to use
76695         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76696         This removes some race conditions, fixes some bugs, and simplifies
76697         things.  Use new dirchownmod function to do owner and mode changes.
76698         * lib/mkdir-p.h: Likewise.
76699         * lib/modechange.c (octal_to_mode): New function.
76700         (struct mode_change): New member mentioned.
76701         (make_node_op_equals): New arg mentioned.  All callers changed.
76702         (mode_compile): Keep track of which mode bits the user has explicitly
76703         mentioned.
76704         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76705         New arg PMODE_BITS, to keep track of which mode bits the user
76706         mentioned; it treats S_ISUID and S_ISGID speciall.
76707         All callers changed.
76708         * lib/modechange.h: Likewise.
76709
76710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         * MODULES.html.sh: Add mkancestors.
76713         * modules/mkancesdirs: New module.
76714         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76715         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76716         The chdir-safer and afs files are now orphans; I'll remove them
76717         unless someone speaks up.
76718         Add lib/dirchownmod.c, lib/dirchownmod.h.
76719         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76720         Add lchown, mkancesdirs.
76721         (Maintainer): Add self.
76722
76723 2006-07-15  Karl Berry  <karl@gnu.org>
76724
76725         * gnulib-tool: help message wording/arrangement.
76726
76727 2006-07-14  Simon Josefsson  <jas@extundo.com>
76728
76729         * doc/gnulib.texi (Libtool and Windows): New section.
76730
76731 2006-07-12  Simon Josefsson  <jas@extundo.com>
76732
76733         * modules/gendocs (License): Fix license, approved by Karl.
76734
76735 2006-07-12  Eric Blake  <ebb9@byu.net>
76736
76737         * MODULES.html.sh: Add gendocs.
76738
76739 2006-07-11  Eric Blake  <ebb9@byu.net>
76740
76741         * modules/fdl: New module, to install doc/fdl.texi.
76742         * MODULES.html.sh: Add new section for documentation modules.
76743         * gnulib-tool: Avoid space-tab.
76744         (--doc-base): New option, to manage files from doc.
76745
76746 2006-07-11  Eric Blake  <ebb9@byu.net>
76747
76748         * m4/absolute-header.m4: Fix comments to match recent change.
76749
76750 2006-07-11  Eric Blake  <ebb9@byu.net>
76751
76752         * gnulib-tool: List --doc-base before --tests-base.
76753
76754 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76755
76756         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76757
76758 2006-07-11  Bruno Haible  <bruno@clisp.org>
76759
76760         * README: Mention where to put documentation.
76761
76762 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76763
76764         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76765
76766 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76769         to stdint.m4.
76770
76771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76774         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76775         "no/such/file/stdint.h" when there is no such file, so that
76776         the resulting C code can be parsed by dodgy compilers.
76777         Problems reported by Bob Proulx.
76778
76779 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76780
76781         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76782         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76783         macros into the GNU _D_EXACT_NAMLEN.
76784         * lib/savedir.c:  Likewise.
76785         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76786
76787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76788         and Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76791         * m4/savedir.m4:
76792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76793         macros into the GNU _D_EXACT_NAMLEN.
76794
76795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76798         around the absolute name, to work around a problem with the HP-UX
76799         11.23 native C compiler, reported by Bob Proulx.
76800
76801 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * doc/maintain.texi, make-stds.texi: Sync from
76804         <http://savannah.gnu.org/projects/gnustandards>.
76805
76806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76809
76810 2006-07-09  Jim Meyering  <jim@meyering.net>
76811
76812         * m4/glob.m4: Remove a doubled word in a comment.
76813
76814 2006-07-09  Jim Meyering  <jim@meyering.net>
76815
76816         * lib/argp-pv.c: Remove a doubled word in a comment.
76817         * lib/check-version.c (check_version): Likewise.
76818         * lib/javacomp.c (compile_java_class): Likewise.
76819
76820 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76823         for the benefit of people using Autoconf 2.60.  If you want to
76824         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76825         (or m4/onceonly.m4, if pre-2.57) manually.
76826
76827 2006-07-08  Jim Meyering  <jim@meyering.net>
76828
76829         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76830         comment.
76831         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76832         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76833         comment.
76834
76835 2006-07-08  Jim Meyering  <jim@meyering.net>
76836
76837         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76838
76839 2006-07-07  Simon Josefsson  <jas@extundo.com>
76840
76841         * tests/test-crc.c: Change expected crc value, the test vector
76842         were probably computed using the old broken crc.c?
76843
76844 2006-07-06  Simon Josefsson  <jas@extundo.com>
76845
76846         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76847         now the canonical place for the M4 file).
76848
76849         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76850         from the sys_socket dependency now.
76851
76852         * modules/inet_pton (Files): Ditto.
76853
76854         * modules/inet_ntop (Files): Ditto.
76855
76856 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76857
76858         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76859         not gl_PREREQ_GETUSERSHELL.
76860
76861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76862
76863         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76864         with only one argument, for Autoconf 2.60.
76865         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76866         expand to nothing, so add a shell command to avoid syntax error.
76867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76868
76869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76870
76871         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76872
76873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76876         no longer needed.  Check for isblank decl.
76877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76878         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76879         of existence.
76880
76881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * lib/getloadavg.c: Use __VMS, not VMS.
76884         * lib/getopt.c: Likewise.
76885         * lib/getpagesize.h: Likewise.
76886         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76887         and probably does not work.
76888
76889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * lib/.cppi-disable: Add wcwidth.
76892         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76893         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76894         (ISGRAPH): Remove.  All uses changed to isgraph.
76895         (FOLD) [!defined _LIBC]: Remove special case.
76896         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76897         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76898         HAVE_ISBLANK.
76899         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76900         case.
76901
76902 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76903
76904         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76905         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76906         brackets.  Other minor changes to suppress some compiler
76907         warnings.
76908
76909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76910         and Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76913         of invoking obsolescent AC_HEADER_DIRENT macro.
76914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76915         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76918         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76920         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76921         * m4/readdir.m4: Remove; no longer needed.
76922
76923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76924         and Paul Eggert  <eggert@cs.ucla.edu>
76925
76926         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76927         Don't worry about this obsolete case any more.
76928         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76929         directories.
76930         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76931         worry about this obsolete case any more.
76932         * lib/fts.c: Likewise.
76933         * lib/getcwd.c: Likewise.
76934         * lib/glob.h: Likewise.
76935         * lib/savedir.c: Likewise.
76936
76937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76940         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76942         needed.
76943         All uses removed.
76944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76945         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76947         needed.
76948         * m4/getdate.m4 (gl_GETDATE): Likewise.
76949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76955         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76956         needed.
76957
76958 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/memcasecmp.c: Include <limits.h>.
76961         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76962         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76963         Don't assume isdigit succeeds only on '0' through '9'.
76964
76965 2006-07-05  Eric Blake  <ebb9@byu.net>
76966
76967         * modules/getaddrinfo (Depends-on): Add snprintf.
76968
76969 2006-07-05  Eric Blake  <ebb9@byu.net>
76970
76971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76972         to avoid 'header present but could not be compiled' on cygwin.
76973
76974 2006-07-05  Eric Blake  <ebb9@byu.net>
76975
76976         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76977         missing from netdb.h.
76978         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76979
76980 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76981
76982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76983         no longer needed.
76984         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76985         * m4/getdate.m4 (gl_GETDATE): Likewise.
76986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76991
76992 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76993
76994         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76995         All uses of is_space replaced by isspace.
76996         * lib/exit.h: Don't talk about STDC_HEADERS.
76997         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76998         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76999         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77000         replaced by isprint etc.
77001         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77002         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77003         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77004         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77005         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77006         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77007
77008 2006-07-05  Bruno Haible  <bruno@clisp.org>
77009
77010         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77011         the function exists, before testing against AIX.
77012         Reported by Martin Lambers <marlam@marlam.de>.
77013
77014 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77017         From Mark D. Baushke.
77018
77019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77020
77021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77022         to the absolute name, not just one, to bypass Sun C 5.8's
77023         "warning: #include of /usr/include/... may be non-portable".
77024
77025 2006-07-04  Eric Blake  <ebb9@byu.net>
77026
77027         * modules/dirname-tests: New test module.
77028         * tests/test-dirname.c: New file, replacing dirname.c
77029         TEST_DIRNAME section that was recently deleted.
77030
77031 2006-07-04  Bruno Haible  <bruno@clisp.org>
77032
77033         Assume ANSI C header files and <ctype.h> functions.
77034         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77035         (mbsnwidth): Use isprint, iscntrl instead.
77036
77037 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         Merge from coreutils.
77040         * MODULES.html.sh: Add xstrtold.
77041         * modules/xstrtold: New file.
77042         * modules/cycle-check (Files): Add lib/same-inode.h.
77043         * modules/dirname (Files): Add m4/double-slash-root.m4.
77044         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77045         * modules/mkdir-p (Files): Add lib/same-inode.h.
77046         * modules/same (Files): Add lib/same-inode.h.
77047
77048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77051         This is to keep the terminology clean; POSIX talks about
77052         "absolute pathnames", not "full pathnames", but the GNU
77053         Coding Standards say to use "path" for something else;
77054         so use "absolute" to keep both sides happy.
77055         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77056         Set gl_absolute_header, not gl_full_header_path.
77057         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77058         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77059         All uses changed.
77060
77061         Merge from coreutils.
77062
77063         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77066         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77067         want to require the building of c-strtod.o.
77068         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77069         needs -lm directly.
77070         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77071
77072         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77073
77074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77075         --as-needed option if available.  Problem reported by Albert Chin in
77076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77077         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77078         cc merely issues a bunch of annoying warnings for --as-needed
77079         (this problem was reported by Bob Proulx).  Also, try linking with
77080         -lm to detect a bug in binutils 2.16 (this problem was reported
77081         by Ralf Wildenhues).
77082
77083         2006-06-18  Jim Meyering  <jim@meyering.net>
77084
77085         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77087         macro.
77088         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77089         also check for glibc-2.4's abort-inducing bug.
77090
77091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77092         Low-probability clean-up should be to use rmdir to get rid of
77093         the just-created directory, not unlink.
77094
77095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77096         configure fail, and request a bug report to inform us about it.
77097         Add a comment that, barring reports to the contrary, in 2007 we'll
77098         assume ftruncate is universally available.
77099
77100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77103
77104         2006-03-12  Jim Meyering  <jim@meyering.net>
77105
77106         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77107         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77108         * m4/same.m4 (gl_SAME): Likewise.
77109         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77110
77111         2006-03-11  Eric Blake  <ebb9@byu.net>
77112
77113         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77114         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77115         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77116         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77117
77118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77121         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77122         reported by Mark D. Baushke, one in
77123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77124
77125         Merge from coreutils.
77126
77127         * lib/.cppi-disable: Add stdint_.h.
77128         * lib/.cvsignore: Add stdint.h.
77129
77130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77133         both double and long double versions.
77134         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77135         * lib/xstrtold.c: New file.
77136         * lib/xstrtod.h (xstrtold): New decl.
77137
77138         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * lib/filemode.c (setst): Remove.
77141         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77142         (arguably) clearer, and the generated code is a bit smaller on my
77143         Debian GNU/Linux stable x86 host.
77144
77145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77148         Assume that filemode.h includes sys/types.h and sys/stat.h.
77149         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77150         (ftypelet): Reorder to put common cases first, for efficiency.
77151         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77152         to do 'M'.
77153         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77154         of 10, for compatibility with FreeBSD.  All callers changed.
77155         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77156         types that can't be deduced solely from st_mode.  First arg is now a
77157         const pointer.
77158         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77159         (strmode): Renamed from mode_string.
77160         (filemodestring): New decl.
77161         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77162         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77163         needed.
77164         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77165
77166         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77169         fsusage.h now does that.  Include fsusage.h first, to test interface.
77170         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77171         at most one method (the old code could have generated decls that
77172         didn't conform to C89, not that this was ever exercised).
77173         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77174
77175         2006-03-19  Jim Meyering  <jim@meyering.net>
77176
77177         Work even in a chroot where d_ino values for entries in "/"
77178         don't match the stat.st_ino values for the same names.
77179         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77180         number, iterate through all entries again, using lstat instead.
77181         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77182         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77183
77184         * lib/getcwd.c (__getcwd): Clarify a comment.
77185         Use memcpy in place of a call to strcpy.
77186
77187         2006-03-12  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77190         matches that of the current directory (which we're about to chdir ".."
77191         out of), then save the dev-ino of the parent, instead.
77192
77193         * lib/same-inode.h (SAME_INODE): New file/macro.
77194         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77195         Include "same-inode.h", instead.
77196         * lib/same.c: Likewise.
77197         * lib/cycle-check.h: Include "same-inode.h".
77198         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77199         * lib/cycle-check.c (SAME_INODE): Remove definition.
77200         * lib/root-dev-ino.h: Include "same-inode.h".
77201
77202         2006-03-11  Eric Blake  <ebb9@byu.net>
77203
77204         * lib/same.c (same_name): s/base_name/last_component/
77205         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77206         * lib/filenamecat.c (file_name_concat): Likewise.
77207
77208         2006-03-11  Eric Blake  <ebb9@byu.net>,
77209                     Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77212         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77213         drive prefix.
77214         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77215         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77216         (last_component): New method.
77217         * lib/dirname.c (dir_len): Determine when drive letters need a
77218         subsequent slash.  Preserve // when it is special.
77219         (dir_name): Don't append dot when drive letter is absolute.
77220         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77221         * lib/basename.c (base_name): New semantics - malloc the result.
77222         Preserve // when it is special.  Preserve relative files that look
77223         like drive letters.
77224         (base_len): Preserve // when it is special.
77225         (last_component): New method, similar to old base_name semantics.
77226         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77227         base_name.  Strip redundant slashes from ///.
77228
77229 2006-07-03  Jim Meyering  <jim@meyering.net>
77230
77231         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77232         macro is used before the first cycle_check call.
77233
77234 2006-07-03  Eric Blake  <ebb9@byu.net>
77235
77236         * modules/dirname (Depends-on): Add xstrndup.
77237
77238 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77241         test cases, so that config.log is a bit easier to follow.
77242
77243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77246         both are 64 bits, since this seems to be the tradition, and this
77247         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77248         we ever run into a host that prefers long long to long in this
77249         case, we'll need another configure-time test.  Problem reported by
77250         Jim Meyering.
77251
77252 2006-07-02  Eric Blake  <ebb9@byu.net>
77253
77254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77255
77256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * modules/inttypes (Depends-on): No longer depends on stdint.
77259         * modules/stdint (Description): Say more about assumptions.
77260         Say that the fast types might differ.  Say macros are used.
77261         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77262         (Makefile.am): Revise list of substituted symbols to match
77263         new stdint.m4.
77264         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77265         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77266         * tests/test-stdint.c (verify_same_types)
77267         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77268         the code conforms to C99/C89.
77269         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77270         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77271
77272 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77275         but fix a bug, by requiring at least 64 bits.
77276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77277         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77278         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77279         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77280
77281         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77282         changes.  Make 2.59 a prerequisite.  Check and substitute for
77283         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77284         inttypes.h.  Do not use special include files; just use the
77285         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77286         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77287         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77288         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77289         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77290         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77291         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77292         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77293         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77294         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77295         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77296         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77297         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77298         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77299         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77300         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77301         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77302         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77303         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77304         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77305         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77306         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77307         not check for things that C99 does not require, e.g., int8_t.  If
77308         a test isn't needed unless <stdint.h> isn't working, and is
77309         unlikely to be needed for any other reason, then don't do it
77310         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77311         size_t, since we assume C89 freestanding at least.  Do not check
77312         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77313         the right thing even if the types are not defined.  Instead use:
77314         (gl_STDINT_TYPE_PROPERTIES): New macro.
77315         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77316         testing whether <sys/types.h> clashes, as Autoconf does this for
77317         us now.  All uses removed.
77318         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77319         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77320         (gl_CHECK_TYPE_SAME):
77321         Remove; no longer needed.
77322         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77323         exists, since we'll return 0 anyway in that case.
77324         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77325
77326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77329         possible collision with system files.
77330         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77331         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77332         WCHAR_MIN and WCHAR_MAX in this case.
77333         (<stddef.h>): Do not include; no longer needed.
77334         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77335         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77336         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77337         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77338         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77339         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77340         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77341         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77342         !defined(__c99))]: Include in this case too, since it's harmless
77343         now.
77344         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77345         dangerous to do so.
77346         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77347         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77348         (_STDINT_MIN, _STDINT_MAX): New macros.
77349         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77350         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77351         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77352         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77353         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77354         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77355         macros, not typedefs; this simplifies things quite a bit.
77356         Use long int for all types narrower than int64_t.
77357         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77358         Define in terms of long long int or int64_t or long int,
77359         not int64_t or int32_t.  This saves some compile-time testing.
77360         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77361         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77362         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77363         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77364         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77365         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77366         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77367         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77368         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77369         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77370         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77371         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77372         undef any previous version and define our own version, for
77373         simplicity and consistency with the new macros for types.
77374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77376         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77377         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77378         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77379         @WINT_T_SUFFIX@ to keep things simple here.
77380         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77381         Simplify by assuming typical 8/16/32/64 host, since we're
77382         already doing that elsewhere anyway.
77383         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77384         and assume long long int is 64 bits if available.  This
77385         speeds up 'configure'.
77386
77387 2006-07-01  Eric Blake  <ebb9@byu.net>
77388
77389         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77390         Reported by Andreas Buening.
77391
77392 2006-07-01  Eric Blake  <ebb9@byu.net>
77393
77394         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77395
77396 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77397
77398         * lib/getaddrinfo.c: fixed typo
77399
77400 2006-06-29  Jim Meyering  <jim@meyering.net>
77401
77402         * modules/strftime (Maintainer): Add my name, since with the
77403         FPRINTFTIME changes strftime.c has forked from glibc.
77404
77405 2006-06-29  Eric Blake  <ebb9@byu.net>
77406
77407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77408
77409 2006-06-29  Eric Blake  <ebb9@byu.net>
77410
77411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77412
77413 2006-06-29  Eric Blake  <ebb9@byu.net>
77414
77415         * lib/stat_.h: New file.
77416
77417 2006-06-29  Eric Blake  <ebb9@byu.net>
77418
77419         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77420         unused static function.
77421
77422 2006-06-29  Eric Blake  <ebb9@byu.net>
77423
77424         * doc/functions.texi (Function Portability): Document missing lstat
77425         on mingw.
77426
77427 2006-06-29  Eric Blake  <ebb9@byu.net>
77428
77429         * MODULES.html.sh: Add sys_stat.
77430         * modules/sys_stat: New module.
77431         * modules/mkstemp (Depends-on): Add sys_stat.
77432
77433 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77434
77435         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77436
77437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77438
77439         * m4/c-bs-a.m4: Removed.
77440
77441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77442
77443         * lib/strftime.c: Assume strftime() exists.
77444
77445 2006-06-29  Derek Price  <derek@ximbiot.com>
77446
77447         * modules/c-bs-a: Removed - \a is C89.
77448         * MODULES.html.sh: Remove c-bs-a.
77449
77450 2006-06-29  Bruno Haible  <bruno@clisp.org>
77451
77452         * modules/wcwidth (License): Change to LGPL.
77453
77454 2006-06-28  Simon Josefsson  <jas@extundo.com>
77455
77456         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77457         on _WIN32.
77458
77459         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77460         getnameinfo.
77461
77462 2006-06-28  Simon Josefsson  <jas@extundo.com>
77463
77464         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77465
77466 2006-06-28  Simon Josefsson  <jas@extundo.com>
77467
77468         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77469         functions there.  It will succeed on Windows XP, but on Windows
77470         2000 and (presumably) earlier, it will fail, and use the internal
77471         re-implementation.
77472         (use_win32_p): New function.
77473         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77474         Support AI_NUMERICSERV to disable getservbyname.
77475         (getnameinfo): New function, only supports
77476         NI_NUMERICHOST|NI_NUMERICSERV for now.
77477
77478         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77479         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77480         getnameinfo.
77481
77482 2006-06-28  Eric Blake  <ebb9@byu.net>
77483
77484         * modules/wcwidth: New file.
77485         * modules/mbchar (Depends-on): Add wcwidth.
77486         * modules/mbswidth (Depends-on): Add wcwidth.
77487         * MODULES.html.sh: Add wcwidth.
77488
77489 2006-06-28  Eric Blake  <ebb9@byu.net>
77490
77491         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77493
77494 2006-06-28  Eric Blake  <ebb9@byu.net>
77495
77496         * lib/xvasprintf.h: Fix comments.
77497
77498 2006-06-28  Eric Blake  <ebb9@byu.net>
77499
77500         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77501         * lib/mbswidth.c (wcwidth): Move from here...
77502         * lib/wcwidth.h: ...to this new file.
77503
77504 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77505
77506         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77507
77508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77509         it's obsolete.
77510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77511
77512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77513
77514         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77515         Autoconf 2.60 says this stuff was obsolete.
77516
77517 2006-06-28  Bruno Haible  <bruno@clisp.org>
77518
77519         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77520
77521 2006-06-28  Bruno Haible  <bruno@clisp.org>
77522
77523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77524         gt_TYPE_WCHAR_T.
77525
77526 2006-06-28  Bruno Haible  <bruno@clisp.org>
77527
77528         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77529         declaration for wcwidth.
77530         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77531
77532 2006-06-28  Bruno Haible  <bruno@clisp.org>
77533
77534         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77535         (mkdir): Define using _mkdir.
77536
77537 2006-06-28  Bruno Haible  <bruno@clisp.org>
77538
77539         * lib/getaddrinfo.h: Fix POSIX URL.
77540         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77541         _WIN32.
77542         (use_win32_p): Make static.
77543         (getaddrinfo): Reject service name if it is empty or does not consist
77544         solely of decimal digits, or if its value is > 65535.
77545         (getnameinfo): Remove useless casts.
77546
77547 2006-06-27  Simon Josefsson  <jas@extundo.com>
77548
77549         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77550         Eggert and Martin Lambers.
77551
77552 2006-06-27  Simon Josefsson  <jas@extundo.com>
77553
77554         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77555         Eggert and Martin Lambers.
77556
77557 2006-06-27  Bruno Haible  <bruno@clisp.org>
77558
77559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77560         result to 0, not to empty.
77561         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77562
77563 2006-06-27  Bruno Haible  <bruno@clisp.org>
77564
77565         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77566
77567 2006-06-26  Simon Josefsson  <jas@extundo.com>
77568
77569         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77570         present.
77571
77572 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77575         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77577
77578 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77579
77580         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77581
77582 2006-06-26  Bruno Haible  <bruno@clisp.org>
77583
77584         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77585
77586 2006-06-26  Bruno Haible  <bruno@clisp.org>
77587
77588         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77589
77590 2006-06-26  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77593         SGI C compiler in pre-C99 mode.
77594         Suggested by Mark D. Baushke and Larry Jones.
77595
77596 2006-06-26  Bruno Haible  <bruno@clisp.org>
77597
77598         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77599         WCHAR_MAX.
77600         Reported by Mark D. Baushke and Larry Jones.
77601
77602 2006-06-26  Bruno Haible  <bruno@clisp.org>
77603
77604         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77605         in pre-C99 mode.
77606         Suggested by Mark D. Baushke and Larry Jones.
77607
77608 2006-06-23  Simon Josefsson  <jas@extundo.com>
77609             Bruno Haible  <bruno@clisp.org>
77610
77611         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77612         Emit mostlyclean-local rule.
77613         (func_emit_tests_Makefile_am): Likewise.
77614         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77615
77616 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77617
77618         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77619
77620 2006-06-23  Bruno Haible  <bruno@clisp.org>
77621
77622         * tests/test-stdint.c: Update to match ISO C 99 Technical
77623         Corrigendum 1.
77624
77625 2006-06-23  Bruno Haible  <bruno@clisp.org>
77626
77627         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77628
77629 2006-06-23  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/stdint_.h: Treat IRIX like OpenBSD.
77632
77633 2006-06-23  Bruno Haible  <bruno@clisp.org>
77634
77635         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77636         ISO C 99 Technical Corrigendum 1.
77637
77638 2006-06-22  Simon Josefsson  <jas@extundo.com>
77639
77640         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77641         MinGW.
77642
77643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77646         needed.  Some compiler complained about some of them.  Problem reported
77647         by Larry Jones in
77648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77649
77650 2006-06-21  Simon Josefsson  <jas@extundo.com>
77651
77652         * tests/test-getaddrinfo.c: New file.
77653
77654         * modules/getaddrinfo-tests: New file.
77655
77656         * MODULES.html.sh: Add inet_pton.
77657
77658         * modules/inet_pton: New file.
77659
77660 2006-06-21  Simon Josefsson  <jas@extundo.com>
77661
77662         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77663         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77664         of using the (limited) gnulib implementation on Windows XP.
77665
77666         * m4/inet_pton.m4: New file.
77667
77668 2006-06-21  Simon Josefsson  <jas@extundo.com>
77669
77670         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77671         variable.
77672
77673         * lib/socket_.h: Don't define WINVER.
77674
77675         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77676         slightly modified to work in gnulib.
77677
77678 2006-06-21  Simon Josefsson  <jas@extundo.com>
77679
77680         * doc/gnulib.texi (Windows sockets): Add.
77681
77682 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77683
77684         * lib/read-file.c (fread_file): Start with buffer allocation of
77685         0 bytes rather than 1 byte; this simplifies the code.
77686         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77687         code to free buffer and save/restore errno.
77688         (internal_read_file): Remove unused local.
77689
77690 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77693         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77694         Problem reported by Denis Excoffier in
77695         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77696
77697 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77698
77699         * modules/sys_socket, modules/socklen: Include sys/types since
77700         FreeBSD 4.x's sys/socket.h needs it.
77701
77702 2006-06-19  Simon Josefsson  <jas@extundo.com>
77703
77704         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77705
77706 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77709
77710 2006-06-19  Bruno Haible  <bruno@clisp.org>
77711
77712         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77713         and FULL_PATH_INTTYPES_H in angle brackets.
77714         Reported by Mark D. Baushke <mdb@gnu.org>.
77715
77716 2006-06-17  Eric Blake  <ebb9@byu.net>
77717
77718         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77719         errno.
77720
77721 2006-06-17  Bruno Haible  <bruno@clisp.org>
77722
77723         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77724         <sys/inttypes.h>.
77725
77726 2006-06-17  Bruno Haible  <bruno@clisp.org>
77727
77728         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77729         whether errno is declared. Assume <errno.h> declares errno.
77730
77731 2006-06-17  Bruno Haible  <bruno@clisp.org>
77732
77733         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77734
77735 2006-06-17  Bruno Haible  <bruno@clisp.org>
77736
77737         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77738         problem on Solaris 2.5.1.
77739
77740 2006-06-16  Eric Blake  <ebb9@byu.net>
77741
77742         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77743         * lib/unicodeio.c [!defined errno]: Likewise.
77744         * lib/strtol.c [!defined errno]: Likewise.
77745         * lib/strtod.c [!defined errno]: Likewise.
77746
77747 2006-06-15  Eric Blake  <ebb9@byu.net>
77748
77749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77750
77751 2006-06-15  Eric Blake  <ebb9@byu.net>
77752
77753         * config/srclist.txt (ssize_t.m4): Lose sync.
77754
77755 2006-06-15  Bruno Haible  <bruno@clisp.org>
77756
77757         * modules/stdint (Files): Include m4/full-header-path.m4,
77758         m4/size_max.m4, m4/wchar_t.m4.
77759         (Makefile.am): Many more substitutions.
77760         * modules/stdint-tests: New file.
77761         * tests/test-stdint.c: New file.
77762
77763 2006-06-15  Bruno Haible  <bruno@clisp.org>
77764
77765         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77766         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77767         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77768         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77769         gl_CHECK_TYPE_SAME): New macros.
77770
77771 2006-06-15  Bruno Haible  <bruno@clisp.org>
77772
77773         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77774
77775 2006-06-15  Bruno Haible  <bruno@clisp.org>
77776
77777         * lib/stdint_.h: Rewritten to be fully auto-configured.
77778         Fixes bug on HP-UX/IA64.
77779
77780 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/getdate.y (__attribute__): Don't define if already defined.
77783         Problem reported by Larry Jones.
77784         * lib/utimens.c (__attribute__): Likewise.
77785
77786 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77789         reported by Andreas Schwab.
77790
77791 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77792             Bruno Haible  <bruno@clisp.org>
77793
77794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77795         check for the declaration of strnlen and a run test that exposes the
77796         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77797         rpl_strndup.
77798
77799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77800             Bruno Haible  <bruno@clisp.org>
77801
77802         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77803
77804 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77805
77806         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77807         compile test, for Tru64 4.0D.
77808
77809 2006-05-28  Karl Berry  <karl@gnu.org>
77810
77811         * config/srclist.txt (printf-args.c): lose sync.
77812
77813 2006-05-26  Martin Lambers  <marlam@marlam.de>
77814
77815         * lib/getpass.c: Updates the test for the native W32 API, and adds
77816         missing includes, thus fixing compilation warnings.
77817
77818 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77819
77820         * lib/exclude.c (exclude_fnmatch): New function.
77821         (excluded_file_name): Call exclude_fnmatch.
77822         * lib/exclude.h (excluded_file_name): New prototype
77823
77824 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * lib/tempname.c (small_open, large_open): New macros.
77827         (__open, __open64) [!_LIBC]: Remove.
77828         (__gen_tempname): Use small_open and large_open instead of __open
77829         and __open64.  This fixes a portability bug on HP-UX 11.11i
77830         reported by Simon Wing-Tang in
77831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77832
77833 2006-05-24  Bruno Haible  <bruno@clisp.org>
77834
77835         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77836         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77837         Reported by Thorsten Maerz <torte@netztorte.de> via
77838         Aaron Stone <aaron@serendipity.cx>.
77839
77840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77843         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77844         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77845         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77846         not really conditional on the cache.
77847         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77848
77849 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77852         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77853         (my_usleep): Don't mishandle maximum value.
77854
77855 2006-05-19  Jim Meyering  <jim@meyering.net>
77856
77857         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77858
77859 2006-05-17  Bruno Haible  <bruno@clisp.org>
77860
77861         Cygwin portability.
77862         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77863
77864 2006-05-17  Bruno Haible  <bruno@clisp.org>
77865
77866         * lib/stdint_.h: Fix recognition of Cygwin.
77867
77868 2006-05-15  Bruno Haible  <bruno@clisp.org>
77869
77870         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77871         on libtool patch by Ralf Wildenhues.
77872
77873 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77876         test for C99 conformance; (bool) 0.5 is an integer constant
77877         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77878         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77879
77880 2006-05-11  Simon Josefsson  <jas@extundo.com>
77881
77882         * m4/xvasprintf.m4: Fix obvious typo.
77883
77884 2006-05-11  Jim Meyering  <jim@meyering.net>
77885
77886         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77887         James Lemley.
77888
77889 2006-05-10  Simon Josefsson  <jas@extundo.com>
77890
77891         * lib/md4.c: Typo fix, update copyright years.
77892         (K1, K2): Don't use L because it turn computations into 64-bit on
77893         64-bit platforms.
77894
77895 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77896
77897         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77898         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77899         unwanted sign propagation, e.g., on hosts with 64-bit int.
77900         There still are some problems with reeelly weird theoretical hosts
77901         (e.g., 33-bit int) but it's not worth worrying about now.
77902         * lib/sha1.c (rol): Likewise.
77903         (K1, K2, K3, K4): Remove unnecessary L suffix.
77904
77905 2006-05-10  Bruno Haible  <bruno@clisp.org>
77906
77907         * lib/des.c: Cast to avoid warnings.
77908
77909 2006-05-09  Bruno Haible  <bruno@clisp.org>
77910
77911         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77912         (Depends-on): Depend also on xsize, stdarg.
77913         (configure.ac): Add gl_XVASPRINTF.
77914
77915 2006-05-09  Bruno Haible  <bruno@clisp.org>
77916
77917         * m4/xvasprintf.m4: New file.
77918
77919 2006-05-09  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77922         (EOVERFLOW): Define fallback value.
77923         (xstrcat): New function.
77924         (xvasprintf): Recognize the special case of a string concatenation.
77925
77926 2006-05-08  Eric Blake  <ebb9@byu.net>
77927
77928         * gnulib-tool (func_version): Base copyright year on CVS date.
77929         (func_emit_copyright_notice): New function.
77930         (func_emit_lib_Makefile_am): Use it.
77931         (func_emit_tests_Makefile_am): Likewise.
77932         (func_import): Likewise.
77933
77934 2006-05-08  Bruno Haible  <bruno@clisp.org>
77935
77936         * modules/stdarg: New file.
77937         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77938
77939 2006-05-08  Bruno Haible  <bruno@clisp.org>
77940
77941         * m4/stdarg.m4: New file, from GNU gettext.
77942
77943 2006-05-08  Bruno Haible  <bruno@clisp.org>
77944
77945         * config/srclist.txt (build-aux/config.rpath): different from latest
77946         release.
77947
77948 2006-05-08  Bruno Haible  <bruno@clisp.org>
77949
77950         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77951
77952 2006-05-05  Jim Meyering  <jim@meyering.net>
77953
77954         * m4/warning.m4: New file, derived from bison's file by the same name.
77955
77956 2006-05-03  Bruno Haible  <bruno@clisp.org>
77957
77958         * lib/stdint_.h: Shorter URL.
77959         * lib/inttypes.h: Likewise.
77960
77961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77964
77965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * lib/verify.h: Document the internals better.  Most of this change
77968         was written by Bruno Haible.
77969
77970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77971
77972         * doc/verify.texi: New file, partly based on a proposal by
77973         Bruno Haible.
77974
77975 2006-05-02  Bruno Haible  <bruno@clisp.org>
77976
77977         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77978         test from here...
77979         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77980
77981 2006-04-29  Bruno Haible  <bruno@clisp.org>
77982
77983         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77984         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77985
77986 2006-04-29  Bruno Haible  <bruno@clisp.org>
77987
77988         * gnulib-tool: Make --update option actually work.
77989
77990 2006-04-29  Bruno Haible  <bruno@clisp.org>
77991
77992         * doc/gcd.texi: New file.
77993         * doc/gnulib.texi: Include it.
77994
77995 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * lib/getdate.y (get_date): When adding relative date, start with the
77998         initial time, not with the result of the first mktime call.
77999
78000 2006-04-25  Bruno Haible  <bruno@clisp.org>
78001
78002         * gnulib-tool (func_import): Output the include directives in three
78003         blocks, sorted separately.
78004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78005
78006 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78009         to define main with arguments, for C++.  Reported by Eric Blake.
78010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78011         Prefer 'int main ()' to 'int main (void)', for C++.
78012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78014         for 'main', for C99 and C++.
78015
78016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78019         Don't assume that exit status -1 is valid.
78020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78021         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78023         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78024         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78026         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78027         functions can be used without declaring them, or that you can
78028         exit with status -1.
78029         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78030
78031 2006-04-24  Karl Berry  <karl@gnu.org>
78032
78033         * config/srclist.txt (longdouble.m4): sync lost.
78034
78035 2006-04-24  Eric Blake  <ebb9@byu.net>
78036
78037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78038
78039 2006-04-24  Bruno Haible  <bruno@clisp.org>
78040
78041         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78042         poll() implementation in AIX.
78043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78044
78045 2006-04-24  Bruno Haible  <bruno@clisp.org>
78046
78047         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78048         assigned exactly once.
78049
78050 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78051             Bruno Haible  <bruno@clisp.org>
78052
78053         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78054         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78055         for AM_CPPFLAGS.
78056
78057 2006-04-23  Bruno Haible  <bruno@clisp.org>
78058
78059         * modules/copy-file: Depend on unistd.
78060         * modules/execute: Likewise.
78061         * modules/fatal-signal: Likewise.
78062         * modules/findprog: Likewise.
78063         * modules/mkdtemp : Likewise.
78064         * modules/pipe: Likewise.
78065         * modules/wait-process: Likewise.
78066
78067 2006-04-23  Bruno Haible  <bruno@clisp.org>
78068
78069         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78070         condition was already detected.
78071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78072
78073 2006-04-23  Bruno Haible  <bruno@clisp.org>
78074
78075         * lib/copy-file.c: Include <unistd.h> unconditionally.
78076         * lib/execute.c: Likewise.
78077         * lib/fatal-signal.c: Likewise.
78078         * lib/findprog.c: Likewise.
78079         * lib/mkdtemp.c: Likewise.
78080         * lib/pipe.h: Likewise.
78081         * lib/pipe.c: Likewise.
78082         * lib/wait-process.h: Likewise.
78083
78084 2006-04-23  Bruno Haible  <bruno@clisp.org>
78085
78086         * gnulib-tool (func_usage): Fix --import description. Document
78087         --update.
78088         (func_import): Create temporary file in a temporary directory, if
78089         --dry-run is specified. Silence errors from 'grep' when there are no
78090         m4 files in $m4dir.
78091         (func_create_testdir): Silence errors from 'grep' when there are no
78092         m4 files in $m4dir.
78093         Reported by Karl Berry <karl@freefriends.org>.
78094
78095 2006-04-20  Bruno Haible  <bruno@clisp.org>
78096
78097         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78098         one argument, so that the code will be portable to Autoconf 2.60.
78099         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78101         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78102
78103 2006-04-19  Derek Price  <derek@ximbiot.com>
78104             Eric Blake  <ebb9@byu.net>
78105
78106         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78107         rather than "/full/path.h".  Update comment to match.  Shorten &
78108         generalize m4_translit call via AS_TR_CPP.
78109
78110 2006-04-19  Derek Price  <derek@ximbiot.com>
78111             Eric Blake  <ebb9@byu.net>
78112
78113         * lib/inttypes.h: Correct grammar in comment.
78114
78115 2006-04-18  Derek Price  <derek@ximbiot.com>
78116             Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * modules/inttypes: New file.
78119         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78120
78121 2006-04-18  Derek Price  <derek@ximbiot.com>
78122             Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78125         New files.
78126
78127 2006-04-18  Derek Price  <derek@ximbiot.com>
78128             Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * lib/inttypes.h: New file.
78131         * lib/strtoimax.c: Assume <inttypes.h>.
78132
78133 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78136         isn't mounted.  Problem reported by Kir Kolyshkin.
78137
78138 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78141         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78142         Derek R. Price.
78143         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78144         implementation.
78145
78146 2006-04-12  Eric Blake  <ebb9@byu.net>
78147
78148         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78149         is now done automatically by the corresponding Autoconf macro.
78150
78151 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78154         time_r.h.
78155
78156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78157
78158         Merge regex changes from libc, removing some of our
78159         POSIX-conformance changes that were rejected and redoing them in a
78160         less-intrusive way.
78161
78162         * lib/regcomp.c (re_compile_internal, init_dfa):
78163         Length arg is now size_t, not Idx.  All uses changed.
78164         (peek_token): Forward decl now says internal_function.
78165         (__re_error_msgid, __re_error_msgid_idx):
78166         Now static rather than extern with attribute_hidden.
78167         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78168         For some reason libc prefers K&R style defns for external functions.
78169         (regerror) [!defined _LIBC]: Likewise.
78170         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78171         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78172         (build_range_exp, build_collating_symbol):
78173         Use K&R-style defn.
78174         (re_compile_fastmap): Use '\0' to memset, not 0.
78175         (utf8_sb_map): Make the calculations more obvious.
78176         (init_dfa, parse_bracket_exp, build_charclass_op):
78177         Call calloc and cast result, as glibc does.
78178         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78179         (build_range_exp, build_collating_symbol):
78180         Now internal functions.
78181
78182         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78183
78184         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78185         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78186         Don't depend on VMS; depend on __VMS instead, for POSIX
78187         namespace cleanness.
78188         (regoff_t): Define to ssize_t, not long int.
78189
78190         Remove the REG_ macros named below.  Instead, make the old names
78191         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78192         __USE_GNU_REGEX.
78193         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78194         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78195         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78196         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78197         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78198         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78199         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78200         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78201         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78202         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78203         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78204         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78205         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78206         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78207         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78208         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78209         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78210         (REG_NREGS):
78211         Remove.  All uses replaced by the old RE_* names.
78212         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78213         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78214         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78215         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78216         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78217         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78218         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78219         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78220         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78221         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78222         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78223         Don't bother having these macros be independent of each others'
78224         values, since they no longer exist in the POSIX name space.
78225
78226         Rename the following member names back to their old names,
78227         unless !__USE_GNU_REGEX.  All uses changed back.
78228         (buffer): Renamed from re_buffer.
78229         (allocated): Renamed from re_allocated.
78230         (used): Renamed from re_used.
78231         (syntax): Renamed from re_syntax.
78232         (fastmap): Renamed from re_fastmap.
78233         (translate): Renamed from re_translate.
78234         (can_be_null): Renamed from re_can_be_null.
78235         (regs_allocated): Renamed from re_regs_allocated.
78236         (fastmap_accurate): Renamed from re_fastmap_accurate.
78237         (no_sub): Renamed from re_no_sub.
78238         (not_bol): Renamed from re_not_bol.
78239         (not_eol): Renamed from re_not_eol.
78240         (newline_anchor): Renamed from re_newline_anchor.
78241         (num_regs): Renamed from rm_num_regs.
78242         (start): Renamed from rm_start.
78243         (end): Renamed from rm_end.
78244
78245         (free_state): Move up a bit.
78246
78247         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78248         #define to be empty.
78249         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78250         when that is what is intended.
78251         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78252         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78253         (MAX): New macro.
78254         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78255         All uses changed back to re_malloc, etc.  It's now the caller's
78256         responsibility to check for overflow; all callers changed.
78257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78258         (re_x2nrealloc): Remove.
78259         (free_state): Remove decl.
78260
78261         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78262         (re_set_registers, re_exec):
78263         Use K&R-style defn.
78264
78265         2006-01-31  Roland McGrath  <roland@redhat.com>
78266
78267         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78268         Reported by Mike Frysinger <vapier@gentoo.org>.
78269
78270         2006-01-15  Andreas Jaeger  <aj@suse.de>
78271
78272         [BZ #1950]
78273         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78274         build_wcs_upper_buffer change.
78275         (build_wcs_upper_buffer): Change return type.
78276
78277         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78278
78279         * lib/regex_internal.h: Include <stdint.h> if available.
78280
78281         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78282
78283         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78284
78285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78286
78287         * lib/regcomp.c: Adjust for changed secondary hash function.
78288
78289         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78290
78291         * lib/regex.h: Pretty printing.
78292         Clean up namespace a bit.
78293
78294         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78295
78296         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78297         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78298
78299         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78300                     Ulrich Drepper  <drepper@redhat.com>
78301
78302         [BZ #1302]
78303         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78304         changed.
78305         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78306
78307         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78308
78309         [BZ #281]
78310         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78311         * lib/regcomp.c: Remove unnecessary uses of
78312         unsigned RE_TRANSLATE_TYPE.
78313         * lib/regex_internal.h: Likewise.
78314         * lib/regex_internal.c: Likewise.
78315         * lib/regexec.c: Likewise.
78316         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78317
78318         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78319
78320         * lib/regexec.c (find_recover_state): Remove unnecessary
78321         initialization.
78322         (transit_state_bkref): Make DFA a const pointer.
78323         (get_subexp): Likewise.
78324         (check_arrival): Likewise.
78325         (update_cur_sifted_state): Likewise.
78326         (re_search_internal): Likewise.
78327         (prune_impossible_nodes): Likewise.
78328         (acquire_init_state_context): Likewise.
78329         (proceed_next_node): Likewise.
78330         (set_regs): Likewise.
78331         (free_fail_stack_return): Likewise.
78332         (check_arrival_expand_ecl): Mark DFA parameter as const.
78333         (check_arrival_expand_ecl_sub): Likewise.
78334         (check_subexp_limits): Likewise.
78335         (sub_epsilon_src_nodes):  Likewise.
78336         (add_epsilon_src_nodes):  Likewise.
78337         (merge_state_array): Likewise.
78338         (update_regs): Likewise.
78339         (build_trtable): Likewise.
78340         (sift_states_backward): Mark MCTX parameter as const.
78341         (build_sifted_states): Likewise.
78342         (update_cur_sifted_state): Likewise.
78343         (sift_states_mkref): Likewise.
78344         (check_arrival_expand_ecl): Mark eclosure as const.
78345         (check_dst_limits_calc_pos_1): Likewise.
78346         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78347         pointer.
78348
78349         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78350
78351         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78352         (transit_state_sb): Likewise.
78353         (transit_state_mb): Likewise.
78354         (sift_states_iter_mb): Likewise.
78355         (check_arrival_add_next_nodes): Likewise.
78356         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78357         [_LIBC] (re_search_2_stub): Use mempcpy.
78358
78359         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78360         mbrtowc for very simple UTF-8 case.
78361
78362         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78363         a pointer-to-const.
78364         (re_acquire_state_context): Likewise.
78365         * lib/regex_internal.h: Adjust prototypes.
78366
78367         * lib/regex.c: Prevent using C++ compilers.
78368
78369         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78370         (re_acquire_state_context): Likewise.
78371
78372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * modules/regex (Depends-on): Add ssize_t.
78375
78376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78379         translation table.
78380
78381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78384
78385 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78386             Bruno Haible  <bruno@clisp.org>
78387
78388         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78389         <sys/types.h> and <inttypes.h>.
78390
78391 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78392
78393         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78394         `__error_t_defined', so argp.h will not typedef the former.
78395
78396 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78399         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78400         glibc names.  Even if glibc is changed to conform to POSIX, the
78401         traditional names will be available anyway, since regex depends on
78402         the extensions module.  Also, fix a longstanding typo in the
78403         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78404         reported by Emanuele Giaquinta.  Also, change sense of cached
78405         variable, so that the message makes sense.
78406
78407 2006-03-24  Simon Josefsson  <jas@extundo.com>
78408
78409         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78410         including some doc fixes.
78411         (base64_encode_alloc): Fix +1 bug on allocation failures.
78412
78413 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78414
78415         * lib/base64.c (base64_encode): Do not read past end of array with
78416         unsanitized input on systems with CHAR_BIT > 8.
78417
78418 2006-03-24  Eric Blake  <ebb9@byu.net>
78419
78420         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78421
78422 2006-03-22  Karl Berry  <karl@gnu.org>
78423
78424         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78425         * config/srclistvars.sh (COREUTILS): new var.
78426
78427 2006-03-17  Jim Meyering  <jim@meyering.net>
78428
78429         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78430         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78431
78432 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78435         no longer needs it.  Instead, check that regoff_t is as least
78436         as wide as ptrdiff_t.
78437
78438         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78439         so that our regex.h stays compatible with the installed regex.
78440         This is helpful for installers who configure --without-included-regex.
78441         Problem reported by Emanuele Giaquinta.
78442
78443 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78446         Typedef to long int, not to off_, as POSIX will likely change
78447         in that direction.
78448
78449 2006-03-15  Eric Blake  <ebb9@byu.net>
78450
78451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78452
78453 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78454
78455         * lib/argp-help.c (validate_uparams): Fix typo
78456         * lib/argp-parse.c (argp_default_options): Consistently begin help
78457         messages with a lowercase letter.
78458
78459 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78462         overrun buffers and shouldn't be used (much as gets shouldn't be
78463         used).
78464         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78465
78466 2006-03-08  Simon Josefsson  <jas@extundo.com>
78467
78468         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78469         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78470
78471 2006-03-08  Simon Josefsson  <jas@extundo.com>
78472
78473         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78474         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78475
78476 2006-03-08  Simon Josefsson  <jas@extundo.com>
78477
78478         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78479         signal that configure disabled the device.
78480
78481 2006-03-08  Simon Josefsson  <jas@extundo.com>
78482
78483         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78484         languages.
78485
78486 2006-03-07  Simon Josefsson  <jas@extundo.com>
78487
78488         * modules/getopt (Depends-on): Add unistd.
78489
78490         * modules/unistd: New file.
78491
78492 2006-03-07  Simon Josefsson  <jas@extundo.com>
78493
78494         * modules/gc-random: New file.
78495
78496 2006-03-07  Simon Josefsson  <jas@extundo.com>
78497
78498         * m4/unistd_h.m4: New file.
78499
78500 2006-03-07  Simon Josefsson  <jas@extundo.com>
78501
78502         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78503         test to be side-effect free by storing the result in the cache
78504         variable gl_cv_lib_readline, and moving the assignment of
78505         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78506         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78507
78508 2006-03-07  Simon Josefsson  <jas@extundo.com>
78509
78510         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78511         error on missing devices (the functions will return an error).
78512
78513         * m4/gc.m4: Move random stuff to gc-random.m4
78514
78515 2006-03-07  Simon Josefsson  <jas@extundo.com>
78516
78517         * lib/unistd_.h: New file.
78518
78519 2006-03-07  Simon Josefsson  <jas@extundo.com>
78520
78521         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78522
78523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78526         Problem reported by Juan Manuel Guerrero.
78527
78528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78531         the unistd module.
78532         * lib/getlogin_r.c: Likewise.
78533         * lib/getlogin_r.h: Likewise.
78534         * lib/glob.c: Likewise.
78535         * lib/pagealign_alloc.c: Likewise.
78536         * lib/unistd_.h: Remove; no longer needed.
78537
78538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78541         Add unistd.
78542         * modules/c-stack (Depends-on): Add unistd.
78543         * modules/getlogin_r: Likewise.
78544         * modules/glob: Likewise.
78545         * modules/pagealign_alloc: Likewise.
78546         * modules/unistd (Files): Remove lib/unistd_.h.
78547         (EXTRA_DIST): Remove.
78548         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78549         need unistd_.h.
78550         (MOSTLYCLEANFILES): Remove unistd.h-t.
78551
78552 2006-03-03  Simon Josefsson  <jas@extundo.com>
78553
78554         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78555
78556 2006-03-03  Simon Josefsson  <jas@extundo.com>
78557
78558         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78559         libidn and bison.
78560
78561 2006-03-03  Simon Josefsson  <jas@extundo.com>
78562
78563         * build-aux/maint.mk: Add indent target.
78564
78565 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78566
78567         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78568         our replacement poll.h in any case, to avoid a differing
78569         declaration from a system header.  Seen on AIX.
78570
78571 2006-03-01  Simon Josefsson  <jas@extundo.com>
78572
78573         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78574         <kasal@ucw.cz>.
78575
78576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * modules/gettime (Depends-on): Add extensions module.
78579         * modules/nanosleep (Depends-on): Likewise.
78580         * modules/settime (Depends-on): Likewise.
78581
78582 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78585         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78586         pedantically.
78587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78588         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78589
78590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78591         not "==".  Reported by Ralf Wildenhues.
78592
78593 2006-03-01  Karl Berry  <karl@gnu.org>
78594
78595         * doc/Copyright/request-*: new files, synced from gnuorg.
78596
78597 2006-03-01  Karl Berry  <karl@gnu.org>
78598
78599         * config/srclist.txt (Copyright/*): new entries.
78600
78601 2006-02-28  Simon Josefsson  <jas@extundo.com>
78602
78603         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78604
78605 2006-02-27  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/base64.h: Indent #define's.  From Jim Meyering
78608         <jim@meyering.net>.
78609
78610 2006-02-27  Jim Meyering  <jim@meyering.net>
78611
78612         Revert the change of 2006-02-24, so these files can continue
78613         to be sync'd from gettext.
78614         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78615         of `config.h'.
78616
78617 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * modules/intprops: New file.
78620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78621         Add intprops.
78622         * modules/getloadavg (Files): Remove lib/intprops.h.
78623         (Depends-on): Add intprops.
78624         * modules/human: Likewise.
78625         * modules/inttostr: Likewise.
78626         * modules/openat: Likewise.
78627         * modules/sig2str: Likewise.
78628         * modules/userspec: Likewise.
78629         * modules/utimecmp: Likewise.
78630         * modules/xnanosleep: Likewise.
78631         * modules/xstrtol: Likewise.
78632
78633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78634
78635         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78636         * modules/lock-tests (TESTS): Use $(EXEEXT).
78637         * modules/tls-tests: Likewise.
78638         * modules/argp-tests: Likewise.
78639         (check_PROGRAMS): New var, replacing...
78640         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78641
78642 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78643
78644         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78645         `config.h'.
78646
78647 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78650
78651 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78652
78653         Sync from coreutils.
78654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78655         gl_CHDIR_SAFER.
78656
78657 2006-02-22  Jim Meyering  <jim@meyering.net>
78658
78659         Sync from coreutils.
78660         * m4/chdir-safer.m4: New file.
78661
78662 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78665         AT_FDCWD exceeds INT_MAX.
78666         * lib/openat.h (AT_FDCWD): Likewise.
78667
78668 2006-02-17  Eric Blake  <address@hidden>
78669
78670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78671
78672 2006-02-16  Simon Josefsson  <jas@extundo.com>
78673
78674         * modules/getaddrinfo (Depends-on): Add sys_socket.
78675
78676 2006-02-15  Simon Josefsson  <jas@extundo.com>
78677
78678         * build-aux/maint.mk: Add dsyntax-check rule.
78679
78680 2006-02-15  Eric Blake  <ebb9@byu.net>
78681
78682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78683         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78684         'present but cannot compile' warnings on cygwin.
78685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78686         use ws2tcpip.h if sys/socket.h works.
78687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78688         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78689
78690 2006-02-14  Simon Josefsson  <jas@extundo.com>
78691
78692         * modules/maintainer-makefile (Files): Rename.
78693
78694         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78695         and (the local) Makefile.cfg to maint-cfg.mk.
78696
78697         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78698         to the latter.
78699
78700         * modules/maintainer-makefile: New module.
78701
78702         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78703         severaly stripped to make it possible to build it up from scratch
78704         with reliable tests.
78705
78706         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78707         fixes to permit overriding the default actions when configure and
78708         makefile are not available.
78709
78710 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         Sync from coreutils.
78713         * modules/lstat (Depends-on): Don't depend on xalloc.
78714         (License): Change from GPL to LGPL, since this is now simply a
78715         replacement for a libc function.
78716
78717 2006-02-14  Jim Meyering  <jim@meyering.net>
78718
78719         Sync from coreutils.
78720
78721         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78722         failure on deficient systems, and simplify gnulib lgpl dependencies.
78723         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78724         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78725
78726         * lib/xalloc-die.c: Remove unused definition of N_.
78727
78728 2006-02-14  Jim Meyering  <jim@meyering.net>
78729
78730         Sync from coreutils.
78731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78732         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78733         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78734         double-quote uses of that variable, to accommodate the rare case in
78735         which getmntent is available in none of the libraries checked.  This
78736         happens at least on FreeBSD 5.0.
78737
78738 2006-02-13  Simon Josefsson  <jas@extundo.com>
78739
78740         * gnulib-tool (Usage): Fix --import, from
78741         karl@freefriends.org (Karl Berry).
78742
78743 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78744
78745         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78746
78747 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78748
78749         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78750         "autoupdate" on 2005-12-12.
78751
78752 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * modules/closeout (Depends-on): Remove atexit.
78755
78756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78759         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78760
78761 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78764         __EXTENSIONS__ if this causes compilation to fail.  Problem
78765         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78766         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78767
78768 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78771         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78773         All uses changed.
78774
78775 2006-01-26  Simon Josefsson  <jas@extundo.com>
78776
78777         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78778         prototype is visible on mingw32.
78779
78780         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78781         for mingw32.
78782
78783         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78784         mingw32).
78785
78786 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78789         attempt to open for write; this always fails, at least on POSIX
78790         hosts.  This reinstates the 2006-01-09 change, which was
78791         inadvertently removed.
78792
78793 2006-01-26  Bruno Haible  <bruno@clisp.org>
78794
78795         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78796         Reported by Paul Eggert.
78797
78798 2006-01-26  Bruno Haible  <bruno@clisp.org>
78799             Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * lib/stdbool_.h (_Bool)
78802         [(! (defined __cplusplus || defined __BEOS__)
78803           && !defined __GNUC__
78804           && !(defined __HP_cc || defined __xlc__
78805                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78806                || defined __sgi))]:
78807         #define to signed char in these cases too; this simplifies
78808         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78809         etc., separately) and makes it more conservative.
78810
78811 2006-01-25  Simon Josefsson  <jas@extundo.com>
78812
78813         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78814         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78815         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78816
78817 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78818
78819         * lib/argp-namefrob.h: Bugfix. Remove stray #
78820
78821 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78824         so that we test the test.
78825         Check for yet another HP-UX cc bug involving *bool |= bool.
78826
78827 2006-01-25  Karl Berry  <karl@gnu.org>
78828
78829         * config/srclist.txt (vasnprintf.c): sync lost.
78830
78831 2006-01-25  Jim Meyering  <jim@meyering.net>
78832
78833         Sync from the stable (b5) branch of coreutils:
78834
78835         * lib/fts.c (fts_children): Don't let close() clobber errno from
78836         failed fchdir().
78837
78838         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78839         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78840         a dangling symlink.  That can also happen at least for ELOOP.
78841         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78842         FYI, this bug predates the inclusion of fts.c in coreutils.
78843
78844         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78845         in their own block, so pre-c99 compilers don't object.
78846
78847         Avoid the double-free (first in fts_read, second in fts_close) that
78848         would occur when an `active' directory is made inaccessible (e.g.,
78849         via chmod a-x) during a traversal.
78850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78851         before returning.  Reproduce this failure by
78852         mkdir -p a/b; cd a; chmod a-x . b
78853         Reported by Stavros Passas.
78854
78855 2006-01-25  Jim Meyering  <jim@meyering.net>
78856
78857         * lib/fileblocks.c: Remove more useless parentheses.
78858         * lib/readutmp.h: Likewise.
78859
78860 2006-01-25  Bruno Haible  <bruno@clisp.org>
78861
78862         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78863         warnings.
78864         Reported by Paul Eggert.
78865
78866 2006-01-25  Bruno Haible  <bruno@clisp.org>
78867
78868         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78869         rid of a trap command. For Solaris sh.
78870         Reported by Mark D. Baushke <mdb@gnu.org>.
78871
78872 2006-01-24  Simon Josefsson  <jas@extundo.com>
78873
78874         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78875         Bruno.
78876
78877 2006-01-24  Karl Berry  <karl@gnu.org>
78878
78879         * config/srclist.txt (argp-namefrob.h): sync lost.
78880
78881 2006-01-24  Jim Meyering  <jim@meyering.net>
78882
78883         * modules/openat (Files): Add lib/intprops.h.
78884         From Mark D. Baushke.
78885
78886 2006-01-24  Jim Meyering  <jim@meyering.net>
78887
78888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78889         Reported by Mark D. Baushke.
78890
78891 2006-01-24  Jim Meyering  <jim@meyering.net>
78892
78893         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78894
78895 2006-01-24  Bruno Haible  <bruno@clisp.org>
78896
78897         * modules/strnlen (Maintainer): Change from glibc to all.
78898
78899 2006-01-24  Bruno Haible  <bruno@clisp.org>
78900
78901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78902         Patch by Paul Eggert.
78903
78904 2006-01-24  Bruno Haible  <bruno@clisp.org>
78905
78906         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78907         already has it.
78908         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78909         2005-11-26.
78910
78911         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78912         'signed char' to avoid problems with the built-in _Bool type.
78913         Reported by Paul Eggert on 2005-11-26.
78914
78915 2006-01-24  Bruno Haible  <bruno@clisp.org>
78916
78917         * gnulib-tool (func_import): Avoid constructing complicated sed
78918         expressions inside backquote.
78919         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78920
78921 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78922
78923         These changes imported from libc.
78924         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78925         test and two separate function calls.
78926         * lib/strndup.c (__strndup): Add libc_hidden_def.
78927
78928 2006-01-23  Simon Josefsson  <jas@extundo.com>
78929
78930         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78931         Remove the test_*_SOURCES variable: automake infers it by default.
78932         * modules/tls-tests: Likewise.
78933
78934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         Work around porting bugs reported by Dieter in
78937         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78938         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78939         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78940         Include "getopt.h" first, to check interface.
78941         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78942         !HAVE_DECL_GETENV.
78943         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78944         (__strndup): Revert to K&R-style function dfns, the glibc style.
78945         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78946         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78947         Include strnlen.h first, to get prototype properly.
78948         (strnlen): Renamed from __strnlen.
78949         Remove weak alias.
78950
78951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78954
78955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * config/srclist.txt: Adjust to reflect glibc reorganization.
78958         This affects only comments.
78959
78960 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78961
78962          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78963          Reported by Bruce Korb <bkorb@gnu.org>.
78964
78965 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78968         to pacify gcc -Wswitch-default.
78969
78970 2006-01-22  Bruno Haible  <bruno@clisp.org>
78971
78972         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78973         temporary buffer for sprintf, take into account the precision also
78974         for 'd', 'i', 'u', 'o', 'x', 'X'.
78975
78976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78977
78978         * modules/argp-tests: New module
78979         * tests/test-argp.c: New file
78980         * tests/test-argp-2.sh: New file
78981
78982 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78983
78984         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78985         (__argp_base_name): Removed
78986         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78987         typo.
78988         (__argp_base_name): Provide macro definition or extern declaration
78989         depending on the configuration
78990
78991 2006-01-20  Simon Josefsson  <jas@extundo.com>
78992
78993         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78994
78995 2006-01-20  Simon Josefsson  <jas@extundo.com>
78996
78997         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78998
78999 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79002         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79003         Suggested by Bruno Haible.
79004
79005 2006-01-20  Karl Berry  <karl@gnu.org>
79006
79007         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79008         until changes propagate, I guess.
79009
79010 2006-01-19  Simon Josefsson  <jas@extundo.com>
79011
79012         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79013
79014 2006-01-19  Simon Josefsson  <jas@extundo.com>
79015
79016         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79017
79018 2006-01-19  Simon Josefsson  <jas@extundo.com>
79019
79020         * gnulib-tool: Set check_PROGRAMS.
79021
79022         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79023         modules/des-tests, modules/gc-arcfour-tests,
79024         modules/gc-arctwo-tests, modules/gc-des-tests,
79025         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79026         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79027         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79028         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79029         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79030         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79031         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79032         test_*_SOURCES.
79033
79034 2006-01-18  Simon Josefsson  <jas@extundo.com>
79035
79036         * modules/socklen (Depends-on): Depend on sys_socket.
79037
79038 2006-01-18  Simon Josefsson  <jas@extundo.com>
79039
79040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79041         modules/des-tests, modules/gc-arcfour-tests,
79042         modules/gc-arctwo-tests, modules/gc-des-tests,
79043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79048         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79049         $(EXEEXT) to automake TESTS variable, for mingw32.
79050
79051 2006-01-17  Simon Josefsson  <jas@extundo.com>
79052
79053         * modules/socklen (Include): Need sys/socket.h.
79054
79055 2006-01-17  Bruno Haible  <bruno@clisp.org>
79056
79057         * modules/ssize_t (Include): Add <sys/types.h>.
79058
79059 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79062         it's not portable and it doesn't work with cross-compiles.
79063         Problem reported by Bruno Haible.  Fix missing-$ typo in
79064         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79065         -zignore from being used with Sun's C compiler.
79066
79067 2006-01-12  Simon Josefsson  <jas@extundo.com>
79068
79069         * lib/base64.c: Fix warning, reported by Bruno Haible
79070         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79071
79072 2006-01-12  Bruno Haible  <bruno@clisp.org>
79073
79074         * modules/ldd: New file.
79075         * build-aux/ldd.sh.in: New file.
79076         * MODULES.html.sh (Support for building libraries and executables): Add
79077         ldd.
79078
79079 2006-01-12  Bruno Haible  <bruno@clisp.org>
79080
79081         * m4/ldd.m4: New file.
79082
79083 2006-01-12  Bruno Haible  <bruno@clisp.org>
79084
79085         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79086         endless loop while replacing $auxdir with build-aux.
79087
79088 2006-01-11  Simon Josefsson  <jas@extundo.com>
79089
79090         * lib/stdint_.h (SIZE_MAX): Add missing (.
79091
79092 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         Sync from coreutils.
79095         * lib/md5.c: Fix commentary typos.
79096         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79097         * lib/md5.h (__attribute__): Remove; unused.
79098         * lib/sha1.c: Fix commentary to match md5 better.
79099         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79100         so that we don't need to worry about alignment.  All uses changed.
79101         This merges the 2005-10-28 md5 change into sha1.
79102
79103 2006-01-11  Jim Meyering  <jim@meyering.net>
79104
79105         Sync from coreutils.
79106         * lib/md5.c (OP): Fix spacing.
79107
79108 2006-01-11  Bruno Haible  <bruno@clisp.org>
79109
79110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79111         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79112         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79113
79114 2006-01-11  Bruno Haible  <bruno@clisp.org>
79115
79116         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79117         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79118         the "early" section as well.
79119
79120 2006-01-11  Bruno Haible  <bruno@clisp.org>
79121
79122         Avoid "ar: no archive members specified" error on MacOS X.
79123         * gnulib-tool (func_modules_add_dummy): New function.
79124         (func_import, func_create_testdir): Invoke it.
79125
79126 2006-01-11  Bruno Haible  <bruno@clisp.org>
79127
79128         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79129         with $auxdir in AC_CONFIG_FILES statements.
79130
79131 2006-01-11  Bruno Haible  <bruno@clisp.org>
79132
79133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79134         Initialize also noinst_HEADERS to empty.
79135
79136 2006-01-11  Bruno Haible  <bruno@clisp.org>
79137
79138         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79139         variables.
79140         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79141         autoreconf.
79142
79143 2006-01-11  Bruno Haible  <bruno@clisp.org>
79144
79145         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79146         overridable by the user.
79147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79148
79149 2006-01-10  Simon Josefsson  <jas@extundo.com>
79150
79151         * modules/sys_socket: New file.
79152
79153 2006-01-10  Simon Josefsson  <jas@extundo.com>
79154
79155         * m4/sys_socket_h.m4: New file.
79156
79157 2006-01-10  Simon Josefsson  <jas@extundo.com>
79158
79159         * lib/socket_.h: New file.
79160
79161 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79162
79163         * modules/readutmp (Maintainer): Add myself.
79164
79165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79168         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79169         People who are still concerned with buggy memcmp implementations
79170         can invoke gl_FUNC_MEMCMP themselves.
79171
79172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * lib/regex_internal.h (BITSET_WORD_BITS):
79175         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79176         preprocessor mishandles large unsigned values as if they were signed.
79177         Problem reported by Claudio Fontana in
79178         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79179
79180 2006-01-10  Jim Meyering  <jim@meyering.net>
79181
79182         Avoid the double-free (first in fts_read, second in fts_close) that
79183         would occur when an `active' directory is made inaccessible (e.g.,
79184         via chmod a-x) during a traversal.
79185         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79186         before returning.  Reproduce this failure by
79187         mkdir -p a/b; cd a; chmod a-x . b
79188         Reported by Stavros Passas.
79189
79190         Sync from coreutils.
79191         * lib/sha1.c: Tweak grammar in a comment.
79192
79193 2006-01-10  Jim Meyering  <jim@meyering.net>
79194
79195         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79196         Patch by Joerg Sonnenberger.
79197
79198 2006-01-10  Bruno Haible  <bruno@clisp.org>
79199
79200         * modules/readutmp: Depend on module free.
79201         * modules/strtok_r: Depend on module restrict.
79202
79203 2006-01-10  Bruno Haible  <bruno@clisp.org>
79204
79205         * modules/gettext (configure.ac): Add an invocation of
79206         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79207
79208 2006-01-10  Bruno Haible  <bruno@clisp.org>
79209
79210         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79211         Reported by Werner Lemberg <wl@gnu.org>.
79212
79213 2006-01-10  Bruno Haible  <bruno@clisp.org>
79214
79215         * lib/localcharset.c: Update from GNU gettext.
79216
79217 2006-01-10  Bruno Haible  <bruno@clisp.org>
79218
79219         * lib/argp.h (__const): Remove macro. Use const instead.
79220         * lib/argp-fmtstream.h (__const): Likewise.
79221         * lib/glob_.h (__const): Remove macro.
79222         * lib/glob-libc.h: Use const instead of __const.
79223
79224 2006-01-10  Bruno Haible  <bruno@clisp.org>
79225
79226         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79227         variable.
79228         Needed to avoid an automake error regarding the 'gettext' module.
79229
79230 2006-01-09  Simon Josefsson  <jas@extundo.com>
79231
79232         * modules/inet_ntop (Depends-on): Add restrict.
79233
79234 2006-01-09  Simon Josefsson  <jas@extundo.com>
79235
79236         * modules/gc-rijndael-tests (License): Put under LGPL.
79237
79238         * modules/gc-des-tests (License): Likewise.
79239
79240         * modules/gc-arcfour-tests (License): Likewise.
79241
79242         * modules/gc-arctwo-tests (License): Likewise.
79243
79244         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79245
79246         * modules/gc-hmac-sha1-tests (Files): Likewise.
79247
79248         * modules/gc-hmac-md5-tests (License): Likewise.
79249
79250         * modules/gc-sha1-tests (License): Likewise.
79251
79252         * modules/gc-md5-tests (License): Likewise.
79253
79254         * modules/gc-md4-tests (License): Likewise.
79255
79256         * modules/gc-md2-tests (License): Likewise.
79257
79258         * modules/gc-tests (License): Likewise.
79259
79260         * modules/des-tests (License): Likewise.
79261
79262         * modules/md4-tests (License): Likewise.
79263
79264         * modules/md2-tests (License): Likewise.
79265
79266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         Sync from coreutils:
79269
79270         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79271         * modules/lib-ignore: New file.
79272         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79273         chdir-safer.m4, lchmod.m4.
79274         * modules/openat: Add mkdirat.c, openat-priv.h.
79275
79276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         Sync from coreutils.
79279         * m4/lib-ignore.m4: New file.
79280         * m4/lchmod.m4: New file.
79281
79282 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         Sync from coreutils.
79285         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79286         for write access: POSIX says that must fail.
79287         * lib/fts.c (diropen): Likewise.
79288         * lib/save-cwd.c (save_cwd): Likewise.
79289         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79290         well, for minor improvements on hosts that lack O_DIRECTORY.
79291         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79292         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79293         Fall back on chown if open failed with EACCES.
79294
79295         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79296         Report an error at compile-time if only a 1-second nominal clock
79297         resolution is found.
79298
79299         * lib/lchmod.h: New file.
79300         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79301         (make_dir_parents): Use lchown rather than chown, and
79302         lchmod rather than chmod.
79303
79304         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79305         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79306         "proc" reported by n0dalus.
79307
79308         * lib/mountlist.c: Include <limits.h>.
79309         (dev_from_mount_options)
79310         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79311         New function.  It no longer assumes "dev=" has the System V meaning
79312         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79313         (read_file_system_list)
79314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79315         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79316         dev= in that case.
79317
79318         * lib/posixtm.h (PDS_PRE_2000): New macro.
79319         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79320         allow_century.  All usages changed.  Reject dates outside the range
79321         1969-1999 if PDS_PRE_2000 is used.
79322
79323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         Sync from coreutils.
79326         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79327         (Time of day items): Mention the possibility of leap seconds.
79328         Problem reported by Dr. David Alan Gilbert.
79329
79330 2006-01-09  Jim Meyering  <jim@meyering.net>
79331
79332         Sync from coreutils.
79333
79334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79335
79336         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79337
79338         * lib/modechange.c (mode_compile): Reject an invalid mode string
79339         that starts with an octal digit.  From Andreas Gruenbacher.
79340
79341         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79342         and dup to open_safer and dup_safer, respectively.
79343         (openat_permissive): Fix typo in comment.
79344
79345         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79346         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79347         (_): Remove; no longer needed.
79348         (openat): Renamed from rpl_openat; no need for rpl_openat
79349         since openat.h renames openat for us.
79350         Replace most of the body with a call to openat_permissive,
79351         to avoid duplicate code.
79352         Port to (probably hypothetical) environments were mode_t is
79353         wider than int.
79354         (openat_permissive): Require mode arg, so that we can check
79355         types better.  Put it just after flags.  Change cwd failure
79356         indicator from pointer-to-bool to pointer-to-errno-value.
79357         All callers changed.
79358         Invoke openat_save_fail and/or openat_restore_fail if
79359         cwd_errno is null, so that openat can call us.
79360         (openat_permissive, fdopendir, fstatat, unlinkat):
79361         Simplify errno handling to avoid some duplicate code,
79362         as it's OK to set errno on success.
79363         * lib/openat.h: Revamp code so that function macros depend on
79364         __OPENAT_PREFIX only, not also on AT_FDCWD.
79365         (openat_ro): Remove.  Caller changed to use openat_permissive.
79366         (openat_permissive): Now a macro, if not a function.
79367         (openat_restore_fail, openat_save_fail): Now always functions,
79368         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79369
79370         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79371         and openat.c.
79372         * lib/mkdirat.c: Include openat-priv.h.
79373         Remove definitions of macros defined therein.
79374         * lib/openat.c: Likewise.
79375
79376         * lib/mkdirat.c (mkdirat): New file and function.
79377         * lib/openat.h (mkdirat): Declare.
79378
79379         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79380
79381         * lib/openat.h (openat_permissive): Declare.
79382         (openat_ro): Define.
79383
79384         * lib/openat.c (EXPECTED_ERRNO): New macro.
79385         (openat_permissive): New function -- used in remove.c rewrite.
79386         (all functions): Set errno just before returning, only if there
79387         was an actual failure.
79388         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79389
79390         Emulate openat-family functions using Linux's procfs, if possible.
79391         Idea and some code based on Ulrich Drepper's glibc changes.
79392
79393         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79394         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79395         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79396         before falling back on save_cwd and restore_cwd.
79397         (fdopendir, fstatat, unlinkat): Likewise.
79398
79399         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79400         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79401
79402         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79403         as second argument to va_arg.  Otherwise, some versions of gcc
79404         warn that `if this code is reached, the program will abort'.
79405
79406 2006-01-09  Jim Meyering  <jim@meyering.net>
79407
79408         Sync from coreutils.
79409         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79410         Require openat-priv.h.
79411
79412 2006-01-09  Bruno Haible  <bruno@clisp.org>
79413
79414         * modules/strnlen (Include): Use strnlen.h.
79415
79416 2006-01-09  Bruno Haible  <bruno@clisp.org>
79417
79418         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79419
79420 2006-01-09  Bruno Haible  <bruno@clisp.org>
79421
79422         * lib/sysexit_.h (EX_OK): New macro.
79423         Suggested by Martin Lambers <marlam@marlam.de>.
79424
79425 2006-01-09  Bruno Haible  <bruno@clisp.org>
79426
79427         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79428         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79429
79430 2006-01-09  Bruno Haible  <bruno@clisp.org>
79431
79432         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79433         numbers.
79434
79435 2006-01-09  Bruno Haible  <bruno@clisp.org>
79436
79437         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79438         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79439         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79440         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79441
79442 2006-01-09  Bruno Haible  <bruno@clisp.org>
79443
79444         * build-aux/javacomp.sh.in: New file, moved from lib/.
79445         * modules/javacomp-script (Files): Update.
79446         (configure.ac): Add AC_CONFIG_FILES invocation.
79447         (EXTRA_DIST): Remove variable.
79448
79449         * build-aux/javaexec.sh.in: New file, moved from lib/.
79450         * modules/javaexec (Files): Update.
79451         (configure.ac): Add AC_CONFIG_FILES invocation.
79452         (EXTRA_DIST): Remove javaexec.sh.in.
79453
79454         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79455         * modules/csharpcomp-script (Files): Update.
79456         (configure.ac): Add AC_CONFIG_FILES invocation.
79457         (EXTRA_DIST): Remove variable.
79458
79459         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79460         * modules/csharpexec (Files): Update.
79461         (configure.ac): Add AC_CONFIG_FILES invocation.
79462         (EXTRA_DIST): Remove csharpexec.sh.in.
79463
79464 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79465
79466         Sync from coreutils.
79467
79468         Add POSIX ACL support
79469         * lib/acl.h (copy_acl, set_acl): Add declarations.
79470         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79471         systems other than Linux.
79472         (chmod_or_fchmod): New function: use fchmod when possible,
79473         and chmod otherwise.
79474         (file_has_acl): Add a POSIX ACL implementation, with a
79475         Linux-specific subcase.
79476         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79477         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79478         acls are unsupported.
79479         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79480         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79481         are unsupported.
79482
79483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79484
79485         Sync from coreutils.
79486         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79487
79488 2006-01-07  Bruno Haible  <bruno@clisp.org>
79489
79490         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79491         gl_EARLY.
79492
79493 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79496         Problem reported for Mingw by Mark Junker.
79497
79498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * README: Gnulib normally doesn't generate a tarball.
79501
79502 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79505         long int, not int, for nanosecond counts, so that people who are
79506         used to POSIX struct timespec won't be surprised.  Reported by Jim
79507         Meyering.
79508
79509 2005-12-28  Bruno Haible  <bruno@clisp.org>
79510
79511         * build-aux/config.rpath: Update from GNU gettext.
79512
79513 2005-12-16  Jim Meyering  <jim@meyering.net>
79514
79515         * modules/fprintftime: New module.
79516         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79517
79518 2005-12-16  Jim Meyering  <jim@meyering.net>
79519
79520         * m4/fprintftime.m4: New file.
79521
79522 2005-12-16  Jim Meyering  <jim@meyering.net>
79523
79524         * lib/fprintftime.c, lib/fprintftime.h: New files.
79525
79526 2005-12-15  Simon Josefsson  <jas@extundo.com>
79527
79528         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79529         new m4/socklen.m4.
79530
79531 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79532
79533         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79534         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79535
79536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79537
79538         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79539         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79540         struct uparams is valid. Fall back to the default values if it is
79541         not.
79542
79543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79544
79545         * modules/argp (Files): Add argp-pin.c
79546         (Depends-on): dirname
79547         (lib_SOURCES): Add argp-pin.c
79548
79549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79550
79551         * m4/argp.m4:  Check if program_invocation_name and
79552         program_invocation_short_name are declared and define appropriate
79553         macros if they are not.
79554
79555 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79556
79557         * lib/argp-help.c (__argp_base_name): New function
79558         (__argp_short_program_name): Rewrite using __argp_base_name
79559         * lib/argp-namefrob.h: Define program_invocation_name and
79560         program_invocation_short_name if requested
79561         (__argp_base_name): Add prototype
79562         * lib/argp-parse.c (argp_def): Use gettext wrappers
79563         (argp_default_parser): Use __argp_base_name
79564         * lib/argp-pin.c: New file. Defines program_invocation_name and
79565         program_invocation_short_name on systems that lack them.
79566
79567 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79570         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79571         porting problem reported by Georg Schwarz in
79572         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79573
79574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79578         porting problem reported by Georg Schwarz in
79579         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79580
79581 2005-12-05  Bruno Haible  <bruno@clisp.org>
79582
79583         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79584         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79585         Reported by Mark Junker <mjscod@gmx.de>.
79586
79587 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79590         Use implementation from Albert Chin, with some
79591         comments/corrections by Stepan Kasal and myself.
79592
79593 2005-12-02  Bruno Haible  <bruno@clisp.org>
79594
79595         * gnulib-tool (func_import): Accept GPLed build tool modules when
79596         --lgpl is given.
79597         * modules/csharpcomp-script: New file.
79598         * modules/csharpcomp: Depend on it.
79599         * modules/javacomp-script: New file.
79600         * modules/javacomp: Depend on it.
79601         Suggested by Simon Josefsson.
79602
79603 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79606         statement, to work around an HP-UX 10.20 compiler bug reported by
79607         Peter O'Gorman.
79608
79609 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         * modules/savedir (Depends-on): Add openat.
79612
79613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79616         (uintmax_t) [defined uintmax_t]: Do not declare.
79617         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79618         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79619         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79620         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79621         sake of portability to weird hosts that C allows (though we don't
79622         know of any practical examples).
79623
79624         * lib/savedir.h (fdsavedir): New decl.
79625         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79626         contains most of the former guts of savedir.
79627         (savedir): Use savedirstream.
79628         Include "openat.h".
79629
79630 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * modules/obstack (Files): Add m4/ulonglong.m4.
79633         Problem reported by Davide Angelocola.
79634
79635 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79638         coreutils no longer futzes with rounding modes.
79639
79640 2005-11-14  Jim Meyering  <jim@meyering.net>
79641
79642         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79643         replacement of mkstemp.
79644
79645 2005-11-10  Simon Josefsson  <jas@extundo.com>
79646
79647         * lib/readline.c: Remove EOL.
79648
79649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * modules/gethrxtime (Depends-on): Add gettime.
79652
79653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79656         or gettimeofday; no longer needed.
79657
79658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79661         time business.
79662         (gethrxtime) [! (HAVE_NANOUPTIME
79663         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79664         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79665         our own approximation.
79666
79667 2005-11-08  Eric Blake  <ebb9@byu.net>
79668
79669         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79670
79671 2005-11-08  Eric Blake  <ebb9@byu.net>
79672
79673         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79674
79675 2005-11-04  Bruno Haible  <bruno@clisp.org>
79676
79677         * gnulib-tool: Implement --update mode.
79678
79679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         Fix porting problem reported by Theodoros V. Kalamatianos.
79682         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79683         Don't assume that futimes failing means we must fail.
79684
79685 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79688         variables to suggest the intended function of the PATH_MAX check.
79689
79690 2005-10-30  Kean Johnston  <jkj@sco.com>
79691
79692         Trivial changes to support SCO systems.
79693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79694         as PATH_MAX.
79695         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79696         where __ptr is null when no I/O is pending.
79697
79698 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79701         leave errno alone.  Problem reported by Dmitry V. Levin.
79702
79703 2005-10-28  Simon Josefsson  <jas@extundo.com>
79704
79705         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79706         Test more.
79707
79708         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79709
79710         * modules/md2, modules/md2-tests: New files.
79711
79712 2005-10-28  Simon Josefsson  <jas@extundo.com>
79713
79714         * m4/inet_ntop.m4: More tests.
79715
79716         * m4/gc-md2.m4, md2.m4: New file.
79717
79718 2005-10-28  Simon Josefsson  <jas@extundo.com>
79719
79720         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79721         "restrict" keywords, as per POSIX.  Protect the function
79722         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79723         Don't use K&R prototypes.  Check the sprintf return values.
79724         Re-define EAFNOSUPPORT if not present.  Indent.
79725
79726         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79727         suggested by Bruno Haible <bruno@clisp.org>.
79728
79729         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79730
79731         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79732
79733         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79734         libgcrypt).
79735
79736         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79737
79738         * lib/md2.h, lib/md2.c: New files.
79739
79740 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79743         errno alone.  Problem reported by Frederic Jolliton.
79744
79745 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * modules/verify (License): Change from GPL to LGPL.  This is a
79748         tiny module and there are apparently near-equivalents that are
79749         under the BSD license.
79750
79751 2005-10-24  Simon Josefsson  <jas@extundo.com>
79752
79753         * modules/sha1: Relicense to LGPL.
79754
79755 2005-10-24  Simon Josefsson  <jas@extundo.com>
79756
79757         * lib/md4.h: Shrink buffer size, now that we changed the type.
79758
79759 2005-10-23  Simon Josefsson  <jas@extundo.com>
79760
79761         * gnulib-tool (func_import): Fix --tests-base.
79762
79763 2005-10-22  Simon Josefsson  <jas@extundo.com>
79764
79765         * modules/arcfour (Depends-on): Need stdint.
79766
79767 2005-10-22  Simon Josefsson  <jas@extundo.com>
79768
79769         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79770         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79771
79772 2005-10-22  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79775         suggested by Bruno Haible <bruno@clisp.org>.
79776
79777 2005-10-22  Simon Josefsson  <jas@extundo.com>
79778
79779         * lib/crc.h: Include stddef.h, for size_t.
79780
79781 2005-10-22  Simon Josefsson  <jas@extundo.com>
79782
79783         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79784         arcfour_context struct (simplify test vector testing in GNU
79785         Shishi).
79786
79787 2005-10-21  Simon Josefsson  <jas@extundo.com>
79788
79789         * modules/des, modules/des-tests: New files.
79790
79791         * modules/gc-des, modules/gc-des-tests: New files.
79792
79793         * tests/test-des.c, tests/test-gc-des.c: New file.
79794
79795 2005-10-21  Simon Josefsson  <jas@extundo.com>
79796
79797         * modules/arctwo, modules/arctwo-tests: New files.
79798
79799         * tests/test-arctwo.c: New file.
79800
79801         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79802
79803         * tests/test-gc-arctwo.c: New file.
79804
79805 2005-10-21  Simon Josefsson  <jas@extundo.com>
79806
79807         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79808         Bruno Haible <bruno@clisp.org>.
79809
79810         * m4/gc-des.m4: New file.
79811
79812 2005-10-21  Simon Josefsson  <jas@extundo.com>
79813
79814         * m4/arctwo.m4: New file.
79815
79816         * m4/gc-arctwo.m4: New file.
79817
79818 2005-10-21  Simon Josefsson  <jas@extundo.com>
79819
79820         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79821         block.
79822
79823 2005-10-21  Simon Josefsson  <jas@extundo.com>
79824
79825         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79826         <bruno@clisp.org>.
79827
79828         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79829
79830         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79831         Bruno Haible <bruno@clisp.org>.
79832
79833         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79834         <bruno@clisp.org>.
79835
79836 2005-10-21  Simon Josefsson  <jas@extundo.com>
79837
79838         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79839
79840 2005-10-21  Simon Josefsson  <jas@extundo.com>
79841
79842         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79843
79844 2005-10-21  Simon Josefsson  <jas@extundo.com>
79845
79846         * lib/des.h, lib/des.c: New files.
79847
79848         * lib/gc-gnulib.c: Support DES.c
79849
79850 2005-10-21  Simon Josefsson  <jas@extundo.com>
79851
79852         * lib/arctwo.h, lib/arctwo.c: New files.
79853
79854         * lib/gc-gnulib.c: Support ARCTWO.
79855
79856 2005-10-21  Simon Josefsson  <jas@extundo.com>
79857
79858         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79859         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79860
79861 2005-10-21  Simon Josefsson  <jas@extundo.com>
79862
79863         * gnulib-tool (func_import, func_create_testdir): Define automake
79864         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79865         Makefile.am snippet),
79866         suggested by Bruno Haible <bruno@clisp.org>.
79867
79868         * modules/gc (Makefile.am): Use it.
79869
79870 2005-10-21  Bruno Haible  <bruno@clisp.org>
79871
79872         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79873         patch.
79874
79875 2005-10-19  Simon Josefsson  <jas@extundo.com>
79876
79877         * tests/test-gc-rijndael.c: New file.
79878
79879         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79880
79881 2005-10-19  Simon Josefsson  <jas@extundo.com>
79882
79883         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79884         interface too.
79885
79886 2005-10-19  Simon Josefsson  <jas@extundo.com>
79887
79888         * tests/test-gc-arcfour.c: New file.
79889
79890         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79891
79892 2005-10-19  Simon Josefsson  <jas@extundo.com>
79893
79894         * modules/gc-md4, modules/gc-md4-tests: New file.
79895
79896         * tests/test-gc-md4.c: New file.
79897
79898 2005-10-19  Simon Josefsson  <jas@extundo.com>
79899
79900         * m4/gc-md4.m4: New file.
79901
79902 2005-10-19  Simon Josefsson  <jas@extundo.com>
79903
79904         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79905         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79906         <kasal@ucw.cz>.
79907
79908 2005-10-19  Simon Josefsson  <jas@extundo.com>
79909
79910         * m4/gc-arcfour.m4: New file.
79911
79912         * m4/gc-rijndael.m4: New file.
79913
79914 2005-10-19  Simon Josefsson  <jas@extundo.com>
79915
79916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79917
79918 2005-10-19  Simon Josefsson  <jas@extundo.com>
79919
79920         * lib/gc-gnulib.c: Support ARCFOUR.
79921
79922 2005-10-19  Simon Josefsson  <jas@extundo.com>
79923
79924         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79925         support.
79926
79927         * lib/gc.h: Add ECB enum type.
79928
79929         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79930
79931 2005-10-18  Simon Josefsson  <jas@extundo.com>
79932
79933         * tests/test-md5.c: New file.
79934
79935         * modules/md5-tests: New file.
79936
79937 2005-10-18  Simon Josefsson  <jas@extundo.com>
79938
79939         * tests/test-md4.c: New file.
79940
79941         * modules/md4, modules/md4-tests: New files.
79942
79943 2005-10-18  Simon Josefsson  <jas@extundo.com>
79944
79945         * m4/md4.m4: New file.
79946
79947 2005-10-18  Simon Josefsson  <jas@extundo.com>
79948
79949         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79950
79951 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79952
79953         * gnulib-tool (func_create_testdir): Omit the second check whether
79954         BUILT_SOURCES in nonempty.
79955
79956 2005-10-17  Simon Josefsson  <jas@extundo.com>
79957
79958         * tests/test-rijndael.c: New file.
79959
79960 2005-10-17  Simon Josefsson  <jas@extundo.com>
79961
79962         * modules/sha1: Depend on stdint instead of md5.
79963
79964         * modules/md5: Depend on stdint, remove uint32_t.
79965
79966 2005-10-17  Simon Josefsson  <jas@extundo.com>
79967
79968         * modules/gc-sha1-tests: New file.
79969
79970         * tests/test-gc-sha1.c: New file.
79971
79972 2005-10-17  Simon Josefsson  <jas@extundo.com>
79973
79974         * m4/md5.m4: Remove call to uint32_t.m4.
79975
79976 2005-10-17  Simon Josefsson  <jas@extundo.com>
79977
79978         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79979
79980         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79981         md5.h.
79982
79983         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79984
79985         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79986
79987 2005-10-17  Simon Josefsson  <jas@extundo.com>
79988
79989         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79990
79991 2005-10-17  Simon Josefsson  <jas@extundo.com>
79992
79993         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79994
79995 2005-10-17  Simon Josefsson  <jas@extundo.com>
79996
79997         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79998
79999         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80000
80001 2005-10-17  Bruno Haible  <bruno@clisp.org>
80002
80003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80004         that it can also be used in a test.
80005
80006 2005-10-16  Bruno Haible  <bruno@clisp.org>
80007
80008         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80009         TESTS_ENVIRONMENT, so that individual tests can augment it.
80010
80011         * gnulib-tool (func_create_testdir): Use an intermediate target for
80012         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80013         macros, like $(ALLOCA_H), which cannot be passed through the command
80014         line.
80015
80016 2005-10-15  Simon Josefsson  <jas@extundo.com>
80017
80018         * modules/rijndael-tests: New file.
80019
80020         * modules/rijndael: New file.
80021
80022 2005-10-15  Simon Josefsson  <jas@extundo.com>
80023
80024         * m4/rijndael.m4: New file.
80025
80026 2005-10-15  Simon Josefsson  <jas@extundo.com>
80027
80028         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80029
80030         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80031
80032 2005-10-14  Simon Josefsson  <jas@extundo.com>
80033
80034         * tests/test-arcfour.c: New file.
80035
80036         * modules/arcfour, modules/arcfour-tests: New files.
80037
80038 2005-10-14  Simon Josefsson  <jas@extundo.com>
80039
80040         * m4/arcfour.m4: New file.
80041
80042 2005-10-14  Simon Josefsson  <jas@extundo.com>
80043
80044         * lib/arcfour.h, lib/arcfour.c: New files.
80045
80046 2005-10-14  Roland McGrath  <roland@redhat.com>
80047
80048         Import from libc.  [BZ #1331]
80049         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80050         macro argument.
80051         Reported by Matej Vela <vela@debian.org>.
80052
80053 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80056         include <wchar.h>; no longer needed.
80057
80058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80061
80062 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80063         and  Ulrich Drepper  <drepper@redhat.com>
80064
80065         Import from libc.
80066         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80067         instead of inline stream orientation test and two separate
80068         function calls.  Pay no attention to USE_IN_LIBIO.
80069
80070 2005-10-13  Simon Josefsson  <jas@extundo.com>
80071
80072         * modules/gc-hmac-md5-tests: New file.
80073
80074         * tests/test-gc-hmac-sha1.c: New file.
80075
80076         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80077
80078         * modules/gc-hmac-md5-tests: New file.
80079
80080         * tests/test-gc-md5.c: New file.
80081
80082         * modules/gc-md5-tests: New file.
80083
80084 2005-10-13  Simon Josefsson  <jas@extundo.com>
80085
80086         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80087         Move memory allocation outside of loop.
80088
80089 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80092         intermediate directory is in a read-only file system.  Problem
80093         reported by Eric Blake.
80094
80095 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80096
80097         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80098
80099 2005-10-12  Simon Josefsson  <jas@extundo.com>
80100
80101         * tests/test-hmac-sha1.c: New file.
80102
80103         * modules/hmac-sha1-tests: New file.
80104
80105         * modules/hmac-sha1: New file.
80106
80107 2005-10-12  Simon Josefsson  <jas@extundo.com>
80108
80109         * modules/gc-sha1: New file.
80110
80111 2005-10-12  Simon Josefsson  <jas@extundo.com>
80112
80113         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80114
80115         * tests/test-gc-pbkdf2-sha1.c: New file.
80116
80117 2005-10-12  Simon Josefsson  <jas@extundo.com>
80118
80119         * modules/gc-md5, modules/gc-hmac-md5: New files.
80120
80121         * modules/gc (Files): Remove md5, memxor and hmac files.
80122
80123 2005-10-12  Simon Josefsson  <jas@extundo.com>
80124
80125         * m4/gc-pbkdf2-sha1.m4: New file.
80126
80127         * m4/gc-hmac-sha1.m4: New file.
80128
80129         * m4/gc-sha1: New file.
80130
80131         * m4/hmac-sha1.m4: New file.
80132
80133 2005-10-12  Simon Josefsson  <jas@extundo.com>
80134
80135         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80136
80137         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80138
80139 2005-10-12  Simon Josefsson  <jas@extundo.com>
80140
80141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80142         suggested by Bruno Haible <bruno@clisp.org>.
80143
80144 2005-10-12  Simon Josefsson  <jas@extundo.com>
80145
80146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80147
80148 2005-10-12  Simon Josefsson  <jas@extundo.com>
80149
80150         * lib/gc-pbkdf2-sha1.c: New file.
80151
80152         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80153
80154 2005-10-12  Simon Josefsson  <jas@extundo.com>
80155
80156         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80157
80158         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80159
80160 2005-10-12  Simon Josefsson  <jas@extundo.com>
80161
80162         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80163         GC_USE_HMAC_MD5, respectively.
80164
80165         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80166         (gc_md5): Fix typo.
80167
80168         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80169
80170         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80171
80172         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80173
80174 2005-10-12  Bruno Haible  <bruno@clisp.org>
80175
80176         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80177         Reported by Stepan Kasal <kasal@ucw.cz>.
80178
80179 2005-10-11  Simon Josefsson  <jas@extundo.com>
80180
80181         * tests/test-crc.c: New file.
80182
80183         * modules/crc, modules/crc-tests: New files.
80184
80185 2005-10-11  Simon Josefsson  <jas@extundo.com>
80186
80187         * m4/crc.m4: New file.
80188
80189 2005-10-11  Simon Josefsson  <jas@extundo.com>
80190
80191         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80192
80193         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80194
80195         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80196
80197 2005-10-11  Simon Josefsson  <jas@extundo.com>
80198
80199         * lib/crc.h, lib/crc.c: New files.
80200
80201         * lib/gc.h (gc_hash_buffer): Add doc.
80202
80203 2005-10-11  Bruno Haible  <bruno@clisp.org>
80204
80205         * modules/c-strcasestr: New file.
80206         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80207
80208 2005-10-11  Bruno Haible  <bruno@clisp.org>
80209
80210         * modules/c-strcase: New file.
80211         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80212
80213 2005-10-11  Bruno Haible  <bruno@clisp.org>
80214
80215         * lib/strcasecmp.c: Include limits.h.
80216         (strcasecmp): Avoid integer overflow on exotic platforms.
80217         * lib/strncasecmp.c: Include limits.h.
80218         (strncasecmp): Avoid integer overflow on exotic platforms.
80219         Reported by Paul Eggert.
80220
80221 2005-10-11  Bruno Haible  <bruno@clisp.org>
80222
80223         * lib/c-strcasestr.h: New file, from GNU gettext.
80224         * lib/c-strcasestr.c: New file, from GNU gettext.
80225
80226 2005-10-11  Bruno Haible  <bruno@clisp.org>
80227
80228         * lib/c-strcase.h: New file, from GNU gettext.
80229         * lib/c-strcasecmp.c: New file, from GNU gettext.
80230         * lib/c-strncasecmp.c: New file, from GNU gettext.
80231
80232 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * modules/mempcpy (License): GPL -> LGPL.
80235         * modules/strchrnul (License): Likewise.
80236         * modules/sysexits (License): Likewise.
80237
80238 2005-10-08  Simon Josefsson  <jas@extundo.com>
80239
80240         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80241
80242 2005-10-07  Simon Josefsson  <jas@extundo.com>
80243
80244         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80245
80246 2005-10-06  Simon Josefsson  <jas@extundo.com>
80247
80248         * tests/test-hmac-md5.c: New file.
80249
80250         * modules/hmac-md5-tests: New file.
80251
80252         * modules/hmac-md5: New file.
80253
80254 2005-10-06  Simon Josefsson  <jas@extundo.com>
80255
80256         * m4/hmac-md5.m4: New file.
80257
80258         * m4/memxor.m4: Require gl_C_RESTRICT.
80259
80260 2005-10-06  Simon Josefsson  <jas@extundo.com>
80261
80262         * lib/memxor.c (memxor): Avoid casts and warnings.
80263
80264 2005-10-06  Simon Josefsson  <jas@extundo.com>
80265
80266         * lib/hmac-md5.c: New file.
80267
80268         * lib/hmac.h: New file.
80269
80270 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80273         promotes to int, not unsigned int, to catch the AIX 5.3
80274         compiler bug.
80275
80276 2005-10-05  Simon Josefsson  <jas@extundo.com>
80277
80278         * modules/memxor: New file.
80279
80280         * modules/iconv (Files): Move config.rpath to havelib, it is used
80281         there.
80282
80283         * modules/havelib (Files): Add config.rpath.
80284
80285 2005-10-05  Simon Josefsson  <jas@extundo.com>
80286
80287         * m4/memxor.m4: New file.
80288
80289 2005-10-05  Simon Josefsson  <jas@extundo.com>
80290
80291         * lib/memxor.c (memxor): Fix compiler error.
80292
80293         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80294         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80295
80296         * lib/memxor.h, lib/memxor.c: New files.
80297
80298         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80299         we assume all systems have it, suggested by Jim Meyering
80300         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80301         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80302         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80303         same reasons.
80304
80305 2005-10-05  Simon Josefsson  <jas@extundo.com>
80306
80307         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80308
80309 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80312         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80313         needed, since the source code now assumes these .h files.
80314
80315 2005-10-05  Derek Price  <derek@ximbiot.com>
80316
80317         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80318
80319 2005-10-05  Bruno Haible  <bruno@clisp.org>
80320
80321         * modules/stdint (License): Change to LGPL.
80322
80323 2005-10-04  Simon Josefsson  <jas@extundo.com>
80324
80325         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80326         D. Baushke" <mdb@gnu.org>.
80327
80328 2005-10-04  Bruno Haible  <bruno@clisp.org>
80329
80330         * lib/verify.h (verify_true): Provide alternative definition for C++.
80331
80332 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80335         (SSIZE_MAX): New macro, if not already defined.
80336         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80337         than 2 GiB.
80338
80339 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         Sync from coreutils.
80342         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80343         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80344         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80345         ULLONG_MAX doesn't work with 2.7.2.1.
80346
80347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80350         From Ben Pfaff.
80351
80352         * modules/exclude (Depends-on): Depend on verify.
80353         * modules/strtoimax (Depends-on): Likewise.
80354         * modules/utimecmp (Depends-on): Likewise.
80355
80356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * lib/exclude.c: Include verify.h.
80359         (verify): Remove.  All callers changed to use verify.h's version.
80360         * lib/strtoimax.c: Likewise.
80361         * lib/utimecmp.c: Likewis.e
80362
80363         Sync from coreutils.
80364         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80365         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80366         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80367         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80368         bother returning ENOSYS if settimeofday or stime fails; just let
80369         them return whatever errno they want to return.
80370         * lib/utimens.c: Include unistd.h, for dup2.
80371         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80372         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80373
80374 2005-10-02  Jim Meyering  <jim@meyering.net>
80375
80376         Sync from coreutils.
80377         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80378         from glibc-2.2.5 that fails for read-only files.
80379
80380 2005-10-02  Jim Meyering  <jim@meyering.net>
80381
80382         Sync from coreutils.
80383         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80384         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80385         `#if HAVE_CONFIG_H'.
80386         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80387         Remove AT_FDCWD test.
80388         Do not consume the fd unless successful.
80389         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80390         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80391         block, so that we don't even try to compile it if settimeofday is
80392         available.  This works around a compilation failure on OSF1 V5.1,
80393         due to stime requiring a `long int*' while tv_sec is `int'.
80394
80395 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80396
80397         Sync from coreutils.
80398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80399         against `yes', rather than just testing for nonempty.
80400
80401 2005-10-01  Simon Josefsson  <jas@extundo.com>
80402
80403         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80404         and Darwin.
80405
80406         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80407         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80408         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80409         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80410         Check if struct addrinfo is declared.
80411
80412 2005-10-01  Simon Josefsson  <jas@extundo.com>
80413
80414         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80415         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80416         AI_* and EAI_* definitions.  Protect function declarations.
80417
80418 2005-10-01  Jim Meyering  <jim@meyering.net>
80419
80420         Sync from coreutils.
80421
80422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80423         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80424         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80426         in the inet and nsl libraries.  Required on Solaris 5.7.
80427
80428 2005-10-01  Jim Meyering  <jim@meyering.net>
80429
80430         Sync from coreutils.
80431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80432         in the inet and nsl libraries.  Required on Solaris 5.7.
80433
80434 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80435
80436         * lib/getdelim.c (getdelim): Remove unused variables.
80437
80438 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80441         so that the code works even with ancient cpp.  Portability problem
80442         with GCC 2.7.2.1 reported by Thomas M.Ott.
80443
80444 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         * modules/regex (Depends-on): Add strcase.
80447
80448         * modules/gethostname (Licence): Change from GPL to LGPL, since
80449         gethostname.c is a trivial implementation of a standard library
80450         function.
80451         * modules/poll (License): Change from GPL to LGPL, since it's
80452         derived from LGPL code.
80453
80454 2005-09-27  Jim Meyering  <jim@meyering.net>
80455
80456         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80457         HAVE_CONFIG_H.
80458
80459         * lib/intprops.h (signed_type_or_expr__): Define.
80460         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80461         for unsigned types.
80462
80463 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * lib/verify.h (verify_expr): Remove, replacing with:
80466         (verify_true): New macro that returns true instead of void.
80467         (verify_type__): Remove.
80468         (verify): Use verify_true rather than verify_type__.
80469
80470 2005-09-26  Bruno Haible  <bruno@clisp.org>
80471
80472         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80473         is necessary.
80474         (lib_SOURCES): Remove mbchar.c.
80475         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80476         (Files): Add m4/mbrtowc.m4.
80477         * modules/mbiter: Likewise.
80478         * modules/mbuiter: Likewise.
80479
80480 2005-09-26  Bruno Haible  <bruno@clisp.org>
80481
80482         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80483         compile mbchar.c if they are not both present.
80484         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80485         * m4/mbiter.m4 (gl_MBITER): Likewise.
80486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80487         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80488         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80489
80490 2005-09-25  Jim Meyering  <jim@meyering.net>
80491
80492         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80493         also uses socklen_t.
80494
80495 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * lib/utimens.c (ENOSYS): Define if not already defined.
80498         (futimens): Support having a null PATH if the file descriptor
80499         is nonnegative.
80500
80501         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80502         Remove.
80503         (__attribute): Define to empty unless GCC 3.1 or later.
80504         This works around a core dump on OpenBSD 3.4, which has GCC
80505         2.95.3, which dumps core when given __attribute__(()).  It also
80506         simplifies other tests, since we really don't want to bother with
80507         worrying about which ancient version of GCC supported what.
80508         Original problem reported by Yoann Vandoorselaere, with part of
80509         the fix suggested by Derek Price.
80510
80511 2005-09-24  Jim Meyering  <jim@meyering.net>
80512
80513         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80514         so we can once again use a positive bitfield width of 1 -- now we
80515         don't have to explain why we were using a bitfield width of 2.
80516
80517 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80520         and similarly for the other external symbols.  Problem reported
80521         by James Gallager.
80522
80523         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80524         bug reported by Jim Meyering.
80525
80526         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80528         not needed, since socklen is a prerequisite module.
80529
80530 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80533         Problem reported by Eric Blake.
80534         (getaddrinfo): Initialize se so that it's not garbage.
80535         Redo internal storage allocation so that it doesn't make unportable
80536         assumptions about alignment.
80537         Fix a memory leak.
80538
80539         * lib/utimens.c (futimens): Use futimesat if available.
80540         Prefer it to futimes since it doesn't have the futimes bug.
80541
80542         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80543         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80544         Instead, declare a function that returns a pointer to an array,
80545         and use verify_type__ to declare the size of the array.
80546         Problem and germ of a solution reported by Bruno Haible.
80547         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80548         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80549
80550 2005-09-23  Jim Meyering  <jim@meyering.net>
80551
80552         Sync from coreutils.
80553         Correct build failure (socklen_t not defined) on at least
80554         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80556
80557 2005-09-23  Jim Meyering  <jim@meyering.net>
80558
80559         * modules/getaddrinfo (Depends-on): Add socklen.
80560
80561 2005-09-23  Bruno Haible  <bruno@clisp.org>
80562
80563         * tests/test-verify.c: New file.
80564
80565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         Sync from coreutils.
80568
80569         * modules/argmatch (Depends-on): Add verify.
80570         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80571         unistd-safer.
80572         * modules/save-cwd (Depends-on): Likewise.
80573
80574         * modules/openat (Files): Add lib/openat-die.c.
80575         (Depends-on): Remove error, exitfail.
80576         Add dirname.
80577
80578         * modules/verify: New file.
80579         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80580         with "verify" module.
80581
80582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         Sync from coreutils.
80585
80586         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80587         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80588         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80589         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80590         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80591         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80592         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80593         Don't bother checking for string.h, stdlib.h, unistd.h.
80594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80596         module's job.
80597         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80598         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80599
80600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80601         (gl_GETDATE): Use it.
80602
80603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80604
80605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         Sync from coreutils.
80608
80609         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80610         stat-time.h.
80611         * lib/argmatch.h: Include verify.h
80612         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80613         (ARGMATCH_ASSERT): Remove; unused.
80614         * lib/canonicalize.c: Assume STDC_HEADERS.
80615         * lib/exclude.c: Include "strcase.h".
80616         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80617         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80618         and stdio-safer.h.
80619         (getusershell): Call fopen, not fopen_safer.
80620         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80621         Do not include unistd-safer.h.
80622         (save_cwd): Don't call fd_safer; no longer needed
80623         now that we include fcntl--.h.
80624
80625         * lib/getdate.y (relative_time): New type.
80626         (RELATIVE_TIME_0): New constant.
80627         (parser_control): Use relative_time instead of doing it ourselves.
80628         (%union): Add new relative_time rel member.
80629         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80630         Now typeless.
80631         (relunit, relunit_snumber): Now of type rel.
80632         (zone, rel, relunit, get_date): Adjust to above changes.
80633
80634         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80635         Do not include unistd-safer.h.
80636         (getloadavg): Don't call fd_safer; no longer needed
80637         now that we include fcntl--.h.
80638
80639         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80640         (make_dir_parents): Treat ENOSYS like EEXIST.
80641
80642         Improve quality of diagnostics on restore_cwd failure.
80643         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80644         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80645         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80646         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80647         each time through the loop.  Do not diagnose restore_cwd failure;
80648         that is the caller's job (and perhaps the caller does not care).
80649
80650         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80651         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80652         If the file already exists but is not a directory, don't bother
80653         to try to make its parents.
80654         Close potential file descriptor leak if we can't chdir("/") (!).
80655         Don't always return true if chdir($PWD) fails; return true only
80656         if the requested action was done successfully (except for the
80657         chdir($PWD)).
80658         Don't log final directory unless we actually made it.
80659         Refactor to avoid duplicate code to fix up permissions.
80660         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80661
80662         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80663         to make it a bit faster and (I hope) clearer.
80664         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80665         Fix bug in formats like %2N.
80666
80667         * lib/verify.h: New file.
80668
80669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80670
80671         Sync from coreutils.
80672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80673
80674 2005-09-22  Jim Meyering  <jim@meyering.net>
80675
80676         Sync from coreutils.
80677
80678         * m4/lstat.m4 (gl_FUNC_LSTAT):
80679         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80680         Remove obsolete comment.
80681         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80682         * m4/xstrtod.m4: Likewise.
80683
80684         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80685
80686 2005-09-22  Jim Meyering  <jim@meyering.net>
80687
80688         Sync from coreutils.
80689
80690         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80691
80692         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80693         the .tm_year member, since otherwise gcc-4.0 would now warn about
80694         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80695
80696         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80697         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80698
80699         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80700         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80701         when run in a time zone for which daylight savings time is in effect
80702         for the starting date.
80703
80704         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80705         stop us from restricting permissions of just-created absolute-named
80706         directories.
80707         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80708         to restore initial working directory.
80709         * lib/mkdir-p.c (make_dir_parents): New parameter:
80710         different_working_dir, to tell caller if/when we change the working
80711         directory and are unable to return to the initial one.
80712         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80713         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80714         `return false'.  This fixes a bug introduced on 2004-07-30.
80715
80716         * lib/openat.c (fdopendir): Be sure to close the supplied
80717         file descriptor before returning.  This makes our replacement
80718         implementation a little closer to Solaris's, where fdopendir
80719         ties the file descriptor to the returned DIR* pointer.
80720         * lib/openat.c (unlinkat): New function.
80721         * lib/openat.h (unlinkat): Add prototype.
80722         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80723         (openat_restore_fail): Rename from openat_restore_die.
80724         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80725
80726         Provide an alternative to exiting immediately upon save_cwd or
80727         restore_cwd failure.  Now, an application can arrange e.g.,
80728         to perform a longjump in that case.
80729         * lib/openat.c: Include dirname.h.
80730         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80731         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80732         and openat_restore_die rather than calling error directly.
80733         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80734
80735         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80736         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80737         define.
80738
80739         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80740         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80741                             int utc, int nanoseconds);
80742         Background:
80743         date should not have to allocate a megabyte of virtual memory to
80744         handle a format argument like +%1048575T.  When implemented with
80745         strftime, it must allocate such a buffer, use strftime to fill it
80746         in, print it, then free it.
80747         With fprintftime, it simply prints everything and exits.
80748         With no need for memory allocation, that's one fewer way to fail.
80749         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80750         optional field width, not before, so we accept %9:z, not %:9z.
80751         (my_strftime): Be sure to use L_('x') for literals.
80752
80753         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80754         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80755         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80756         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80757         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80758         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80759         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80760         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80761         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80762         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80763         * lib/xgethostname.c, lib/xreadlink.c:
80764         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80765
80766         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80767         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80768         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80770         and don't include <sys/file.h>).
80771
80772 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80773
80774         Sync from coreutils.
80775
80776         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80777         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80778         [!LDAV_DONE]: Avoid unused variable warning.
80779
80780 2005-09-21  Bruno Haible  <bruno@clisp.org>
80781
80782         * lib/unicodeio.h (unicode_to_mb): New declaration.
80783
80784 2005-09-20  Derek Price  <derek@ximbiot.com>
80785
80786         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80787         getaddrinfo.h.
80788
80789 2005-09-20  Bruno Haible  <bruno@clisp.org>
80790
80791         * gnulib-tool: Remove trailing slashes from the values specified for
80792         --source-base, --m4-base, --tests-base, --aux-dir.
80793         Suggested by Simon Josefsson <jas@extundo.com>.
80794
80795 2005-09-20  Bruno Haible  <bruno@clisp.org>
80796
80797         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80798         func_modules_to_filelist, func_import, func_create_testdir): Make all
80799         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80800         change when gnulib-tool is invoked in a different locale.
80801
80802 2005-09-19  Simon Josefsson  <jas@extundo.com>
80803
80804         * m4/socklen.m4: Fix typo.
80805
80806 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80807
80808         Use a consistent style for including <config.h>.
80809         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80810         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80811         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80812         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80813         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80814         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80815         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80816         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80817         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80818         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80819         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80820         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80821         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80822         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80823         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80824         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80825         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80826         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80827         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80828         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80829         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80830         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80831         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80832         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80833         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80834         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80835         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80836         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80837         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80838         lib/xstrtoumax.c, lib/yesno.c:
80839         Standardize inclusion of config.h.
80840         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80841         lib/inttostr.h:  Removed inclusion of config.h from header files.
80842         * lib/inttostr.c:  Adjusted in-tree users.
80843         * lib/timespec.h: Remove superfluous warning to include config.h.
80844         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80845         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80846         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80847         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80848         config.h with HAVE_CONFIG_H.
80849
80850 2005-09-19  Jim Meyering  <jim@meyering.net>
80851
80852         * modules/pathmax (License): Change to LGPL.
80853
80854 2005-09-19  Derek Price  <derek@ximbiot.com>
80855
80856         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80857
80858 2005-09-19  Bruno Haible  <bruno@clisp.org>
80859
80860         * gnulib-tool (import): Provide default for --tests-base.
80861
80862 2005-09-19  Bruno Haible  <bruno@clisp.org>
80863
80864         * doc/quote.texi: New file, extracted from gnulib.texi.
80865         * doc/ctime.texi: New file, extracted from gnulib.texi.
80866         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80867         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80868         * doc/gnulib.texi: Include them.
80869
80870 2005-09-18  Bruno Haible  <bruno@clisp.org>
80871
80872         Portability fix.
80873         * gnulib-tool (func_readlink): New function.
80874         (func_ln_if_changed): Use it.
80875
80876 2005-09-18  Bruno Haible  <bruno@clisp.org>
80877
80878         * gnulib-tool: Support --with-tests also with --import.
80879         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80880         (func_import): Use variables $testsbase and $inctests. Emit a
80881         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80882         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80883         SUBDIRS += $testsdir.
80884         (func_create_testdir): Update.
80885
80886 2005-09-18  Bruno Haible  <bruno@clisp.org>
80887
80888         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80889         instead of $dry_run.
80890         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80891         (func_ln_if_changed): Don't handle dry-run here.
80892         (func_import): In dry-run mode, detect more precisely which actions
80893         would be performed, and don't use "...ing" verbs.
80894
80895 2005-09-18  Bruno Haible  <bruno@clisp.org>
80896
80897         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80898         (func_import): Use join on two temporary files instead of three nested
80899         loops, in order to determine which files are new or old.
80900
80901 2005-09-18  Bruno Haible  <bruno@clisp.org>
80902
80903         * gnulib-tool (func_import): Comment out code that spits out the
80904         new files with --dry-run.
80905
80906 2005-09-18  Bruno Haible  <bruno@clisp.org>
80907
80908         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80909
80910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80911
80912         * lib/stat-time.h: New file.
80913         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80914         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80915         in a different way.
80916         (timespec_cmp): New function.
80917         * lib/utimecmp.c: Include stat-time.h.
80918         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80919         members exist, not on the obsolescent ST_MTIM_NSEC.
80920         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80921
80922 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80923
80924         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80925
80926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80927
80928         * MODULES.html.sh (File system functions): Add stat-time.
80929         * modules/stat-time: New file.
80930         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80931         is now done in a different way, by the stat-time module.
80932         * modules/utimecmp (Depends-on): Add stat-time.
80933
80934 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         * m4/st_mtim.m4: Remove.  Superseded by...
80937         * m4/stat-time.m4: New file.
80938         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80939         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80940
80941 2005-09-15  Derek Price  <derek@ximbiot.com>
80942
80943         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80944
80945 2005-09-15  Derek Price  <derek@ximbiot.com>
80946
80947         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80948         * lib/regex_internal.c: Ditto, using this...
80949         (__GNUC_PREREQ): ...new macro.
80950         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80951         using...
80952         (__GNUC_PREREQ): ...this new macro.
80953
80954         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80955
80956 2005-09-15  Derek Price  <derek@ximbiot.com>
80957             Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80960         changes, consolidating in...
80961         * lib/regex_internal.h: ...this file.
80962
80963 2005-09-13  Jim Meyering  <jim@meyering.net>
80964
80965         * lib/canon-host.c: Filter through gnu indent and reword comments
80966         slightly.
80967         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80968
80969 2005-09-13  Derek Price  <derek@ximbiot.com>
80970
80971         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80972         failure.
80973         Reported by Jim Meyering  <jim@meyering.net>.
80974
80975 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80976
80977         * lib/base64.c: Typo.
80978         (base64_encode): Put b64str in initialized data section.
80979
80980 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80981
80982         Merge glibc and coreutils changes into gnulib, plus a few
80983         extra fixes.
80984         * lib/md5.c: Use #error rather than a string.
80985         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80986         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80987         (__attribute__): Define to empty for non recent-GCC.
80988         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80989         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80990         Renamed from their non-__ counterparts, with new macros replacing
80991         them if not _LIBC.  Add __THROW attribute.
80992         (rol): Remove.
80993         (struct md5_ctx): Align buffer if using GCC.
80994         * lib/sha1.h (struct sha1_ctx): Likewise.
80995         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80996         The old name was backwards.
80997         (NOTSWAP): Remove; not used.
80998         (rol): New macro, moved here from md5.h.
80999         (sha1_process_block): Remove a FIXME that doesn't make sense.
81000
81001 2005-09-12  Derek Price  <derek@ximbiot.com>
81002
81003         Return usable errors from canon-host.
81004         * lib/canon-host.h: New file.
81005         * lib/canon-host.c (canon_host): Wrap...
81006         (canon_host_r): ...this new function, which now relies exclusively on
81007         getaddrinfo.
81008         (ch_strerror): New function.
81009         (last_cherror): New global.
81010         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81011         interface.
81012         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81013         void *.
81014         (freeaddrinfo): Free ai->ai_canonname when set.
81015
81016 2005-09-12  Derek Price  <derek@ximbiot.com>
81017
81018         Make canon-host require getaddrinfo.
81019         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81020         AC_LIBSOURCE canon-host.h.  Call...
81021         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81022         gl_GETADDRINFO.
81023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81024
81025 2005-09-12  Derek Price  <derek@ximbiot.com>
81026
81027         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81028         LGPL.
81029         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81030
81031 2005-09-12  Derek Price  <derek@ximbiot.com>
81032
81033         * lib/gai_strerror.c: Include config.h when available.  Include
81034         getaddrinfo.h before other headers to test interface.
81035         Reported by Larry Jones <lawrence.jones@ugs.com>.
81036
81037 2005-09-12  Derek Price  <derek@ximbiot.com>
81038             Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * modules/glob (Files): Add glob-libc.h.
81041
81042 2005-09-12  Derek Price  <derek@ximbiot.com>
81043             Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81046         glob_.h, glob-libc.h.
81047         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81048
81049 2005-09-12  Derek Price  <derek@ximbiot.com>
81050             Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81053         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81054         protecting things that should be done only in gnulib contexts.
81055         * lib/glob_.h: New file, containing only the glob things needed for
81056         gnulib.
81057         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81058         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81059         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81060         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81061         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81062         and to respect the namespace rules better.
81063
81064 2005-09-08  Simon Josefsson  <jas@extundo.com>
81065
81066         * modules/socklen: New file.
81067
81068 2005-09-08  Simon Josefsson  <jas@extundo.com>
81069
81070         * m4/socklen.m4: New file.
81071
81072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * modules/utimens (Files): Add m4/utimbuf.m4, since
81075         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81076         Reported by Sergey Poznyakoff.
81077
81078 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81081         definitions, since that's the preferred style in glibc.
81082         Fix a minor spacing issue, and update copyright notice to match
81083         glibc's.
81084
81085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81088
81089 2005-09-06  Simon Josefsson  <jas@extundo.com>
81090
81091         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81092         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81093
81094 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81097         warning.
81098
81099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81100
81101         * config/srclist.txt: Add glibc bug 1302.
81102
81103 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81104
81105         Change bitset word type from unsigned int to unsigned long int,
81106         as this has better performance on typical 64-bit hosts.
81107         Port bitset code to hosts with unusual word sizes.
81108         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81109         (build_collating_symbol):
81110         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81111         argument is a bitset.  This is merely a style issue, but it makes
81112         it clearer that an entire array is expected.
81113         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81114         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81115         Port to the case where bitset_word is not the same as unsigned int.
81116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81117         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81118         Likewise.
81119         * lib/regexec.c (check_dst_limits_calc_pos_1,
81120         check_subexp_matching_top):
81121         (build_trtable, group_nodes_into_DFAstates):
81122         Likewise.
81123         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81124         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81125         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81126         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81127         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81128         * lib/regcomp.c (optimize_subexps, lower_subexp):
81129         Work even if bitset_word has holes in its bitwise representation.
81130         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81131         * lib/regexec.c (check_dst_limits_calc_pos_1,
81132         check_subexp_matching_top):
81133         Likewise.
81134         * lib/regex_internal.c (re_string_reconstruct):
81135         Don't assume UCHAR_MAX == 255.
81136         * lib/regex_internal.h (bitset_set_all): Likewise.
81137         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81138         All uses changed.
81139         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81140         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81141         All uses changed.
81142         (BITSET_WORD_MAX): New macro.
81143         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81144         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81145         (bitset_empty, bitset_copy):
81146         Prefer sizeof (bitset) to multiplying it out ourselves.
81147         (bitset_not_merge): Remove; unused.
81148         (bitset_contain): Return bool, not unsigned int with one bit on.
81149         All callers changed.
81150         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81151         alignment than re_node_set; do this by defining a new internal
81152         type struct dests_alloc and using it to allocate memory.
81153
81154 2005-09-05  Bruno Haible  <bruno@clisp.org>
81155
81156         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81157         links.
81158
81159 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81160
81161         * modules/size_max (Makefile.am): Add size_max.h
81162
81163 2005-09-04  Derek Price  <derek@ximbiot.com>
81164
81165         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81166
81167 2005-09-03  Simon Josefsson  <jas@extundo.com>
81168
81169         * gnulib-tool: Fix typo.
81170
81171 2005-09-03  Simon Josefsson  <jas@extundo.com>
81172
81173         * config/srclist.txt: Add glibc bug 1293.
81174
81175 2005-09-03  Derek Price  <derek@ximbiot.com>
81176
81177         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81178         From Larry Jones <lawrence.jones@ugs.com>.
81179
81180 2005-09-02  Simon Josefsson  <jas@extundo.com>
81181
81182         * modules/socklen: New file.
81183
81184 2005-09-02  Simon Josefsson  <jas@extundo.com>
81185
81186         * modules/havelib: New module.
81187
81188         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81189         Use havelib.
81190
81191 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         Check for arithmetic overflow when calculating sizes, to prevent
81194         some buffer-overflow issues.  These patches are conservative, in the
81195         sense that when I couldn't determine whether an overflow was possible,
81196         I inserted a run-time check.
81197         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81198         macros.
81199         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81200         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81201         (re_xnrealloc, re_x2nrealloc): New inline functions.
81202         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81203         parse_bracket_exp):
81204         (build_equiv_class, build_charclass): Check for arithmetic overflow
81205         in size expression calculations.
81206         * lib/regex_internal.c (re_string_realloc_buffers):
81207         (build_wcs_upper_buffer, re_node_set_add_intersect):
81208         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81209         (re_dfa_add_node, register_state): Likewise.
81210         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81211         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81212         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81213         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81214
81215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81218         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81219
81220 2005-09-02  Bruno Haible  <bruno@clisp.org>
81221
81222         Support for lib vs. lib64 distinction on biarch platforms.
81223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81224         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81226
81227 2005-09-02  Bruno Haible  <bruno@clisp.org>
81228
81229         * gnulib-tool (import): In the other first-use case, provide defaults
81230         as well.
81231
81232 2005-09-02  Bruno Haible  <bruno@clisp.org>
81233
81234         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81235         patches not yet found in the latest gettext release.
81236
81237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81240         to avoid a collision with bits/local_lim.h in glibc.
81241         All uses changed.  Problem reported by Dmitry V. Levin in
81242         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81243
81244         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81245         bugs in int versus size_t comparisons.
81246         (re_string_context_at): Fix bug where the code assumed that
81247         Idx is signed.
81248
81249         Use bool where appropriate.
81250         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81251         All callers changed.
81252         (calc_eclosure_iter): Likewise, for ROOT arg.
81253         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81254         (build_charclass_op): Likewise, for NON_MATCH arg.
81255         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81256         (re_string_construct_common): Likewise, for ICASE arg.
81257         * lib/regexec.c (re_search_2_stub, re_search_stub):
81258         Likewise, for RET_LEN arg.
81259         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81260         (set_regs): Likewise, for FL_BACKTRACK arg.
81261         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81262         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81263         (calc_eclosure_iter, parse_bracket_exp):
81264         Use bool for internal variables that are booleans.
81265         * lib/regexec.c (re_search_internal, check_matching,
81266         proceed_next_node):
81267         (set_regs, build_sifted_states, sift_states_bkref):
81268         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81270         (find_collation_sequence_value):
81271         Likewise.
81272         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81273         (re_node_set_compare):
81274         Return bool, not int. All callers changed.
81275         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81276         (build_trtable, check_node_accept): Likewise.
81277         * lib/regex_internal.h: Include stdbool.h.
81278
81279         Fix bugs uncovered when converting to bool.
81280         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81281         failure instead of charging ahead blindly.
81282         * lib/regex_internal.c (register_state): Likewise.
81283         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81284         for freeing internal storage.
81285         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81286         bitset pieces used as boolean, to avoid undefined behavior
81287         on hosts that do int overflow checking.
81288
81289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * config/srclist.txt: Add glibc bugs 1285-1287.
81292
81293 2005-09-01  Jim Meyering  <jim@meyering.net>
81294
81295         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81296         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81297         Require gl_STAT_MACROS, too.
81298
81299 2005-09-01  Bruno Haible  <bruno@clisp.org>
81300
81301         * gnulib-tool (import): In the first-use case, provide defaults.
81302
81303 2005-09-01  Bruno Haible  <bruno@clisp.org>
81304
81305         * gnulib-tool (func_import): Remove the .tmp files.
81306
81307 2005-09-01  Bruno Haible  <bruno@clisp.org>
81308
81309         * gnulib-tool (func_import): Fix handling of symbolic links.
81310
81311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81314         old glibc regex code mishandles strings longer than 2**31 bytes.
81315         This patch fixes this when the regex code is used in gnulib
81316         (i.e., outside glibc).
81317
81318         This patch should not affect the use of the regex code inside
81319         glibc.  No doubt this problem also needs to be handled for glibc
81320         as well, but the result will be an incompatible change to the
81321         glibc ABI, and the old ABI will have to be supported too.  That
81322         can be the the subject for another patch.
81323
81324         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81325         governing whether the rest of this patch is active.  By default,
81326         the macro is disabled and the patch has no effect.
81327         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81328         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81329         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81330         (re_match_2, re_set_registers): Use the new types.
81331         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81332         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81333         New macros.
81334         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81335         (re_string_context_at, bin_tree_t, re_dfastate_t):
81336         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81337         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81338         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81339         (re_string_char_size_at, re_string_wchar_at):
81340         (re_string_elem_size_at):
81341         Use the new types and macros to port to 64-bit hosts.
81342         Use unsigned types for internal values, so that the code
81343         mostly works even for arrays larger than SSIZE_MAX.
81344         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81345         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81346         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81347         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81348         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81349         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81350         (calc_inveclosure, parse_dup_op, build_range_exp):
81351         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81352         (fetch_number, create_token_tree, mark_opt_subexp):
81353         Likewise.
81354         * lib/regex_internal.c (re_string_construct_common,
81355         create_ci_newstate):
81356         (create_cd_newstate, re_string_allocate, re_string_construct):
81357         (re_string_realloc_buffers, build_wcs_upper_buffer):
81358         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81359         (re_string_reconstruct, re_string_peek_byte_case):
81360         (re_string_fetch_byte_case, re_string_context_at):
81361         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81362         (re_node_set_init_copy, re_node_set_add_intersect):
81363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81365         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81366         (re_acquire_state, re_acquire_state_context, register_state):
81367         Likewise.
81368         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81369         search_cur_bkref_entry):
81370         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81371         (re_search_internal, re_search_2_stub, re_search_stub)
81372         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81373         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81374         (update_cur_sifted_state, check_dst_limits):
81375         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81376         (check_subexp_limits, sift_states_bkref, merge_state_array):
81377         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81378         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81380         (expand_bkref_cache, check_node_accept_bytes):
81381         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81382         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81383         (acquire_init_state_context, check_halt_node_context):
81384         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81385         (sift_states_backward, clean_state_log_if_needed):
81386         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81387         (find_recover_state, transit_state_sb, transit_state_mb):
81388         (transit_state_bkref, build_trtable, match_ctx_clean):
81389         Likewise.
81390         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81391         to work around an assumption that REG_MISSING is negative.
81392
81393         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81394         (seek_collating_symbol_entry) [defined _LIBC]:
81395         (lookup_collation_sequence_value) [defined _LIBC]:
81396         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81397         Use prototypes rather than old-style function definitions.
81398         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81399         (transit_state_sb) [0]:
81400         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81401
81402         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81403         rm_eo.
81404
81405         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81406         (optimize_subexps, lower_subexp):
81407         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81408         since the signed shift might overflow.  Use 1u<<31 instead.
81409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81410         Likewise.
81411         * lib/regexec.c (check_dst_limits_calc_pos_1,
81412         check_subexp_matching_top): Likewise.
81413
81414         * lib/regcomp.c (optimize_subexps, lower_subexp):
81415         Use CHAR_BIT rather than 8, for clarity.
81416         * lib/regexec.c (check_dst_limits_calc_pos_1):
81417         (check_subexp_matching_top): Likewise.
81418         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81419         have to worry about portability issues when shifting it left.
81420         Remove no-longer-needed test for table_size > 0.
81421         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81422         in a word, as the resulting behavior is undefined.
81423         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81424         in one case, a <= should have been an <, and in another case the
81425         whole test was missing.
81426         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81427         the standard name CHAR_BIT.
81428         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81429         this is not true on one's complement and signed-magnitude hosts.
81430
81431         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81432         next_last_offset.
81433         (struct re_dfa_t): Remove unused member states_alloc.
81434         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81435
81436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81437
81438         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81439         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81440         and large-file glibc and in 32-bit large-file Solaris.
81441
81442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81445         lengths fit in regoff_t; this isn't true if regoff_t is the same
81446         width as size_t.
81447         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81448         (= START + RANGE) instead of RANGE.  This avoids overflow
81449         problems when regoff_t is the same width as size_t.
81450         All callers changed.
81451         (re_search_2_stub): Check for overflow when adding the
81452         sizes of the two strings.
81453         (re_search_stub): Check for overflow when adding START
81454         to RANGE; if it occurs, substitute the extreme value.
81455
81456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81457
81458         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81459
81460 2005-08-31  Jim Meyering  <jim@meyering.net>
81461
81462         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81463         a pointer-to-const.
81464         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81465         (register_state): Likewise.
81466         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81468         (group_nodes_into_DFAstates): Likewise.
81469
81470 2005-08-31  Jim Meyering  <jim@meyering.net>
81471
81472         * check-module: Add a FIXME comment.
81473
81474 2005-08-31  Eric Blake  <ebb9@byu.net>
81475
81476         * modules/unistd-safer (Files): Add unistd--.h.
81477         * modules/stdio-safer (Files): Add stdio--.h.
81478
81479 2005-08-31  Derek Price  <derek@ximbiot.com>
81480
81481         * lib/getdelim.c (getdelim): Return EOF on EOF.
81482         Reported by Larry Jones <lawrence.jones@ugs.com>.
81483
81484 2005-08-31  Bruno Haible  <bruno@clisp.org>
81485
81486         Avoid unnecessary diffs in the generated lib/Makefile.am.
81487         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81488         the generated files.
81489         (func_import): Don't set cmd.
81490
81491 2005-08-31  Bruno Haible  <bruno@clisp.org>
81492
81493         * lib/strstr.c: Include <stddef.h>, for NULL.
81494         * lib/strcasestr.c: Likewise.
81495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81496
81497 2005-08-31  Bruno Haible  <bruno@clisp.org>
81498
81499         * gnulib-tool: New option --macro-prefix.
81500         (func_import): Use macro_prefix.
81501         (import): Handle option --macro-prefix.
81502
81503 2005-08-31  Bruno Haible  <bruno@clisp.org>
81504
81505         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81506         Also use new variables cached_lgpl, cached_libtool.
81507
81508 2005-08-31  Bruno Haible  <bruno@clisp.org>
81509
81510         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81511         always instantiating them.
81512
81513 2005-08-31  Bruno Haible  <bruno@clisp.org>
81514
81515         * gnulib-tool (func_import): Read the previous cached settings
81516         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81517         earlier added by gnulib but are now dropped. Warn when a gnulib file
81518         overwrites a non-gnulib file.
81519
81520 2005-08-31  Bruno Haible  <bruno@clisp.org>
81521
81522         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81523         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81524         projects that don't keep autogenerated files in CVS. Put into
81525         actioncmd only the specified modules, not the transitive closure.
81526
81527 2005-08-31  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81530         Create directories that shall be filled.
81531         (import): Don't look for gl_* macros in configure.ac. Recurse across
81532         all directories containing a gnulib-cache.m4 files, if meaningful.
81533
81534 2005-08-31  Bruno Haible  <bruno@clisp.org>
81535
81536         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81537         (import): Set seen_libtool when we see gl_LIBTOOL.
81538
81539 2005-08-31  Bruno Haible  <bruno@clisp.org>
81540
81541         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81542         declaration macro definitions from generated gnulib.m4.
81543
81544 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81545
81546         * lib/iconvme.h: Add prototype for iconv_alloc.
81547
81548 2005-08-29  Simon Josefsson  <jas@extundo.com>
81549
81550         * lib/iconvme.c: Fix errno.
81551
81552 2005-08-29  Bruno Haible  <bruno@clisp.org>
81553
81554         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81555         that it works when the directory contains spaces.
81556
81557 2005-08-29  Bruno Haible  <bruno@clisp.org>
81558
81559         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81560
81561 2005-08-29  Bruno Haible  <bruno@clisp.org>
81562
81563         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81564         Emit more advice.
81565
81566 2005-08-29  Bruno Haible  <bruno@clisp.org>
81567         and Stepan Kasal  <kasal@ucw.cz>
81568
81569         * check-module: If more parameters are given, check each of them
81570         separately; add more exceptions, as noted by Jim Meyering.
81571         (check_module): New procedure.
81572         (%exempt_header): Now contains all exceptions.
81573
81574 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81575
81576         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81577
81578 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81579
81580         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81581
81582 2005-08-28  Bruno Haible  <bruno@clisp.org>
81583
81584         * m4/gnulib-tool.m4: New file.
81585
81586 2005-08-27  Jim Meyering  <jim@meyering.net>
81587
81588         * modules/unistd-safer (Files): Add pipe-safer.c.
81589         * modules/fcntl-safer (Files): Add creat-safer.c.
81590
81591 2005-08-27  Jim Meyering  <jim@meyering.net>
81592
81593         * m4/stdlib-safer.m4: New file.  From coreutils.
81594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81596         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81598         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81599
81600 2005-08-27  Jim Meyering  <jim@meyering.net>
81601
81602         * lib/fopen-safer.c: Merge minor changes from coreutils.
81603         * lib/dup-safer.c: Likewise.
81604         * lib/fd-safer.c: Likewise.
81605
81606         Merge from coreutils.
81607         * lib/stdio--.h: New file.
81608         * lib/stdlib--.h: New file.
81609         * lib/mkstemp-safer.c: New file.
81610
81611         GNU tar needs these.
81612         * lib/pipe-safer.c: New file.
81613         * lib/creat-safer.c: New file.
81614         * lib/fcntl--.h (creat): Define to creat_safer.
81615         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81616         * lib/unistd--.h (pipe): Define to pipe_safer.
81617         * lib/unistd-safer.h: Declare pipe_safer.
81618
81619 2005-08-26  Simon Josefsson  <jas@extundo.com>
81620
81621         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81622         Haible <bruno@clisp.org>.
81623
81624 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * lib/regex_internal.h: Remove all references to
81627         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81628         or better.
81629         (bitset_not, bitset_merge, bitset_not_merge):
81630         (bitset_mask, re_string_allocate, re_string_construct):
81631         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81632         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81633         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81634         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81635         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81636         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81637         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81638         (re_acquire_state_context):
81639         Remove unnecessary forward decls.
81640         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81641         Put __attribute at function definition,
81642         now that the function decl has been removed.
81643         * lib/regex_internal.c (re_string_peek_byte_case):
81644         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81645         Likewise.
81646
81647 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81648
81649         * m4/regex.m4: Add AC_PREREQ(2.50).
81650         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81651
81652 2005-08-25  Simon Josefsson  <jas@extundo.com>
81653
81654         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81655         __fsetlocking.
81656
81657 2005-08-25  Simon Josefsson  <jas@extundo.com>
81658
81659         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81660         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81661         GLIBC specific code.
81662
81663 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         Make regex safe for g++.  This fixes one real bug (an "err"
81666         that should have been "*err").  g++ problem reported by
81667         Sam Steingold.
81668         * lib/regex_internal.h (re_calloc): New macro, consistent with
81669         re_malloc etc.  All callers of calloc changed to use re_calloc.
81670         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81671         not int.  All callers changed.
81672         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81673         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81674         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81675         (find_recover_state): Change "err" to "*err"; this fixes what
81676         appears to be a real bug.
81677         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81678         versus int.
81679
81680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * modules/regex (Depends-on): Add malloc, since the code
81683         assumes that !malloc(0) means failure.
81684
81685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81688
81689         alloca modernization/simplification for regex.
81690         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81691         needs to be at the start of the file, and can be moved into
81692         regex_internal.h and simplified.
81693         * lib/regex_internal.h: Include <alloca.h>.
81694         (__libc_use_alloca) [!defined _LIBC]: New macro.
81695         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81696         now works outside glibc.
81697
81698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * config/srclist.txt: Add glibc bugs 1241, 1245.
81701
81702 2005-08-25  Jim Meyering  <jim@meyering.net>
81703
81704         * lib/open-safer.c: Include <config.h>.
81705         Otherwise, we'd lose LARGEFILE support in any file using
81706         e.g. "fcntl--.h"
81707
81708 2005-08-25  Bruno Haible  <bruno@clisp.org>
81709
81710         * m4/minmax.m4: Require autoconf 2.52.
81711         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81712         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81713         alternatives of translit over the alphabet.
81714         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81715
81716 2005-08-24  Simon Josefsson  <jas@extundo.com>
81717
81718         * tests/test-getpass.c: New file.
81719
81720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81721
81722         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81723         for GNU regex features.
81724
81725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81728         * lib/regex.h (regerror): Likewise.
81729
81730         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81731         requires this.  (The code never needed it.)
81732
81733         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81734         All uses of recently-renamed identifiers changed to use the new,
81735         POSIX-compliant names.  The code will build and run just fine
81736         without these changes, but it's better to eat our own dog food
81737         and use the standard-conforming names.
81738
81739         * lib/regex.h: Fix a multitude of POSIX name space violations.
81740         These changes have an effect only for programs that define
81741         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81742         do not change anything for programs compiled in the normal way.
81743         Also, there is no effect on the ABI.
81744
81745         (_REGEX_SOURCE): New macro.
81746         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81747         defined and _GNU_SOURCE is not; this fixes a name space violation.
81748
81749         Rename the following macros to obey POSIX requirements.
81750         The old names are still visible as macros if _REGEX_SOURCE is defined.
81751         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81752         RE_BACKSLASH_ESCAPE_IN_LISTS.
81753         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81754         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81755         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81756         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81757         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81758         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81759         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81760         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81761         (REG_INTERVALS): renamed from RE_INTERVALS.
81762         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81763         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81764         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81765         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81766         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81767         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81768         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81769         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81770         RE_UNMATCHED_RIGHT_PAREN_ORD.
81771         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81772         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81773         (REG_DEBUG): renamed from RE_DEBUG.
81774         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81775         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81776         unusual, since we can't clash with the POSIX REG_ICASE.
81777         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81778         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81779         (REG_NO_SUB): renamed from RE_NO_SUB.
81780         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81781         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81782         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81783         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81784         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81785         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81786         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81787         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81788         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81789         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81790         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81791         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81792         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81793         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81794         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81795         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81796         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81797         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81798         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81799         (REG_FIXED): Renamed from REGS_FIXED.
81800         (REG_NREGS): Renamed from RE_NREGS.
81801
81802         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81803         of other REG_* macros, since POSIX says the user is allowed to
81804         #undef these macros selectively.
81805
81806         (reg_errcode_t): Update comment stating what other tables need
81807         to be consistent.
81808
81809         Rename the following enum values to obey POSIX requirements.
81810         The old names are still visible as macros.
81811         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81812         is not defined, since GNU is supposed to be a superset of POSIX as
81813         much as possible, and since we want reg_errcode_t to be a signed
81814         type for implementation consistency.
81815         (_REG_NOERROR): Renamed from REG_NOERROR.
81816         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81817         (_REG_BADPAT): Renamed from REG_BADPAT.
81818         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81819         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81820         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81821         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81822         (_REG_EBRACK): Renamed from REG_EBRACK.
81823         (_REG_EPAREN): Renamed from REG_EPAREN.
81824         (_REG_EBRACE): Renamed from REG_EBRACE.
81825         (_REG_BADBR): Renamed from REG_BADBR.
81826         (_REG_ERANGE): Renamed from REG_ERANGE.
81827         (_REG_ESPACE): Renamed from REG_ESPACE.
81828         (_REG_BADRPT): Renamed from REG_BADRPT.
81829         (_REG_EEND): Renamed from REG_EEND.
81830         (_REG_ESIZE): Renamed from REG_ESIZE.
81831         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81832         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81833         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81834         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81835         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81836
81837         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81838         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81839         changed.  But support the old name if the new one is not defined
81840         and if _REGEX_SOURCE.
81841
81842         Change the following member names in struct re_pattern_buffer.
81843         The old names are still supported if !_REGEX_SOURCE.
81844         The new names are always supported, regardless of _REGEX_SOURCE.
81845         (re_buffer): Renamed from buffer.
81846         (re_allocated): Renamed from allocated.
81847         (re_used): Renamed from used.
81848         (re_syntax): Renamed from syntax.
81849         (re_fastmap): Renamed from fastmap.
81850         (re_translate): Renamed from translate.
81851         (re_can_be_null): Renamed from can_be_null.
81852         (re_regs_allocated): Renamed from regs_allocated.
81853         (re_fastmap_accurate): Renamed from fastmap_accurate.
81854         (re_no_sub): Renamed from no_sub.
81855         (re_not_bol): Renamed from not_bol.
81856         (re_not_eol): Renamed from not_eol.
81857         (re_newline_anchor): Renamed from newline_anchor.
81858
81859         Change the following member names in struct re_registers.
81860         The old names are still supported if !_REGEX_SOURCE.
81861         The new names are always supported, regardless of _REGEX_SOURCE.
81862         (rm_num_regs): Renamed from num_regs.
81863         (rm_start): Renamed from start.
81864         (rm_end): Renamed from end.
81865
81866         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81867         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81868         Prepend __ to parameter names.
81869
81870         Undo yesterday's changes.
81871
81872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81875         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81876         lib/regex.c.
81877
81878 2005-08-24  Jim Meyering  <jim@meyering.net>
81879
81880         Sync from coreutils.
81881         * m4/fcntl-safer.m4: New file.
81882
81883         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81884         and object files for this module.
81885
81886 2005-08-24  Jim Meyering  <jim@meyering.net>
81887
81888         Sync from coreutils.
81889         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81890
81891 2005-08-24  Jim Meyering  <jim@meyering.net>
81892
81893         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81894         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81895
81896 2005-08-24  Jim Meyering  <jim@meyering.net>
81897
81898         * modules/fcntl-safer: New module.
81899         * modules/fts (Depends-on): Add fcntl-safer.
81900         * MODULES.html.sh (File descriptor based Input/Output):
81901         Add fcntl-safer.
81902
81903 2005-08-24  Bruno Haible  <bruno@clisp.org>
81904
81905         Support for unit test modules.
81906         * modules/README: Mention tests modules.
81907         * modules/TEMPLATE-TESTS: New file.
81908         * gnulib-tool: New options --extract-tests-module, --with-tests and
81909         --tests-base (unused for the moment).
81910         (testsbase, inctests): New variables.
81911         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81912         (func_verify_module): Exclude TEMPLATE-TESTS.
81913         (func_verify_nontests_module, func_verify_tests_module): New functions.
81914         (func_get_dependencies): Add implicit dependency for tests modules.
81915         (func_get_tests_module): New function.
81916         (func_modules_transitive_closure): When --with-tests was specified,
81917         include the unit tests as well, unless explicitly avoided.
81918         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81919         (func_emit_tests_Makefile_am): New function.
81920         (func_create_testdir): When --with-tests was specified, emit a
81921         tests/ directory.
81922         * MODULES.html.sh (Future developments): Update.
81923
81924 2005-08-24  Bruno Haible  <bruno@clisp.org>
81925
81926         * modules/tls-tests: New file.
81927         * tests/test-tls.c: New file, from GNU gettext.
81928
81929 2005-08-24  Bruno Haible  <bruno@clisp.org>
81930
81931         * modules/lock-tests: New file.
81932         * tests/test-lock.c: New file, from GNU gettext.
81933
81934 2005-08-24  Bruno Haible  <bruno@clisp.org>
81935
81936         * lib/lock.h: Add multiple inclusion guard.
81937         * lib/tls.h: Add multiple inclusion guard.
81938
81939 2005-08-24  Bruno Haible  <bruno@clisp.org>
81940
81941         * gnulib-tool: Add support for the --aux-dir option to
81942         --create-testdir, --create-megatestdir, --test, --megatest.
81943         (func_create_testdir, func_create_megatestdir): Optionally emit a
81944         AC_CONFIG_AUX_DIR directive.
81945         (create-testdir, create-megatestdir, test, megatest): Provide a
81946         default value for $auxdir.
81947
81948 2005-08-24  Bruno Haible  <bruno@clisp.org>
81949
81950         * gnulib-tool (import): Use compound statement instead of subshell
81951         where possible.
81952
81953 2005-08-24  Bruno Haible  <bruno@clisp.org>
81954
81955         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81956
81957 2005-08-24  Bruno Haible  <bruno@clisp.org>
81958
81959         * gnulib-tool (func_version): Update.
81960
81961 2005-08-24  Bruno Haible  <bruno@clisp.org>
81962
81963         * gnulib-tool (func_import, func_create_testdir,
81964         func_create_megatestdir): Quote all autoconf macro arguments.
81965
81966 2005-08-24  Bruno Haible  <bruno@clisp.org>
81967
81968         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81969         option --force, because --force causes the aclocal.m4 of each
81970         subdirectory to be newer than the corresponding config.h.in.
81971
81972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81975         All contents moved to gl_REGEX.
81976         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81977         assume that it does.
81978
81979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * lib/regex.h (REG_NOSYS)
81982         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81983         Define, since POSIX requires it as of 2001.
81984         (_REG_ENOSYS)
81985         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81986         New private symbol, used to keep the enum signed in all cases.
81987         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81988         Youngman in
81989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81990
81991         * lib/regex_internal.c (re_string_skip_chars, register_state):
81992         (calc_state_hash):
81993         Remove forward decls; no longer needed now that we use prototypes.
81994         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81995         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81996         (clean_state_log_if_needed): Likewise.
81997
81998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * config/srclist.txt: Add glibc bugs 1231-1233.
82001
82002 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         Fix problems reported by Sam Steingold in
82005         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82006         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82007         assumed that reg_errcode_t is a signed type, which is not
82008         necessarily true if _XOPEN_SOURCE is not defined.
82009         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82010         since some compilers warn about it otherwise.
82011
82012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82015         (init_word_char, create_initial_state, duplicate_node_closure):
82016         (fetch_token, peek_token_bracket, build_range_exp):
82017         (build_collating_symbol): Remove forward decls; no longer needed
82018         now that we use prototypes.
82019
82020         * lib/regcomp.c:
82021         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82022         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82023         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82024         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82025         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82026         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82027         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82028         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82029         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82030         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82031         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82032         (build_charclass, build_charclass_op, fetch_number, create_tree):
82033         (create_token_tree, mark_opt_subexp, duplicate_tree):
82034         Use prototypes rather than old-style definitions.
82035
82036         * lib/regex_internal.c:
82037         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82038         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82040         (re_string_reconstruct, re_string_peek_byte_case):
82041         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82043         (re_node_set_init_copy, re_node_set_add_intersect):
82044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82047         (re_acquire_state, re_acquire_state_context, register_state):
82048         (create_ci_newstate, create_cd_newstate, free_state):
82049         Likewise.
82050         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82051         re_search_2):
82052         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82053         (re_search_internal, prune_impossible_nodes):
82054         (acquire_init_state_context, check_matching, static):
82055         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82056         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82057         (update_regs, sift_states_backward, build_sifted_states):
82058         (clean_state_log_if_needed, merge_state_array):
82059         (update_cur_sifted_state, add_epsilon_src_nodes):
82060         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82061         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82062         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82063         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82064         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82065         (check_arrival, check_arrival_add_next_nodes):
82066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82067         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82068         (check_node_accept_bytes, check_node_accept, extend_buffers):
82069         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82070         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82071         (sift_ctx_init):
82072         Likewise.
82073
82074         * lib/regex_internal.h:
82075         (re_string_allocate, re_string_construct, re_string_reconstruct):
82076         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82077         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82078         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82079         (re_string_context_at, re_string_peek_byte_case):
82080         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82081         is defined, since we now use prototypes always.
82082
82083         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82084         C89 or better.  All uses removed.
82085
82086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82087
82088         * config/srclist.txt: Add glibc bugs 1220-1227.
82089
82090 2005-08-20  Jim Meyering  <jim@meyering.net>
82091
82092         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82093         of unused local, dfa.
82094
82095 2005-08-20  Bruno Haible  <bruno@clisp.org>
82096
82097         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82098
82099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82100
82101         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82102         (re_node_set_insert_last, re_dfa_add_node):
82103         Rename local variables to avoid GCC shadowing warnings.
82104
82105 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82108         [defined lint]: Suppress bogus uninitialized-variable warnings.
82109
82110         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82111         and let the caller return REG_ESPACE if out of space.  This
82112         removes an uninitialied-variable warning with GCC 4.0.1, and also
82113         avoids taking the address of a local variable.  All callers
82114         changed.
82115
82116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82117
82118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82119         $LIBCSRC/posix/regexec.c.
82120         Add glibc bug 1217 for regcomp.c.
82121
82122 2005-08-19  Jim Meyering  <jim@meyering.net>
82123
82124         * lib/regexec.c (proceed_next_node): Redo local variables to
82125         avoid GCC shadowing warnings.
82126
82127 2005-08-18  Bruno Haible  <bruno@clisp.org>
82128
82129         * lib/strstr.c (strstr): Fix return value in multibyte case.
82130         * lib/strcasestr.c (strcasestr): Likewise.
82131
82132 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82135
82136 2005-08-17  Jim Meyering  <jim@meyering.net>
82137
82138         Make the %s format (seconds since the epoch) work for a negative
82139         number and when used with a zero-padded field width, e.g. %015s.
82140
82141         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82142         label so that it precedes the code to set `digits'.  Otherwise,
82143         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82144         print `00-22'.  Now, it prints `-0022', as it should.
82145
82146 2005-08-17  Bruno Haible  <bruno@clisp.org>
82147
82148         * modules/strstr (Files): Add m4/mbrtowc.m4.
82149         (Depends-on): Add mbuiter.
82150
82151 2005-08-17  Bruno Haible  <bruno@clisp.org>
82152
82153         * modules/strcasestr: New file.
82154         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82155         strcasestr.
82156
82157 2005-08-17  Bruno Haible  <bruno@clisp.org>
82158
82159         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82160
82161 2005-08-17  Bruno Haible  <bruno@clisp.org>
82162
82163         * modules/mbuiter: New file.
82164         * MODULES.html.sh (Extended multibyte and wide character utilities):
82165         Add mbuiter.
82166
82167 2005-08-17  Bruno Haible  <bruno@clisp.org>
82168
82169         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82170         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82171
82172 2005-08-17  Bruno Haible  <bruno@clisp.org>
82173
82174         * m4/strcasestr.m4: New file.
82175
82176 2005-08-17  Bruno Haible  <bruno@clisp.org>
82177
82178         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82179         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82180
82181 2005-08-17  Bruno Haible  <bruno@clisp.org>
82182
82183         * lib/strcasestr.h: New file.
82184         * lib/strcasestr.c: New file.
82185
82186 2005-08-17  Bruno Haible  <bruno@clisp.org>
82187
82188         * lib/strcasecmp.c: Use mbuiter.h.
82189
82190 2005-08-17  Bruno Haible  <bruno@clisp.org>
82191
82192         * lib/mbuiter.h: New file.
82193
82194 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82197         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82198         and gl_GETOPT are both invoked via different paths (as happens
82199         with GNU tar CVS because it uses both argp and getopt), the former
82200         wins.
82201
82202 2005-08-16  Bruno Haible  <bruno@clisp.org>
82203
82204         * modules/tls: New file.
82205         * MODULES.html.sh (Multithreading): Add tls.
82206
82207 2005-08-16  Bruno Haible  <bruno@clisp.org>
82208
82209         * modules/strnlen1: New file.
82210         * MODULES.html.sh (String handling): Add strnlen1.
82211
82212 2005-08-16  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/strcase (Files): Add m4/mbrtowc.m4.
82215         (Depends-on): Add strnlen1, mbchar.
82216
82217 2005-08-16  Bruno Haible  <bruno@clisp.org>
82218
82219         * modules/mbiter: New file.
82220         * MODULES.html.sh (Extended multibyte and wide character utilities):
82221         Add mbiter.
82222
82223 2005-08-16  Bruno Haible  <bruno@clisp.org>
82224
82225         * modules/mbfile: New file.
82226         * MODULES.html.sh (Extended multibyte and wide character utilities):
82227         Add mbfile.
82228
82229 2005-08-16  Bruno Haible  <bruno@clisp.org>
82230
82231         * modules/mbchar: New file.
82232         * MODULES.html.sh (Extended multibyte and wide character utilities):
82233         New section.
82234
82235 2005-08-16  Bruno Haible  <bruno@clisp.org>
82236
82237         * m4/tls.m4: New file, from GNU gettext.
82238
82239 2005-08-16  Bruno Haible  <bruno@clisp.org>
82240
82241         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82242         always.
82243         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82244
82245 2005-08-16  Bruno Haible  <bruno@clisp.org>
82246
82247         * m4/mbiter.m4: New file.
82248
82249 2005-08-16  Bruno Haible  <bruno@clisp.org>
82250
82251         * m4/mbfile.m4: New file.
82252
82253 2005-08-16  Bruno Haible  <bruno@clisp.org>
82254
82255         * m4/mbchar.m4: New file.
82256
82257 2005-08-16  Bruno Haible  <bruno@clisp.org>
82258
82259         * lib/tls.h: New file, from GNU gettext.
82260         * lib/tls.c: New file, from GNU gettext.
82261
82262 2005-08-16  Bruno Haible  <bruno@clisp.org>
82263
82264         * lib/strnlen1.h: New file.
82265         * lib/strnlen1.c: New file.
82266
82267 2005-08-16  Bruno Haible  <bruno@clisp.org>
82268
82269         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82270         (mbi_init): Update.
82271         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82272         NUL byte, not after it.
82273
82274 2005-08-16  Bruno Haible  <bruno@clisp.org>
82275
82276         * lib/strcase.h (strcasecmp): Add note in comments.
82277         * lib/strncasecmp.c: Use code from strcasecmp.c.
82278         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82279         (strcasecmp): Work correctly in multibyte locales.
82280
82281 2005-08-16  Bruno Haible  <bruno@clisp.org>
82282
82283         * lib/mbiter.h: New file.
82284
82285 2005-08-16  Bruno Haible  <bruno@clisp.org>
82286
82287         * lib/mbfile.h: New file.
82288
82289 2005-08-16  Bruno Haible  <bruno@clisp.org>
82290
82291         * lib/mbchar.h: New file.
82292         * lib/mbchar.c: New file.
82293
82294 2005-08-16  Bruno Haible  <bruno@clisp.org>
82295
82296         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82297         the valid ones. Makes the comparison operations transitive:
82298         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82299         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82300
82301 2005-08-15  Simon Josefsson  <jas@extundo.com>
82302
82303         * modules/ssize_t (License): Change to 'unlimited'.
82304
82305         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82306
82307 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82310         Add comments for each pending glibc patch.
82311
82312 2005-08-15  Bruno Haible  <bruno@clisp.org>
82313
82314         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82315         __cplusplus is defined.
82316
82317 2005-08-14  Jim Meyering  <jim@meyering.net>
82318
82319         Sync from coreutils.
82320
82321         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82322         Use the hash-table-based cycle-detection code not just when
82323         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82324         Reported by James Youngman in
82325         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82326         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82327         FTS_TIGHT_CYCLE_CHECK.
82328         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82329         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82330         once again.
82331         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82332         * lib/fts.c (fd_safer): Remove decl.
82333         Include fcntl--.h rather than unistd-safer.h
82334         (fts_safe_changedir): Don't call fd_safer; no longer needed
82335         now that we include fcntl--.h.
82336
82337 2005-08-12  Simon Josefsson  <jas@extundo.com>
82338
82339         * modules/getndelim2: Use ssize_t module.
82340         * modules/getnline: Likewise.
82341         * modules/safe-read: Likewise.
82342         * modules/xreadlink: Likewise.
82343
82344         * modules/ssize_t: New file.
82345
82346 2005-08-12  Simon Josefsson  <jas@extundo.com>
82347
82348         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82349
82350 2005-08-12  Simon Josefsson  <jas@extundo.com>
82351
82352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82353         ssize_t.
82354
82355 2005-08-12  Simon Josefsson  <jas@extundo.com>
82356
82357         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82358         readline, getdelim and check_version.
82359         (Support for systems lacking ISO C 99: Sizes of integer types):
82360         Add size_max.
82361
82362 2005-08-12  Bruno Haible  <bruno@clisp.org>
82363
82364         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82365
82366 2005-08-11  Simon Josefsson  <jas@extundo.com>
82367
82368         * modules/readline: New file.
82369
82370         * modules/strnlen (Files): Add strnlen.h.
82371
82372 2005-08-11  Simon Josefsson  <jas@extundo.com>
82373
82374         * m4/readline.m4: New file.
82375
82376 2005-08-11  Simon Josefsson  <jas@extundo.com>
82377
82378         * lib/readline.h, readline.c: New file.
82379
82380 2005-08-11  Simon Josefsson  <jas@extundo.com>
82381
82382         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82383         gl_AVOID.
82384
82385 2005-08-11  Bruno Haible  <bruno@clisp.org>
82386
82387         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82388
82389 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82390
82391         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82392
82393 2005-08-10  Simon Josefsson  <jas@extundo.com>
82394
82395         * tests/test-iconvme.c: New file.
82396
82397 2005-08-10  Simon Josefsson  <jas@extundo.com>
82398
82399         * m4/strnlen.m4: New file.
82400
82401         * m4/strndup.m4: Don't check for strnlen declaration, done in
82402         strnlen.m4.
82403
82404 2005-08-10  Simon Josefsson  <jas@extundo.com>
82405
82406         * lib/strndup.c: Use strnlen.h.
82407
82408         * lib/strnlen.h: New file.
82409
82410 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82411
82412         * README: Typos.
82413
82414 2005-08-02  Simon Josefsson  <jas@extundo.com>
82415
82416         * modules/readline: New file.
82417
82418 2005-08-02  Simon Josefsson  <jas@extundo.com>
82419
82420         * modules/getdelim: New file.
82421
82422         * modules/getline: Rewrite, don't use getndelim2.
82423
82424 2005-08-02  Simon Josefsson  <jas@extundo.com>
82425
82426         * m4/getline.m4: Separate out getdelim stuff into separate module.
82427
82428         * m4/getdelim.m4: New file.
82429
82430 2005-08-02  Simon Josefsson  <jas@extundo.com>
82431
82432         * lib/getline.h, getline.c: Rewrite.
82433
82434         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82435
82436 2005-07-31  Bruno Haible  <bruno@clisp.org>
82437
82438         * lib/lock.h (gl_lock_initializer): New macro.
82439         (gl_lock_define_initialized): Use it.
82440         (gl_rwlock_initializer): New macro.
82441         (gl_rwlock_define_initialized): Use it.
82442         (gl_recursive_lock_initializer): New macro.
82443         (gl_recursive_lock_define_initialized): Use it.
82444
82445 2005-07-30  Karl Berry  <karl@gnu.org>
82446
82447         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82448         Report from Ben Pfaff, regarding getopt.
82449
82450 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82453         normal way.
82454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82455         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82456         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82457         (gl_GETOPT): Use the new macros.  Most of the implementation
82458         is moved to the new macros.  This is for programs like Emacs
82459         that don't want all the functionality of gl_GETOPT.
82460
82461 2005-07-26  Bruno Haible  <bruno@clisp.org>
82462
82463         * m4/lock.m4: Update from GNU gettext.
82464
82465 2005-07-26  Bruno Haible  <bruno@clisp.org>
82466
82467         * lib/lock.h: Update from GNU gettext.
82468         * lib/lock.c: Update from GNU gettext.
82469
82470 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82473         obsolescent AC_TRY_RUN.  Include the default includes files, for
82474         'exit'.
82475
82476 2005-07-24  Bruno Haible  <bruno@clisp.org>
82477
82478         * modules/visibility: New file.
82479         * MODULES.html.sh (Misc): Add visibility.
82480
82481 2005-07-24  Bruno Haible  <bruno@clisp.org>
82482
82483         * m4/visibility.m4: New file.
82484
82485 2005-07-24  Bruno Haible  <bruno@clisp.org>
82486
82487         * doc/visibility.texi: New file.
82488
82489 2005-07-22  Bruno Haible  <bruno@clisp.org>
82490
82491         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82492         $(ALLOCA_H), redundant through BUILT_SOURCES.
82493         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82494         redundant through BUILT_SOURCES.
82495         * modules/byteswap (Makefile.am): Remove explicit dependency on
82496         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82497         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82498         $(FNMATCH_H), redundant through BUILT_SOURCES.
82499         * modules/getopt (Makefile.am): Remove explicit dependency on
82500         $(GETOPT_H), redundant through BUILT_SOURCES.
82501         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82502         redundant through BUILT_SOURCES.
82503         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82504         redundant through BUILT_SOURCES.
82505         * modules/stdbool (Makefile.am): Remove explicit dependency on
82506         $(STDBOOL_H), redundant through BUILT_SOURCES.
82507         * modules/stdint (Makefile.am): Remove explicit dependency on
82508         $(STDINT_H), redundant through BUILT_SOURCES.
82509         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82510         Remove explicit dependency on $(SYSEXITS_H).
82511         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82512
82513 2005-07-18  Simon Josefsson  <jas@extundo.com>
82514
82515         * lib/check-version.c (check_version): Accept identical versions too.
82516
82517 2005-07-18  Bruno Haible  <bruno@clisp.org>
82518
82519         * modules/lock: New file.
82520         * MODULES.html.sh (Multithreading): New section.
82521
82522 2005-07-18  Bruno Haible  <bruno@clisp.org>
82523
82524         * m4/lock.m4: New file, from GNU gettext.
82525
82526 2005-07-18  Bruno Haible  <bruno@clisp.org>
82527
82528         * lib/lock.h: New file, from GNU gettext.
82529         * lib/lock.c: New file, from GNU gettext.
82530
82531 2005-07-18  Bruno Haible  <bruno@clisp.org>
82532
82533         * lib/lock.h (gl_once_t): New type.
82534         (gl_once_define, gl_once): New macros.
82535         * lib/lock.c (fresh_once): New variable.
82536         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82537         functions.
82538
82539 2005-07-16  Simon Josefsson  <jas@extundo.com>
82540
82541         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82542         workaround, suggested by Bruno.
82543
82544 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * modules/xalloc (Depends-on): Add xalloc-die.
82547         * modules/xvasprintf (Depends-on): Add xalloc-die.
82548
82549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82552         with a minor change.
82553
82554 2005-07-15  Bruno Haible  <bruno@clisp.org>
82555
82556         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82557         When using lib/poll.c, define poll as rpl_poll.
82558
82559 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         * modules/argp (Depends-on): Remove unlocked-io.
82562
82563 2005-07-14  Derek Price  <derek@ximbiot.com>
82564
82565         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82566         for glob symlink bug.
82567
82568 2005-07-14  Bruno Haible  <bruno@clisp.org>
82569
82570         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82571         Instead, test for *_unlocked function declarations directly.
82572
82573 2005-07-11  Simon Josefsson  <jas@extundo.com>
82574
82575         * modules/size_max: New file.
82576
82577         * modules/xsize: Depend on size_max module for size_max.m4.
82578
82579 2005-07-11  Simon Josefsson  <jas@extundo.com>
82580
82581         * lib/size_max.h: New file.
82582
82583 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82584
82585         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82586         copyright symbol and the year.
82587         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82588         (version_etc_va): Use parameterized copyright notice.
82589         Reword to conform to the current GNU coding standards.
82590
82591 2005-07-11  Karl Berry  <karl@gnu.org>
82592
82593         * doc/gnulib.texi (Quoting): new node.
82594         (Initial import): more info, from Patrice.
82595
82596 2005-07-11  Bruno Haible  <bruno@clisp.org>
82597
82598         * gnulib-tool (func_usage): Document option --avoid.
82599         (Command line options): Handle --avoid.
82600         (func_acceptable): New function.
82601         (func_modules_transitive_closure): Use it.
82602
82603 2005-07-11  Bruno Haible  <bruno@clisp.org>
82604
82605         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82606         Reported by Jim Meyering.
82607
82608 2005-07-10  Bruno Haible  <bruno@clisp.org>
82609
82610         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82611         Needed when size_t is smaller than 'unsigned int'.
82612         Reported by Paul Eggert.
82613
82614 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82615
82616         * modules/argp (Depends-on): Add unlocked-io
82617
82618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82619
82620         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82621         block of defines.
82622
82623 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82624
82625         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82626         fix now.
82627
82628 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82629         and Paul Eggert  <eggert@cs.ucla.edu>
82630
82631         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82632         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82633
82634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * modules/regex (Files): Add lib/regex_internal.c,
82637         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82638         (Depends-on): Add extensions.
82639         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82640
82641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82642
82643         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82644         pathconf.
82645         * m4/same.m4 (gl_SAME): Likewise.
82646         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82647
82648         * m4/regex.m4: Adjust to new libc regex implementation.
82649         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82650         all the .c and .h parts of (the new) regex.
82651         Quote the m4 stuff better.
82652         Check for RE_ICASE bug of old gnulib.
82653         Check for REG_STARTEND of recent libc.
82654         Rename local variables from jm_* to gl_*.
82655         Quote operand of "test -f".
82656         Say "recent enough" version of libc, not "version 2".
82657         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82658         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82659         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82660         Remove check for btowc, isascii.
82661         Require AM_LANGINFO_CODESET.
82662
82663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * lib/regex.c, regex.h: Sync from libc.
82666         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82667         * lib/regexec.c:
82668         New files, synced from libc, except that regex_internal.h
82669         currently has a small porting fix.
82670
82671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82674         regex_internal.c, regexec.c.
82675         Add regex_internal.h too, but as a comment, since the libc version
82676         is currently broken in gnulib mode.
82677
82678 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82679
82680         Support programs like Emacs that use gnulib but not gettext.
82681         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82682         * modules/gettext-h: New file.
82683         * modules/gettext (Files): Remove lib/gettext.h.
82684         (Depends-on): Add gettext-h.
82685         (Makefile.am): Remove lib_SOURCES.
82686         * modules/argmatch, modules/c-stack, modules/closeout:
82687         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82688         * modules/execute, modules/file-type, modules/getaddrinfo:
82689         * modules/getopt, modules/human, modules/javacomp:
82690         * modules/javaexec, modules/mkdir-p, modules/obstack:
82691         * modules/openat, modules/pagealign_alloc, modules/pipe:
82692         * modules/quotearg, modules/regex, modules/rpmatch:
82693         * modules/unicodeio, modules/userspec, modules/version-etc:
82694         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82695         * modules/xsetenv:
82696         Depend on gettext-h, not gettext.
82697
82698 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         * gnulib-tool (func_import): Add support for 'public domain' license.
82701         * modules/alloca, modules/atexit, modules/memmove:
82702         Now public domain, not GPL.
82703         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82704         * modules/realloc, modules/strerror, modules/strtod:
82705         Now LGPL, not GPL.
82706
82707 2005-07-05  Bruno Haible  <bruno@clisp.org>
82708
82709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82710         autoconf CVS. Needed for mingw.
82711
82712 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         Remove the dependency of the strftime module on the tzset module.
82715         * modules/strftime (Depends-on): Remove dependency on tzset.
82716
82717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82718
82719         Remove the dependency of the strftime module on the tzset module.
82720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82721         gl_FUNC_TZSET_CLOBBER.
82722
82723 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         Remove the dependency of the strftime module on the tzset module.
82726         * lib/strftime.c (my_strftime)
82727         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82728         Copy the input structure, to work around some of the bug with
82729         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82730         Solaris releases, you should also use the tzset module, but we won't
82731         require it as a dependency any more since we don't want LGPLed code
82732         to depend on GPLed code.
82733
82734 2005-07-02  Jim Meyering  <jim@meyering.net>
82735
82736         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82737         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82738         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82739         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82740
82741 2005-07-02  Jim Meyering  <jim@meyering.net>
82742
82743         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82744
82745 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82746
82747         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82748         declares only 'struct timespec;' (!).
82749
82750 2005-07-01  Jim Meyering  <jim@meyering.net>
82751
82752         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82753         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82754         * lib/save-cwd.c, tempname.c:
82755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82756         and don't include <sys/file.h>).
82757
82758 2005-06-29  Jim Meyering  <jim@meyering.net>
82759
82760         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82761         type name.  Use the variable name instead.
82762         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82763         Likewise.
82764
82765 2005-06-28  Simon Josefsson  <jas@extundo.com>
82766
82767         * modules/check-version (Files): Add check-version.m4.
82768
82769 2005-06-28  Simon Josefsson  <jas@extundo.com>
82770
82771         * m4/check-version.m4: New file, suggested by Jim Meyering
82772         <jim@meyering.net>.
82773
82774 2005-06-28  Simon Josefsson  <jas@extundo.com>
82775
82776         * lib/check-version.h, lib/check-version.c: New files.
82777
82778 2005-06-28  Simon Josefsson  <jas@extundo.com>
82779
82780         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82781         collision with global variable.  Better indentation.  Don't
82782         increment buffer pointer beyond buffer end.  Based on comments
82783         from Paul Eggert <eggert@cs.ucla.edu>.
82784
82785         * lib/base64.h: Indent.
82786
82787 2005-06-28  Simon Josefsson  <jas@extundo.com>
82788
82789         * doc/gnulib.texi (Library version handling): New section.
82790
82791 2005-06-28  Jim Meyering  <jim@meyering.net>
82792
82793         * check-module (find_included_lib_files): Hard-code another
82794         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82795         but modules/fts-lgpl (correctly) does not list those files.
82796
82797         * modules/canonicalize (Files): Add lib/pathmax.h.
82798
82799 2005-06-25  Simon Josefsson  <jas@extundo.com>
82800
82801         * modules/check-version: New file.
82802
82803 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82806         initializer of struct addrinfo, as an indication that we don't
82807         care how many members the structure has.
82808
82809 2005-06-24  Derek Price  <derek@ximbiot.com>
82810         and Bruno Haible  <bruno@clisp.org>
82811
82812         Remove stat module & update lstat.
82813         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82815         * m4/stat.m4: Remove this file.
82816
82817 2005-06-24  Derek Price  <derek@ximbiot.com>
82818         and Bruno Haible  <bruno@clisp.org>
82819
82820         Remove stat module & update lstat.
82821         * lib/stat.c: Remove this file...
82822         (slash_aware_lstat): ...moving this content and its support...
82823         * lib/lstat.c (rpl_lstat): ...into here.
82824         * lib/lstat.h: New file.
82825
82826 2005-06-24  Derek Price  <derek@ximbiot.com>
82827         and Bruno Haible  <bruno@clisp.org>
82828
82829         Remove stat module & update lstat.
82830         * config/srclist.txt (libc sources): Remove stat.
82831
82832 2005-06-24  Derek Price  <derek@ximbiot.com>
82833         and Bruno Haible  <bruno@clisp.org>
82834
82835         Remove stat module & update lstat.
82836         * MODULES.html.sh (stat): Remove.
82837         * MODULES.html: Regenerated.
82838         * modules/lstat (Description): Correct function name.
82839         (Files): Add "lstat.h".
82840         (Depends-on): Remove stat, add xalloc, stat-macros.
82841         * modules/stat: Remove this file.
82842         (Include): Add "lstat.h", remove <sys/stat.h>.
82843
82844 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82847         (ranged_convert): Don't save conversion in a temporary struct.
82848         This causes a warning with GCC 4.0.0, and anyway in the typical
82849         case it's not worth the extra 100 bytes or so of code.
82850         (ranged_convert, __mktime_internal): When calling a function via a
82851         pointer P, use P () rather than (*P) (), as we now assume C89 or
82852         better.
82853
82854 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82857         "who -r" failed to give output.  Problem reported by Tim Waugh.
82858
82859         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82860         (xcalloc): Use it to avoid needless tests.
82861         Problem reported by Jim Meyering.
82862
82863 2005-06-20  Derek Price  <derek@ximbiot.com>
82864
82865         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82866         unnecessary for Autoconfs > 2.59c.
82867
82868 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82869
82870         * lib/argp.h (__option_is_short): Check upper limit of
82871         __key. Isprint() requires its argument to have the value
82872         of an unsigned char or EOF.
82873
82874 2005-06-16  Jim Meyering  <jim@meyering.net>
82875
82876         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82877         when either N or S is zero.
82878
82879 2005-06-16  Derek Price  <derek@ximbiot.com>
82880
82881         * m4/bison.m4: Declare YACC & YFLAGS precious.
82882
82883 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82886         multibyte string or pattern, fall back on unibyte matching.
82887         Problem reported by James Youngman.
82888
82889 2005-06-08  Bruno Haible  <bruno@clisp.org>
82890
82891         * modules/csharpcomp: New file.
82892         * MODULES.html.sh (C#): Add csharpcomp.
82893
82894 2005-06-08  Bruno Haible  <bruno@clisp.org>
82895
82896         * m4/csharpcomp.m4: New file, from GNU gettext.
82897
82898 2005-06-08  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/csharpcomp.h: New file, from GNU gettext.
82901         * lib/csharpcomp.c: New file, from GNU gettext.
82902         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82903
82904 2005-06-08  Bruno Haible  <bruno@clisp.org>
82905
82906         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82907         warning on mingw.
82908
82909 2005-06-07  Derek Price  <derek@ximbiot.com>
82910
82911         Sync from CVS.
82912         * lib/glob_.h: Indent nested #ifdef.
82913
82914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         Sync from coreutils.
82917         Use "file name" when talking about file names, instead of "filename"
82918         or "path", as per the GNU coding standards.
82919         * lib/mkdir-p.c: Renamed from makepath.c.
82920         (make_dir_parents): Renamed from make_path.  All callers changed.
82921         * lib/mkdir-p.h: Likewise.  All includers changed.
82922         * lib/filenamecat.c: Renamed from path-concat.c.
82923         (file_name_concat): Renamed from path_concat.  All callers changed.
82924         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82925         * lib/filenamecat.h: Likewise.  All includers changed.
82926         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82927         in comments or local variable names.
82928         * lib/basename.c: Likewise.
82929         * lib/canonicalize.c, canonicalize.h: Likewise.
82930         * lib/dirname.c, dirname.h: Likewise.
82931         * lib/euidaccess.c: Likewise.
82932         * lib/exclude.c: Likewise
82933         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82934         * lib/fsusage.c, fsuage.h: Likewise.
82935         * lib/fts.c, fts_.h: Likewise.
82936         * lib/getcwd.c: Likewise.
82937         * lib/getloadavg.c: Likewise.
82938         * lib/mkstemp.c: Likewise.
82939         * lib/mountlist.c, mountlist.h: Likewise.
82940         * lib/openat.c, openat.h: Likewise.
82941         * lib/readlink-stub.c: Likewise.
82942         * lib/readutmp.c, readutmp.h: Likewise.
82943         * lib/rename.c: Likewise.
82944         * lib/rmdir.c: Likewise.
82945         * lib/same.c: Likewise.
82946         * lib/savedir.c: Likewise.
82947         * lib/stripslash.c: Likewise.
82948         * lib/tempname.c: Likewise.
82949         * lib/xreadlink.c: Likewise.
82950         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82951         All uses changed.
82952         * lib/exclude.h: Likewise.
82953
82954         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82956         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82958         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82959         files have been getting away with it for years (MORE/BSD 4.3
82960         is extinct now).
82961         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82963
82964         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82965         Define to 256, not 255, as per modern POSIX.
82966
82967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82968
82969         Sync from coreutils.
82970         Use "file name" when talking about file names, instead of "filename"
82971         or "path", as per the GNU coding standards.
82972         * MODULES.html.sh: mkdir-p renamed from makepath.
82973         filenamecat renamed from path-concat.
82974         * modules/filenamecat: Renamed from modules/path-concat.
82975         (Files): filenamecat.h and filenamecat.c renamed from
82976         path-concat.h and path-concat.c.
82977         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82978         (Include): filenamecat.h, not path-concat.h.
82979         * modules/mkdir-p: Renamed from modules/makepath.
82980         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82981         makepath.c.
82982         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82983         (Include): mkdir-p.h, not makepath.h.
82984
82985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82986
82987         Sync from coreutils.
82988         * m4/mkdir-p.m4: Renamed from makepath.m4.
82989         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82990         Rename files from makepath.c to mkdir-p.c, and from
82991         makepath.h to mkdir-p.h.
82992         * m4/filenamecat.m4: Renamed from path-concat.m4.
82993         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82994         Rename files from path-concat.c to filenamecat.c,
82995         and from path-concat.h to filenamecat.h.
82996         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82997         "file name" in local variables or comments.
82998         * m4/rename.m4: Likewise.
82999
83000 2005-06-01  Bruno Haible  <bruno@clisp.org>
83001
83002         * modules/csharpexec: New file.
83003         * MODULES.html.sh (C#): New section.
83004
83005 2005-06-01  Bruno Haible  <bruno@clisp.org>
83006
83007         * m4/csharp.m4: New file, from GNU gettext.
83008         * m4/csharpexec.m4: New file, from GNU gettext.
83009
83010 2005-06-01  Bruno Haible  <bruno@clisp.org>
83011
83012         * lib/csharpexec.h: New file, from GNU gettext.
83013         * lib/csharpexec.c: New file, from GNU gettext.
83014         * lib/csharpexec.sh.in: New file, from GNU gettext.
83015
83016 2005-05-31  Derek Price  <derek@ximbiot.com>
83017             Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         Sync from cvs.
83020         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83021
83022 2005-05-31  Derek Price  <derek@ximbiot.com>
83023             Paul Eggert  <eggert@cs.ucla.edu>
83024
83025         Sync from cvs.
83026         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83027
83028 2005-05-29  Derek Price  <derek@ximbiot.com>
83029
83030         * config/srclist.txt (glob_.h, glob.c): Add these files.
83031
83032 2005-05-29  Derek Price  <derek@ximbiot.com>
83033
83034         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83035         * modules/glob: New file.
83036         * modules/getlogin_r: Add link to POSIX spec in description.
83037
83038 2005-05-29  Derek Price  <derek@ximbiot.com>
83039             Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/glob.m4: New file.
83042
83043 2005-05-29  Derek Price  <derek@ximbiot.com>
83044             Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * lib/glob_.h, lib/glob.c: New files.
83047
83048 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83051         * modules/fts-lgpl (Depends-on): Remove gettext.
83052
83053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83056         and don't require gt_INTTYPES_PRI.
83057
83058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83061
83062         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83063         the configuration hassle isn't worth it.
83064         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83065         (LONGEST_MODIFIER, PRIuMAX): Remove.
83066
83067 2005-05-27  Bruno Haible  <bruno@clisp.org>
83068
83069         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83070
83071 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83074         _POSIX_PTHREAD_SEMANTICS for Solaris.
83075
83076 2005-05-25  Derek Price  <derek@ximbiot.com>
83077
83078         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83079
83080 2005-05-25  Derek Price  <derek@ximbiot.com>
83081             Paul Eggert  <eggert@cs.ucla.edu>
83082
83083         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83084         * lib/getlogin_r.c, getlogin_r.h: New files.
83085
83086 2005-05-25  Bruno Haible  <bruno@clisp.org>
83087             Derek Price  <derek@ximbiot.com>
83088
83089         * lib/getlogin_r.h: Simplify API documentation.
83090
83091 2005-05-23  Derek Price  <derek@ximbiot.com>
83092
83093         * modules/minmax (Files): Add m4/minmax.m4.
83094         (configure.ac): Add gl_MINMAX.
83095
83096 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83097
83098         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83099         so that unistd-safer.h (GPL'ed code) need not be included.
83100
83101 2005-05-22  Bruno Haible  <bruno@clisp.org>
83102
83103         * m4/minmax.m4: New file.
83104         Based on a patch by Derek Price <derek@ximbiot.com>.
83105
83106 2005-05-22  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83109         (INT64_MIN): Fix definition.
83110         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83111
83112         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83113         NEED_SIGNED_INT_TYPES.
83114
83115         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83116         HAVE_SYSTEM_INTTYPES.
83117
83118 2005-05-22  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83121         Also include <sys/param.h> if it defines MIN, MAX.
83122         Based on a patch by Derek Price <derek@ximbiot.com>.
83123
83124 2005-05-21  Jim Meyering  <jim@meyering.net>
83125
83126         * modules/fts (Files): Add m4/inttypes-pri.m4.
83127         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83128
83129 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83130
83131         New fts module.
83132         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83133         (setup_dir, free_dir): New functions.
83134         (enter_dir, leave_dir): Define trivial
83135         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83136         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83137         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83138         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83139         Move to fts-cycle.c.
83140         (fts_open): Use setup_dir.
83141         (fts_close): Use free_dir.
83142         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83143         This adds a label and some gotos, but the alternatives were messier.
83144         Check for memory allocation failure when entering a dir.
83145         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83146         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83147         (FTS): New member fts_cycle, that is a union that contains the
83148         old active_dir_ht and cycle_state.  All uses changed to mention
83149         fts_cycle.ht and fts_cycle.state.
83150         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83151         fts.c, with the following changes:
83152         (setup_dir, free_dir): New functions.
83153         (enter_dir): Now returns bool.  Return true if successful, false
83154         if memory exhausted.  All callers changed.
83155         Do not bother partly cleaning up on
83156         memory allocation failure; that is free_dir's job.
83157         However, free ad if hash_insert fails, to avoid memory leak.
83158         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83159         fts->fts_options to see which union member to use.
83160
83161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83164         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83165
83166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83167
83168         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83169
83170 2005-05-20  Jim Meyering  <jim@meyering.net>
83171
83172         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83173         Now a macro, to pacify GCC.
83174
83175 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83176
83177         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83178         of -1.
83179
83180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83181
83182         * lib/chown.c (rpl_chown): Return -1 on failure.
83183
83184 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83185
83186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83187         Don't check for stddef.h.
83188         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83189         don't use its results.
83190         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83191         since we include them unconditionally.  Don't require
83192         AM_STDBOOL_H, since stdbool is a prerequisite.
83193         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83194         since we assume C89 or better.
83195         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83196         as we don't use their results.
83197         Don't check for fchdir, memmove, memset, strrchr, as we use
83198         them unconditionally.
83199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83200         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83201
83202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83205         Include <stddef.h> unconditionally, since we assume C89 now.
83206         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83207         * lib/fts.c: Include fts_.h first, to check interface.
83208         Do not include intprops.h; no longer needed.
83209         Include cycle-check.h and hash.h, since fts_.h no longer does.
83210         Remove unnecessary casts of closedir to void.
83211         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83212         decide whether to decrement nlinks.
83213         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83214         (FTS): Use struct hash_table * instead of Hash_table, so that
83215         we no longer need to include hash.h here.
83216
83217 2005-05-18  Jim Meyering  <jim@meyering.net>
83218
83219         * modules/dirfd (License): Change to LGPL.  Most of the code
83220         is already in the public domain.
83221
83222 2005-05-18  Jim Meyering  <jim@meyering.net>
83223
83224         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83225         Reported by Yoann Vandoorselaere.
83226
83227 2005-05-17  Jim Meyering  <jim@meyering.net>
83228
83229         * m4/fts.m4: New file, from coreutils.
83230
83231 2005-05-17  Jim Meyering  <jim@meyering.net>
83232
83233         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83234
83235 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83236
83237         Sync from coreutils.
83238         * m4/unlinkdir.m4: New file.
83239
83240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83241
83242         Sync from coreutils.
83243         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83244         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83245         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83246         White space changes only.
83247         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83248         special.
83249         * lib/yesno.c: Include getline.h, not ctype.h.
83250         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83251         Use getline to remove arbitrary restriction on response length.
83252
83253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83254
83255         * config/srclist-update: Spell out "Street" in FSF postal
83256         mail address; this is the style the FSF seems to prefer.
83257
83258         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83259         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83260         this updates FSF postal mail address.
83261
83262         Sync from coreutils.
83263         * modules/unlinkdir: New file.
83264         * modules/yesno (Depends-on): Add getline.
83265         * MODULES.html.sh (File system functions): Add unlinkdir.
83266
83267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83268
83269         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83270         lib/strsep.h:
83271         Change the initial comment to refer to GPL, not LGPL.
83272         gnulib-tool will change it to LGPL as needed.
83273
83274         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83275         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83276         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83277         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83278         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83279         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83280         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83281         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83282         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83283         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83284         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83285         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83286         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83287         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83288         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83289         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83290         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83291         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83292         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83293         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83294         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83295         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83296         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83297         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83298         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83299         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83300         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83301         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83302         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83303         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83304         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83305         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83306         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83307         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83308         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83309         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83310         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83311         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83312         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83313         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83314         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83315         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83316         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83317         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83318         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83319         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83320         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83321         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83322         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83323         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83324         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83325         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83326         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83327         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83328         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83329         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83330         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83331         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83332         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83333         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83334         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83335         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83336         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83337         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83338         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83339         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83340         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83341         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83342         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83343         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83344         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83345         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83346         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83347         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83348         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83349         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83350         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83351         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83352         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83353         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83354         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83355         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83356         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83357         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83358         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83359         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83360         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83361         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83362         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83363         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83364         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83365         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83366         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83367         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83368         lib/yesno.c, lib/yesno.h:
83369         Update FSF postal mail address.
83370
83371 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83374         tests/test-memmem.c, tests/test-stpncpy.c:
83375         Update FSF postal mail address.
83376
83377 2005-05-13  Bruno Haible  <bruno@clisp.org>
83378
83379         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83380         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83381         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83382         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83383         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83384         Add support for 64-bit integers in the MSVC compiler.
83385
83386 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83387
83388         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83389
83390 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83391
83392         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83393
83394 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * doc/getdate.texi (General date syntax): Don't say that date
83397         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83398         Problem reported by Nic Ferrier.
83399
83400 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83401
83402         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83403         specified in ai_socktype. Fix invalid ai_protocol
83404         check. ai_protocol is usually set to 0 or depending on
83405         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83406         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83407         ai_socktype / ai_protocol in the returned addrinfo structure.
83408
83409 2005-05-10  Simon Josefsson  <jas@extundo.com>
83410
83411         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83412         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83413
83414 2005-05-10  Karl Berry  <karl@gnu.org>
83415
83416         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83417         (from http://www.gnu.org/licenses).
83418         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83419         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83420         fdl.texi suffices.
83421
83422 2005-05-10  Karl Berry  <karl@gnu.org>
83423
83424         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83425         (COPYING.DOC): remove.
83426
83427         * config/srclist-update: new FSF address.
83428
83429 2005-05-10  Derek Price  <derek@ximbiot.com>
83430
83431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83432         possible.
83433
83434 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83435             Bruno Haible  <bruno@clisp.org>
83436
83437         * modules/inet_ntop: New file.
83438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83439         inet_ntop.
83440
83441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83442             Bruno Haible  <bruno@clisp.org>
83443
83444         * m4/inet_ntop.m4: New file.
83445
83446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83447             Bruno Haible  <bruno@clisp.org>
83448
83449         * lib/inet_ntop.h: New file.
83450         * lib/inet_ntop.c: New file, from glibc with modifications.
83451
83452 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * modules/time_r (License): Change to LGPL.
83455         * modules/extensions (License): Change to LGPL.  Actually,
83456         the license is more permissive than that, but currently gnulib-tool
83457         doesn't know how to handle more-permissive licenses.
83458
83459         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83460         Problem reported by Dave Love.
83461
83462 2005-05-08  Jim Meyering  <jim@meyering.net>
83463
83464         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83465         blank.
83466
83467 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83468
83469         * modules/argmatch (Depends-on): Add stdbool.
83470         * modules/backupfile (Depends-on): Likewise.
83471         * modules/chdir-long (Depends-on): Likewise.
83472         * modules/closeout (Depends-on): Likewise.
83473         * modules/cycle-check (Depends-on): Likewise.
83474         * modules/dirname (Depends-on): Likewise.
83475         * modules/fnmatch (Depends-on): Likewise.
83476         * modules/fsusage (Depends-on): Likewise.
83477         * modules/fwriteerror (Depends-on): Likewise.
83478         * modules/getcwd (Depends-on): Likewise.
83479         * modules/getloadavg (Depends-on): Likewise.
83480         * modules/hard-locale (Depends-on): Likewise.
83481         * modules/makepath (Depends-on): Likewise.
83482         * modules/mountlist (Depends-on): Likewise.
83483         * modules/nanosleep (Depends-on): Likewise.
83484         * modules/posixtm (Depends-on): Likewise.
83485         * modules/quotearg (Depends-on): Likewise.
83486         * modules/readtokens (Depends-on): Likewise.
83487         * modules/readtokens0 (Depends-on): Likewise.
83488         * modules/readutmp (Depends-on): Likewise.
83489         * modules/save-cwd (Depends-on): Likewise.
83490         * modules/strftime (Depends-on): Likewise.
83491         * modules/userspec (Depends-on): Likewise.
83492         * modules/utimecmp (Depends-on): Likewise.
83493         * modules/xgetcwd (Depends-on): Likewise.
83494         * modules/xnanosleep (Depends-on): Likewise.
83495         * modules/xstrtod (Depends-on): Likewise.
83496         * modules/yesno (Depends-on): Likewise.
83497
83498 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83499
83500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83501         needless checks.
83502
83503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         Merge from coreutils.  Among other things,
83506         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83507         * lib/fd-safer.c: New file.
83508         * lib/fcntl-safer.h, open-safer.c: Remove.
83509         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83510         * lib/dup-safer.c: Include unistd-safer.h first.
83511         Don't include errno.h.
83512         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83513         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83514         * lib/file-type.c: Rely on file-type.h change.
83515         * lib/getloadavg.c: Include unistd-safer.h.
83516         (getloadavg): Use safer open.
83517         * lib/getusershell.c: Include "stdio-safer.h".
83518         (getusershell): Use safer fopen.
83519         * lib/long-options.c (long_options): Use NULL rather than 0.
83520         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83521         'free'.
83522         * lib/modechange.c: Likewise.
83523         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83524         (MODE_DONE): New constant.
83525         (struct mode_change): Remove 'next' member.
83526         (make_node_op_equals): New function; like the old one of the
83527         same name, except it allocates an array.
83528         (mode_compile, mode_create_from_ref): Use it.
83529         (mode_compile): Allocate result as an array, not a linked list.
83530         Parse octal string ourself, so that we catch mistakes like "+0".
83531         (mode_adjust): Arg is an array, not a linked list.
83532         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83533         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83534         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83535         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83536         Remove.  This is now stat-macros.h's job.
83537         (talloc): Remove.  All callers replaced by xalloc, so that
83538         our invokers don't have to worry about reporting memory failures.
83539         (make_node_op_equals): Remove.
83540         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83541         New constants.
83542         (struct mode_change): Moved here from modechange.h.
83543         (mode_append_entry): Remove.
83544         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83545         apps to have incorrect behavior.  Use simpler algorithm for head
83546         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83547         Detect more invalid usages rather than having somewhat-random behavior.
83548         Don't insert an "a=" action, as that leads to incorrect behavior.
83549         (mode_compile, mode_create_from_ref): Return NULL on error instead
83550         of an enum, since now there's only one way to have an error.  All
83551         callers changed.
83552         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83553         at the correct time.  Simplify calculation of "+u" and its ilk.
83554         Don't mishandle "+X".
83555         (mode_free): Remove "register" and localize decls.
83556         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83557         (struct mode_change): Move to modechange.c; callers don't
83558         need to see this stuff.
83559         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83560         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83561         (mode_change, mode_adjust): Reflect the new signatures noted above.
83562         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83563         that might redefine system include files.
83564         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83565         (my_usleep): Use NULL rather than (void *) 0.
83566         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83567         Use siginterrupt to specify that system calls should be interrupted.
83568         (rpl_nanosleep): Move initialization of suspended closer to call of
83569         my_usleep.
83570         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83571         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83572         (desirable_utmp_entry): New function.
83573         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83574         using x2nrealloc, to simplify logic.
83575         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83576         size calculation.  Do not assume utmp file is a regular file.
83577         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83578         (READ_UTMP_CHECK_PIDS): New constant.
83579         * lib/save-cwd.c: Include unistd-safer.h.
83580         (save_cwd): Use fd_safer.
83581         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83582         [!_LIBC] Include "stat-macros.h" instead.
83583         * lib/unistd-safer.h (fd_safer): New decl.
83584
83585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83586
83587         * modules/getloadavg (Depends-on): Add unistd-safer.
83588         * modules/getusershell (Depends-on): Add stdio-safer.
83589         * modules/lstat (Depends-on): Remove xalloc.
83590         * modules/mkstemp (Depends-on): Add stat-macros.
83591         * modules/modechange (Depends-on): Remove xstrtol.
83592         Add stat-macros, xalloc.
83593         * modules/save-cwd (Depends-on): Add unistd-safer.
83594         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83595         * modules/unistd-safer (Files): Add lib/fd-safer.c
83596         (Makefile.am): Remove lib_SOURCES.
83597
83598         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83599         Remove fcntl-safer; unistd-safer supersedes it.
83600
83601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83604         AC_HEADER_STAT.
83605         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83606         (gl_PREREQ_CHOWN): Remove.
83607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83608         it.  Don't require AC_HEADER_STAT.
83609         (gl_PREREQ_LSTAT): Remove.
83610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83611         Don't require AC_HEADER_STAT.
83612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83613         (gl_PREREQ_RMDIR): Remove.
83614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83615         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83616         the stat-macros module a prerequisite.
83617         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83618         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83619         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83620         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83621         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83622         variable names.
83623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83624         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83625         variable prefixes.
83626         * m4/fcntl-safer.m4: Remove.
83627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83629         Invoke gl_PREREQ_FD_SAFER.
83630         (gl_PREREQ_FD_SAFER): New macro.
83631         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83632         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83633         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83634         Remove duplicate call to AC_LIBOBJ(readutmp).
83635         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83636
83637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83638         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83639
83640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * MODULES.html.sh (Misc): Add byteswap.
83643
83644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83645
83646         * modules/getcwd (Depends-on): Add extensions.
83647         * modules/openat (Depends-on): Likewise.
83648
83649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83650
83651         * modules/byteswap: New file.
83652
83653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83654
83655         * m4/byteswap.m4: New file.
83656
83657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83658
83659         * lib/byteswap_.h: New file.
83660
83661 2005-04-25  Karl Berry  <karl@gnu.org>
83662
83663         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83664
83665 2005-04-25  Albert Chin  <china@thewrittenword.com>
83666
83667         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83668         Toolkit C bug.
83669
83670 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83671
83672         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83673         (func_ln_if_changed): Remove forcibly for no error message
83674         in case file does not exist.
83675
83676 2005-04-19  Simon Josefsson  <jas@extundo.com>
83677
83678         * gnulib-tool (Options): Make --symlink mean --symbolic.
83679
83680 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83681
83682         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83683
83684 2005-04-16  Simon Josefsson  <jas@extundo.com>
83685
83686         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83687
83688 2005-04-15  Simon Josefsson  <jas@extundo.com>
83689
83690         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83691
83692 2005-04-15  Simon Josefsson  <jas@extundo.com>
83693
83694         * gnulib-tool: Rename --symlink to --symbolic.
83695
83696 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83697
83698         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83699         symbolic links to files instead of copying/moving.  Add --aux-dir,
83700         specifying directory relative --dir where auxiliary build tools
83701         are placed.
83702
83703 2005-04-14  Bruno Haible  <bruno@clisp.org>
83704
83705         * modules/allocsa (License): Change to LGPL.
83706         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83707
83708 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83711         that "UTC +1 second" continues to work.  Problem reported
83712         by Dmitry V. Levin.
83713         (relunit_snumber): New rule.
83714         (relunit): Use it.
83715
83716 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * lib/getdate.y (universal_time_zone_table): New constant.
83719         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83720         universal_time_zone_table.
83721         (lookup_zone): Prefer universal_time_zone_table to
83722         local_time_zone_table, so that "GMT" time stamps are allowed in
83723         London during the summer.  Problem reported by Ian Abbott.
83724
83725 2005-04-12  Jim Meyering  <jim@meyering.net>
83726
83727         * lib/human.c (humblock): Set *options even when returning due to
83728         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83729         warning from gcc-4.
83730
83731 2005-04-09  Jim Meyering  <jim@meyering.net>
83732
83733         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83734         -Wuninitialized: initialize tm0.tm_year.
83735
83736 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83739         count, since there's no maximum.  All uses changed.
83740         Add member dsts_seen.
83741         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83742         not being INT_MAX.
83743         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83744         Use pc_rels_seen to decide whther a date is absolute.
83745
83746         * lib/getdate.y (number): Don't overwrite year.
83747         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83748         check.
83749
83750 2005-04-02  Simon Josefsson  <jas@extundo.com>
83751
83752         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83753         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83754
83755 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83756
83757         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83758         where no absolute path name can be longer than PATH_MAX.
83759
83760 2005-03-27  Jim Meyering  <jim@meyering.net>
83761
83762         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83763
83764 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83765
83766         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83767         "one's complement" -> "ones' complement" in comment, as per Knuth.
83768         "value of type" -> "type or expression" in comment.
83769         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83770
83771 2005-03-26  Jim Meyering  <jim@meyering.net>
83772
83773         Comment nits.
83774         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83775         Correct typos: s/or/of/.
83776
83777 2005-03-26  Jim Meyering  <jim@meyering.net>
83778
83779         * modules/check-include-files: Move to ../ and rename to...
83780         * check-module: ...this.
83781
83782 2005-03-25  Jim Meyering  <jim@meyering.net>
83783
83784         * modules/xvasprintf (Files): Add xalloc.h.
83785
83786 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83787
83788         * modules/gettext (Files): config/config.rpath ->
83789         build-aux/config.rpath
83790         * modules/iconv (Files): Likewise.
83791         Problem reported by Oskar Liljeblad.
83792
83793 2005-03-23  Jim Meyering  <jim@meyering.net>
83794
83795         * modules/check-include-files: New script to check for
83796         missing dependencies, multiple includes, etc.
83797
83798         * modules/c-strtold (Depends-on): Add xalloc.
83799         * modules/c-strtod (Depends-on): Add xalloc.
83800         * modules/hash (Depends-on): Add xalloc.
83801         (Files): Remove lib/xalloc.h.
83802
83803         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83804         * modules/userspec (Files): Add lib/inttostr.h.
83805
83806 2005-03-23  Jim Meyering  <jim@meyering.net>
83807
83808         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83809
83810 2005-03-22  Jim Meyering  <jim@meyering.net>
83811
83812         * modules/stat-macros: New module.
83813         * modules/canonicalize, modules/euidaccess, modules/file-type,
83814         * modules/filemode, modules/lchown, modules/makepath,
83815         * modules/rmdir, modules/stat: Depend on new stat-macros module
83816         rather than listing lib/stat-macros.h manually.
83817         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83818
83819 2005-03-22  Jim Meyering  <jim@meyering.net>
83820
83821         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83822
83823 2005-03-22  Bruno Haible  <bruno@clisp.org>
83824
83825         * config/srclist.txt: Replace target directory 'config' with
83826         'build-aux'.
83827         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83828         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83829         ../build-aux/.
83830
83831 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * modules/chdir-long (Depends-on): Add mempcpy.
83834
83835         * modules/acl, modules/backupfile, modules/c-strtod,
83836         modules/c-strtold, modules/canon-host, modules/canonicalize,
83837         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83838         modules/exclude, modules/exitfail, modules/file-type,
83839         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83840         modules/getdate, modules/getline, modules/getpagesize,
83841         modules/getpass, modules/getugroups, modules/group-member,
83842         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83843         modules/inttostr, modules/long-options, modules/makepath,
83844         modules/md5, modules/memcasecmp, modules/memcoll,
83845         modules/modechange, modules/mountlist, modules/path-concat,
83846         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83847         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83848         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83849         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83850         modules/strftime, modules/strndup, modules/strverscmp,
83851         modules/timespec, modules/unlocked-io, modules/userspec,
83852         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83853         modules/yesno:
83854         Remove lib_SOURCES line from Makefile.am section, as this is now
83855         done automatically by the corresponding Autoconf macro.
83856
83857 2005-03-21  Jim Meyering  <jim@meyering.net>
83858
83859         Changes imported from coreutils.
83860
83861         * lib/cycle-check.c: Don't include xalloc.h.
83862
83863         * lib/path-concat.c: Don't include assert.h.
83864         (path_concat): Remove assertion that would have triggered
83865         for ABASE starting with more than one slash.
83866         Reported by Andreas Schwab.
83867
83868         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83869         properly when ABASE is an absolute file name.
83870         Correct the description of this function.
83871         Include <assert.h>.
83872         Add an assertion and a test driver.
83873         This fixes a bug introduced on 2004-07-02.
83874         Andreas Schwab reported the resulting failure of cp --parents:
83875         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83876
83877 2005-03-21  Jim Meyering  <jim@meyering.net>
83878
83879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83881
83882 2005-03-21  Jim Meyering  <jim@meyering.net>
83883         and  Paul Eggert  <eggert@cs.ucla.edu>
83884
83885         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83886         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83887         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83888         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83889         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83890         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83891         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83892         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83893         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83894         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83895         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83896         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83897         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83898         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83899         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83900         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83901         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83902         for these modules.
83903
83904 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83905
83906         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83907         (which shouldn't happen), generate nothing instead of returning 0
83908         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83909
83910 2005-03-16  Bruno Haible  <bruno@clisp.org>
83911
83912         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83913         HAVE_LONGLONG_64BIT.
83914
83915 2005-03-16  Bruno Haible  <bruno@clisp.org>
83916
83917         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83918         HAVE_LONGLONG_64BIT.
83919
83920 2005-03-16  Bruno Haible  <bruno@clisp.org>
83921
83922         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83923         HAVE_LONGLONG_64BIT.
83924
83925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83926
83927         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83928         reliably distinguish strftime failure from empty output on POSIX
83929         hosts.
83930
83931 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83932
83933         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83934         (iconv_string): Don't guess a size-zero buffer, as that might cause
83935         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83936         result would be 'too large', where 'too large' is (heuristically)
83937         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83938         overflow concerns.  This will prevent some unwanted malloc failures
83939         when the inputs are very large.
83940
83941 2005-03-15  Karl Berry  <karl@gnu.org>
83942
83943         * config/srclist.txt (config.rpath): from gettext.
83944         * config/config.rpath: update.
83945
83946 2005-03-15  Bruno Haible  <bruno@clisp.org>
83947
83948         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83949         to 'negate'.
83950
83951         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83952         variable.
83953
83954         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83955         results.
83956
83957 2005-03-14  Simon Josefsson  <jas@extundo.com>
83958
83959         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83960         <fx@gnu.org>.
83961
83962 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83965         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83966         intprops.h.
83967         * lib/strtol.c: Likewise.
83968
83969 2005-03-14  Jim Meyering  <jim@meyering.net>
83970
83971         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83972         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83973         to be nonzero so that we (and caller) can detect the difference
83974         between a valid zero-length expansion and an error return, even
83975         when the underlying strftime fails before writing anything into
83976         that location.
83977
83978 2005-03-14  Bruno Haible  <bruno@clisp.org>
83979
83980         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83981         Update from GNU gettext 0.14.3.
83982
83983 2005-03-10  Jim Meyering  <jim@meyering.net>
83984
83985         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83986
83987 2005-03-10  Jim Meyering  <jim@meyering.net>
83988
83989         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83990         so that this module works on systems without fchdir.
83991
83992 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         Factor int-properties macros into a single file, except for
83995         glibc-related files.
83996         * lib/intprops.h: New file.
83997         * lib/getloadavg.c: Include it instead of limits.h.
83998         (INT_STRLEN_BOUND): Remove.
83999         * lib/human.c: Include intprops.h.
84000         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84001         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84002         302/1000.
84003         * lib/inttostr.h: Include intprops.h instead of limits.h.
84004         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84005         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84006         for consistency with intprops.h.
84007         (time_t_is_integer, twos_complement_arithmetic): Use them.
84008         * lib/sig2str.h: Include <signal.h>, intprops.h.
84009         (INT_STRLEN_BOUND): Remove.
84010         * lib/strftime.c (TYPE_SIGNED): Remove.
84011         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84012         * lib/strtol.c: Adjust comments to match intprops.h.
84013         * lib/userspec.c: Include intprops.h.
84014         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84015         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84016         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84017         instead of rolling our own expressions.
84018         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84019
84020         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84021         instead of int.
84022         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84023         the right thing even if adding 1900 would overflow.  Similarly
84024         for tm_mon + 1 and tm_yday + 1.
84025         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84026         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84027         (DO_SIGNED_NUMBER): New macro.
84028         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84029
84030 2005-03-07  Bruno Haible  <bruno@clisp.org>
84031
84032         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84033
84034 2005-03-07  Bruno Haible  <bruno@clisp.org>
84035
84036         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84037
84038 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84039
84040         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84041         (func_import): Only replace files via --import when they have actually
84042         changed.
84043
84044 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84045
84046         * m4/mmap-anon.m4: New file.
84047         * m4/pagealign_alloc.m4: New file.
84048
84049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84050             Bruno Haible  <bruno@clisp.org>
84051
84052         * modules/pagealign_alloc: New file.
84053         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84054
84055 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84056             Bruno Haible  <bruno@clisp.org>
84057
84058         * lib/pagealign_alloc.h: New file.
84059         * lib/pagealign_alloc.c: New file.
84060
84061 2005-03-03  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84064         Use an all-permissive copyright notice, recommended by RMS.
84065
84066 2005-03-02  Bruno Haible  <bruno@clisp.org>
84067
84068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84069         of AIX, the replacement has to be done only after <string.h> is
84070         included, therefore not in config.h. stpncpy.h does the replacement,
84071         and stpncpy.c uses it.
84072
84073 2005-03-02  Bruno Haible  <bruno@clisp.org>
84074
84075         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84076         stpncpy.c uses it.
84077
84078 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84081         The workaround isn't strictly needed for POSIX conformance, and
84082         it's too much of a pain to configure and maintain.  We'll ask
84083         people to fix their kernels instead.
84084         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84085         (NANOSLEEP_BUG_WORKAROUND): Remove.
84086         (xnanosleep): Remove the workaround.
84087
84088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84091         Reported by Derek Price.
84092         (Include): Add "timespec.h".
84093
84094         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84095
84096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84099         to detect nanosleep bug.
84100
84101 2005-03-01  Bruno Haible  <bruno@clisp.org>
84102
84103         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84104
84105 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84106
84107         * modules/gethrxtime: New file.
84108         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84109         (Depends-on): Add gethrxtime.
84110         (configure.ac): Add gl_XNANOSLEEP.
84111         (Makefile.am): Remove lib_SOURCES line.
84112
84113 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84116         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84117
84118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84121         * lib/timespec.h (gettime): Return void, since it always
84122         succeeds now.  All uses changed.
84123         * lib/gettime.c (gettime): Likewise.
84124         [HAVE_NANOTIME]: Prefer nanotime.
84125         Assume gettimeofday succeeds, as POSIX requires.
84126         Assime time () succeeds, since other code already does.
84127         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84128         (timespec_subtract): Remove.
84129         (NANOSLEEP_BUG_WORKAROUND): New constant.
84130         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84131         things considerably.  Use it only on GNU/Linux hosts, since the
84132         workaround shouldn't be needed elsewhere.
84133
84134 2005-02-24  Bruno Haible  <bruno@clisp.org>
84135
84136         * modules/gettext (Files): Add m4/glibc2.m4.
84137
84138 2005-02-24  Bruno Haible  <bruno@clisp.org>
84139
84140         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84141         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84142         * m4/progtest.m4:
84143         Update from GNU gettext 0.14.2.
84144         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84145
84146 2005-02-24  Bruno Haible  <bruno@clisp.org>
84147
84148         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84149         * lib/config.charset: Update from GNU gettext 0.14.2.
84150
84151 2005-02-24  Bruno Haible  <bruno@clisp.org>
84152
84153         * lib/gettext.h: Update from GNU gettext 0.14.2.
84154
84155 2005-02-23  Simon Josefsson  <jas@extundo.com>
84156
84157         * m4/iconvme.m4: New file.
84158
84159 2005-02-23  Jim Meyering  <jim@meyering.net>
84160
84161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84162         change.
84163         Thanks to Bruno Haible for catching it.
84164
84165 2005-02-22  Simon Josefsson  <jas@extundo.com>
84166
84167         * modules/iconvme: New file.
84168
84169         * MODULES.html.sh: Add iconvme.
84170
84171 2005-02-22  Simon Josefsson  <jas@extundo.com>
84172
84173         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84174
84175 2005-02-22  Simon Josefsson  <jas@extundo.com>
84176
84177         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84178
84179 2005-02-22  Jim Meyering  <jim@meyering.net>
84180
84181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84182         s/ifndef/ifdef/.
84183
84184 2005-02-20  Neil Conway  <neilc@samurai.com>
84185
84186         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84187         returned by OSX/Darwin if the specified buffer is not large
84188         enough for the hostname.
84189
84190 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84191
84192         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84193         pass it to _help, otherwise the latter coredumps trying to
84194         dereference state.root_argp.
84195
84196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84197
84198         * modules/chdir-long (Depends-on): Add memrchr.
84199         * modules/memrchr (Files): Add lib/memrchr.h.
84200         (Include): "memrchr.h".
84201
84202 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84203
84204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84205
84206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84207
84208         * lib/memrchr.h: New file.
84209         * lib/chdir-long.c: Include it.
84210         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84211         Don't bother including stddef.h.
84212
84213 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84214
84215         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84216         inclusion.
84217         Include <sys/types.h>, for dev_t.
84218         (ME_DUMMY, ME_REMOTE): Move from here....
84219         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84220         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84221         Dmitry V. Levin.
84222         Include mountlist.h first, to test the interface.
84223
84224 2005-01-29  Bruno Haible  <bruno@clisp.org>
84225
84226         * lib/progname.c (program_name): Initialize.
84227         Needed when linking statically on MacOS X.
84228
84229 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         Sync from coreutils.
84232         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84233         (Depends-on): Add c-strtod.
84234         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84235
84236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         Sync from coreutils.
84239         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84240
84241         Remove files that are specific to coreutils.
84242         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84243
84244 2005-01-28  Bruno Haible  <bruno@clisp.org>
84245
84246         * modules/javacomp: New file.
84247         * MODULES.html.sh (Java): Add javacomp.
84248
84249 2005-01-28  Bruno Haible  <bruno@clisp.org>
84250
84251         * m4/javacomp.m4: New file, from GNU gettext.
84252
84253 2005-01-28  Bruno Haible  <bruno@clisp.org>
84254
84255         * lib/javacomp.sh.in: New file, from GNU gettext.
84256         * lib/javacomp.h: New file, from GNU gettext.
84257         * lib/javacomp.c: New file, from GNU gettext.
84258
84259 2005-01-26  Simon Josefsson  <jas@extundo.com>
84260
84261         * lib/gai_strerror.c: Use GPL in header.
84262
84263 2005-01-26  Bruno Haible  <bruno@clisp.org>
84264
84265         * modules/javaexec: New file.
84266         * MODULES.html.sh (Java): Add javaexec.
84267
84268 2005-01-26  Bruno Haible  <bruno@clisp.org>
84269
84270         * m4/javaexec.m4: New file, from GNU gettext.
84271
84272 2005-01-26  Bruno Haible  <bruno@clisp.org>
84273
84274         * lib/javaexec.sh.in: New file, from GNU gettext.
84275         * lib/javaexec.h: New file, from GNU gettext.
84276         * lib/javaexec.c: New file, from GNU gettext.
84277
84278 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84279
84280         * modules/lchown (Depends-on): Remove lchown.h
84281
84282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84283
84284         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84285         must be defined if the header file was not found, in order
84286         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84287
84288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84289
84290         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84291         initializers for struct pentry_state.
84292         (__argp_error): Check return value of __asprintf
84293         (__argp_failure): Translate error message
84294
84295         * lib/argp-parse.c: Removed braces around the expansion of N_()
84296
84297 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84300         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84301         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84302         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84303         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84304         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84305         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84306         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84307         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84308         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84309         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84310         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84311         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84312         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84313         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84314         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84315         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84316         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84317         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84318         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84319         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84320         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84321         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84322         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84323         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84324         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84325         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84326         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84327         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84328         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84329         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84330         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84331         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84332         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84333         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84334         Use an all-permissive copyright notice, recommended by RMS.
84335
84336 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84337
84338         * modules/chdir-long (Depends-on): Remove mempcpy.
84339
84340 2005-01-21  Jim Meyering  <jim@meyering.net>
84341
84342         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84343         same value as for Solaris 9.
84344
84345         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84346         component length.  This included changing the parameter to be
84347         of type `char *' rather than `char const *'.
84348         * lib/chdir-long.h (chdir_long): Update prototype.
84349
84350         * lib/openat.c (fdopendir, fstatat): New functions.
84351         * lib/openat.h: Include headers required for use of DIR and struct
84352         stat.
84353         [AT_SYMLINK_NOFOLLOW]: Define.
84354         (fdopendir, fstatat): Add prototypes.
84355
84356 2005-01-21  Bruno Haible  <bruno@clisp.org>
84357
84358         * modules/classpath: New file.
84359         * MODULES.html.sh (Java): Add classpath.
84360
84361 2005-01-21  Bruno Haible  <bruno@clisp.org>
84362
84363         * lib/classpath.h: New file, from GNU gettext.
84364         * lib/classpath.c: New file, from GNU gettext.
84365
84366 2005-01-20  Simon Josefsson  <jas@extundo.com>
84367
84368         * modules/version-etc-fsf: New file.
84369
84370 2005-01-20  Simon Josefsson  <jas@extundo.com>
84371
84372         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84373         * lib/version-etc.c: Remove version_etc_copyright.
84374         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84375         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84376
84377 2005-01-20  Simon Josefsson  <jas@extundo.com>
84378
84379         * lib/base64.h (isbase64): Add.
84380
84381         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84382         using a unsigned prototype, don't inline.
84383         (base64_decode): Use it.
84384
84385 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84388         it.
84389
84390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * lib/save-cwd.c (save_cwd): Remove code to support the case
84393         where fchdir is missing or flaky.
84394
84395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84398
84399 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84400
84401         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84402         AC_LIBSOURCES now does this.
84403         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84404         with new ullong_max module.
84405
84406 2005-01-19  Bruno Haible  <bruno@clisp.org>
84407
84408         * modules/sh-quote: New file.
84409         * MODULES.html.sh (Executing programs): Add sh-quote.
84410
84411 2005-01-19  Bruno Haible  <bruno@clisp.org>
84412
84413         * lib/sh-quote.h: New file, from GNU gettext.
84414         * lib/sh-quote.c: New file, from GNU gettext.
84415
84416 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         Merge from coreutils.
84419         * m4/ullong_max.m4: New file.
84420         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84421         (gl_MACROS): Assume localeconv exists.
84422
84423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84424
84425         Merge changes from coreutils, as described below in several
84426         changelogs dated today.
84427
84428         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84429         (O_DIRECTORY): Remove; not needed here, since "." must be
84430         a directory.  All uses removed.
84431         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84432         universal on Suns, and we also need to test for IRIX.
84433         Revamp code to use 'if' rather than '#if'.
84434         Avoid unnecessary comparison of cwd->desc to 0.
84435
84436         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84437         for known valid error numbers rather than observed invalid ones.
84438
84439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * modules/ullong_max: New file.
84442
84443         * modules/chdir-long, modules/openat: New files.
84444         * modules/save-cwd (Depends-on): Depend on chdir-long.
84445         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84446
84447 2005-01-18  Jim Meyering  <jim@meyering.net>
84448
84449         Merge from coreutils.
84450         * m4/chdir-long.m4, m4/openat.m4: New files.
84451         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84452         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84453         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84454         is sane and DOES follow symlinks.  Besides, testing 20 different
84455         systems found no broken chown implementations.
84456         Prompted by a change in rsync's copy of this macro.
84457         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84458
84459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84460
84461         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84462         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84463         NULL-means-set-to-current-time semantics.
84464         Remove temporary file immediately, rather than waiting
84465         for configure's at-exit trap code to do it.
84466
84467 2005-01-18  Jim Meyering  <jim@meyering.net>
84468
84469         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84470
84471         * lib/utimens.c (futimens): Account for the fact that futimes
84472         can also fail with errno == ENOSYS or errno == ENOENT.
84473         Patch from Dmitry V. Levin.
84474
84475         Change the name of the robust chdir function from chdir to chdir_long.
84476         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84477         (restore_cwd): Use chdir_long, not chdir.
84478         * lib/chdir-long.c: Renamed from chdir.c.
84479         * lib/chdir-long.h: Renamed from chdir.h.
84480         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84481         Hurd.
84482
84483 2005-01-18  Bruno Haible  <bruno@clisp.org>
84484
84485         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84486         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84487         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84488         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84489         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84490         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84491         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84492         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84493         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84494         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84495         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84496         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84497         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84498         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84499         Use an all-permissive copyright notice, recommended by RMS.
84500
84501 2005-01-18  Bob Proulx  <bob@proulx.com>
84502
84503         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84504         simplify offsetof() macro construct to avoid compile failure with
84505         native HP-UX 11.0 ANSI C compiler.
84506
84507 2005-01-17  Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84510         redundant because stpncpy.m4 takes care of it.
84511
84512 2005-01-17  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84515
84516 2005-01-17  Bruno Haible  <bruno@clisp.org>
84517
84518         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84519         used.
84520
84521 2005-01-17  Bruno Haible  <bruno@clisp.org>
84522
84523         * lib/fwriteerror.h (fwriteerror): Change specification to include
84524         fclose.
84525         * lib/fwriteerror.c: Include <stdbool.h>.
84526         (fwriteerror): At the end, close the file stream. Record whether
84527         stdout was already closed.
84528
84529 2005-01-17  Bruno Haible  <bruno@clisp.org>
84530
84531         * lib/execute.c (environ): Declare if needed.
84532         * lib/pipe.c (environ): Likewise.
84533         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84534
84535 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84536
84537         * modules/argp: Depend on vsnprintf
84538
84539 2005-01-10  Jim Meyering  <jim@meyering.net>
84540
84541         * modules/closeout (Depends-on): Add atexit.
84542
84543 2005-01-06  Bruno Haible  <bruno@clisp.org>
84544
84545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84546
84547 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84548
84549         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84550         definitions to be after all include files, to avoid collisions.
84551         Problem reported by Bob Proulx.
84552
84553 2005-01-04  Jim Meyering  <jim@meyering.net>
84554
84555         Changes imported from coreutils.
84556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84557         as the mkstemp template, use a temporary directory and an
84558         8.3-friendly template to avoid trouble on systems like DJGPP.
84559         Reported by Juan M. Guerrero via Stepan Kasal.
84560         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84561         close. Remove the temporary directory right away, rather than waiting
84562         for configure's at-exit trap code to do it.
84563         Suggestion from Stepan Kasal.
84564
84565 2005-01-01  Simon Josefsson  <jas@extundo.com>
84566
84567         * gnulib-tool: Print #include directives when --import'ing.
84568
84569 2004-12-28  Simon Josefsson  <jas@extundo.com>
84570
84571         * tests/test-base64.c: Include required header files.  Remove
84572         unused variables.
84573
84574 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * modules/error (Depends-on): Remove gettext.
84577
84578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84581         not needed.  This removes a dependency on the gettext module.
84582         [defined _LIBC]: Do not include <libintl.h>; not needed.
84583
84584 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84587         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84588
84589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84592         HAVE_DECL_STRTOLD.
84593
84594 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * modules/getdate (Depends-on): Remove alloca-opt.
84597
84598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84601
84602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84603
84604         * lib/argp-parse.c: Include <stddef.h>.
84605         (alignof, alignto): New macros.
84606         (parser_init): Don't assume that void * is aligned sufficiently
84607         for struct option.
84608
84609         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84610         need to extend the stack.
84611         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84612         large.
84613
84614 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84615
84616         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84617
84618 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84621         (2004-10-24) change.  Apparently this was a false alarm.
84622
84623         * modules/getdate: Depend on alloca-opt, not alloca.
84624
84625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84626
84627         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84628         Remove now-obsolete comment about AIX.
84629         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84630         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84631         (YYMAXDEPTH): New macro.
84632
84633 2004-12-18  Simon Josefsson  <jas@extundo.com>
84634
84635         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84636
84637 2004-12-18  Bruno Haible  <bruno@clisp.org>
84638
84639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84640
84641 2004-12-18  Bruno Haible  <bruno@clisp.org>
84642
84643         * lib/fatal-signal.c (fatal_signals): Make non-const.
84644         (init_fatal_signals): New function.
84645         (uninstall_handlers, install_handlers): Ignore signals that were set to
84646         SIG_IGN.
84647         (at_fatal_signal): Call init_fatal_signals.
84648         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84649         SIG_IGN.
84650         Reported by Paul Eggert.
84651
84652 2004-12-18  Bruno Haible  <bruno@clisp.org>
84653
84654         * doc/alloca.texi: New file.
84655         * doc/alloca-opt.texi: New file.
84656
84657 2004-12-17  Jim Meyering  <jim@meyering.net>
84658
84659         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84660         Otherwise, install-sh could exit with improper exit status when
84661         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84662
84663 2004-12-16  Simon Josefsson  <jas@extundo.com>
84664
84665         * tests/test-base64.c: Add license.
84666
84667 2004-12-15  Stepan Kasal  <address@hidden>
84668
84669         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84670
84671 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84672
84673         * modules/getcwd (Files): Add m4/d-ino.m4.
84674         Suggested by Mark D. Baushke.
84675
84676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * lib/getdate.y (textint): New member "negative".
84679         (time_zone_hhmm): New function.
84680         Expect 14 shift-reduce conflicts, not 13.
84681         (o_colon_minutes): New rule.
84682         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84683         (yylex): Set the "negative" member of signed numbers.
84684
84685 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84686
84687         * doc/getdate.texi (Time of day items, Time zone items):
84688         Describe new formats +00:00, UTC+00:00.
84689
84690 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84693         spurious "-l"s.  Problem reported by Stepan Kasal.
84694
84695 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84698         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84699
84700 2004-12-04  Simon Josefsson  <jas@extundo.com>
84701
84702         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84703         Vandoorselaere <yoann@prelude-ids.org>.
84704
84705 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         Changes imported from coreutils.
84708         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84709         exist.
84710         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84711
84712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         Changes imported from coreutils.
84715         * lib/hard-locale.c: Assume <locale.h> exists.
84716         Include "strdup.h".
84717         (GLIBC_VERSION): New macro.
84718         (hard_locale): Assume setlocale exists.
84719         Rewrite to avoid #ifdef.
84720         Use strdup rather than malloc + strcpy.
84721         * lib/human.c: Assume <locale.h> exists.
84722         (human_readable): Assume localeconv exists.
84723
84724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * modules/hard-locale (Depends-on): Add strdup.
84727
84728 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84729
84730         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84731         convert T2, not T.  (Imported from libc.)
84732
84733 2004-11-30  Simon Josefsson  <jas@extundo.com>
84734
84735         * modules/restrict (License): Change to LGPL.
84736
84737 2004-11-30  Simon Josefsson  <jas@extundo.com>
84738
84739         * m4/restrict.m4: Add copyright and copying conditions.
84740
84741 2004-11-30  Simon Josefsson  <jas@extundo.com>
84742
84743         * m4/base64.m4: New file.
84744
84745 2004-11-30  Simon Josefsson  <jas@extundo.com>
84746
84747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84748         base64.
84749
84750         * tests/test-base64.c: New file.
84751
84752         * modules/base64: New file.
84753
84754 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84755
84756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84757         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84758
84759         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84760
84761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84764         (__getcwd.c): Don't restore errno; glibc doesn't.
84765         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84766         first, falling back to our code only if its results look suspicious.
84767         Ensure that the resulting buffer is only as large as necessary.
84768
84769         * lib/readutmp.c: Include readutmp.h first.
84770         Include <errno.h>, since readutmp.h no longer does that.
84771         * lib/readutmp.h: Don't include <errno.h>,
84772         <sys/param.h>, <time.h>; not needed to establish interface.
84773         (errno): Remove decl.
84774         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84775         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84776         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84777
84778 2004-11-28  Simon Josefsson  <jas@extundo.com>
84779
84780         * lib/base64.h, base64.c: New file.
84781
84782 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84785
84786 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84789         (Depends-on): Remove pathmax, same.  Add mempcpy.
84790         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84791         (Makefile.am): Append getcwd.h to lib_SOURCES.
84792         (Include): Add getcwd.h.
84793         (Maintainer): Change from Jim Meyering to "all, glibc",
84794         since getdate now uses intended-for-glibc code.
84795         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84796         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84797
84798 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84799
84800         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84801         HP's ANSI C compiler.
84802         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84803         Declaring int functions causes warnings on some modern systems and
84804         shouldn't be needed to compile on ancient ones.
84805         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84806         defined.
84807
84808         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84809         with the following changes.
84810         (__set_errno): Parenthesize properly.
84811         Include <stdbool.h>.
84812         (MIN, MAX, MATCHING_INO): New macros.
84813         (__getcwd): Define with prototype, not K&R form.
84814         Use heuristics to allocate default buffer on stack if possible.
84815         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84816         behavior, and to avoid the PATH_MAX limit when computing
84817         ../../../../...
84818         Use MATCHING_INO to compare inode number to file.
84819         Check for arithmetic overflow in size calculations.
84820         Fix bug in reallocation of dot array that caused getcwd to fail
84821         on directories nested deeper than 75.
84822         Be more careful about saving errno on error.
84823         Do not use realloc; use only free+malloc, as this is a bit
84824         more flexible and avoids a needless copy operation.
84825         Do not inspect st_dev and st_ino for symbolic links; POSIX
84826         doesn't specify the latter.
84827         Check for closedir errors.
84828         Avoid needless casts.
84829         Use "#ifdef weak_alias" around weak_alias, to be like other
84830         glibc code.
84831         The following changes to getcwd.c have effect only when used in
84832         gnulib; they have no effect inside glibc proper.
84833         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84834         as alloca isn't used.
84835         (alloca, __alloca): Likewise.
84836         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84838         unconditionally, as gnulib assumes C89 or better.
84839         Do not include <sys/param.h>.
84840         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84841         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84842         better.
84843         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84844         Include <dirent.h> in a way that is compatible with modern Autoconf.
84845         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84846         New macros, if not already defined.
84847         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84848         Use "_LIBC", not "defined _LIBC", for consistency.
84849         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84850         a mempcpy module.
84851         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84852         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84853         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84854         credit only to Jim Meyering and adjust the copyright dates.
84855         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84856         <stdlib.h>, <unistd.h>, "pathmax.h".
84857         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84858         (INITIAL_BUFFER_SIZE): Remove.
84859         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84860
84861 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84862
84863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84864         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84865         Use the _ONCE methods, for efficiency.
84866         Check for fcntl.h.  In test program, include <errno.h>
84867         and <fcntl.h> if available.  Remove old K&R cruft from
84868         test program.  Check for common errors in GNU/Linux,
84869         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84870         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84872         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84873         name accordingly.
84874         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84875         accommodate new getcwd.c.
84876         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84878         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84879         that's all we need now.
84880
84881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84882
84883         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84884         argp-parse.c depends on getopt internals, that means we should
84885         always use our getopt, to be on the safe side.
84886         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84887         order not to spoil the result of an eventual previous invocation
84888         of gl_GETOPT_SUBSTITUTE.
84889
84890 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84891
84892         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84893         redefinition warnings. To avoid them, include the defines
84894         in `#if !defined __need_getopt ... #endif'. The only place
84895         where __getopt_argv_const is used is in definitions
84896         of getopt_long and getopt_long_only below, which are as well
84897         protected by `#ifndef __need_getopt'.
84898         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84899         __need_getopt after including <stdio.h> and <unistd.h> These
84900         headers might have defined it.
84901
84902 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84905
84906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84907
84908         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84909         (futimens): New function, which uses futimes if available.
84910         (futimens, utimens): Support timespec==NULL, with same semantics
84911         as utime and utimens.
84912         * lib/utimens.h (futimens): New decl.
84913
84914 2004-11-23  Jim Meyering  <jim@meyering.net>
84915
84916         * lib/getopt_.h: Remove trailing blanks.
84917
84918 2004-11-23  Jim Meyering  <jim@meyering.net>
84919
84920         * lib/__fpending.c: Add comment.
84921
84922 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84923
84924         * modules/canonicalize (Depends-on): Add xreadlink.
84925         Problem reported by James Youngman.
84926
84927 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84930         New macros.
84931         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84932         optopt): Use them instead of invoking ## directly; otherwise, the
84933         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84934
84935 2004-11-19  Bruno Haible  <bruno@clisp.org>
84936
84937         * lib/strtok_r.c: Move comments from here...
84938         * lib/strtok_r.h: ... to here.
84939
84940 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84941
84942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84943         implementations that mishandle size_t overflow.
84944
84945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84948         might fail.  Problem reported by Yoann Vandoorselaere.
84949         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84950         implementations that mishandle size_t overflow.
84951
84952 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * modules/canon-host (Depends-on): Add strdup.
84955
84956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84959
84960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84961
84962         * lib/canon-host.c: Include "strdup.h".
84963         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84964         Use strdup instead of malloc/strcpy to duplicate strings.
84965
84966         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84967         (human_space_before_unit): New constant.
84968         * lib/human.c (human_readable): Support it.
84969
84970         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84971         (xgetcwd): Set errno correctly when failing.
84972         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84973         the failure is actually due to a PATH_MAX problem.
84974
84975         Further getopt changes to make it more likely that glibc will
84976         buy the changes back.
84977         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84978         (getopt): Use it, so to preserve glibc semantic
84979         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84980         when compiling for libc.
84981         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84982         (getopt_long, getopt_long_only): Use it.
84983
84984         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84985         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84986         (getopt): Argv is now char * const *, as per standard.
84987         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84988         not char *__getopt_argv_const *.
84989         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84990         _getopt_long_only_r): Likewise.
84991         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84993         _getopt_long_r, _getopt_long_only_r): Likewise.
84994         * lib/getopt_.h (__getopt_argv_const): Remove.
84995         (getopt): Argv is now char * const *, as per standard.
84996
84997         * lib/getdate.y (tORDINAL): New token.
84998         (day, relunit): Allow it for relative times.
84999         (relative_time_table): Use tORDINAL for ordinals.
85000
85001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85004         Document that "second" isn't allowed as an ordinal number.
85005
85006 2004-11-16  Jim Meyering  <jim@meyering.net>
85007
85008         * modules/closeout (Depends-on): Add fpending.
85009
85010 2004-11-15  Jim Meyering  <jim@meyering.net>
85011
85012         * lib/closeout.c: Include "__fpending.h" once again.
85013         Include <stdbool.h>.
85014         (close_stdout): Don't fail just because stdout was closed initially,
85015         since some programs don't write to stdout in the normal course of
85016         operation (other than --version and --help), and we don't want this
85017         function to make e.g. `touch file >&-' fail.
85018         But do fail if it was closed and someone has tried to write to it.
85019         E.g., `printf foo >&-' must fail.
85020
85021 2004-11-13  Jim Meyering  <jim@meyering.net>
85022
85023         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85024
85025 2004-11-12  Simon Josefsson  <jas@extundo.com>
85026
85027         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85028         small doc fix is still pending.
85029
85030 2004-11-11  Simon Josefsson  <jas@extundo.com>
85031
85032         * modules/strtok_r: New file.
85033
85034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85035         strtok_r.
85036
85037 2004-11-11  Simon Josefsson  <jas@extundo.com>
85038
85039         * m4/strtok_r.m4: New file.
85040
85041         * m4/getopt.m4: Replace opterr.
85042
85043 2004-11-11  Simon Josefsson  <jas@extundo.com>
85044
85045         * lib/strtok_r.h, strtok_r.c: New file.
85046
85047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85050         of replacing opterr, getopt, etc.  This should handle the
85051         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85052
85053 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85054
85055         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85056         we can stop lying to compilers about the constness of argv when we
85057         are compiled outside glibc.
85058         (getopt, getopt_long, getopt_long_only): Use it.
85059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85060         _getopt_internal, getopt): Likewise.
85061         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85062         _getopt_long_only_r): Likewise.
85063         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85064         _getopt_long_r, _getopt_long_only_r): Likewise.
85065
85066         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85067         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85068         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85069         the other external symbols.
85070         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85071         declaration, since the above renaming now works around collisions.
85072
85073 2004-11-11  Jim Meyering  <jim@meyering.net>
85074
85075         * lib/linebreak.c: Remove trailing blanks.
85076         * lib/alloca_.h: Likewise.
85077         * lib/acosl.c: Likewise.
85078         * lib/euidaccess.c: Likewise.
85079         * lib/allocsa.h: Likewise.
85080
85081 2004-11-10  Simon Josefsson  <jas@extundo.com>
85082
85083         * m4/getaddrinfo.m4: New file.
85084
85085 2004-11-10  Simon Josefsson  <jas@extundo.com>
85086
85087         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85088
85089 2004-11-10  Simon Josefsson  <jas@extundo.com>
85090
85091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85092         getaddrinfo.
85093
85094         * modules/getaddrinfo: New file.
85095
85096 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85097
85098         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85099
85100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         * lib/mktime.c (SHR): New macro, which is a portable
85103         substitute for >> that should work even on Crays.
85104         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85105         Problem reported by Mark D. Baushke in
85106         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85107         * lib/getdate.y (SHR): Likewise.
85108         (tm_diff): Use it.
85109         * lib/strftime.c (SHR): Likewise.
85110         (tm_diff): Use it.
85111         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85112         quote_these_too, so that right shifts are well defined.  All uses
85113         changed.
85114
85115 2004-11-10  Jim Meyering  <jim@meyering.net>
85116
85117         Ensure that no close failure goes unreported.
85118         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85119         return early when it seems there's nothing to flush.
85120         Don't include __fpending.h.
85121
85122 2004-11-10  Jim Meyering  <jim@meyering.net>
85123
85124         * modules/closeout (Depends-on): Remove fpending.
85125
85126 2004-11-10  Jim Meyering  <jim@meyering.net>
85127
85128         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85129
85130 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85133         gl_FUNC_STRFTIME.
85134         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85135         and AC_REQUIRE when possible, to avoid duplicate checks.
85136         Check for <wchar.h>.
85137
85138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85141
85142 2004-11-09  Bruno Haible  <bruno@clisp.org>
85143
85144         * m4/sockpfaf.m4: New file.
85145
85146 2004-11-05  Bruno Haible  <bruno@clisp.org>
85147
85148         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85149         Reported by Mark D. Baushke <mdb@cvshome.org>.
85150
85151 2004-11-04  Bruno Haible  <bruno@clisp.org>
85152
85153         2004-09-11  Bruno Haible  <bruno@clisp.org>
85154                 * allocsa.valgrind: New file.
85155         2004-02-06  Bruno Haible  <bruno@clisp.org>
85156                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85157                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85158                 Reported by Christopher Seip <chris.seip@hp.com>.
85159
85160 2004-11-04  Bruno Haible  <bruno@clisp.org>
85161
85162         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85163         (Makefile.am): Distribute it.
85164
85165 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85166
85167         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85168         with errno == ERANGE if the buffer is too small.
85169         Problem reported by Mark D. Baushke.
85170
85171 2004-11-03  Albert Chin  <china@thewrittenword.com>
85172             Paul Eggert  <eggert@cs.ucla.edu>
85173
85174         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85175         equivalent, substitute $ac_type for equivalent type rather than
85176         blindly using uint32_t *always* which won't work if uint32_t is not
85177         available.  Define _UINT32_T to work around typedef of uint32_t if
85178         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85179         2.5.1.
85180
85181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         * m4/jm-macros.m4: Sync from coreutils.
85184         (gl_MACROS): Check for mbrlen, for pathchk.
85185         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85186
85187 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         * lib/xreadlink.c (MAXSIZE): New macro.
85190         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85191         size does not exceed MAXSIZE.  Avoid cast.
85192         As suggested by Mark D. Baushke in
85193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85194         if readlink fails with buffer size just under MAXSIZE, try again
85195         with MAXSIZE.
85196
85197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85200
85201 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85202         and  Paul Eggert  <eggert@cs.ucla.edu>
85203
85204         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85205         (get_date): Overparenthesize to avoid GCC warning.
85206
85207 2004-11-02  Bruno Haible  <bruno@clisp.org>
85208
85209         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85210         returns void.
85211
85212 2004-11-02  Bruno Haible  <bruno@clisp.org>
85213
85214         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85215         function returns void.
85216
85217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85220         fflush_unlocked, flockfile, funlockfile, funlockfile,
85221         fputs_unlocked, putc_unlocked.
85222
85223 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85226         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85227         already declared.
85228
85229 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85230
85231         * modules/getdate (Files): Add doc/getdate.texi.
85232         (Depends-on): Add setenv, xalloc.
85233
85234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85235
85236         * lib/getdate.y: Add support for TZ="foo" within a date string.
85237         Fix some bugs near time_t boundaries.  Reject dates with
85238         out-of-range components, e.g., "Sept 31".
85239         Include <stdlib.h>, "setenv.h", "xalloc.h".
85240         (ISDIGIT_LOCALE): Remove; unused.
85241         Note that the TZ and time functions used here are not reentrant.
85242         (mktime_ok, get_tz): New functions.
85243         (TZBUFSIZE): New constant.
85244         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85245         This requires that we sometimes generate our own TZ="XXX..." setting.
85246
85247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * doc/getdate.texi: New file, from coreutils with modifications for
85250         the new TZ parsing.
85251
85252 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85253
85254         * lib/mktime.c (not_equal_tm): Remove redundant check.
85255
85256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85257
85258         * modules/regex (lib_SOURCES): Add regex.c.
85259         Reported by James Youngman in
85260         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85261
85262 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85263
85264         * lib/getdate.y: Use Bison 1.875 features, and some minor
85265         code cleanups.  This change does not affect semantics.
85266         Don't include <stdlib.h>; no longer needed.
85267         Don't include unlocked-io.h; only the "#if TEST" code uses
85268         stdio, and performance isn't crucial there.
85269         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85270         Bison 1.875 features as described below.
85271         All uses of "PC." replaced by "pc->".
85272         (YYSTYPE): Add a forward declaration.
85273         (yylex, yyerror): Use full prototypes in forward decls.
85274         Use "%pure-parser" rather than obsolescent "%pure_parser".
85275         Use %parse-param and %lex-param instead of obsolescent
85276         YYPARSE_PARAM and YYLEX_PARAM.
85277         (meridian_table, month_and_day_table, time_units_table,
85278         relative_time_table, time_zone_table, military_table,
85279         lookup_zone, lookup_word, get_date):
85280         Use NULL instead of 0 where appropriate.
85281         (to_hour): Avoid abort (), to avoid a dependency on
85282         stdlib.h.
85283         (yyerror, yylex): Now accepts parser_control * arg.
85284         (main) [TEST]: Use '\0' rather than 0 for char.
85285
85286 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85289
85290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85291
85292         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85293         It's now the caller's responsibility to handle the case where
85294         !HAVE_GETPAGESIZE && !defined getpagesize.
85295
85296         * lib/mktime.c (leapyear): Arg is long int, not int.
85297
85298 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85301
85302 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85303
85304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85305         missing.  Problem reported by James Youngman.
85306
85307 2004-10-16  Simon Josefsson  <jas@extundo.com>
85308
85309         * gnulib-tool: Fix comments.  Fix parse problem.
85310         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85311
85312 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85315         implementation of getopt_long.  Problem reported by Alexander Taler in:
85316         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85317
85318 2004-10-15  Bruno Haible  <bruno@clisp.org>
85319
85320         * gnulib-tool: Untabify. Initialize supplied_libname.
85321         (func_usage): More homogenous output.
85322         (func_modules_transitive_closure, func_modules_to_filelist,
85323         func_emit_lib_Makefile_am): New functions.
85324         (func_import): New function, extracted from big case statement. Use
85325         func_get_license, func_modules_transitive_closure,
85326         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85327         opt_lgpl. Don't use test -a, as it's not portable.
85328         (func_create_testdir): Use func_modules_transitive_closure,
85329         func_modules_to_filelist, func_emit_lib_Makefile_am.
85330
85331 2004-10-15  Bruno Haible  <bruno@clisp.org>
85332
85333         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85334
85335 2004-10-15  Bruno Haible  <bruno@clisp.org>
85336
85337         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85338         the portions belonging to each module.
85339         Suggested by Derek Robert Price <derek@ximbiot.com>.
85340
85341 2004-10-12  Simon Josefsson  <jas@extundo.com>
85342
85343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85344         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85345         to real functions.
85346
85347 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85348
85349         * modules/vsnprintf: New file.
85350
85351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85352
85353         * m4/vsnprintf.m4: New file.
85354
85355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85356
85357         * lib/vsnprintf.h: New file.
85358         * lib/vsnprintf.c: New file.
85359
85360 2004-10-11  Bruno Haible  <bruno@clisp.org>
85361
85362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85363         vsnprintf.
85364
85365 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85368
85369 2004-10-07  Bruno Haible  <bruno@clisp.org>
85370
85371         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85372         fits into the provided buffer.
85373
85374 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * lib/diacrit.c, diacrit.h: Add GPL notice.
85377
85378         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85379         notice.
85380         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85381         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85382         This avoids a potential constant-folding bug.
85383
85384 2004-10-05  Bruno Haible  <bruno@clisp.org>
85385
85386         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85387         for the declaration of strsep.
85388
85389 2004-10-05  Bruno Haible  <bruno@clisp.org>
85390
85391         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85392
85393 2004-10-04  Simon Josefsson  <jas@extundo.com>
85394
85395         * modules/memmem: New file.
85396         * tests/test-memmem.c: New file.
85397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85398
85399 2004-10-04  Simon Josefsson  <jas@extundo.com>
85400
85401         * m4/memmem.m4: New file.
85402
85403 2004-10-04  Simon Josefsson  <jas@extundo.com>
85404
85405         * lib/memmem.h: New file.
85406         * lib/memmem.c: New file, taken from glibc.
85407
85408 2004-10-04  Simon Josefsson  <jas@extundo.com>
85409
85410         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85411         '#ifdef USE_UNLOCKED_IO'.
85412
85413 2004-10-04  Simon Josefsson  <jas@extundo.com>
85414
85415         * config/srclist.txt: Add memmem from glibc.
85416
85417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85420
85421         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85422         modules/exclude, modules/getdate, modules/getline,
85423         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85424         modules/getusershell, modules/linebuffer, modules/md5,
85425         modules/mountlist, modules/posixtm, modules/readtokens,
85426         modules/readutmp, modules/regex, modules/sha1,
85427         modules/version-etc, modules/yesno:
85428         Remove dependency on unlocked-io.
85429
85430 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85431
85432         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85433
85434         * m4/unlocked-io.m4: Add copyright notice.
85435         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85436
85437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85440         * lib/xmalloc.c (xmemdup): Likewise.
85441         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85442         XFREE): Remove these long-obsolescent macros.
85443         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85444         * lib/xstrdup.c: Remove.
85445
85446         * lib/regex.c (re_comp): Cast gettext return value to char *,
85447         Problem reported by Martin Neitzel via Mark D. Baushke.
85448
85449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85452         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85453         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85454         regex.c, sha1.c, version-etc.c, yesno.c:
85455         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85456         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85457         the includer's responsibility.
85458
85459         Sync from coreutils.
85460
85461         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85462         points to the start of a string, as the C Standard says the
85463         resulting behavior is undefined.
85464
85465         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85466         simple -> simple_backups, numbered_existing ->
85467         numbered_existing_backups, numbered -> numbered_backups
85468         to avoid shadowing problems.  All uses changed.
85469         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85470         * lib/backupfile.c (check_extension, numbered_backup):
85471         Rename locals to avoid shadowing 'basename'.
85472         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85473         once.
85474
85475         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85476         * lib/.cvsignore: Add getopt.h.
85477
85478 2004-10-04  Bruno Haible  <bruno@clisp.org>
85479
85480         * modules/README: New file.
85481         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85482         not a module.
85483
85484 2004-10-02  Jim Meyering  <jim@meyering.net>
85485
85486         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85487
85488 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85489
85490         * modules/strsep: New file.
85491
85492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85493
85494         * m4/strsep.m4: New file.
85495
85496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85497
85498         * lib/strsep.h: New file.
85499         * lib/strsep.c: New file.
85500
85501 2004-10-01  Simon Josefsson  <jas@extundo.com>
85502
85503         * lib/snprintf.c (snprintf): Handle size==0.
85504
85505 2004-10-01  Simon Josefsson  <jas@extundo.com>
85506             Bruno Haible  <bruno@clisp.org>
85507
85508         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85509         (snprintf): Declare 'args'.
85510
85511 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * lib/snprintf.c: Remove comments as to why each header is needed.
85514
85515 2004-10-01  Bruno Haible  <bruno@clisp.org>
85516
85517         * MODULES.html.sh: Add strsep.
85518
85519 2004-09-30  Simon Josefsson  <jas@extundo.com>
85520
85521         * modules/snprintf: New file.
85522
85523 2004-09-30  Simon Josefsson  <jas@extundo.com>
85524
85525         * m4/snprintf.m4: New file.
85526
85527 2004-09-30  Simon Josefsson  <jas@extundo.com>
85528
85529         * lib/snprintf.h, lib/snprintf.c: New files.
85530
85531 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85532
85533         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85534         (hol_entry_help): Never translate an empty string.
85535         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85536         * lib/argp.h (OPTION_NO_TRANS): New option.
85537
85538 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * modules/argp (Maintainer): Replace Simon Josefsson
85541         by Sergey Poznyakoff.
85542
85543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85544
85545         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85546         changes merged back into glibc.
85547
85548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85549
85550         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85551
85552 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85553
85554         * lib/xvasprintf.c: Include xalloc.h.
85555         (xvasprintf): Use xalloc_die, not xmalloc_die.
85556
85557 2004-09-29  Bruno Haible  <bruno@clisp.org>
85558
85559         * modules/alloca-opt: New file, derived from modules/alloca.
85560         * modules/allocsa: Depend on alloca-opt instead of alloca.
85561         * modules/setenv: Likewise.
85562         * modules/vasnprintf: Likewise.
85563         * MODULES.html.sh: Add alloca-opt.
85564
85565 2004-09-28  Simon Josefsson  <jas@extundo.com>
85566
85567         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85568         LGPL, and to replace license template from GPL to LGPL.
85569
85570 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85571
85572         * modules/dummy: Change license to LGPL.
85573
85574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85577
85578 2004-09-24  Simon Josefsson  <jas@extundo.com>
85579
85580         * modules/minmax (License): Change from GPL to LGPL.
85581
85582 2004-09-23  Simon Josefsson  <jas@extundo.com>
85583
85584         * gnulib-tool (--import): Typo.
85585
85586 2004-09-23  Simon Josefsson  <jas@extundo.com>
85587
85588         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85589
85590 2004-09-22  Bruno Haible  <bruno@clisp.org>
85591
85592         * modules/*: Add 'License' field.
85593         * gnulib-tool: Accept --extract-license option.
85594         (func_get_license): New function.
85595
85596 2004-09-21  Bruno Haible  <bruno@clisp.org>
85597
85598         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85599         Reported by Simon Josefsson.
85600
85601 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85604         gl_AC_TYPE_LONG_LONG.
85605
85606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85607
85608         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85609
85610 2004-09-18  Simon Josefsson  <jas@extundo.com>
85611         and  Paul Eggert  <eggert@cs.ucla.edu>
85612
85613         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85614         calls with autoreconf.  Define GL_LIB.
85615
85616 2004-09-14  Karl Berry  <karl@gnu.org>
85617
85618         * config/srclist.txt: unsync setenv.c, sigh.
85619
85620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85621
85622         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85623         Problem reported by Bruno Haible in:
85624         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85625
85626 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85627
85628         * config/srclist.txt: Comment out argp-pvh.c.
85629
85630 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85631
85632         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85633         in case some system header has #define'd it.  Problem reported by
85634         Soeren D. Schulze in
85635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85636
85637 2004-09-09  Karl Berry  <karl@gnu.org>
85638
85639         * regex.[ch]: delete from the root.  These were supposed to be
85640                 synced with emacs cvs, but this has not happened for about
85641                 a year, and anyway nothing else uses emacs regex.[ch].
85642                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85643                 lib/regex[.ch] is untouched.
85644
85645 2004-09-09  Bruno Haible  <bruno@clisp.org>
85646
85647         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85648
85649 2004-09-09  Bruno Haible  <bruno@clisp.org>
85650
85651         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85652         modifications.
85653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85654
85655 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85656
85657         * modules/xvasprintf: New file.
85658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85659
85660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85661
85662         * lib/xvasprintf.h: New file.
85663         * lib/xvasprintf.c: New file.
85664         * lib/xasprintf.c: New file.
85665
85666 2004-09-08  Bruno Haible  <bruno@clisp.org>
85667
85668         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85669
85670 2004-09-08  Bruno Haible  <bruno@clisp.org>
85671
85672         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85673         length is > INT_MAX.
85674         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85675         more.
85676
85677 2004-09-08  Bruno Haible  <bruno@clisp.org>
85678
85679         * lib/stdint_.h: New file, taken from GNU clisp.
85680
85681 2004-09-08  Bruno Haible  <bruno@clisp.org>
85682             Oskar Liljeblad  <oskar@osk.mine.nu>
85683
85684         * modules/stdint: New file.
85685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85686
85687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85688
85689         Import from coreutils.
85690         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85691         strings on unbounded length.  alloca's performance benefits aren't
85692         that important here.
85693         (V_STRDUP): Remove.
85694         (parse_with_separator): New function, with most of the internals
85695         of the old parse_user_spec.  Allow user to omit both user and group,
85696         for compatibility with FreeBSD.
85697         Clone only the user name, not the entire spec.
85698         Do not set *uid, *gid unless entirely successful.
85699         Avoid memory leak in some failing cases.
85700         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85701         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85702         (parse_user_spec): Rewrite to use parse_with_separator.
85703
85704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85705
85706         * modules/userspec: Don't depend on alloca.
85707
85708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85711
85712 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85715         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85716         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85717
85718 2004-08-16  Simon Josefsson  <jas@extundo.com>
85719
85720         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85721         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85722         Add --dry-run for --import.
85723         Let user provided command line parameters override configure.ac
85724         settings.
85725
85726 2004-08-12  Simon Josefsson  <jas@extundo.com>
85727
85728         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85729         as discussed with Paul Eggert in threads rooted at
85730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85731         and
85732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85733         Before, the test was empty, and relied on ELIDE_CODE in source
85734         code.)
85735         (gl_PREREQ_GETOPT): New macro.
85736         (gl_GETOPT): Use them.
85737
85738 2004-08-12  Simon Josefsson  <jas@extundo.com>
85739
85740         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85741         * lib/getopt_.h: Renamed from getopt.h.
85742
85743 2004-08-12  Simon Josefsson  <jas@extundo.com>
85744
85745         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85746         Change default library name from libfoo to libgnu.
85747         Now, if you have a configure.ac that says:
85748                 gl_SOURCE_BASE(gl)
85749                 gl_M4_BASE(gl/m4)
85750                 gl_MODULES(error getopt etcetera)
85751                 gl_INIT
85752         you can import all you need by running:
85753                 ../gnulib/gnulib-tool --import
85754
85755         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85756         (Makefile.am): Rewrite, use logic from argz.
85757         (Include): Use <getopt.h> instead of "getopt.h".
85758
85759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85760
85761         * modules/argp (Files): Add m4/unlocked-io.m4.
85762         (Depends-on): Add extensions.
85763
85764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85765
85766         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85767         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85768         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85769         Check for program_invocation_name, program_invocation_short_name,
85770         flockfile, funlockfile, features.h, _getopt_long_only_r.
85771
85772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85775         its complicated substitute.
85776         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85777         and program_invocation_name.
85778         (__argp_basename) [!_LIBC]: Remove; the only use was
85779         replaced by its body.
85780         (__argp_short_program_name): Change condition from
85781         !defined __argp_short_program_name to
85782         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85783         to match argp-namefrob.h.
85784         (__argp_failure): Don't assume strerror_r returns char *.
85785         * lib/argp-parse.c (N_): Define unconditionally.
85786         (argp_default_options): Fill out initializers with 0 to avoid
85787         gcc warnings.
85788
85789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85790
85791         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85792         getopt1.c.
85793
85794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         Merge from coreutils.
85797
85798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85799
85800         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85801         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85802
85803 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         Merge from coreutils.
85806
85807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85808         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85809         for Reliant Unix 5.43.
85810
85811         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85812         (union fooround): Use uintmax_t, not long int.
85813         The rest is a merge from libc:
85814         [defined _LIBC]: Include <shlib-compat.h>.
85815         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85816
85817         * lib/settime.c (settime): Recode to avoid warning with
85818         Sun Forte C 6U2.
85819
85820         * lib/strverscmp.c: Convert to UTF-8.
85821
85822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85825         m4/uintmax_t.m4.
85826
85827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         * modules/xalloc-die: New file.
85830         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85831
85832         * modules/md5 (Files): Add m4/uint32_t.m4.
85833         * modules/sha1: Renamed from modules/sha.
85834         (Files):
85835         Rename lib/sha.h to lib/sha1.h.
85836         Rename lib/sha.c to lib/sha1.c.
85837         Rename m4/sha.m4 to m4/sha1.m4.
85838         (lib_SOURCES): Likewise.
85839         (configure.ac): Rename gl_SHA to gl_SHA1.
85840         (Include): sha.h -> sha1.h.
85841
85842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85845         * m4/sha1.m4: Renamed from sha.m4.
85846         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85847
85848 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * lib/obstack.h (obstack_empty_p):
85851         Don't assume that chunk->contents is suitably aligned.
85852         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85853         Likewise. Problem reported by Benno in
85854         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85855
85856         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85857         readable.  This could be improved further but it'd take some work.
85858
85859 2004-08-08  Simon Josefsson  <jas@extundo.com>
85860
85861         * modules/xgethostname (Depends-on): Remove exit and error (not
85862         used).
85863
85864         * modules/getpass-gnu: Add getpass.h.
85865         (Depends-on): Add stdbool.
85866         * modules/getpass: Add getpass.h.
85867
85868 2004-08-08  Simon Josefsson  <jas@extundo.com>
85869
85870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85871         Check getpass declaration.
85872
85873 2004-08-08  Simon Josefsson  <jas@extundo.com>
85874
85875         * lib/xgethostname.c: Don't include error.h (not used).
85876
85877         * lib/getpass.h: Add.
85878         * lib/getpass.c: Include getpass.h first.
85879
85880 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         * lib/xalloc-die.c: New file.
85883         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85884         All uses removed.
85885         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85886         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85887         xalloc-die.c.
85888         (_, N_, xalloc_die): Move to xalloc-die.c.
85889         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85890         so that we needn't mess with xalloc_msg_memory_exhausted.
85891
85892         * lib/sha1.h: Renamed from sha.h.
85893         (SHA1_H): Renamed from _SHA_H.
85894         (sha1_ctx): Renamed from sha_ctx.
85895         (sha1_init_ctx): Renamed from sha_init_ctx.
85896         (sha1_process_block): Renamed from sha_process_block.
85897         (sha1_process_bytes): Renamed from sha_process_bytes.
85898         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85899         (sha1_read_ctx): Renamed from sha_read_ctx.
85900         (sha1_stream): Renamed from sha_stream.
85901         (sha1_buffer): Renamed from sha_buffer.
85902         * lib/sha1.c: Likewise; renamed from sha.c.
85903         Do not include <sys/types.h>.
85904         Include <stddef.h> rather than <stdlib.h>.
85905
85906 2004-08-08  Bruno Haible  <bruno@clisp.org>
85907
85908         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85909         FILESYSTEM_PREFIX_LEN.
85910         * lib/progreloc.c: Likewise.
85911         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85912
85913 2004-08-06  Simon Josefsson  <jas@extundo.com>
85914
85915         * modules/progname (Depends-on): Don't depend on stdbool.
85916
85917 2004-08-06  Simon Josefsson  <jas@extundo.com>
85918
85919         * modules/getsubopt: New file.
85920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85921         getsubopt.
85922
85923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85924
85925         More merge from coreutils.
85926
85927         * m4/utimens.m4, m4/utimecmp.m4: New files.
85928         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85929         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85930         prereq.m4, sha.m4: Import changes from coreutils.
85931
85932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85933
85934         More merge from coreutils.
85935         * modules/raise, modules/readtokens0, modules/utimens:
85936         * modules/utimecmp, module/xnanosleep: New files.
85937         * modules/strftime: Add lib/strftime.h.
85938         Change include from <time.h> to "strftime.h".
85939         * modules/yesno: Add lib/yesno.h.
85940         * modules/backupfile: Remove lib/addext.c.
85941         * modules/euidaccess: Add stat-macros.h.
85942         * modules/canonicalize, modules/euidaccess,
85943         modules/filemode, modules/lchown, modules/makepath,
85944         modules/rmdir, modules/stat: Likewise.
85945
85946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85947
85948         Merge from tar.
85949         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85950         SIZE_MAX is a valid preprocessor constant.
85951         (__argp_basename): Change from "#ifndef _LIBC"
85952         to "#ifndef __argp_short_program_name", so that
85953         we don't compile these functions for tar.
85954
85955         More merges from coreutils.
85956         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85957         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85958         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85959         * lib/addext.c: Remove; no longer needed.
85960         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85961         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85962         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85963         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85964         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85965         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85966         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85967         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85968         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85969         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85970         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85971         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85972         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85973         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85974         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85975         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85976         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85977         Import changes from coreutils.
85978
85979 2004-08-05  Simon Josefsson  <jas@extundo.com>
85980
85981         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85982
85983 2004-08-05  Simon Josefsson  <jas@extundo.com>
85984
85985         * m4/getsubopt.m4: New file.
85986
85987 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85988
85989         Merge from coreutils.
85990
85991         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85992         * m4/getcwd-path-max.m4: New files.
85993
85994         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85995         FILESYSTEM_PREFIX_LEN ->
85996         FILE_SYSTEM_PREFIX_LEN.
85997         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85998         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85999         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86000         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86001
86002         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86003         prerequisite modules now handle the DOS stuff.
86004         Don't check for unistd.h.
86005
86006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         Merge from coreutils.
86009
86010         * lib/.gdb-history: Remove; this doesn't belong here.
86011
86012         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86013         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86014         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86015         * lib/getcwd.c: New files.
86016
86017         * lib/dirname.h: Include <stdbool.h>.
86018         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86019         for consistency with POSIX terminology.  All uses changed.
86020         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86021         (strip_trailing_slashes): Use bool for booleans.
86022         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86023
86024         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86025         sometimes returns a positive errno value even when it succeeds.
86026         (print_errno_message) [!LIBC]: Fall back on strerror if
86027         __strerror_r fails.
86028
86029         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86030         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86031         (longest_relative_suffix): New function.
86032         (path_concat): Use it.  Assume first argument is not NULL.
86033         Port to DOS.  Omit redundant separators.
86034         Report an error instead of returning NULL.
86035         Use mempcpy instead of memcpy.
86036         (xpath_concat): Remove: not declared or used.
86037
86038         * lib/same.h: Include <stdbool.h>
86039         (same_name): Return bool, not int.
86040         * lib/same.c (same_name): Likewise.
86041         (errno): Don't declare; we assume C89 or better now.
86042
86043         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86044         if not already defined.
86045
86046         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86047         * lib/dup-safer.c (errno): Likewise.
86048
86049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         Merge from coreutils.
86052         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86053         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86054         * modules/path-concat: Don't depend on strdup.
86055
86056 2004-08-03  Simon Josefsson  <jas@extundo.com>
86057
86058         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86059         * lib/progname.h: Don't include stdbool.h.
86060
86061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86064         * MODULES.html.sh (func_all_modules): Remove fatal.
86065
86066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86067
86068         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86069
86070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86071
86072         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86073         working.
86074
86075 2004-08-02  Simon Josefsson  <jas@extundo.com>
86076
86077         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86078         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86079         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86080
86081 2004-08-01  Simon Josefsson  <jas@extundo.com>
86082
86083         * lib/xgetdomainname.c: Include stdlib.h, for free().
86084
86085 2004-07-19  Bruno Haible  <bruno@clisp.org>
86086
86087         * MODULES.html.sh (func_all_modules): Add dummy.
86088
86089 2004-07-16  Simon Josefsson  <jas@extundo.com>
86090
86091         * modules/dummy: New file.
86092
86093 2004-07-16  Simon Josefsson  <jas@extundo.com>
86094
86095         * lib/dummy.c: New file.
86096
86097 2004-07-16  Bruno Haible  <bruno@clisp.org>
86098
86099         * lib/backupfile.h: Add extern "C" for C++.
86100         * lib/closeout.h: Likewise.
86101         * lib/copy-file.h: Likewise.
86102         * lib/findprog.h: Likewise.
86103         * lib/full-write.h: Likewise.
86104         * lib/pathname.h: Likewise.
86105         * lib/progname.h: Likewise.
86106         * lib/stpcpy.h: Likewise.
86107         * lib/stpncpy.h: Likewise.
86108         * lib/strcase.h: Likewise.
86109         * lib/strstr.h: Likewise.
86110         * lib/xalloc.h: Likewise.
86111
86112         * lib/mbswidth.h: Add extern "C" for C++.
86113         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86114
86115 2004-07-13  Robert Millan  <robertmh@gnu.org>
86116
86117         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86118
86119 2004-07-09  Simon Josefsson  <jas@extundo.com>
86120
86121         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86122         failed without this.)
86123
86124 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * modules/chown (Files): Add lib/fchown-stub.c, since
86127         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86128
86129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * lib/fchown-stub.c: New file.
86132
86133 2004-06-24  Jim Meyering  <jim@meyering.net>
86134
86135         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86136
86137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * modules/argz: Omit "#include".
86140
86141         * MODULES.html.sh (func_all_modules): Add calloc, to match
86142         2004-06-01 addition of calloc module.
86143
86144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * m4/argz.m4: New file, which is autoupdated from libtool.
86147
86148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86151         libtool.
86152
86153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         * config/srclist-update: Don't insist on "USA." before the
86156         close-comment, as libtool omits the period and puts the */ on a
86157         separate line.
86158         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86159         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86160
86161 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86162
86163         * modules/argz: New file.
86164         * MODULES.html.sh (func_all_modules): Add argz.
86165
86166 2004-06-12  Jim Meyering  <jim@meyering.net>
86167         and  Paul Eggert  <eggert@cs.ucla.edu>
86168
86169         * modules/hash (Files): Add lib/xalloc.h.
86170         * modules/pipe (Depends-on): Add wait-process.
86171         * modules/stat (Depends-on): Add xalloc.
86172         * modules/userspec (Files): Add lib/userspec.h.
86173         * modules/xstrto
86174
86175         Upgrade from gettext-0.13.
86176         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86177         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86178         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86179
86180 2004-06-10  Jim Meyering  <jim@meyering.net>
86181
86182         * lib/calloc.c: New file.
86183
86184 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * lib/getdate.y (yylex): Allow space between sign and number.
86187         Problem reported by Dan Jacobson.
86188
86189 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         Merge from coreutils CVS.
86192
86193         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86194         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86195         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86196         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86197         xstrtol.m4: Fix copyright date and/or serial number.
86198
86199         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86200         See if we need an fchown replacement.
86201         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86202         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86203         and use the replacement function if we detect either defect.
86204
86205         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86206         gl_UTIMECMP.
86207
86208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86209         and  Jim Meyering  <jim@meyering.net>
86210
86211         Merge from coreutils CVS.
86212
86213         * lib/stat-macros.h: New file, with contents from file-type.h
86214         and coreutils' system.h.
86215         * lib/file-type.c: Include "stat-macros.h".
86216         * lib/file-type.h (file_type): Move all macro definitions to new file,
86217         stat-macros.h.
86218
86219         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86220         Wrap old code with this conditional.
86221         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86222         function that does not dereference symlinks.
86223         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86224
86225         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86226         dependency problems.
86227         (xreadlink): Accept new arg SIZE, for efficiency.
86228         All decls and uses changed.
86229         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86230
86231         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86232         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86233
86234         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86235         sysexits.h.
86236
86237 2004-06-01  Jim Meyering  <jim@meyering.net>
86238
86239         * m4/calloc.m4: New file.
86240
86241 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86242
86243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86244         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86245         Also, fix a typo in a diagnostic.
86246
86247 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86250         or AC_FUNC_REALLOC.
86251
86252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86253
86254         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86255         macros to be defined.
86256         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86257         the allocator returns NULL because the requested size is zero.
86258
86259 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86260
86261         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86262         var.  Add comment explaining why libc still defines it.  This
86263         merges the following patch from glibc:
86264         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86265
86266 2004-05-20  Andreas Schwab  <schwab@suse.de>
86267
86268         * m4/free.m4: Replace free if it not known to work, not the other
86269         way round.
86270
86271 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86274         present in glibc since revision 1.1 of this file.
86275         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86276         obstack_alignment_mask, obstack_alloc, obstack_base,
86277         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86278         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86279         obstack_grow0, obstack_init, obstack_int_grow,
86280         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86281         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86282         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86283         nonexistent functions.
86284
86285 2004-05-18  Karl Berry  <karl@gnu.org>
86286
86287         * config/srclist.txt: break link for vasnprintf.c.
86288
86289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86290
86291         Port obstack to the AS/400, where pointers are 16 bytes wide and
86292         you cannot cast an integer to a valid pointer.  This patch is
86293         currently waiting to be integrated into glibc; see
86294         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86295
86296         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86297         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86298         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86299         (struct obstack): temp member is now a union of a pointer and
86300         an integer, instead of an integer.  All integer uses changed.
86301         This does not affect the physical layout of struct obstack,
86302         except on hosts (like the AS/400) where the size or alignment of
86303         void * is greater than that of ptrdiff_t.
86304         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86305         __STDC__)]: Store temporary in pointer member of union, not
86306         integer member.
86307         * lib/obstack.c: Include <stddef.h>, for offsetof.
86308         (struct fooalign): Remove; it doesn't need a name.
86309         (union fooround): Change double to long double, and add void *.
86310         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86311         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86312         not a macro.  Hence the values are always int; so remove all
86313         casts-to-int in uses.
86314
86315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86316
86317         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86318         we can get this patch merged into glibc.
86319
86320 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86321             Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         * m4/argp: Depend on alloca.
86324
86325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86326             Paul Eggert  <eggert@cs.ucla.edu>
86327
86328         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86329         freecoding.
86330
86331 2004-05-17  Bruno Haible  <bruno@clisp.org>
86332
86333         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86334         precision that consists of a '.' followed by an empty digit string.
86335         Patch by Tor Lillqvist <tml@iki.fi>.
86336
86337 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86338
86339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86340         for backward compatibility with older code.  We need our own
86341         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86342         it under some other name, and our alloca.h will define it.
86343
86344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86345             Derek Price  <derek@ximbiot.com>
86346
86347         * lib/alloca.c: Include <alloca.h>, to get our interface.
86348         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86349         include <alloca.h> first.  Use C89 prototype for alloca; this
86350         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86351         Use #elif for simplicity, since we can assume C89 now.
86352         Don't try to source the system alloca.h since it will not be found
86353         and to prevent recursively including its replacement.
86354         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86355         * lib/regex.c: Likewise.
86356
86357 2004-05-16  Derek Price  <derek@ximbiot.com>
86358             Paul Eggert  <eggert@cs.ucla.edu>
86359
86360         getline cleanup.  This changes the getndelim2 API: both order of
86361         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86362         no delimiter).
86363
86364         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86365         interface does that.
86366         (getline): Always use getdelim, so that we don't have two
86367         copies of this code.
86368         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86369         if available.
86370         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86371         (GETNDELIM2_MAXIMUM): New macro.
86372         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86373         instead of the old practice of delim2==0.  All callers changed.
86374         Return -1 on overflow, instead of returning junk.
86375         Do not set *linesize unless allocation succeeds.
86376         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86377         that we include sys/types.h.
86378         * lib/getnline.h: Likewise.
86379         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86380         (getndelim2): Reorder arguments.
86381         * lib/getnline.c (getnline, getndelim):
86382         Don't discard the NMAX argument.
86383         (getnline): Invoke getndelim, to avoid code duplication.
86384         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86385         of (size_t) -1 by callers of the getnline family.
86386
86387 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86388
86389         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86390         Check for gettimeofday.
86391         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86392         Check for settimeofday, stime.
86393
86394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86395
86396         * lib/nanosleep.c (suspended): Change its type from int to
86397         sig_atomic_t volatile.
86398         (first_call): Make it private to rpl_nanosleep, and have it
86399         be zero initially as that's a bit faster.
86400         (my_usleep): Round up fractional times instead of truncating them,
86401         as this is the usual meaning for 'sleep'.
86402
86403         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86404         doesn't work.
86405         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86406         (ENOSYS): Define if not defined.
86407         (settime): Fall back on stime if it exists and settimeofday fails.
86408         But don't bother with fallbacks if a method fails with errno == EPERM.
86409
86410 2004-05-11  Jim Meyering  <jim@meyering.net>
86411
86412         Prior to this change, the save_cwd caller required read access to the
86413         current directory on most systems (ones with the fchdir function).
86414
86415         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86416         fails, try write-only, and finally, resort to using xgetcwd.
86417
86418 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * lib/obstack.c, obstack.h: Import changes from libc.
86421
86422 2004-04-28  Bruno Haible  <bruno@clisp.org>
86423
86424         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86425         also implicitly appends .exe to executables.
86426         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86427         accepts Windows pathnames.
86428         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86430         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86432         Reported by Derek Robert Price <derek@ximbiot.com>.
86433
86434 2004-04-21  Karl Berry  <karl@gnu.org>
86435
86436         * config/srclist.txt (localcharset.c): break sync.
86437
86438 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86439
86440         * m4/host-os.m4: Add a copyright notice.
86441
86442 2004-04-20  Jim Meyering  <jim@meyering.net>
86443
86444         Change UTILS_ to gl_ in AC_DEFINE'd names.
86445         Change utils_- and jm_-prefixed variables, too.
86446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86447         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86449
86450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86451         Don't emit trailing blanks.
86452         Also rename jm_-prefixed variables to have gl_ prefix.
86453
86454         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86455         Also rename jm_-prefixed variables to have gl_ prefix.
86456
86457         * m4/jm-macros.m4: Reflect the renamings.
86458         * m4/prereq.m4: Likewise.
86459
86460 2004-04-20  Jim Meyering  <jim@meyering.net>
86461
86462         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86463         memory.
86464
86465 2004-04-20  Jim Meyering  <jim@meyering.net>
86466             Bruno Haible  <bruno@clisp.org>
86467
86468         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86469         memory when realloc fails.
86470
86471 2004-04-19  Jim Meyering  <jim@meyering.net>
86472
86473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86474         now that readutmp.c may call `free (0)'.
86475
86476 2004-04-19  Bruno Haible  <bruno@clisp.org>
86477
86478         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86479         * m4/inttypes_h.m4: Likewise.
86480         * m4/stdint_h.m4: Likewise.
86481         * m4/intmax_t.m4: Likewise.
86482         * m4/uintmax_t.m4: Likewise.
86483
86484 2004-04-18  Jim Meyering  <jim@meyering.net>
86485
86486         * m4/prereq.m4: Don't forbid jm_ prefix.
86487
86488         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86489         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86490         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86491         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86492         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86493         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86494         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86495         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86496         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86497         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86498         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86499         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86500         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86501         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86502         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86503         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86504         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86505         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86506         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86507
86508 2004-04-18  Jim Meyering  <jim@meyering.net>
86509
86510         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86511         failure, don't leak memory and do call END_UTMP_ENT.
86512
86513 2004-04-16  Jim Meyering  <jim@meyering.net>
86514
86515         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86516         coreutils' stat program.
86517         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86518
86519 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86520
86521         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86522         C89.
86523         (CHAR_BIT): Remove, since we assume C89.
86524         Include <stdint.h> if available, as per current Autoconf CVS advice.
86525
86526 2004-03-31  Jim Meyering  <jim@meyering.net>
86527
86528         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86529         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86530         * m4/xalloc.m4: Likewise.
86531
86532 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86533
86534         Merge from coreutils.
86535
86536         * m4/inttostr.m4: New file.
86537         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86538         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86539         Require gl_CLOCK_TIME.
86540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86541
86542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86543
86544         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86545         not bool, to be more consistent with Unix conventions.
86546         Suggested by Bruno Haible.
86547
86548         Merge from coreutils.
86549
86550         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86551         * lib/umaxtostr.c: New files.
86552
86553         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86554         the usual <time.h> dance.
86555         (get_date): Change signature to support fractional time stamps.
86556         All callers changed.
86557         * lib/getdate.y: Include "getdate.h" first, as we can now
86558         assume C89 and don't need to worry about 'const'.
86559         Similarly, include "unlocked-io.h" near start, not in middle.
86560         Include <limits.h>.
86561         (textint.value): Use long int rather than int.
86562         (textint.digits): Use size_t rather than int.
86563         (BILLION, LOG10_BILLION): New constants.
86564         (parser_control): New member rel_ns.  Members day_ordinal,
86565         time_zone, month, day, hour, minutes, rel_year, rel_month,
86566         rel_day, rel_hour, rel_minutes, rel_seconds
86567         are now long int, not int.  Member seconds is now struct timespec,
86568         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86569         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86570         not int.
86571         (%union.intval): Now long int, not int.
86572         New member timespec.
86573         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86574         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86575         (spec): Now is a timespec or an item list.
86576         (timespec, items): New nonterminals.
86577         (time, rel, relunit, number, get_date):
86578         Add support for fractional seconds.
86579         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86580         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86581         (to_hour): First arg is now long int, not int.
86582         (to_year): Returns long int, not int.
86583         Don't treat year -70 like 70.
86584         (tm_diff): Returns long int, not int.
86585         (lookup_word): Use bool instead of int when appropriate.
86586         (yylex): Use size_t for count, not int.
86587         Detect overflow when parsing large integer constants.
86588         Add support for fractions.
86589         (get_date): Make pointers 'const' if possible.
86590         Use more-portable code to detect integer overflow.
86591         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86592         Don't use ctime; it's not reliable if the year has >4 digits.
86593
86594         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86595         This is for compatibility with BSD.
86596
86597         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86598         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86599         From coreutils' system.h.
86600
86601         * lib/userspec.c: Don't include "posixver.h".
86602         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86603         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86604         compatible extension.  Simplify code by removing a boolean int
86605         that was always nonzero if a string was nonnull.
86606
86607 2004-03-30  Jim Meyering  <jim@meyering.net>
86608
86609         Merge from coreutils.
86610
86611         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86612         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86613         on some systems one must include <grp.h> before it.
86614         Reported by Christian Krackowizer.
86615
86616 2004-03-30  Jim Meyering  <jim@meyering.net>
86617
86618         Merge from coreutils.
86619
86620         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86621
86622         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86623         an empty input stream.
86624
86625         * lib/readtokens.c: Include <stdbool.h>.
86626         (readtoken): Use `size_t' rather than int/long.
86627         All callers adjusted.
86628         Use `bool' rather than `int' where appropriate.
86629         Use memset rather than an explicit loop.
86630         Use x2nrealloc rather than xrealloc.
86631         Allow the use of `\0' as a delimiter.
86632         (readtokens): Likewise.
86633         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86634
86635 2004-03-30  Jim Meyering  <jim@meyering.net>
86636
86637         * m4/realloc.m4: Remove file, since now it does no more than
86638         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86639         the `configure.ac' section of module/realloc.
86640         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86641
86642 2004-03-30  Bruno Haible  <bruno@clisp.org>
86643
86644         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86645         nonnull.
86646
86647 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86648
86649         Merge changes to getloadavg.c from coreutils and Emacs.
86650
86651         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86652         Define to an expression, not to the empty string.
86653         Include cloexec.h and xalloc.h.
86654         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86655         Use set_cloexec_flag rather than rolling our own.
86656         * lib/cloexec.c, lib/cloexec.h: New files.
86657
86658 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86659
86660         * m4/cloexec.m4: New file.
86661
86662 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86663
86664         * lib/getopt.h: Sync with libc CVS.
86665
86666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86667             Bruno Haible  <bruno@clisp.org>
86668
86669         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86670         mbswidth.
86671
86672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86673             Bruno Haible  <bruno@clisp.org>
86674
86675         * lib/mbswidth.h: Include <wchar.h> only if
86676         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86677         <wchar.h>.
86678         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86679
86680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86681
86682         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86683         Sync with libc CVS.
86684         * lib/getopt_int.h: New file, also synced from libc.
86685
86686 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86687
86688         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86689         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86690         Bring back getopt.c, getopt.h, getopt1.c.
86691
86692 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86693
86694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86695         All uses changed.  Check for sa_sigaction member; this fixes
86696         a bug first reported by Jason Andrade in
86697         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86698
86699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86700
86701         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86702         '#if' expressions.  Unlike the code it replaces, it does not
86703         depend on (defined _SC_PAGESIZE).  However, it does depend on
86704         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86705         first reported by Jason Andrade in
86706         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86707
86708 2004-02-25  Simon Josefsson  <jas@extundo.com>
86709
86710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86711
86712 2004-02-25  Simon Josefsson  <jas@extundo.com>
86713
86714         * lib/strdup.h: New file.
86715         * lib/strdup.c: Include it.
86716         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86717         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86718
86719 2004-02-23  Karl Berry  <karl@gnu.org>
86720
86721         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86722         (from fencepost.gnu.org:/gd/gnuorg).
86723
86724 2004-02-23  Karl Berry  <karl@gnu.org>
86725
86726         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86727         * config/srclist.txt: add maintain/standards documents.
86728
86729 2004-02-18  Bruno Haible  <bruno@clisp.org>
86730
86731         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86732         Reported by Derek Robert Price <derek@ximbiot.com>.
86733
86734 2004-02-16  Karl Berry  <karl@gnu.org>
86735
86736         * config/mkinstalldirs, install-sh: update from automake.
86737
86738 2004-02-06  Karl Berry  <karl@gnu.org>
86739
86740         * m4/po.m4: update from gettext 0.14.1.
86741
86742 2004-02-06  Karl Berry  <karl@gnu.org>
86743
86744         * lib/config.charset: update from gettext 0.14.1.
86745
86746 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86747
86748         Add comments and code, prompted by suggestions from Bruno Haible
86749         for sh-quote.
86750         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86751         describing the enum quoting_style values.
86752         * lib/quotearg.c (quotearg_alloc): New function.
86753         (quotearg_buffer_restyled): Treat lone { and } as special.
86754         Treat = as special.  Work around bug with older shells
86755         that "see" a '\' that is really the 2nd byte of a multibyte char.
86756         Quote empty string with shell_quoting_style.
86757
86758 2004-02-03  Bruno Haible  <bruno@clisp.org>
86759
86760         * m4/pipe.m4: New file, from GNU gettext.
86761
86762 2004-02-03  Bruno Haible  <bruno@clisp.org>
86763
86764         * lib/pipe.h: New file, from GNU gettext.
86765         * lib/pipe.c: New file, from GNU gettext.
86766
86767 2004-01-27  Bruno Haible  <bruno@clisp.org>
86768
86769         * m4/execute.m4: New file, from GNU gettext.
86770
86771 2004-01-27  Bruno Haible  <bruno@clisp.org>
86772
86773         * lib/execute.h: New file, from GNU gettext.
86774         * lib/execute.c: New file, from GNU gettext.
86775         * lib/w32spawn.h: New file, from GNU gettext.
86776
86777 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86778
86779         Merge from diffutils.
86780
86781         * lib/file-type.c (file_type): Add typed memory objects.
86782         * lib/file-type.h (S_TYPEISTMO): New macro.
86783
86784         * lib/c-stack.h (c_stack_action): Remove argv argument.
86785         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86786         (die): Don't calculate message unless segv_action returns.
86787         (get_stack_location, min_address_from_argv, max_address_from_argv,
86788         volatile stack_base, volatile_stack_size): Remove.
86789         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86790         that every segmentation violation is a stack overflow.  (Ouch!)
86791         See Debian bug 136249 (still outstanding) for more info about why
86792         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86793
86794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86795
86796         Exit-status fix from coreutils.
86797
86798         Use exit_failure consistently in place of EXIT_FAILURE,
86799         so that program exit statuses are consistent on failure.
86800
86801         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86802         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86803         * lib/argmatch.h: Comment fix to match the above.
86804         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86805         Now a macro referring to exit_failure, instead of a separate
86806         variable.  Include "exitfail.h" to get it.
86807         * lib/xstrtol.h: Include "exitfail.h".
86808         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86809
86810         * lib/long-options.c (parse_long_options): Use prototype
86811         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86812         for clarity.
86813
86814 2004-01-21  Jim Meyering  <jim@meyering.net>
86815
86816         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86817         so as not to conflict with a different-sized __mktime_internal
86818         function in GNU libc.
86819         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86820         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86821
86822 2004-01-20  Karl Berry  <karl@gnu.org>
86823
86824         * config/config.guess: update from config.
86825
86826         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86827
86828 2004-01-20  Bruno Haible  <bruno@clisp.org>
86829
86830         Safer stack allocation.
86831         * lib/setenv.c: Include allocsa.h.
86832         (alloca): Remove fallback definition.
86833         (freea): Remove macro.
86834         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86835         instead of freea.
86836
86837 2004-01-20  Bruno Haible  <bruno@clisp.org>
86838
86839         * m4/eealloc.m4: New file, from GNU gettext.
86840
86841 2004-01-20  Bruno Haible  <bruno@clisp.org>
86842
86843         * m4/allocsa.m4: New file, from GNU gettext.
86844
86845 2004-01-20  Bruno Haible  <bruno@clisp.org>
86846
86847         * lib/xallocsa.h: New file, from GNU gettext.
86848         * lib/xallocsa.c: New file, from GNU gettext.
86849
86850 2004-01-20  Bruno Haible  <bruno@clisp.org>
86851
86852         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86853
86854 2004-01-20  Bruno Haible  <bruno@clisp.org>
86855
86856         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86857         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86858         specially.
86859
86860 2004-01-20  Bruno Haible  <bruno@clisp.org>
86861
86862         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86863         patch.
86864
86865 2004-01-20  Bruno Haible  <bruno@clisp.org>
86866
86867         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86868
86869 2004-01-20  Bruno Haible  <bruno@clisp.org>
86870
86871         * lib/eealloc.h: New file.
86872
86873 2004-01-20  Bruno Haible  <bruno@clisp.org>
86874
86875         * lib/binary-io.h: Avoid warnings on Cygwin.
86876
86877 2004-01-20  Bruno Haible  <bruno@clisp.org>
86878
86879         * lib/allocsa.h: New file, from GNU gettext.
86880         * lib/allocsa.c: New file, from GNU gettext.
86881
86882 2004-01-18  Karl Berry  <karl@gnu.org>
86883
86884         * doc/gpl.texi, doc/lgpl.texi: new files.
86885
86886 2004-01-18  Karl Berry  <karl@gnu.org>
86887
86888         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86889         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86890
86891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86892
86893         Merge from coreutils.
86894
86895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86896         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86897         (gl_DEFAULT_POSIX2_VERSION): Move
86898         the documentation from 'configure' into 'config.hin',
86899         so that 'configure --help' isn't burdened by it and
86900         we don't have to worry about its formatting there.
86901         Reword the documentation so that it's more succinct
86902         and can be run together into a single paragraph.
86903         * m4/same.m4 (gl_SAME): Check for pathconf.
86904
86905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86906
86907         Merge from coreutils.
86908
86909         * lib/posixver.c: Include posixver.h.
86910
86911         * lib/same.c: Include <stdbool.h>, <limits.h>.
86912         (_POSIX_NAME_MAX): Define if not defined.
86913         (MIN): New macro.
86914         (same_name): If file names are silently truncated, report
86915         that the file names are the same if they are the same after
86916         the silent truncation.
86917
86918         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86919         conversion function.
86920         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86921         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86922         longer needed.
86923
86924 2004-01-15  Jim Meyering  <jim@meyering.net>
86925
86926         Merge from coreutils.
86927
86928         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86929         if no library is required.
86930         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86931         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86932         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86933         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86934         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86935         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86936         value, $ac_cv_search_crypt, if it's "none required".
86937         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86938         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86939         not gl_FUNC_GETLOADAVG.
86940         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86941         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86942
86943 2004-01-15  Jim Meyering  <jim@meyering.net>
86944
86945         Merge from coreutils.
86946
86947         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86948         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86949         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86950
86951         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86952         optional configure-time default.
86953
86954         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86955
86956         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86957
86958 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86959
86960         Merge from coreutils.
86961
86962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86963         value, $ac_cv_search_nanosleep, if it's "none required".
86964
86965 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86966
86967         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86968         with like-named macro in fnmatch.c.
86969         (EXT): Use an internal constant instead.
86970
86971         Merge fnmatch patches from glibc.
86972         * lib/fnmatch.c (mbsinit): Remove define.
86973         Add libc_hidden_ver (__fnmatch, fnmatch).
86974         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86975         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86976
86977 2004-01-14  Karl Berry  <karl@gnu.org>
86978
86979         * config/install-sh: update from automake.
86980
86981 2004-01-13  Karl Berry  <karl@gnu.org>
86982
86983         * config/install-sh: update from automake.
86984
86985 2004-01-09  Karl Berry  <karl@gnu.org>
86986
86987         * config/install-sh: update from automake.
86988
86989 2004-01-05  Karl Berry  <karl@gnu.org>
86990
86991         * config/config.{sub,guess}: update from config.
86992
86993 2003-12-31  Karl Berry  <karl@gnu.org>
86994
86995         * config/depcomp: update from automake.
86996
86997 2003-12-14  Karl Berry  <karl@gnu.org>
86998
86999         * lib/config.charset: update from gettext-runtime.
87000
87001 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87002
87003         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87004         Bug reported by Alfred M. Szmidt.
87005
87006 2003-12-03  Bruno Haible  <bruno@clisp.org>
87007
87008         * m4/gettext.m4: Upgrade from gettext-0.13.
87009         * m4/po.m4: Upgrade from gettext-0.13.
87010         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87011         * m4/intmax.m4: New file, from gettext-0.13.
87012         * m4/printf-posix.m4: New file, from gettext-0.13.
87013
87014 2003-11-29  Karl Berry  <karl@gnu.org>
87015
87016         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87017
87018 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87019             Bruno Haible  <bruno@clisp.org>
87020
87021         * lib/printf-parse.h: Don't include sys/types.h.
87022         (ARG_NONE): New macro.
87023         (char_directive): Change type of *arg_index fields to size_t.
87024         * lib/printf-parse.c: Don't include sys/types.h.
87025         (SSIZE_MAX): Remove macro.
87026         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87027         Remove unnecessary overflow check.
87028         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87029         fields.
87030
87031 2003-11-25  Bruno Haible  <bruno@clisp.org>
87032
87033         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87034
87035 2003-11-25  Bruno Haible  <bruno@clisp.org>
87036
87037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87038         gt_TYPE_SSIZE_T.
87039
87040 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87041
87042         * modules/alloca: Remove dependency on xalloc.
87043
87044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/alloca.c: Remove dependency on xalloc module.
87047         (xalloc_die): Remove.
87048         (memory_full) [!defined emacs]: New macro.
87049         [!defined emacs]: Don't include xalloc.h.
87050         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87051         address arithmetic overflows.  Change datatypes a bit to avoid
87052         unnecessary casts.
87053
87054 2003-11-22  Jim Meyering  <jim@meyering.net>
87055
87056         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87057         s/size/size_t/.
87058
87059 2003-11-21  Karl Berry  <karl@gnu.org>
87060
87061         * config/config.{sub,guess}: update from config.
87062
87063 2003-11-18  Karl Berry  <karl@gnu.org>
87064
87065         * config/config.{sub,guess}: update from config.
87066
87067         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87068
87069 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87070
87071         * README: Mention that S+T cannot overflow if S is the size of
87072         an existing object and T is sufficiently small.
87073
87074 2003-11-17  Jim Meyering  <jim@meyering.net>
87075
87076         On systems without utime and without a utimes function capable of
87077         dealing with a NULL struct utimbuf* argument, this utime replacement
87078         could -- in unusual circumstances -- leak a file descriptor.
87079         * lib/utime.c: Include <unistd.h> and <errno.h>.
87080         (utime_null): Be sure to close `fd' and to preserve errno.
87081         Reported by Geoff Collyer via Arnold Robbins.
87082
87083 2003-11-17  Bruno Haible  <bruno@clisp.org>
87084
87085         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87086         (Depends-on): Add xsize.
87087
87088 2003-11-17  Bruno Haible  <bruno@clisp.org>
87089
87090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87091
87092 2003-11-17  Bruno Haible  <bruno@clisp.org>
87093
87094         * lib/vasnprintf.c (alloca): Remove fallback definition.
87095         (freea): Remove definition.
87096         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87097         Reported by Paul Eggert.
87098
87099 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87100             Bruno Haible  <bruno@clisp.org>
87101
87102         Protect against address arithmetic overflow.
87103         * lib/printf-args.h: Include stddef.h.
87104         (arguments): Change type of field 'count' to size_t.
87105         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87106         'unsigned int' where appropriate.
87107         * lib/printf-parse.h: Include sys/types.h.
87108         (char_directive): Change type of *arg_index fields to ssize_t.
87109         (char_directives): Change type of fields 'count', max_*_length to
87110         size_t.
87111         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87112         (SSIZE_MAX): Define fallback value.
87113         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87114         instead of 'int' where appropriate. Check a_allocated, d_allocated
87115         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87116         * lib/vasnprintf.c: Include xsize.h.
87117         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87118         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87119         overflow. Avoid wraparound when converting a width or precision from
87120         decimal to binary.
87121
87122 2003-11-16  Bruno Haible  <bruno@clisp.org>
87123
87124         Update from GNU gettext.
87125         * lib/printf-parse.c: Generalize to it can be compiled for wide
87126         strings.
87127         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87128         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87129         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87130         SNPRINTF): New macros.
87131         Don't include <alloca.h> if the file is used inside libintl.
87132         (local_wcslen): New function, for Solaris 2.5.1.
87133         (VASNPRINTF): Use it instead of wcslen.
87134
87135 2003-11-16  Bruno Haible  <bruno@clisp.org>
87136
87137         * lib/xsize.h (xmax): New function.
87138         (xsum, xsum3, xsum4): Declare as "pure" functions.
87139
87140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87141
87142         * modules/xalloc (Files): Undo latest change, since xalloc.h
87143         no longer needs SIZE_MAX or PTRDIFF_MAX.
87144
87145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87146
87147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87148         gl_PTRDIFF_MAX.
87149
87150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87151
87152         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87153         "return", to pacify some unknown compiler.  Problem reported
87154         by Joerg Schilling.
87155
87156 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87157
87158         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87159         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87160         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87161         heuristic is just as accurate as far as we know, and it removes a
87162         dependency on size_max.m4 and ptrdiff_max.m4.
87163
87164 2003-11-11  Bruno Haible  <bruno@clisp.org>
87165
87166         * modules/xsize (Files): Add m4/size_max.m4.
87167         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87168
87169 2003-11-11  Bruno Haible  <bruno@clisp.org>
87170
87171         * m4/size_max.m4: New file.
87172         * m4/ptrdiff_max.m4: New file.
87173         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87175         (gl_XALLOC): Invoke it.
87176
87177 2003-11-11  Bruno Haible  <bruno@clisp.org>
87178
87179         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87180         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87181         defined.
87182
87183 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87184
87185         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87186         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87187         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87188         From Bruno Haible.
87189         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87190         not (size_t) -1, since it's defined here.
87191
87192 2003-11-09  Karl Berry  <karl@gnu.org>
87193
87194         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87195
87196 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87197
87198         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87199         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87200         Reject sizes of exactly SIZE_MAX bytes.
87201         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87202         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87203
87204 2003-11-05  Bruno Haible  <bruno@clisp.org>
87205
87206         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87207         SIZE_MAX defined in <limits.h> on Solaris.
87208
87209 2003-11-04  Jim Meyering  <jim@meyering.net>
87210
87211         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87212         variable names, rather than @VAR@.
87213         * modules/poll: Likewise.
87214
87215 2003-11-04  Bruno Haible  <bruno@clisp.org>
87216
87217         * modules/xsize: New file.
87218         * modules/linebreak: Depend on xsize.
87219         * MODULES.html.sh (func_all_modules): Add xsize.
87220
87221 2003-11-04  Bruno Haible  <bruno@clisp.org>
87222
87223         * m4/xsize.m4: New file.
87224
87225 2003-11-04  Bruno Haible  <bruno@clisp.org>
87226
87227         * lib/xsize.h: New file.
87228         * lib/linebreak.c: Include xsize.h.
87229         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87230         argument for overflow.
87231         Suggested by Paul Eggert.
87232
87233 2003-11-03  Karl Berry  <karl@gnu.org>
87234
87235         * config/config.{guess,sub}: update from config.
87236
87237 2003-11-03  Jim Meyering  <jim@meyering.net>
87238
87239         * modules/userspec (lib_SOURCES): Add userspec.h.
87240         (Include): Add "userspec.h".
87241         Improve description.
87242
87243 2003-11-03  Jim Meyering  <jim@meyering.net>
87244
87245         * lib/userspec.c: Include "userspec.h".
87246         * lib/userspec.h: New file.
87247
87248 2003-11-03  Bruno Haible  <bruno@clisp.org>
87249
87250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87251
87252 2003-11-03  Bruno Haible  <bruno@clisp.org>
87253
87254         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87255         available, to avoid (extremely rare) race condition.
87256         Suggested by Paul Eggert.
87257
87258 2003-11-02  Karl Berry  <karl@gnu.org>
87259
87260         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87261
87262 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87263
87264         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87265         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87266         (read_filesystem_list): Set and use me_type_malloced.
87267         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87268         whatever the type happens to be), for brevity and consistency.
87269         Check for size calculation overflow on Alphas running OSF/1.
87270
87271 2003-10-31  Jim Meyering  <jim@meyering.net>
87272
87273         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87274
87275         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87276
87277 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87278             Bruno Haible  <bruno@clisp.org>
87279
87280         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87281         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87282
87283 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87284
87285         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87286         netbsd*-gnu*.  Suggested by Robert Millan.
87287
87288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87289
87290         * modules/group-member: Depend on stdbool.
87291
87292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87293
87294         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87295
87296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87297
87298         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87299         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87300         after the 'gnu' in these cases.  This fixes some bugs in the
87301         previous change, and is based on suggestions by Robert Millan.
87302
87303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87304
87305         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87306         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87307         no longer needed.
87308         * lib/quotearg.c (quotearg_n_options): Use it.
87309         * lib/group-member.c: Include <stdbool.h>.
87310         (free_group_info): Arg is now const *; don't free arg.
87311         (get_group_info): Now returns bool and accepts struct group_info *,
87312         rather than returning a malloc'ed struct group_info *.
87313         All uses changed.  Check for overflow in internal size calculation.
87314
87315         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87316         rather than xmalloc/xrealloc.
87317         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87318         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87319         conformance bug: the old code used a pointer after freeing the
87320         storage that it addressed.
87321         * lib/hash.c (hash_initialize): Simplify the code by using
87322         xalloc_oversized rather than doing it by hand.
87323         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87324         the buffer preserved.  Use free and xmalloc instead.
87325         * lib/quotearg.c (quotearg_n_options): Likewise.
87326         Use a simpler test for size overflow.  Don't use xalloc_oversized
87327         because unsigned int might be wider than size_t (!); this suggests
87328         that we should switch from unsigned int to size_t for slot numbers.
87329
87330 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87331
87332         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87333         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87334         NetBSD kernels.  Requested by Richard Stallman.
87335
87336 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87337
87338         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87339         to allocate the returned structure.  Do not allocate a subarray,
87340         as x2nrealloc will do that.
87341         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87342         instead of xnrealloc.
87343         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87344
87345 2003-10-27  Bruno Haible  <bruno@clisp.org>
87346
87347         * lib/stdbool_.h: Better support for BeOS.
87348
87349 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87350
87351         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87352         now uses inline.
87353
87354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87355
87356         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87357         callers that want to do their own size-overflow checking.  Include
87358         <stdbool.h>, since xalloc_oversized returns bool.
87359         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87360         to use xalloc_oversized.
87361
87362         Add two functions x2realloc, x2nrealloc, for programs that grow
87363         arrays dynamically by doubling their sizes.
87364         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87365         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87366         New functions.
87367
87368         Port to C99 semantics for 'inline' of external functions.
87369         Bug reported by Bruno Haible.
87370         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87371         with the old contents of xnmalloc.
87372         (xnmalloc, xmalloc): Use it.
87373         (xnrealloc_inline): New static inline function,
87374         with the old contents of xnrealloc.
87375         (xnrealloc, xrealloc): Use it.
87376
87377         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87378         that.
87379
87380 2003-10-26  Karl Berry  <karl@gnu.org>
87381
87382         * config/srclist.txt (COPYING.DOC): no longer available from
87383         /gd/gnuorg; don't know where the ultimate source is.
87384
87385 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87386
87387         Fix several address-calculation bugs in the hash modules,
87388         plus some minor code cleanup.
87389
87390         * lib/hash.h: Include <stdbool.h>, for bool.
87391         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87392         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87393         hash_get_n_entries, hash_get_max_bucket_length,
87394         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87395         hash_rehash): Use size_t rather than unsigned.
87396         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87397         hash_get_n_buckets_used, hash_get_n_entries,
87398         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87399         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87400         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87401         Likewise.
87402         (SIZE_MAX): Define if not defined.
87403         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87404         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87405         hash_print):
87406         Use const * when possible.
87407         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87408         (check_tuning): Fix bug: if tuning parameters were very close to
87409         0 or 1, rounding errors could have caused subscript violations.
87410         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87411         (hash_initialize): Add 'fail:' label
87412         to free table and return NULL, and use it to simplify code.
87413         Use calloc rather than clearing the storage ourself.
87414         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87415         buffer size calculations.
87416         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87417         Include <stddef.h>, for size_t.
87418         * lib/hash-pjw.c (hash_pjw): Likewise.
87419         Switch to method described by Bruno Haible.
87420         Include <limits.h>, for CHAR_BIT.
87421         (SIZE_BITS): New macro.
87422
87423 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87424
87425         * m4/getline.m4 (AM_FUNC_GETLINE):
87426         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87427         hosts.  Problem reported by Derek Robert Price in
87428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87429         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87430         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87431
87432 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87433
87434         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87435         ceiling the allocation at NMAX bytes rather than silently
87436         discarding input bytes before NMAX is reached.  This makes
87437         a difference only if NMAX exceeds SIZE_MAX / 2.
87438
87439         * lib/obstack.c: Merge from glibc.
87440         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87441         Add libc_hidden_def (_obstack_newchunk).
87442         (_obstack_free) [! defined _LIBC]: Remove.
87443         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87444         a clone of the function body.
87445         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87446         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87447
87448         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87449         glibc.
87450         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87451         arg to memcpy.
87452
87453         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87454         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87455         Don't use lvalue casts, as GCC plans to remove support for them
87456         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87457         was also present in the non-GCC version, indicating that this
87458         code had always been buggy and had never been widely used.
87459         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87460         Use the fast variant of each macro, rather than copying the
87461         definiens of the fast variant; that way, we'll be more likely to
87462         catch future bugs in the fast variants.
87463
87464 2003-10-20  Bruno Haible  <bruno@clisp.org>
87465
87466         * modules/wait-process: New file.
87467         * MODULES.html.sh (func_all_modules): Add wait-process.
87468
87469 2003-10-20  Bruno Haible  <bruno@clisp.org>
87470
87471         * m4/wait-process.m4: New file.
87472
87473 2003-10-20  Bruno Haible  <bruno@clisp.org>
87474
87475         * lib/wait-process.h: New file, from GNU gettext.
87476         * lib/wait-process.c: New file, from GNU gettext.
87477
87478 2003-10-19  Jim Meyering  <jim@meyering.net>
87479
87480         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87481         HPUX 10.20.
87482
87483 2003-10-18  Karl Berry  <karl@gnu.org>
87484
87485         * config/config.guess: update from config.
87486
87487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87488
87489         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87490         (getgroups): First arg is int, not size_t.
87491         Don't let 'free' mangle errno.
87492
87493 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87494
87495         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87496
87497 2003-10-16  Karl Berry  <karl@gnu.org>
87498
87499         * config/config.{guess,sub}: update from config.
87500
87501 2003-10-16  Jim Meyering  <jim@meyering.net>
87502
87503         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87504         memcpy.
87505
87506 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87507
87508         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87509         (SIZE_MAX): Remove.
87510         (new_exclude, add_exclude_file): Initial size no longer needs to
87511         be a power of 2.
87512         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87513         our own address arithmetic overflow checking.
87514
87515         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87516         (fnmatch): Do not alloca more than 2000 wide characters;
87517         instead, use malloc for large buffers.
87518         Check for address arithmetic overflow, and return -1
87519         with errno set to ENOMEM in that case.
87520         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87521         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87522         instead, return -1.  Check for address arithmetic overflow.
87523
87524 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87525
87526         Handle invalid suffixes and overflow independently, so that
87527         callers can treat them independently as needed.  Fix some bugs in
87528         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87529         suffix for a human-readable blocksize.  The major caller-visible
87530         change is the addition of a new
87531         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87532         that both overflow and suffix chars were found.
87533
87534         * lib/human.c (humblock): Don't check separately for invalid suffix
87535         char; that is xstrtoumax's job (now that its bug is fixed).
87536         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87537         INTMAX_MAX]: New macros.
87538         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87539         TYPE_MAXIMUM): New macros.
87540         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87541         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87542         if overflow occurs, as it's what __strtol does and it's more useful
87543         in practice.
87544         (__xstrtol): If __strtol reports some error other than ERANGE,
87545         reflect it to the caller as LONGINT_INVALID.  If it reports
87546         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87547         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87548         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87549         value.
87550         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87551         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87552         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87553         [defined UINTMAX_MAX]: New macros.
87554
87555 2003-10-14  Bruno Haible  <bruno@clisp.org>
87556
87557         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87558
87559 2003-10-14  Bruno Haible  <bruno@clisp.org>
87560
87561         * m4/sig_atomic_t: New file, from GNU gettext.
87562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87563
87564 2003-10-14  Bruno Haible  <bruno@clisp.org>
87565
87566         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87567         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87568         Also use volatile where needed.
87569
87570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87571
87572         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87573         Change maintainer from Bruno Haible to 'all'.
87574
87575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87576
87577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87578
87579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87580
87581         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87582         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87583         and define in terms of the other primitives.
87584         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87585         (SIZE_MAX): Define if not already defined.
87586         (array_size_overflow): New function.
87587         (xalloc_die): Abort instead of exiting if 'error' returns.
87588         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87589         (xmalloc, xrealloc): Use them.
87590         (xcalloc): Check for address arithmetic overflow.
87591         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87592         a bit faster than strcpy.
87593
87594 2003-10-10  Simon Josefsson  <jas@extundo.com>
87595
87596         * modules/argp (Depends-on): Add restrict and strcase.
87597
87598 2003-10-10  Simon Josefsson  <jas@extundo.com>
87599
87600         * m4/argp.m4: Add AC_C_INLINE.
87601
87602 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87603
87604         Merge getpass from libc, plus a few fixes.
87605
87606         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87607         Include <stdbool.h>.
87608         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87609         __fsetlocking to empty.
87610         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87611         do include <bits/libc-lock.h>.
87612         Do not include <fcntl.h>; not needed.
87613         [_LIBC]: Include <wchar.h>.
87614         (NOTCANCEL_MODE): New macro.
87615         (flockfile, funlockfile) [_LIBC]: New macros.
87616         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87617         [!_LIBC]: New macros.
87618         (call_fclose): New function.
87619         (getpass): Use it.  Save tty stream separately; this simplifies the
87620         code and makes it more reliable if stdin happens to equal stdout.
87621         Invoke __fsetlocking on tty.
87622         Handle thread cancellation if needed.
87623         Namespace cleanup (use __tcgetattr, __getline).
87624         Use bool for Booleans.
87625         [USE_IN_LIBIO]: Handle wide streams.
87626         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87627         stream might go where.
87628
87629         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87630         doesn't have to include <stdio.h> before us.
87631         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87632         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87633         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87634         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87635         if not declared, so that we can use getpass.c code from libc without
87636         rewriting it.
87637         (flockfile, ftrylockfile, funlockfile): New macros.
87638
87639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87640
87641         * modules/getpass: Depend on stdbool.
87642
87643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87644
87645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87646
87647 2003-10-07  Karl Berry  <karl@gnu.org>
87648
87649         * config/config.{guess,sub}: update from config.
87650
87651 2003-10-06  Jim Meyering  <jim@meyering.net>
87652             Bruno Haible  <bruno@clisp.org>
87653
87654         This lets translators provide better translations for the
87655         "Written by ..." part of --version output.
87656         * lib/version-etc.h: Include stdarg.h.
87657         (version_etc_copyright): Declare as readonly.
87658         (version_etc): Make this function variadic with a NULL-terminated list
87659         of author name strings.
87660         (version_etc_va): New declaration.
87661         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87662         (version_etc_copyright): Declare as readonly.
87663         (version_etc_va): New function. Provide a different translatable string
87664         for each possible number of authors < 10. Abbreviate when there are 10
87665         authors or more.
87666         (version_etc): Make this function variadic. Call version_etc_va.
87667         Suggestion from Gary V. Vaughan.
87668
87669         * lib/long-options.h (parse_long_options): Change prototype: the
87670         authors string is moved to the end and becomes variadic.
87671         * lib/long-options.c: Include stdarg.h.
87672         (parse_long_options): Make this function variadic, too.
87673         Call version_etc_va, not version_etc.
87674
87675 2003-10-06  Bruno Haible  <bruno@clisp.org>
87676
87677         * modules/version-etc-2: Remove file.
87678         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87679
87680 2003-10-06  Bruno Haible  <bruno@clisp.org>
87681
87682         * modules/fatal-signal: New file.
87683         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87684
87685 2003-10-06  Bruno Haible  <bruno@clisp.org>
87686
87687         * m4/fatal-signal.m4: New file.
87688         * m4/signalblocking.m4: New file, from GNU gettext.
87689
87690 2003-10-06  Bruno Haible  <bruno@clisp.org>
87691
87692         * lib/version-etc-2.h: Remove file.
87693         * lib/version-etc-2.c: Remove file.
87694
87695 2003-10-06  Bruno Haible  <bruno@clisp.org>
87696
87697         * lib/fatal-signal.h: New file, from GNU gettext.
87698         * lib/fatal-signal.c: New file, from GNU gettext.
87699
87700 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87701
87702         * README: Rework advice for preventing empty .o files.
87703         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87704         not <sys/types.h>.
87705
87706 2003-10-04  Karl Berry  <karl@gnu.org>
87707
87708         * lib/argp*: update from libc.
87709
87710 2003-10-04  Karl Berry  <karl@gnu.org>
87711
87712         * config/config.{guess,sub}: update from config.
87713
87714 2003-10-02  Bruno Haible  <bruno@clisp.org>
87715
87716         * modules/lchown (Include): Add lchown.h.
87717         * modules/time_r (Include): Use "..." syntax.
87718         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87719
87720 2003-10-01  Simon Josefsson  <jas@extundo.com>
87721
87722         * MODULES.html.sh (func_all_modules): Move gethostname from section
87723         'based on' to section 'lacking' POSIX:2001.
87724
87725 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87726
87727         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87728         to output mode on the same stream.
87729
87730 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87731
87732         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87733         Fix arg typo in previous patch.
87734
87735 2003-09-28  Jim Meyering  <jim@meyering.net>
87736
87737         * lib/error.c: Correct cpp indentation.
87738
87739 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87740
87741         * modules/free: New file.
87742
87743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87744
87745         * m4/free.m4: New file.
87746
87747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87748
87749         * lib/minmax.h (MIN, MAX)
87750         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87751         Omit the special code that used __typeof__, since we worry that
87752         it could be more trouble than it's worth.  See:
87753         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87754         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87755
87756         * lib/free.c: New file.
87757
87758 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87759
87760         Trivial fixes to Makefile.am parts of module listings.
87761         * modules/strstr: Append strstr.h to lib_SOURCES.
87762         * modules/strcase: Likewise, for strcase.h.
87763
87764 2003-09-27  Karl Berry  <karl@gnu.org>
87765
87766         * config/mkinstalldirs: update from automake.
87767
87768 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87769
87770         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87771         (error_tail): Do not loop, reallocating temporary buffer, since
87772         the output cannot contain more wide characters than the input
87773         contains bytes, the size must be big enough already.  This avoids
87774         one potential size overflow calculation.  Check for size overflow
87775         when calculating temporary buffer size.  Free temporary buffer
87776         when done, if it was allocated with malloc; this plugs a memory
87777         leak.  Remove casts from void * to pointers, that are no longer
87778         needed now that we're assuming C89 or better.
87779
87780         Merge error changes from glibc.
87781
87782         * lib/error.c, error.h: Update copyright notice header to match glibc.
87783         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87784         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87785         Disable cancellation while printing error.
87786         * lib/error.h: Prepend __ to parameter names.
87787
87788 2003-09-26  Jim Meyering  <jim@meyering.net>
87789
87790         * lib/error.c (error_tail): Move some declarations
87791         into inner scope where the local variables are used.
87792
87793 2003-09-26  Bruno Haible  <bruno@clisp.org>
87794
87795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87796         stpncpy().
87797         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87798
87799 2003-09-26  Bruno Haible  <bruno@clisp.org>
87800
87801         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87802         (stpncpy): Define as alias for gnu_stpncpy.
87803         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87804
87805 2003-09-25  Simon Josefsson  <jas@extundo.com>
87806
87807         * lib/xgetdomainname.h: New file.
87808         * lib/xgetdomainname.c: New file.
87809
87810 2003-09-25  Simon Josefsson  <jas@extundo.com>
87811             Bruno Haible  <bruno@clisp.org>
87812
87813         * modules/getdomainname: New file.
87814         * modules/xgetdomainname: New file.
87815         * MODULES.html.sh (func_all_modules): Add getdomainname,
87816         xgetdomainname.
87817
87818 2003-09-25  Simon Josefsson  <jas@extundo.com>
87819             Bruno Haible  <bruno@clisp.org>
87820
87821         * m4/getdomainname.m4: New file.
87822
87823 2003-09-25  Simon Josefsson  <jas@extundo.com>
87824             Bruno Haible  <bruno@clisp.org>
87825
87826         * lib/getdomainname.h: New file.
87827         * lib/getdomainname.c: New file.
87828
87829 2003-09-25  Karl Berry  <karl@gnu.org>
87830
87831         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87832
87833 2003-09-25  Karl Berry  <karl@gnu.org>
87834
87835         * config/install-sh: update from automake.
87836
87837 2003-09-25  Bruno Haible  <bruno@clisp.org>
87838
87839         * modules/version-etc-2: New file, from modules/version-etc with
87840         modifications.
87841         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87842
87843 2003-09-25  Bruno Haible  <bruno@clisp.org>
87844
87845         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87846         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87847
87848 2003-09-24  Simon Josefsson  <jas@extundo.com>
87849
87850         * modules/xgethostname: Add xgethostname.h.
87851
87852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87853
87854         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87855         the buffer associated with the argument.  Bug reported by
87856         Simon Josefsson.
87857
87858 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87859
87860         * README: Document assumptions that 'int' is at least 32 bits
87861         wide, that integer arithmetic is 2's complement without overflow,
87862         that there are no holes in integer values, that adding sizes of
87863         two nonoverlapping objects can't overflow, and that all-bits-zero
87864         yields scalar zero.  Fix spelling and capitalization typos.
87865
87866 2003-09-19  Karl Berry  <karl@gnu.org>
87867
87868         * lib/argp.h: update from libc.
87869
87870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87871
87872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87873         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87874         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87875
87876 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87877
87878         * gnulib-tool: Use "test -h", not "test -L", for portability
87879         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87880         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87881         (sed_extract_prog): Issue s commands one-by-one, rather than
87882         using \| in one s command.
87883
87884 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87885
87886         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87887         input error, instead of returning NULL the next time we are called
87888         (and therefore losing track of errno).
87889
87890 2003-09-16  Bruno Haible  <bruno@clisp.org>
87891
87892         * gnulib-tool (func_create_testdir): Warn about duplicated
87893         dependencies.
87894
87895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87896
87897         * modules/argmatch, modules/fatal, modules/obstack,
87898         modules/xalloc, modules/xgethostname: Sort dependencies by
87899         importance, not alphabetically.
87900
87901 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87902
87903         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87904         fails, so that the caller gets the proper errno.
87905
87906         * lib/readutmp.c (read_utmp): Likewise.
87907         Check for fstat error.  Close stream and free storage
87908         when failing.
87909
87910 2003-09-14  Karl Berry  <karl@gnu.org>
87911
87912         * config/srclist.txt (strdup.c): disable for c89 changes.
87913
87914 2003-09-14  Jim Meyering  <jim@meyering.net>
87915
87916         * lib/getloadavg.c: Correct cpp indentation.
87917         * lib/strdup.c: Likewise.
87918         * lib/vasnprintf.c: Likewise.
87919
87920 2003-09-14  Bruno Haible  <bruno@clisp.org>
87921
87922         * modules/fwriteerror: New file.
87923         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87924
87925 2003-09-14  Bruno Haible  <bruno@clisp.org>
87926
87927         * lib/fwriteerror.h: New file.
87928         * lib/fwriteerror.c: New file.
87929
87930 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87931
87932         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87933         modules/xgethostname, modules/xalloc: Depend on exit.
87934
87935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87936
87937         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87938
87939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87940         and AC_MINIX, too, so that their extensions are available.
87941
87942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87943         This macro has been superseded by gl_BACKUPFILE.
87944
87945         More patches to assume C89 or better.
87946
87947         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87948
87949         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87950         unconditionally.
87951         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87953         Include <string.h>, <stdlib.h> unconditionally.
87954         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87955         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87956         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87957         headers or for string.h.
87958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87959         or strtoul.
87960
87961         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87962         headers.
87963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87965         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87966         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87969         memcpy, memset.
87970         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87971         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87973         strtol.
87974         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87975         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87977         strtoul.
87978
87979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87980
87981         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87982         * lib/obstack.c [!defined _LIBC]: Likewise.
87983         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87984         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87985         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87986
87987         More changes to assume C89 or better.
87988
87989         * lib/error.c (error_tail): Assume vprintf.
87990
87991         * lib/argmatch.c (getenv): Remove decl.
87992         * lib/progreloc.c (get_full_program_name): Define via prototype.
87993         * lib/setenv.c (clearenv): Likewise.
87994         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87995         needed.
87996         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87997         (malloc, memcpy): Remove decls.
87998         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87999         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88000         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88001         (memcpy): Remove macro.
88002         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88003         (__P): Remove.  All uses removed.
88004         (PTR): Remove.  All uses changed to void *.
88005         (CHAR_BIT, NULL): Remove.
88006         (spaces, zeros, memset_space, memset_zero)
88007         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88008         Remove.
88009         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88010         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88011         Define with prototype.
88012         Remove now-unnecessary prototype decl.
88013         (extra_args_spec): Assume ANSI C.  All uses changed.
88014         (extra_args_spec_iso): Remove.
88015         (my_strftime, emacs_strftimeu): Define via prototype.
88016         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88017         unconditionally.
88018         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88019         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88020         (strtoul, strtol): Remove decls.
88021         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88022         LONG_MAX): Remove.
88023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88024         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88025         (LOCALE_PARAM_PROTO): New macro.
88026         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88027         (INTERNAL (strtol), strtol): Define with a prototype.
88028         (PARAMS): Remove.  All uses removed.
88029         * lib/tempname.c: Include <string.h> unconditionally.
88030         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88031         * lib/xgethostname.c (main): Define with a prototype.
88032         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88033         Include <stdlib.h> unconditionally.
88034         (calloc, malloc, realloc, free): Remove decls.
88035         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88036         Include <stdlib.h> unconditionally.  Sort include file names.
88037         (strtod): Remove.
88038         (xstrtod): Define with a prototype.
88039         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88040         (strtol, strtoul): Remove decls.
88041
88042 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88043
88044         More patches to assume C89 or better.
88045         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88046         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88047         string.h, memchr, STDC_HEADERS.
88048
88049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88050
88051         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88052         Include <stdlib.h>, <string.h> unconditionally.
88053         Remove now-unnecessary cast to char *.
88054         * lib/strnlen.c: Include <string.h> unconditionally.
88055         * lib/yesno.c (yesno): Define with a prototype.
88056
88057 2003-09-11  Bruno Haible  <bruno@clisp.org>
88058
88059         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88060
88061 2003-09-10  Jim Meyering  <jim@meyering.net>
88062
88063         * lib/error.c: Correct indentation of cpp directives.
88064
88065 2003-09-10  Bruno Haible  <bruno@clisp.org>
88066
88067         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88068         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88069         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88070         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88072         <stdlib.h> and <string.h> checks.
88073         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88074         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88075
88076 2003-09-10  Bruno Haible  <bruno@clisp.org>
88077
88078         * lib/strcspn.c: Include <string.h> unconditionally.
88079         * lib/strpbrk.c: Include <string.h> unconditionally.
88080         * lib/strstr.c: Include <string.h> unconditionally.
88081         * lib/unicodeio.c: Include <string.h> unconditionally.
88082         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88083         * lib/unsetenv.c: Likewise.
88084         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88085         * lib/yesno.c: Include <stdlib.h> unconditionally.
88086         (rpmatch): Add prototype.
88087
88088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88089
88090         More patches to assume C89 or better.
88091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88092         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88093         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88094         or for string.h.
88095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88096         stdlib.h.
88097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88098         C headers.
88099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88100         string.h.
88101         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88102         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88103         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88104         or for string.h.
88105         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88106         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88107         C headers.
88108         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88109         memcpy.
88110         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88111         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88113         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88114         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88116         string.h, free.
88117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88118         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88119         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88120         C headers, or for string.h.
88121         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88122         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88123         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88124         headers, memory.h, stdlib.h, string.h, strings.h.
88125         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88126         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88127         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88128         strchr.
88129         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88130         headers, memory.h, string.h.
88131         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88132         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88133         free.
88134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88135         headers.
88136         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88137         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88138         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88139         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88140         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88141
88142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88143
88144         More K&R removal.
88145
88146         * lib/acosl.c (main): Use a prototype.
88147         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88148         tanl.c: Likewise.
88149
88150         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88151
88152         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88153         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88154         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88155         with a prototype.
88156         * lib/getopt.c (const): Remove macro.
88157         Include <string.h> unconditionally.
88158         (my_index): Remove; all uses changed to strchr.
88159         (strlen): Remove decl.
88160         (exchange): Remove forward decl; no longer needed.
88161         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88162         Define with prototype.
88163         * lib/getopt1.c (const): Remove macro.
88164         (getopt_long, getopt_long_only, main): Define with prototype.
88165
88166         * lib/getugroups.c: Include <string.h> unconditionally.
88167
88168         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88169         (getusershell, setusershell, endusershell, readname, main):
88170         Define with prototypes.
88171
88172         * lib/group-member.c: Include group-member.h first.
88173         Include <stdlib.h> unconditionally.
88174
88175         * lib/hard-locale.c: Include hard-locale.h first.
88176         Include <stdlib.h>, <string.h> unconditionally.
88177
88178         * lib/hash.c (free, malloc): Remove decls.
88179         Include <stdlib.h> unconditionally.
88180
88181         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88182         (getenv): Do not declare.
88183
88184         * lib/idcache.c: Include <string.h> unconditionally.
88185
88186         * lib/long-options.c: Include long-options.h first, to test interface.
88187         Include <stdlib.h> unconditionally.
88188
88189         * lib/makepath.c: Include makepath.h first, to test interface.
88190         Include <stdlib.h> and <string.h> unconditionally.
88191
88192         * lib/linebuffer.c: Include <stdlib.h>.
88193         (free): Remove decl.
88194
88195         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88196         stddef.h. rpl_malloc returns void *, not char *.
88197         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88198         prototype.
88199
88200         * lib/md5.h: Include <limits.h> unconditionally.
88201         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88202         (__P): Remove; all uses removed.
88203         * lib/md5.c: Include "md5.h" first.
88204         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88205         md5_buffer, md5_process_bytes, md5_process_block):
88206         Define with prototypes.
88207         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88208         * lib/sha.c: Include "sha.h" first.
88209         Include <stdlib.h>, <string.h> unconditionally.
88210
88211         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88212         * lib/memcmp.c (__ptr_t): Likewise.
88213         * lib/memrchr.c (__ptr_t): Likewise.
88214         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88215         Include <string.h> unconditionally.
88216         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88217         * lib/memchr.c: Include <stdlib.h> unconditionally.
88218         * lib/memchr.c (LONG_MAX): Remove.
88219         * lib/memrchr.c (LONG_MAX): Likewise.
88220         * lib/memchr.c (__memchr): Define via a prototype.
88221         * lib/memrchr.c (__memrchr): Likewise.
88222         * lib/memcmp.c (__P): Remove, and remove all uses.
88223         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88224         Remove forward decls; no longer needed.
88225         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88226         Use types required by C89 in prototype.
88227
88228         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88229         * lib/savedir.c: Likewise.
88230         * lib/mkdir.c (free): Remove decl.
88231         * lib/rmdir.c (rmdir): Define with a prototype.
88232         * lib/savedir.c: Include savedir.h first, to test interface.
88233
88234         * lib/mktime.c (STDC_HEADERS): Remove.
88235         Include <stdlib.h>, <string.h> unconditionally.
88236
88237         * lib/modechange.c: Include <stdlib.h> unconditionally.
88238         (malloc): Remove decl.
88239
88240         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88241         (free): Remove decl.
88242
88243         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88244         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88245         (This type really should be intptr_t, but that's a C99ism.)
88246         (_obstack_memcpy): Remove: all uses changed to memcpy.
88247         Include <string.h> unconditionally.
88248         (struct obstack): Assume __STDC__ for types of members
88249         chunkfun, freefun, extra_arg.
88250         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88251         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88252         obstack_begin, obstack_specify_allocation,
88253         obstack_specify_allocation_with_arg, obstack_chunkfun,
88254         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88255         Remove unprototyped decls and the macros that use them.
88256         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88257         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88258         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88259         (defined __STDC__ && __STDC__)]:
88260         Remove nonprototyped code.
88261         Include <stdlib.h> unconditionally.
88262         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88263         _obstack_allocated_p, _obstack_free, obstack_free,
88264         _obstack_memory_used, print_and_abort):
88265         Define using prototypes.
88266         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88267         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88268         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88269         obstack_next_free, obstack_object_size, obstack_room) [0]:
88270         Remove unused, unprototyped code.
88271
88272         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88273
88274         * lib/physmem.c (physmem_total, physmem_available, main): Define
88275         with prototypes.
88276
88277         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88278         (main): Define with a prototype.
88279
88280         * lib/posixver.c (getenv): Remove decl.
88281
88282         * lib/putenv.c (malloc): Returns void *, not char *.
88283         Include <string.h> unconditionally.
88284         (strchr, memcpy, NULL): Do not define.
88285
88286         * lib/readtokens.c: Include readtokens.h first, to test interface.
88287         Include <stdlib.h>, <string.h> unconditionally.
88288         (init_tokenbuffer): Define with a prototype.
88289
88290         * lib/regex.c (PARAMS): Remove.  All uses removed.
88291         All uses of _RE_ARGS removed, too.
88292         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88293         unconditionally.
88294         (bzero): Assume memset exists.
88295         (memcmp, memcpy, NULL): Remove.
88296         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88297         char, or assignments to local vars of type signed char.
88298         (init_syntax_once, PREFIX(extract_number_and_incr),
88299         PREFIX(print_partial_compiled_pattern),
88300         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88301         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88302         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88303         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88304         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88305         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88306         wcs_compile_range, byte_compile_range, truncate_wchar,
88307         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88308         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88309         count_mbs_length, wcs_re_match_2_internal,
88310         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88311         PREFIX(alt_match_null_string_p),
88312         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88313         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88314         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88315         now-unnecessary declaration, if any.
88316         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88317         regcomp, regexec):
88318         Remove now-unnecessary casts among pointer types.
88319         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88320
88321         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88322         (free): Remove decl.
88323
88324         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88325
88326         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88327         (free): Remove decl.
88328
88329         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88330         * lib/xgetcwd.c: Likewise.
88331
88332         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88333         (free): Remove decl.
88334
88335         * lib/strchrnul.c (strchrnul): Define with a prototype.
88336         Fix bug: c_in was not converted to char before searching.
88337
88338         The following changes are not K&R related:
88339
88340         * lib/group-member.h: Include <sys/types.h>, so that this file is
88341         self-contained.
88342         * lib/makepath.h: Likewise.
88343
88344         * lib/getusershell.c (readname, default_index, line_size, readname):
88345         Use size_t, not int, for sizes.
88346         (readname): If the size overflows, report an error instead of
88347         looping forever.
88348
88349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88350
88351         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88352         libc.
88353
88354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88355
88356         * README: New section: portability guidelines.
88357
88358 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88359
88360         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88361         C89 spec.
88362
88363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88364
88365         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88366
88367 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88368
88369         Assume C89 or better; remove K&R cruft.
88370         A few of these changes were first proposed by Derek Robert Price
88371         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88372
88373         * lib/addext.c: Include <string.h> unconditionally.
88374         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88375         Don't declare getenv or malloc.
88376
88377         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88378         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88379         (NULL): Remove.
88380         (find_stack_direction, alloca): Use prototypes.
88381
88382         * lib/atexit.c (atexit): Define using a prototype.
88383
88384         * lib/basename.c, dirname.c, stripslash.c:
88385         Include <string.h> unconditionally.
88386
88387         * lib/bcopy.c: Include <stddef.h>.
88388         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88389
88390         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88391
88392         * lib/error.h (error, error_at_line, error_print_progname)
88393         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88394         * lib/error.c: Include error.h first, to check interface.
88395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88396         (VA_START): Remove; all uses changeed to va_start.
88397         (exit, strerror): Remove decls.
88398         (error_print_progname): Prototype uncondionally.
88399         Don't include <errno.h>; no longer needed.
88400         (private_strerror): Remove.
88401         (error_tail): Always define.
88402         (error, error_at_line): Assume C89 or better; always use prototypes.
88403         * lib/fatal.c: Include "fatal.h" first, to test interface.
88404         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88405         (VA_START): Remove; all uses changed to va_start.
88406         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88407         this case.
88408         (exit): Remove decl.
88409         (fatal): Prototype unconditionally.  Assume va_start works.
88410         Abort at end, to pacify gcc.
88411
88412         * lib/euidaccess.c (main): Define with a prototype.
88413
88414         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88415
88416         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88417
88418         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88419         prototypes.
88420         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88421         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88422         (getenv): Remove decl.
88423         (fnmatch): Define using a prototype.
88424         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88425         (FCT): Define using a prototype.
88426
88427         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88428
88429         * lib/gethostname.c: Include <stddef.h>.
88430         (gethostname): Define with prototype.  Length is size_t, not int.
88431
88432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88433
88434         Assume C89 or better; remove K&R cruft.
88435         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88437         string.h, getenv, malloc.
88438         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88439         headers.
88440         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88441         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88442         do not check for strerror.
88443         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88444         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88445         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88446         do not check for doprnt or vprintf.
88447         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88448         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88449
88450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88451
88452         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88453         getversion.c should have been removed then, but was accidentally
88454         preserved.
88455
88456         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88457         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88458
88459 2003-09-08  Karl Berry  <karl@gnu.org>
88460
88461         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88462                 config, forget about prep.
88463
88464         * config/depcomp, missing: update from automake.
88465
88466 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88467
88468         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88470
88471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88472
88473         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88474         copy_tm_result.  Bug reported by Simon Josefsson in
88475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88476
88477 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88478
88479         * m4/time_r.m4: New file.
88480         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88482         is. Check for timegm declaration.
88483         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88484         Do not check for gmtime_r.
88485         Replace mktime if __mktime_internal does not exist and if mktime
88486         hasn't been replaced already.
88487
88488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88489
88490         * lib/time_r.c, lib/time_r.h: New files.
88491
88492         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88493         __localtime_r.
88494         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88495         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88496
88497         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88498         __gmtime_r.
88499         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88500         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88501         Include <time_r.h>.
88502
88503         * lib/timegm.c: Switch to glibc implementation, with the following
88504         changes:
88505         [defined HAVE_CONFIG_H]: Include <config.h>.
88506         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88507         (__mktime_internal) [!defined _LIBC]: New decl.
88508         (__gmtime_r) [!defined _LIBC]: New macro and function.
88509         (timegm): Use a prototype, since gnulib assumes C89.
88510         Do not bother declaring tmp to be const, as it's not really usefu.
88511         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88512         (timegm): Declare only if HAVE_DECL_TIMEGM.
88513
88514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88515
88516         * MODULES.html.sh (func_all_modules): Add time_r.
88517         * modules/time_r: New file.
88518         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88519         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88520
88521 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88522
88523         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88524         Bug reported by Lute Kamstra in
88525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88526
88527         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88528         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88529         course with correspondingly smaller numbers for tomorrow and
88530         yesterday.  From Tadayoshi Funaba.  Originally installed into
88531         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88532         coreutils merge?).
88533
88534 2003-08-31  Simon Josefsson  <jas@extundo.com>
88535
88536         * modules/timegm: New file.
88537         * MODULES.html.sh (func_all_modules): Add timegm.
88538
88539 2003-08-31  Simon Josefsson  <jas@extundo.com>
88540
88541         * m4/timegm.m4: New file.
88542
88543 2003-08-31  Simon Josefsson  <jas@extundo.com>
88544
88545         * lib/timegm.h: New file.
88546         * lib/timegm.c: New file.  Based on
88547         wget-1.8.2/src/http.c:mktime_from_utc.
88548
88549 2003-08-31  Karl Berry  <karl@gnu.org>
88550
88551         * lib/argp.h: update from libc.
88552
88553 2003-08-28  Bruno Haible  <bruno@clisp.org>
88554
88555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88556         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88557         followed by '#define fnmatch fnmatch_posix' gives an error.
88558
88559 2003-08-28  Bruno Haible  <bruno@clisp.org>
88560
88561         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88562         warning on QNX, which defines O_BINARY to 000000.
88563
88564 2003-08-27  Jim Meyering  <jim@meyering.net>
88565
88566         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88567         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88568         would fail after 32.  Reported by Danny Levinson.  Details here:
88569         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88570
88571 2003-08-24  Bruno Haible  <bruno@clisp.org>
88572
88573         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88574         MSVC7 <stdio.h> is included later.
88575
88576 2003-08-22  Simon Josefsson  <jas@extundo.com>
88577
88578         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88579
88580 2003-08-20  Karl Berry  <karl@gnu.org>
88581
88582         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88583
88584 2003-08-20  Bruno Haible  <bruno@clisp.org>
88585
88586         * modules/progname: New file.
88587         * MODULES.html.sh (func_all_modules): Add progname.
88588
88589 2003-08-20  Bruno Haible  <bruno@clisp.org>
88590
88591         * lib/progname.h: New file, from GNU gettext.
88592         * lib/progname.c: New file, from GNU gettext.
88593         * lib/progreloc.c: New file, from GNU gettext.
88594
88595 2003-08-19  Jim Meyering  <jim@meyering.net>
88596
88597         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88598         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88599
88600 2003-08-19  Bruno Haible  <bruno@clisp.org>
88601
88602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88603         more.
88604
88605 2003-08-19  Bruno Haible  <bruno@clisp.org>
88606
88607         * lib/xstrdup.c: Assume <string.h> exists.
88608
88609 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88610
88611         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88612         in makefile rules.
88613
88614 2003-08-18  Jim Meyering  <jim@meyering.net>
88615
88616         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88617         * m4/lib-ld.m4: Likewise.
88618
88619 2003-08-18  Jim Meyering  <jim@meyering.net>
88620
88621         * lib/setenv.h: Indent nested cpp directive.
88622         * lib/vasnprintf.c: Remove trailing blanks.
88623
88624 2003-08-17  Simon Josefsson  <jas@extundo.com>
88625
88626         * modules/xstrndup: New file.
88627         * MODULES.html.sh (func_all_modules): Add xstrndup.
88628
88629 2003-08-17  Simon Josefsson  <jas@extundo.com>
88630
88631         * modules/argp: Fix autoconf macro name. Add more dependencies.
88632
88633 2003-08-17  Simon Josefsson  <jas@extundo.com>
88634
88635         * m4/xstrndup.m4: New file.
88636
88637 2003-08-17  Simon Josefsson  <jas@extundo.com>
88638
88639         * m4/argp.m4: New file.
88640
88641 2003-08-17  Simon Josefsson  <jas@extundo.com>
88642             Bruno Haible  <bruno@clisp.org>
88643
88644         * lib/xstrndup.h: New file.
88645         * lib/xstrndup.c: New file.
88646
88647 2003-08-17  Bruno Haible  <bruno@clisp.org>
88648
88649         * modules/strndup (Files, Include): Add lib/strndup.h.
88650
88651 2003-08-17  Bruno Haible  <bruno@clisp.org>
88652
88653         * modules/euidaccess (Files): Add lib/euidaccess.h.
88654
88655 2003-08-17  Bruno Haible  <bruno@clisp.org>
88656
88657         * lib/strndup.h: New file.
88658
88659 2003-08-17  Bruno Haible  <bruno@clisp.org>
88660
88661         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88662         like AC_GNU_SOURCE.
88663         * modules/extensions (configure.ac): Comment out the invocation of
88664         gl_USE_SYSTEM_EXTENSIONS.
88665
88666 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88667
88668         Merges from coreutils, etc.
88669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88670         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88671         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88672         fixing a typo.
88673         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88674         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88675
88676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88677
88678         Document merge from coreutils.
88679         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88680         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88681         * modules/utime: Add m4/utimes-null.m4.
88682
88683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88684
88685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88686         space, undoing this 2003-08-12 change:
88687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88688
88689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88690
88691         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88692         strtoul.c from libc, undoing this 2003-08-12 change:
88693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88694
88695 2003-08-16  Jim Meyering  <jim@meyering.net>
88696
88697         Merges from coreutils.
88698         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88699         prefix.  Adjust cache variables similarly.  Create 500 rather than
88700         just 300 files, to exercise bug on Darwin6.5, too.
88701         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88702         $missing_dir.
88703         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88704         AM_SYS_POSIX_TERMIOS.
88705         Reported by mkc@mathdogs.com.
88706         Also change use of $am_cv_sys_posix_termios
88707         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88708         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88709         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88710         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88711         in /proc/mounts until it finds one with matching device number.  This
88712         is unnecessary when the FILE argument *is* a mount point.  No stat call
88713         is necessary in that case.  So, disable the statvfs-testing code on
88714         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88715         as RedHat bug# 84846.
88716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88717         to 1MB, so as not to render systems with no stack size limit (e.g.,
88718         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88719         Include <unistd.h>.  On some systems,
88720         it is required for the definition of _SC_PAGESIZE.
88721
88722 2003-08-16  Jim Meyering  <jim@meyering.net>
88723
88724         Merge from coreutils.
88725         * lib/xstrtoimax.c: #else #if -> #elif.
88726         * lib/xstrtoumax.c: Likewise.
88727
88728 2003-08-16  Jim Meyering  <jim@meyering.net>
88729
88730         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88731         * m4/utimes.m4: Removed.
88732         * m4/utimes-null.m4: Renamed from utimes.m4.
88733
88734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88735         to 1MB, so as not to render systems with no stack size limit (e.g.,
88736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88737         Include <unistd.h>.  On some systems,
88738         it is required for the definition of _SC_PAGESIZE.
88739
88740 2003-08-16  Jim Meyering  <jim@meyering.net>
88741         and Paul Eggert  <eggert@cs.ucla.edu>
88742
88743         Merges from coreutils, etc.
88744
88745         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88746         using the latest version from cvs.  This avoids problems with #line
88747         directives using a vendor (Sun) compiler.
88748         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88749         Don't set GETGROUPS_LIB here; now it's
88750         done via getgroups.m4's wrapper function.
88751         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88752         rather than just in sh-util/configure.in, so that the
88753         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88754         same.
88755         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88756         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88757         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88758         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88759         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88760         Remove code that is now done by the newly-required macros.
88761         Append $(EXEEXT) to DF_PROG.
88762         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88763         Do not invoke or require the following here,
88764         since prereq.m4 or some gnulib .m4 now does this for us:
88765         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88766         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88767         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88768         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88769         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88770         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88771         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88772         AC_FUNC_OBSTACK.
88773         Do not replace the following functions, as this is now the job
88774         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88775         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88776         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88777         atexit getpass, strdup, getpagesize.
88778         Replace 'raise'.
88779         Do not check for the following functions, as this is now the job
88780         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88781         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88782         setregid.
88783         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88784         Check for sys/sysctl.h.
88785         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88786         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88787         of checking for ssize_t ourselves.
88788
88789         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88790         Require every macro that gnulib/modules/* suggests for us.
88791         (jm_PREREQ_ADDEXT): New macro.
88792         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88793         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88794
88795         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88796         (gl_PHYSMEM): Use it.
88797         Also check for `table' function.
88798         Check for new headers and functions.
88799         Add check for sys/sysmp.h.
88800         With suggestions from Kaveh Ghazi.
88801         Ignore headers that are present but cannot be compiled.  This
88802         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88803         C 5.4.
88804
88805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88806
88807         Document merge from coreutils.
88808         * modules/userspec: Depend on posixver.
88809         * modules/strftime: Depend on tzset.
88810
88811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88812
88813         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88814         rather than tab, after '#' in shell-script copyright notices.
88815         Suggested by Bruno Haible.
88816
88817 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88818
88819         * config/srclist-update: Use three spaces, rather than tab, after '#'
88820         in shell-script copyright notices.  Suggested by Bruno Haible.
88821         Remove unnecessary parenthesization in regular expression.
88822
88823 2003-08-15  Jim Meyering  <jim@meyering.net>
88824
88825         Merge from coreutils.
88826         * lib/xgethostname.c: Include <stdlib.h>.
88827         (xghostname): Don't exit for anything other than memory-related
88828         failure; just return NULL.
88829         * lib/userspec.c: Include "posixver.h".
88830         (parse_user_spec): Accept `.' as a separator only
88831         in pre-POSIX-200112 mode.
88832         * lib/strtoimax.c: Use #elif rather than #else #if.
88833         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88834         Remove function, now that we can rely on a working tzset function.
88835         [!_LIBC]: Ensure that the required autoconf test has been run.
88836         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88837         Use underlying_strftime for %r.
88838         * lib/sha.c: Merge in some clean-up and optimization changes from
88839         glibc.
88840         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88841         Ensure that it is a multiple of 64.
88842         Rearrange loop exit tests so as to avoid performing an
88843         additional fread after encountering an error or EOF.
88844         * lib/realloc.c: Update copyright date.
88845
88846 2003-08-15  Jim Meyering  <jim@meyering.net>
88847         and Paul Eggert  <eggert@twinsun.com>
88848
88849         Merge from coreutils.
88850         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88851         member but strut utmpx does not.  Needed for AIX 4.3.3.
88852         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88853
88854 2003-08-15  Jim Meyering  <jim@meyering.net>
88855         and Paul Eggert  <eggert@cs.ucla.edu>
88856
88857         Merges from coreutils, etc.
88858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88859         Require gl_FUNC_TZSET_CLOBBER.
88860         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88861         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88862         members.
88863
88864 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88865
88866         Help the merge from coreutils.
88867         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88868         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88869         * m4/tzset.m4: Use it too.
88870
88871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88872
88873         * modules/tzset: New file.
88874
88875 2003-08-14  Jim Meyering  <jim@meyering.net>
88876
88877         Merges from coreutils.
88878         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88879         variable names, rather than @FNMATCH_H@.
88880         * modules/alloca: Likewise for $(ALLOCA_H).
88881
88882         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88883         the three copies of the literal target, `fnmatch.h'.
88884         * modules/alloca (alloca.h): Likewise.
88885
88886 2003-08-14  Jim Meyering  <jim@meyering.net>
88887
88888         Merge from coreutils.
88889         * m4/tzset.m4: New file.
88890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88891         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88892         otherwise, AIX 5.1 systems would end up using the latter.
88893         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88894         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88895         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88896         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88897
88898 2003-08-14  Jim Meyering  <jim@meyering.net>
88899
88900         Merge from coreutils.
88901         * lib/obstack.h: Whitespace changes.
88902         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88903         and xcalloc return values.
88904         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88905         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88906         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88907         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88908         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88909         error from mntctl.
88910         Use mntctl's return value to drive the entry-processing loop, since
88911         we can't rely on the value of the vmt_length member in the last
88912         entry.  On some systems doing so could result in exhausting
88913         virtual memory.  Based in part on a patch from Mike Jetzer.
88914
88915 2003-08-14  Jim Meyering  <jim@meyering.net>
88916         and Paul Eggert  <eggert@twinsun.com>
88917
88918         Merges from coreutils, plus other fixes.
88919         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88920         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88921         for credits and details.  Thanks to Kaveh Ghazi for helping
88922         to keep these files in sync.
88923         (ARRAY_SIZE): Define it.
88924         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88925         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88926         (memcasecmp): Don't assume size_t fits in unsigned int.
88927         Remove casts and duplicate code.
88928         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88929         (memcpy): Remove definition.
88930         Merge in some clean-up and optimization changes from glibc.
88931         [BLOCKSIZE]: Move definition to top of file.
88932         Ensure that it is a multiple of 64.
88933         Rearrange loop exit tests so as to avoid performing an
88934         additional fread after encountering an error or EOF.
88935         * lib/md5.h (md5_uintptr): Define.
88936         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88937         return to the initial working directory.  Preserve errno
88938         for caller.
88939         * lib/idcache.c: Include "xalloc.h".
88940         (xmalloc, xrealloc): Remove decls.
88941         (getuser): Remove casts no longer required in C89.
88942         * lib/human.c: Include stdio.h, for sprintf.
88943         * lib/group-member.c: Include "xalloc.h".
88944         (xmalloc, xrealloc): Remove decls.
88945         (get_group_info): Remove casts no longer required in C89.
88946         * lib/getusershell.c (readname): Remove casts no longer required in
88947         C89.
88948         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88949         * lib/getline.c: Whitespace fix, from coreutils.
88950
88951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88952
88953         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88954         Check for isascii.
88955
88956         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88957         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88958         Undo previous (whitespace-only) change.
88959
88960 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88961
88962         * lib/exclude.c: Include <ctype.h>
88963         (IN_CTYPE_DOMAIN): New macro.
88964         (is_space): New fn.
88965         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88966         and empty lines.
88967
88968         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88969         Undo previous (whitespace-only) change.
88970
88971 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88972
88973         * config/srclist-update: Change update back to the old behavior,
88974         leaving whitespace alone.  Use one 'sed' command rather than a
88975         pipeline.
88976         (fixlicense): Now a variable, not a function.
88977         (remove_trailing_blanks): Remove.
88978         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88979         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88980         Undo previous (whitespace-only) change.
88981
88982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88983
88984         Merge from coreutils.
88985         * modules/euidaccess: Add lib_SOURCES, include for new
88986         file euidaccess.h
88987
88988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88989
88990         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88991         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88992         Normalize leading white space and remove trailing white space.
88993
88994         Merge from coreutils
88995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88996
88997         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88998         0.12.1.  These files are now being upgraded automatically by
88999         ../config/srclist-update.
89000
89001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89002
89003         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89004         Normalize leading white space and remove trailing white space.
89005         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89006         notice, as per ../config/srclist-update.
89007
89008         Merge from coreutils.
89009         * lib/euidaccess.h: New file.
89010         * lib/euidaccess.c: Include it.
89011         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89012         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89014
89015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89016
89017         * config/srclist-update: Add copyright notice.
89018         (remove_id_lines, remove_trailing_blanks): New constants.
89019         (fixfile): Use them to normalize spacing a bit in copied files.
89020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89021         Normalize leading white space and remove trailing white space.
89022
89023         * config/texinfo.tex: Sync with texinfo.
89024
89025         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89026         strtoul.c from libc, to merge coreutils whitespace changes.
89027
89028         * config/srclist.txt: Get the following m4 files from gettext:
89029         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89030         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89031         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89032         wint_t.m4.
89033
89034 2003-08-12  Karl Berry  <karl@gnu.org>
89035
89036         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89037         been made.
89038
89039 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89040
89041         * modules/gnu-source, m4/gnu-source.m4:
89042         Remove; we're assuming Autoconf 2.54 or later now.
89043         Suggested by Bruno Haible.
89044         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89045
89046 2003-08-11  Bruno Haible  <bruno@clisp.org>
89047
89048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89049
89050 2003-08-11  Bruno Haible  <bruno@clisp.org>
89051
89052         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89053         (vasnprintf): Use it instead of wcslen.
89054
89055 2003-08-11  Bruno Haible  <bruno@clisp.org>
89056
89057         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89058         value to ensure that _Bool promotes to int. Use #define for _Bool when
89059         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89060
89061 2003-08-10  Karl Berry  <karl@gnu.org>
89062
89063         * lib/regex.h: update from libc (whitespace fix).
89064
89065 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89066
89067         Merge some files from coreutils.  These changes were
89068         originally made by Jim Meyering.
89069         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89070         many older Unixes require this.
89071         * lib/alloca.c (alloca): Remove cast to argument of free;
89072         no longer needed in C89.
89073         * lib/alloca_.h, regex.h: Fix white space to match
89074         what GNU indent does.
89075
89076 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89077
89078         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89079         apparently Emacs's Unicode mode got confused before my 2003-08-05
89080         checkin.
89081
89082 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89083
89084         * m4/extensions.m4: New file.
89085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89086         Require gl_USE_SYSTEM_EXTENSIONS.
89087         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89088         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89089
89090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89091
89092         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89093         * modules/extensions, modules/gnu-source: New files.
89094         * modules/timespec, modules/unlocked-io: Depend on extensions.
89095
89096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89097
89098         * modules/restrict: New file.
89099         * MODULES.html.sh (func_all_modules): Add restrict.
89100         * modules/regex: Depend on restrict.
89101
89102 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89103
89104         * m4/restrict.m4: New file.
89105         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89106
89107 2003-08-07  Bruno Haible  <bruno@clisp.org>
89108
89109         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89110         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89111
89112 2003-08-07  Bruno Haible  <bruno@clisp.org>
89113
89114         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89115         makes the module 'getndelim2' compatible with the module 'getline'.
89116
89117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89118
89119         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89120         byte with "\201" to avoid glitches when editing that source file
89121         with multi-gnome-terminal.
89122
89123 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89124
89125         * lib/bumpalloc.h: Remove.
89126
89127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89128
89129         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89130         * modules/bumpalloc: Remove.
89131
89132 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89135         GNU coding style.
89136
89137         Merge from coreutils.
89138         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89139         1. From glibc.
89140         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89141         from Karl Berry, implemented by Jim Meyering.
89142         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89143         from Dmitry V. Levin.
89144         Remove anachronistic cast of xrealloc.
89145         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89146         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89147         type. Otherwise, it wouldn't compile with at least /bin/cc on
89148         ymp-cray-unicos9.0.2.X.
89149         Combine two mostly-identical uses of alloca into one.
89150         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89151
89152 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89153
89154         [From Emacs.]
89155
89156         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89157         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89158         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89159         obsolete NLIST_NAME_UNION.
89160         [__GNU__]: Undef BSD and FSCALE.
89161         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89162
89163 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89164
89165         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89166         an enum type, so that it's guaranteed to promote to int.  See:
89167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89168
89169 2003-08-03  Karl Berry  <karl@gnu.org>
89170
89171         * config/depcomp: update from automake.
89172
89173 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89174
89175         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89176         (strerror): Don't assume that a printable int fits in 14 bytes.
89177
89178 2003-07-31  Bruno Haible  <bruno@clisp.org>
89179
89180         * modules/getpass-gnu: New file.
89181         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89182
89183 2003-07-31  Bruno Haible  <bruno@clisp.org>
89184
89185         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89186
89187 2003-07-24  Karl Berry  <karl@gnu.org>
89188
89189         * config/missing: update from automake.
89190
89191 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89192             Bruno Haible  <bruno@clisp.org>
89193
89194         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89195         * lib/getline.c (getline, getdelim): Likewise.
89196         Remove _GNU_SOURCE define; now it's defined in config.h through
89197         m4/getline.m4.
89198
89199 2003-07-23  Karl Berry  <karl@gnu.org>
89200
89201         * config/config.sub: update from prep.
89202
89203 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89204
89205         * modules/xalloc (Depends-on): Add exitfail.
89206         * modules/xmemcoll: Likewise.
89207
89208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89209
89210         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89211         over-parenthesization in macros.
89212
89213         Sync with coreutils.
89214
89215         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89216         required by C99.
89217
89218         Use `exit_failure' for xalloc and xmemcoll instead of their own
89219         private exit-failure variables.
89220         * lib/xalloc.h (xalloc_exit_failure): Remove.
89221         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89222         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89223         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89224         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89225         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89226
89227 2003-07-20  Jim Meyering  <jim@meyering.net>
89228
89229         * modules/closeout (Depends-on): Add exitfail.
89230         Suggestion from Bruno Haible.
89231
89232 2003-07-19  Karl Berry  <karl@gnu.org>
89233
89234         * config/config.sub: update from prep.
89235
89236 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89237
89238         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89239         Remove.
89240         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89241         to test that it can stand by itself.  Include "exitfail.h".
89242         Clients should set exit_failure instead.
89243         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89244
89245 2003-07-18  Bruno Haible  <bruno@clisp.org>
89246
89247         * modules/getndelim2: New file.
89248         * modules/getline: Share files with module getndelim2.
89249         * modules/getnline: Depend on getndelim2 instead of sharing files with
89250         it. Add getnline.c to lib_SOURCES.
89251         * MODULES.html.sh (func_all_modules): Add getndelim2.
89252
89253 2003-07-18  Bruno Haible  <bruno@clisp.org>
89254
89255         * m4/getndelim2.m4: New file.
89256         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89257         invoke gl_PREREQ_GETNDELIM2.
89258         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89259         gl_PREREQ_GETNDELIM2.
89260         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89261         gl_GETNDELIM2.
89262
89263 2003-07-18  Bruno Haible  <bruno@clisp.org>
89264
89265         * lib/getndelim2.h: New file.
89266         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89267         getndelim2.h.
89268         (getndelim2): Make non-static. Change return type to ssize_t.
89269         * lib/getline.h: Change argument names.
89270         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89271         * lib/getnline.c: Include getndelim2.h.
89272
89273 2003-07-18  Andreas Schwab  <schwab@suse.de>
89274
89275         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89276
89277 2003-07-17  Karl Berry  <karl@gnu.org>
89278
89279         * config/config.sub: update from prep.
89280
89281 2003-07-17  Bruno Haible  <bruno@clisp.org>
89282
89283         * modules/getnline: New file.
89284         * modules/getline: Add lib/getndelim2.c to source file list.
89285         * MODULES.html.sh (func_all_modules): Add getnline.
89286
89287 2003-07-17  Bruno Haible  <bruno@clisp.org>
89288
89289         * m4/getnline.m4: New file.
89290
89291 2003-07-17  Bruno Haible  <bruno@clisp.org>
89292
89293         * m4/Makefile.am.in: Remove file.
89294         * m4/Makefile.am: Remove file.
89295         * m4/Makefile.in: Remove file.
89296
89297 2003-07-17  Bruno Haible  <bruno@clisp.org>
89298
89299         * lib/getnline.h: New file.
89300         * lib/getnline.c: New file.
89301         * lib/getndelim2.c: New file, extracted from getline.c.
89302         (getndelim2): Renamed from getdelim2, with added nmax argument.
89303         * lib/getline.c: Include getndelim2.c.
89304         (getdelim2): Moved out to getndelim2.c.
89305         (getline, getdelim): Update.
89306
89307 2003-07-17  Bruno Haible  <bruno@clisp.org>
89308
89309         * lib/Makefile.am: Remove file.
89310         * lib/Makefile.in: Remove file.
89311
89312 2003-07-17  Bruno Haible  <bruno@clisp.org>
89313
89314         * configure.in: Remove file.
89315         * Makefile.in: Remove file.
89316
89317 2003-07-17  Bruno Haible  <bruno@clisp.org>
89318
89319         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89320
89321 2003-07-16  Karl Berry  <karl@gnu.org>
89322
89323         * config/srclist-update: was running fixlicense twice, which caused
89324                 texinfo.tex to be nullified for some reason.  Simplify,
89325                 $gplsrc is no longer needed as far as I can see?
89326
89327 2003-07-16  Jim Meyering  <jim@meyering.net>
89328
89329         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89330
89331 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89332
89333         * config/srclist.txt: Get the following files from gettext-runtime/intl
89334         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89335         ref-del.sin.  From Bruno Haible.
89336         * config/srclist-update (fixfile): Change grep pattern again, since the
89337         previous fix didn't work (there was another trailing $).  Use
89338         '[$]' to escape the $s.
89339
89340 2003-07-15  Karl Berry  <karl@gnu.org>
89341
89342         * lib/vasnprintf.c: update from gettext.
89343
89344 2003-07-15  Karl Berry  <karl@gnu.org>
89345
89346         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89347         gets expanded when surrounded by '$'.
89348
89349 2003-07-15  Jim Meyering  <jim@meyering.net>
89350
89351         * modules/save-cwd: Don't depend on error.  From Derek Price.
89352
89353 2003-07-15  Jim Meyering  <jim@meyering.net>
89354
89355         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89356
89357 2003-07-14  Simon Josefsson  <jas@extundo.com>
89358
89359         * modules/mempcpy: New file.
89360         * MODULES.html.sh (func_all_modules): Add mempcpy.
89361
89362 2003-07-14  Simon Josefsson  <jas@extundo.com>
89363
89364         * m4/mempcpy.m4: New file.
89365
89366 2003-07-14  Simon Josefsson  <jas@extundo.com>
89367
89368         * lib/mempcpy.h: New file.
89369         * lib/mempcpy.c: New file.
89370
89371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89372
89373         * modules/getdate, modules/posixtm: Depend on mktime.
89374
89375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89376
89377         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89378         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89379         unicodeio.c, unicodeio.h, unlocked-io.h:
89380         Switch from LGPL to GPL.
89381
89382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89383
89384         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89385         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89386         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89387         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89388         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89389         updated automatically by ../config/srclist-update.  This changes
89390         their license from LPGL to GPL.
89391
89392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89393
89394         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89395         assumed to refer to the root of the most recent stable gettext version.
89396         * config/srclistvars.sh: Add defaults for eggert.
89397         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89398         Match "This program" as well as "The program".  This is needed
89399         for gettext.
89400
89401 2003-07-14  Jim Meyering  <jim@meyering.net>
89402
89403         Don't emit diagnostics.  Let callers do that.
89404         * lib/save-cwd.c: Don't include "error.h".
89405         (save_cwd): Don't call error.  Ensure that errno is valid
89406         when returning nonzero.
89407
89408         * lib/save-cwd.h (restore_cwd): Update prototype.
89409         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89410         Simplify.  Don't call error upon failure.  Let callers do that.
89411         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89412         when auditing is enabled.  But don't bother updating the #if.
89413
89414 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89415
89416         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89417         it breaks C++ compilation.
89418         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89419
89420 2003-07-10  Simon Josefsson  <jas@extundo.com>
89421
89422         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89423
89424 2003-07-10  Jim Meyering  <jim@meyering.net>
89425
89426         * m4/clock_time.m4: Remove trailing blank.
89427         * m4/intmax_t.m4: Likewise.
89428
89429 2003-07-10  Jim Meyering  <jim@meyering.net>
89430
89431         * lib/vasnprintf.c: Remove trailing blanks.
89432         Make cpp indentation consistent.
89433
89434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89435
89436         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89437         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89438         Switch from LGPL to GPL.
89439
89440 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89441
89442         * config/srclist.txt: Sort sublists.  Add
89443         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89444         that differ from gnulib for one reason or another; we'd like this list
89445         to be smaller but for now let's document what we have.
89446
89447 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89448
89449         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89450         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89451         and sweeter "eval x=$x".
89452         * config/srclist.txt: Get lib/argp* from glibc.
89453
89454 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89455
89456         * lib/mktime.c: Fix some boundary cases and remove need for floating
89457         point.
89458
89459         Issue a compile-time diagnostic if time_t is floating point, or if
89460         two's complement arithmetic is not in effect, or if arithmetic
89461         right shift does not propagate the sign.  These assumptions were
89462         all in the original code but they weren't checked.
89463
89464         (TIME_T_MIDPOINT, verify): New macros.
89465         (__isleap): Remove; it has integer overflow problems.
89466         (leapyear): New function, without those problems.
89467         (ydhms_tm_diff): Remove; splitting into two parts.
89468         (ydhms_diff): New function, containing the arithmetic part of
89469         the old ydhms_tm_diff function.  Issue a compile-time
89470         diagnostic if we are not using C99 integer division.
89471         Avoid casts when possible.
89472         (guess_time_tm): New function, containing the checking part of
89473         the old ydhms_tm_diff function.  Return the new value, rather than
89474         the difference between it and the old.  Accept a new argument T
89475         so that *T specifies the old value.  Check for overflow in the result.
89476
89477         (__mktime_internal): Use a time_t offset, not a long int offset.
89478         This undoes the 2003-06-04 change, which is no longer needed now
89479         that we have better overflow checking.
89480         (localtime_offset): Likewise.
89481
89482         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89483         and long are 64-bit but int is only 32-bit.
89484         (ydhms_diff): Use long int to store year1 and yday1.
89485         Issue a compile-time diagnostic if long int is not wide enough.
89486
89487         (__mktime_internal): Use long int to store adjusted year and yday.
89488         Use plain C rather than preprocessor commands, if that doesn't
89489         affect efficiency.
89490         Check for overflow (and try to repair) after each probe
89491         rather than checking only at the very end.  This avoids some bugs
89492         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89493         does not equal GMT offset at maximum time).
89494         Use integer to check for overflow rather than floating point; this
89495         is more portable to non-IEEE hosts, and is a tad faster.
89496         When we detect that we are oscillating between two values,
89497         don't check whether tm_isdst has the requested value, since
89498         we already know the answer.  When tm_isdst has the wrong value,
89499         use a different heuristic to find the right one, based on the
89500         extreme values actually observed in practice in tz2003a,
89501         rather than the (overly optimistic) "previous 3 calendar quarters".
89502
89503         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89504         "T const" to accommodate glibc style.
89505         (check_result): Use less-confusing report format.  "long" -> "long int.
89506         (main): Likewise.
89507         Don't loop if the iteration overflows time_t.
89508         Allow a negative step in the iteration.
89509
89510 2003-07-06  Karl Berry  <karl@gnu.org>
89511
89512         * config/depcomp: update from automake.
89513         * config/config.sub: update from prep.
89514
89515 2003-07-03  Karl Berry  <karl@gnu.org>
89516
89517         * config/config.guess: update from prep.
89518
89519 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89520
89521         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89522         xreadlink.c now includes it unconditionally.
89523
89524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89525
89526         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89527         having it depend on HAVE_SYS_TYPES_H.
89528
89529 2003-07-01  Bruno Haible  <bruno@clisp.org>
89530
89531         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89532         <sys/types.h> should be sufficient.
89533         Reported by Paul Eggert.
89534
89535 2003-06-26  Karl Berry  <karl@gnu.org>
89536
89537         * config/depcomp: update from automake.
89538
89539 2003-06-26  Bruno Haible  <bruno@clisp.org>
89540
89541         * modules/human: Depend on module stdbool.
89542
89543 2003-06-25  Bruno Haible  <bruno@clisp.org>
89544
89545         * modules/readlink: New file.
89546         * modules/xreadlink: Depend on it.
89547         * MODULES.html.sh (func_all_modules): Add readlink.
89548
89549 2003-06-25  Bruno Haible  <bruno@clisp.org>
89550
89551         * m4/readlink.m4: New file.
89552
89553 2003-06-25  Bruno Haible  <bruno@clisp.org>
89554
89555         * lib/readlink.c: New file.
89556
89557 2003-06-22  Karl Berry  <karl@gnu.org>
89558
89559         * config/srclist.txt: update mkinstalldirs from automake.
89560         * config/mkinstalldirs: update.
89561
89562 2003-06-22  Bruno Haible  <bruno@clisp.org>
89563
89564         Portability to mingw32.
89565         * m4/ssize_t.m4: New file, from GNU gettext.
89566         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89567         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89568
89569 2003-06-22  Bruno Haible  <bruno@clisp.org>
89570
89571         * modules/safe-read: Add m4/ssize_t.m4.
89572         * modules/xreadlink: Add m4/ssize_t.m4.
89573
89574 2003-06-20  Bruno Haible  <bruno@clisp.org>
89575
89576         Assume C89, so PARAMS isn't needed.
89577         * lib/unicodeio.h (PARAMS): Remove.
89578         * lib/unicodeio.c: Don't use PARAMS.
89579
89580 2003-06-18  Karl Berry  <karl@gnu.org>
89581
89582         * config/config.{guess,sub}: update from prep.
89583
89584 2003-06-18  Jim Meyering  <jim@meyering.net>
89585
89586         Merge changes from coreutils.
89587         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89588         Remove explicit declarations of xmalloc and realloc.
89589         Include xalloc.h.
89590         (read_utmp): Remove anachronistic cast of xmalloc.
89591
89592 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89593
89594         Assume C89, so PARAMS isn't needed.
89595         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89596         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89597         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89598         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89599         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89600         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89601         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89602         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89603         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89604         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89605         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89606         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89607         no longer needed. Anyway, config.h should always be included before any
89608         other file.
89609
89610 2003-06-11  Simon Josefsson  <jas@extundo.com>
89611
89612         * modules/sysexits: New file.
89613         * MODULES.html.sh (func_all_modules): Add sysexits.
89614
89615 2003-06-11  Simon Josefsson  <jas@extundo.com>
89616
89617         * lib/sysexit_.h: New file.
89618
89619 2003-06-11  Derek Price  <derek@ximbiot.com>
89620
89621         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89622         necessary.
89623
89624 2003-06-11  Bruno Haible  <bruno@clisp.org>
89625
89626         * m4/sysexits.m4: New file.
89627
89628 2003-06-10  Simon Josefsson  <jas@extundo.com>
89629
89630         * lib/argp.h: New file, from glibc.
89631         * lib/argp-ba.c: New file, from glibc.
89632         * lib/argp-eexst.c: New file, from glibc.
89633         * lib/argp-fmtstream.c: New file, from glibc.
89634         * lib/argp-fmtstream.h: New file, from glibc.
89635         * lib/argp-fs-xinl.c: New file, from glibc.
89636         * lib/argp-help.c: New file, from glibc.
89637         * lib/argp-namefrob.h: New file, from glibc.
89638         * lib/argp-parse.c: New file, from glibc.
89639         * lib/argp-pv.c: New file, from glibc.
89640         * lib/argp-pvh.c: New file, from glibc.
89641         * lib/argp-xinl.c: New file, from glibc.
89642
89643 2003-06-10  Simon Josefsson  <jas@extundo.com>
89644
89645         * modules/strchrnul: New file.
89646
89647 2003-06-10  Simon Josefsson  <jas@extundo.com>
89648
89649         * modules/argp: New file.
89650
89651 2003-06-10  Simon Josefsson  <jas@extundo.com>
89652
89653         * m4/strchrnul.m4: New file.
89654
89655 2003-06-10  Simon Josefsson  <jas@extundo.com>
89656
89657         * lib/strchrnul.h: New file.
89658         * lib/strchrnul.c: New file.
89659
89660 2003-06-10  Bruno Haible  <bruno@clisp.org>
89661
89662         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89663
89664 2003-06-07  Karl Berry  <karl@gnu.org>
89665
89666         * config/config.{guess,sub}: update from prep.
89667
89668 2003-06-07  Jim Meyering  <jim@meyering.net>
89669
89670         * modules/strtod: Use $(...) notation, not @...@ for
89671         AC_REPLACE'd variables.
89672         * modules/localcharset: Likewise.
89673
89674 2003-06-07  Jim Meyering  <jim@meyering.net>
89675
89676         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89677         in place of my name in the copyright comment.
89678         Remove definition and uses of __P.
89679
89680         From coreutils.
89681         * lib/stat.c: Don't declare xmalloc explicitly.
89682         Instead, include "xalloc.h".
89683         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89684         xrealloc, and xcalloc return values.
89685         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89686         Improve comment.
89687         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89688
89689 2003-06-07  Bruno Haible  <bruno@clisp.org>
89690
89691         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89692         avoid AC_CONFIG_LINKS.
89693         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89694         fnmatch.h, to avoid AC_CONFIG_LINKS.
89695         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89696
89697 2003-06-07  Bruno Haible  <bruno@clisp.org>
89698
89699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89700         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89702         directory.
89703         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89704         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89705         directory.
89706
89707 2003-06-06  Jim Meyering  <jim@meyering.net>
89708
89709         Merge from coreutils.
89710         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89711         Consolidate declarations and initializations of *_base* locals.
89712
89713         Merge from coreutils.
89714         This avoids a core dump on systems without GNU putenv,
89715         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89716         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89717         (unsetenv): New static function, from GNU libc.
89718         (rpl_putenv): Use it.
89719
89720         * lib/modechange.c: Remove trailing blanks.
89721
89722         Merge from coreutils.
89723         * lib/fsusage.c: Remove declaration of statfs.
89724         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89725
89726         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89727
89728 2003-06-06  Jim Meyering  <jim@meyering.net>
89729
89730         * lib/stdbool_.h: Renamed from stdbool.h.in.
89731
89732 2003-06-06  Jim Meyering  <jim@meyering.net>
89733             Bruno Haible  <bruno@clisp.org>
89734
89735         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89736         Adjust Makefile.am snippet not to redirect directly to target.
89737         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89738
89739 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89740
89741         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89742         mismatch, look in future quarters as well as past.  This fixes a
89743         bug when processing fall-backwards gaps immediately after a long
89744         period of daylight-saving time.
89745
89746         * lib/mktime.c: Assume freestanding C89 or better.
89747         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89748         (__P): Remove; not used.
89749         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89750         (mktime, not_equal_tm, print_tm, check_result,
89751         main): Use prototypes.  Use const * where appropriate.
89752         (main): Fix typo in testing code that uncovered by above changes.
89753         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89754
89755 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89756
89757         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89758         locale.h, localeconv.  This merges changes from coreutils.
89759
89760         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89761         It can be removed after the next Autoconf is released.
89762         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89763         needed.
89764
89765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89766
89767         * lib/mktime.c: Fix Debian bug 177940
89768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89769         (localtime_offset): Now long int, not time_t, because we want it
89770         to be guaranteed to be signed.  All uses changed.
89771         (__mktime_internal): If overflow would occur when adding offset,
89772         don't add it.
89773
89774         Merge 'human' changes from coreutils.  Rewrite to support
89775         locale-specific notations like thousands separators.
89776         * lib/human.c: Simplify authorship notice.
89777         Include human.h immediately after config.h.
89778         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89779         <limits.h>: Do not include, since human.h does.
89780         (SIZE_MAX, UINTMAX_MAX): New macros.
89781         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89782         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89783         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89784         (power_letter): Renamed from suffixes.
89785         (generate_suffix_backwards): Remove.
89786         (adjust_value): Now takes int style (because of human.h changes)
89787         and long double value (for greater precision on some platforms).
89788         (group_number): New function.
89789         (human_readable): Use it.  Use integer options, not enum.
89790         Put the options before the sizes in the arg list.
89791         Support all the new options.
89792         The old human_readable function has been removed;
89793         use inttostr.h instead.
89794         (human_readable, default_block_size, humblock):
89795         Use uintmax_t, not int, for block sizes.
89796         (human_readable_inexact, block_size_types): Remove.
89797         (block_size_opts): New constant.
89798         (human_options): Renamed from human_block_size, with new signature
89799         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89800         * lib/human.h: Add copyright and authorship notice.
89801         Include <limits.h> and <stdbool.h> unconditionally.
89802         (PARAMS): Remove.  All uses removed.
89803         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89804         (enum human_inexact_style): Remove tag; now a nameless enum.
89805         (human_floor, human_ceiling, human_round_to_even): Now have
89806         values 2, 0, 1 rather than -1, 1, 0.
89807         (human_group_digits, human_suppress_point_zero, human_autoscale,
89808         human_base_1024, human_SI, human_B): New constants.
89809         (human_readable_inexact, human_block_size): Remove.
89810         (human_readable): Size args are now uintmax_t, not int.
89811         (human_options): New decl.
89812
89813         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89814         unnecessary now that we assume C89 or better.  This change
89815         imported from coreutils.
89816
89817         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89818         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89819         in the 2003-05-30 sync from glibc.
89820
89821         .h files should stand alone, but we shouldn't include <sys/types.h>
89822         if we can get away with just <stddef.h>.
89823
89824         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89825         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89826         rather than <sys/types.h>, as we merely need size_t.
89827         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89828         to get size_t.
89829         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89830         Include <stdio.h>, to get FILE.
89831         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89832         memcasecmp.h has included <stddef.h> and all we need is size_t.
89833         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89834         our interface, instead of including <sys/types.h>
89835
89836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89837
89838         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89839         now, as glibc mktime is buggy on non-glibc systems.
89840
89841 2003-06-03  Karl Berry  <karl@gnu.org>
89842
89843         * config/config.sub: update from prep.
89844
89845 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89846
89847         [from coreutils]
89848         Fix some minor time-related bugs with POSIX time arguments.
89849         Some valid time stamps were being rejected (notably -1, and
89850         time stamps before 1900 on 64-bit hosts).  And some invalid
89851         time stamps were being accepted, e.g. September 31.
89852
89853         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89854         that we can return (time_t) -1 successfully.
89855         * lib/posixtm.c: Likewise.
89856         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89857         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89858         (t): Remove static var.
89859         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89860         of static var.  All uses changed.
89861         (year): Do not reject years before 1900; they can occur with
89862         64-bit time_t.
89863         (posix_time_parse): Do not check for out-of-range components;
89864         that is now the caller's responsibility, since our checks were
89865         only approximations.
89866         (posixtime): Use mktime to check for out-of-range components,
89867         since it knows them exactly.
89868         If mktime returns (time_t) -1, check whether an error actually occurred
89869         by invoking localtime on -1.
89870         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89871         posixtime failures better.
89872         Improve the test data (in comments only).
89873
89874 2003-06-02  Karl Berry  <karl@gnu.org>
89875
89876         * config/mkinstalldirs (version): new variable.
89877         (--version): new option.
89878         (usage): improve message.
89879
89880 2003-05-30  Karl Berry  <karl@gnu.org>
89881
89882         * lib/mktime.c: update from libc.
89883
89884 2003-05-30  Bruno Haible  <bruno@clisp.org>
89885
89886         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89887         * config/config.rpath: Upgrade to gettext-0.12.1.
89888
89889 2003-05-30  Bruno Haible  <bruno@clisp.org>
89890
89891         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89892         * m4/nls.m4: New file, from gettext-0.12.1.
89893         * m4/po.m4: New file, from gettext-0.12.1.
89894         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89895
89896 2003-05-30  Bruno Haible  <bruno@clisp.org>
89897
89898         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89899         * lib/localcharset.h: Likewise.
89900         * lib/localcharset.c: Likewise.
89901
89902 2003-05-29  Karl Berry  <karl@gnu.org>
89903
89904         * config/config.rpath: update from gettext.
89905
89906 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89907
89908         Assume the headers required for C89 freestanding compilers.
89909         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89910         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89911         * m4/human.m4 (gl_HUMAN): Likewise.
89912         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89914         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89915         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89917         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89918
89919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89920
89921         Assume the headers required for C89 freestanding compilers.
89922         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89923         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89924         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89925         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89926         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89927         define, since <limits.h> is guaranteed to do that.
89928         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89929         * lib/exclude.c: Include <stdbool.h> unconditionally.
89930         * lib/tempname.c: Include <stddef.h> unconditionally.
89931         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89932         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89933         <stddef.h> does that.
89934         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89935         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89936         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89937         needed.
89938         * lib/xstrtol.c: Likewise.
89939         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89940         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89941
89942         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89943         warnings on some platforms.
89944
89945         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89946         arbitrarily.
89947
89948 2003-05-26  Jim Meyering  <jim@meyering.net>
89949
89950         Merge in a change from coreutils:
89951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89952         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89953         that condition, rather than `-1' which is slightly misleading.
89954         Change the name of the cache variable to have the gl_ prefix.
89955         Prompted by a patch from Richard Dawe for DJGPP.
89956
89957 2003-05-24  Karl Berry  <karl@gnu.org>
89958
89959         * config/config.guess: update from prep.
89960
89961 2003-05-22  Karl Berry  <karl@gnu.org>
89962
89963         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89964
89965 2003-05-20  Karl Berry  <karl@gnu.org>
89966
89967         * config/config.guess: update from prep.
89968
89969 2003-05-18  Karl Berry  <karl@gnu.org>
89970
89971         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89972         might actually be set by the user.
89973
89974         * config/depcomp, install-sh, mdate-sh: update from automake.
89975
89976 2003-05-17  Bruno Haible  <bruno@clisp.org>
89977
89978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89979         invalid expansion for AC_EGREP_CPP.
89980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89982         Suggested by Akim Demaille <akim@epita.fr> in
89983         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89984
89985 2003-05-12  Jim Meyering  <jim@meyering.net>
89986
89987         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89988         the space-padded-by-default conversion specifiers, %e, %k, %l.
89989
89990 2003-05-12  Bruno Haible  <bruno@clisp.org>
89991
89992         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89993         the string is longer than 4 KB.
89994
89995 2003-05-11  Karl Berry  <karl@gnu.org>
89996
89997         * config/config.{guess,sub}: update from prep.
89998
89999 2003-05-09  Bruno Haible  <bruno@clisp.org>
90000
90001         * modules/error: Add m4/strerror_r.m4 to file list.
90002
90003 2003-05-03  Bruno Haible  <bruno@clisp.org>
90004
90005         Upgrade to Unicode-4.0.
90006         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90007         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90008         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90009         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90010         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90011         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90012         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90013         Change width of U+E0100..U+E01EF from 1 to 0.
90014
90015 2003-04-25  Jim Meyering  <jim@meyering.net>
90016
90017         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90018         of type size_t, not int.
90019
90020 2003-04-25  Bruno Haible  <bruno@clisp.org>
90021
90022         * lib/copy-file.c: Include <stddef.h>, for size_t.
90023
90024 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90025
90026         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90027         code which expansion is under static control.  Patch imported from
90028         Akim Demaille's patch to Bison; see
90029         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90030
90031 2003-04-14  Bruno Haible  <bruno@clisp.org>
90032
90033         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90034
90035 2003-04-11  Jim Meyering  <jim@meyering.net>
90036
90037         Merge changes from Coreutils.
90038
90039         2003-03-22  Jim Meyering  <jim@meyering.net>
90040
90041         * lib/strftime.c (widen): Cast alloca return value to proper type.
90042
90043         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90044
90045         From GNU libc.
90046         * lib/strftime.c (my_strftime): Handle very large width
90047         specifications for numeric values correctly.  Improve checks for
90048         overflow.
90049
90050         2003-01-19  Jim Meyering  <jim@meyering.net>
90051
90052         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90053         definitions.
90054         (nl_get_alt_digit) [! defined my_strftime]: Define.
90055         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90056         _nl_get_alt_digit and _nl_get_walt_digit.
90057
90058         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90059         libc. These changes have no effect outside of _LIBC.
90060
90061 2003-04-10  Bruno Haible  <bruno@clisp.org>
90062
90063         * modules/findprog: New file.
90064         * MODULES.html.sh (func_all_modules): Add it.
90065
90066 2003-04-10  Bruno Haible  <bruno@clisp.org>
90067
90068         * m4/findprog.m4: New file.
90069         * m4/eaccess.m4: New file.
90070
90071 2003-04-10  Bruno Haible  <bruno@clisp.org>
90072
90073         * lib/findprog.h: New file, from GNU gettext.
90074         * lib/findprog.c: New file, from GNU gettext.
90075
90076 2003-04-05  Jim Meyering  <jim@meyering.net>
90077
90078         Merge changes from Coreutils.
90079
90080         * lib/exclude.h (PARAMS): Remove definition and uses.
90081         * lib/exclude.c: Remove uses of `PARAMS'.
90082
90083         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90084         Add test-cases for DOS filenames. Declare program_name.
90085         (main): Set up program_name.  Patch by Rich Dawe.
90086
90087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90088         error from mntctl.
90089         Use mntctl's return value to drive the entry-processing loop, since
90090         we can't rely on the value of the vmt_length member in the last
90091         entry.  On some systems doing so could result in exhausting
90092         virtual memory.  Based in part on a patch from Mike Jetzer.
90093
90094 2003-04-04  Bruno Haible  <bruno@clisp.org>
90095
90096         * modules/linebreak: New file.
90097         * MODULES.html.sh (func_all_modules): Add it.
90098
90099 2003-04-04  Bruno Haible  <bruno@clisp.org>
90100
90101         * m4/linebreak.m4: New file.
90102
90103 2003-04-04  Bruno Haible  <bruno@clisp.org>
90104
90105         * lib/linebreak.h: New file, from GNU gettext.
90106         * lib/linebreak.c: New file, from GNU gettext with slight
90107         modifications.
90108         * lib/lbrkprop.h: New file, from GNU gettext.
90109
90110 2003-04-03  Bruno Haible  <bruno@clisp.org>
90111
90112         * modules/utf8-ucs4: New file.
90113         * modules/utf16-ucs4: New file.
90114         * modules/ucs4-utf8: New file.
90115         * modules/ucs4-utf16: New file.
90116         * MODULES.html.sh (func_all_modules): Add them.
90117
90118 2003-04-03  Bruno Haible  <bruno@clisp.org>
90119
90120         * m4/utf-ucs4.m4: New file.
90121         * m4/ucs4-utf.m4: New file.
90122
90123 2003-04-03  Bruno Haible  <bruno@clisp.org>
90124
90125         * lib/utf8-ucs4.h: New file, from GNU gettext.
90126         * lib/utf16-ucs4.h: New file, from GNU gettext.
90127         * lib/ucs4-utf8.h: New file, from GNU gettext.
90128         * lib/ucs4-utf16.h: New file, from GNU gettext.
90129
90130 2003-04-02  Bruno Haible  <bruno@clisp.org>
90131
90132         * modules/binary-io: New file.
90133         * MODULES.html.sh (func_all_modules): Add it.
90134
90135 2003-04-02  Bruno Haible  <bruno@clisp.org>
90136
90137         * lib/binary-io.h: New file, from GNU gettext.
90138
90139 2003-04-01  Bruno Haible  <bruno@clisp.org>
90140
90141         * modules/pathname: New file.
90142         * MODULES.html.sh (func_all_modules): Add it.
90143
90144 2003-04-01  Bruno Haible  <bruno@clisp.org>
90145
90146         * lib/pathname.h: New file, from GNU gettext.
90147         * lib/concatpath.c: New file, from GNU gettext.
90148
90149 2003-03-30  Bruno Haible  <bruno@clisp.org>
90150
90151         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90152
90153 2003-03-30  Bruno Haible  <bruno@clisp.org>
90154
90155         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90156         function chown() doesn't exist.
90157
90158 2003-03-28  Bruno Haible  <bruno@clisp.org>
90159
90160         * modules/copy-file: New file.
90161         * MODULES.html.sh (func_all_modules): Add it.
90162
90163 2003-03-28  Bruno Haible  <bruno@clisp.org>
90164
90165         * m4/copy-file.m4: New file.
90166
90167 2003-03-28  Bruno Haible  <bruno@clisp.org>
90168
90169         * lib/copy-file.h: New file, from GNU gettext.
90170         * lib/copy-file.c: New file, from GNU gettext.
90171
90172 2003-03-18  Jim Meyering  <jim@meyering.net>
90173
90174         * lib/quote.c (quote_n): Fix typo in comment.
90175
90176 2003-03-18  Bruno Haible  <bruno@clisp.org>
90177
90178         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90179         checking.
90180         * m4/onceonly_2_57.m4: Likewise.
90181
90182 2003-03-17  Bruno Haible  <bruno@clisp.org>
90183
90184         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90185         (m4_quote): Remove macro.
90186         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90187
90188 2003-03-14  Jim Meyering  <jim@meyering.net>
90189
90190         Merge changes from Coreutils.
90191         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90192         to be const, in order to avoid warnings.
90193         (obstack_room): Likewise.
90194         (obstack_empty_p): Likewise.
90195
90196 2003-03-14  Bruno Haible  <bruno@clisp.org>
90197
90198         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90199         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90200
90201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90202
90203         Merge changes from Bison.
90204         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90205         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90206         when compiling Bison 1.875's `bitset bset = obstack_alloc
90207         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90208         * lib/hash.c: Include <stdbool.h> unconditionally.
90209
90210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90211
90212         * m4/onceonly.m4 (m4_quote): New macro.
90213         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90214         Quote AC_FOREACH variable-expansions properly.
90215
90216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90217
90218         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90219
90220 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90221
90222         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90223         Reported by Bruce Becker; see:
90224         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90225
90226 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90227             Bruno Haible  <bruno@clisp.org>
90228
90229         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90230         Reported by John Hughes, see
90231         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90232
90233 2003-02-20  Bruno Haible  <bruno@clisp.org>
90234
90235         * MODULES.html.sh (func_all_modules): Add poll.
90236
90237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90238
90239         * modules/poll: New file.
90240
90241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90242
90243         * lib/poll_.h: New file.
90244         * lib/poll.c: New file.
90245
90246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90247
90248         * m4/poll.m4: New file.
90249
90250 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90251
90252         * modules/mathl: New file.
90253
90254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90255
90256         * lib/mathl.h: New file.
90257         * lib/acosl.c: New file.
90258         * lib/asinl.c: New file.
90259         * lib/atanl.c: New file.
90260         * lib/ceill.c: New file.
90261         * lib/cosl.c: New file.
90262         * lib/expl.c: New file.
90263         * lib/floorl.c: New file.
90264         * lib/frexpl.c: New file.
90265         * lib/ldexpl.c: New file.
90266         * lib/logl.c: New file.
90267         * lib/sincosl.c: New file.
90268         * lib/sinl.c: New file.
90269         * lib/sqrtl.c: New file.
90270         * lib/tanl.c: New file.
90271         * lib/trigl.c: New file.
90272         * lib/trigl.h: New file.
90273
90274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90275
90276         * m4/mathl.m4: New file.
90277
90278 2003-02-18  Bruno Haible  <bruno@clisp.org>
90279
90280         * MODULES.html.sh (func_all_modules): Add mathl.
90281
90282 2003-02-17  Bruno Haible  <bruno@clisp.org>
90283
90284         * modules/mkdtemp: New module.
90285         * MODULES.html.sh (func_all_modules): Add it.
90286
90287 2003-02-17  Bruno Haible  <bruno@clisp.org>
90288
90289         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90290
90291 2003-02-17  Bruno Haible  <bruno@clisp.org>
90292
90293         * lib/mkdtemp.h: New file, from GNU gettext.
90294         * lib/mkdtemp.c: New file, from GNU gettext.
90295
90296 2003-02-02  Jim Meyering  <jim@meyering.net>
90297
90298         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90299         e.g. glibc-2.2.93.
90300
90301 2003-01-31  Bruno Haible  <bruno@clisp.org>
90302
90303         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90304         'rpl_rename'.
90305         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90306         'rpl_strnlen'.
90307         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90308         'rpl_strtod'.
90309         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90310         'rpl_utime'.
90311
90312 2003-01-31  Bruno Haible  <bruno@clisp.org>
90313
90314         * lib/rename.c: #undef rename before defining rpl_rename.
90315         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90316
90317 2003-01-30  Bruno Haible  <bruno@clisp.org>
90318
90319         * modules/vasnprintf, modules/vasprintf: New modules.
90320         * MODULES.html.sh (func_all_modules): Add them.
90321
90322 2003-01-30  Bruno Haible  <bruno@clisp.org>
90323
90324         * m4/signed.m4: New file, from GNU gettext.
90325         * m4/longdouble.m4: New file, from GNU gettext.
90326         * m4/wchar_t.m4: New file, from GNU gettext.
90327         * m4/wint_t.m4: New file, from GNU gettext.
90328         * m4/vasnprintf.m4: New file.
90329         * m4/vasprintf.m4: New file.
90330
90331 2003-01-30  Bruno Haible  <bruno@clisp.org>
90332
90333         * lib/printf-args.h: New file, from GNU gettext.
90334         * lib/printf-args.c: New file, from GNU gettext.
90335         * lib/printf-parse.h: New file, from GNU gettext.
90336         * lib/printf-parse.c: New file, from GNU gettext.
90337         * lib/vasnprintf.h: New file, from GNU gettext.
90338         * lib/vasnprintf.c: New file, from GNU gettext.
90339         * lib/asnprintf.c: New file, from GNU gettext.
90340         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90341         * lib/vasprintf.c: New file, from GNU gettext.
90342         * lib/asprintf.c: New file, from GNU gettext.
90343
90344 2003-01-29  Bruno Haible  <bruno@clisp.org>
90345
90346         * modules/stpncpy: New module.
90347         * MODULES.html.sh (func_all_modules): Add it.
90348
90349 2003-01-29  Bruno Haible  <bruno@clisp.org>
90350
90351         * m4/stpncpy.m4: New file.
90352
90353 2003-01-29  Bruno Haible  <bruno@clisp.org>
90354
90355         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90356         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90357
90358 2003-01-28  Bruno Haible  <bruno@clisp.org>
90359
90360         * modules/c-ctype: New module.
90361         * MODULES.html.sh (func_all_modules): Add it.
90362
90363 2003-01-28  Bruno Haible  <bruno@clisp.org>
90364
90365         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90366         Paul Eggert.
90367         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90368         Paul Eggert.
90369
90370 2003-01-27  Bruno Haible  <bruno@clisp.org>
90371
90372         * modules/xsetenv: New module.
90373         * MODULES.html.sh (func_all_modules): Add it.
90374
90375 2003-01-27  Bruno Haible  <bruno@clisp.org>
90376
90377         * lib/xsetenv.h: New file, from GNU gettext.
90378         * lib/xsetenv.c: New file, from GNU gettext.
90379
90380 2003-01-23  Jim Meyering  <jim@meyering.net>
90381
90382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90383         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90384
90385 2003-01-23  Bruno Haible  <bruno@clisp.org>
90386
90387         * modules/minmax: New module.
90388         * MODULES.html.sh (func_all_modules): Add it.
90389
90390 2003-01-23  Bruno Haible  <bruno@clisp.org>
90391
90392         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90393         Eggert.
90394
90395 2003-01-22  Bruno Haible  <bruno@clisp.org>
90396
90397         * modules/exit: New module.
90398         * MODULES.html.sh (func_all_modules): Add it.
90399
90400 2003-01-22  Bruno Haible  <bruno@clisp.org>
90401
90402         * lib/exit.h: New file, from GNU gettext.
90403
90404 2003-01-19  Bruno Haible  <bruno@clisp.org>
90405
90406         * gnulib-tool: Recognize option --extract-maintainer.
90407         (func_get_maintainer): New function.
90408         * modules/*: Add Maintainer entry.
90409
90410 2003-01-16  Jim Meyering  <jim@meyering.net>
90411
90412         * m4/regex.m4: The `regex' struct is both input and output.
90413         Initialize it before each use.  Patch by Tim Waugh.
90414
90415 2003-01-16  Bruno Haible  <bruno@clisp.org>
90416
90417         * MODULES.html.sh: Add a table of contents. Add the module name as
90418         leftmost column. Add hyperlinks.
90419
90420 2003-01-15  Bruno Haible  <bruno@clisp.org>
90421
90422         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90423
90424 2003-01-15  Bruno Haible  <bruno@clisp.org>
90425
90426         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90428         suffix.
90429
90430 2003-01-15  Bruno Haible  <bruno@clisp.org>
90431
90432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90433
90434 2003-01-15  Bruno Haible  <bruno@clisp.org>
90435
90436         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90437         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90438
90439 2003-01-14  Jim Meyering  <jim@meyering.net>
90440
90441         * lib/same.c (same_name): Tweak a comment.
90442
90443 2003-01-14  Bruno Haible  <bruno@clisp.org>
90444
90445         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90446         when a string comparison is sufficient.
90447
90448 2003-01-14  Bruno Haible  <bruno@clisp.org>
90449
90450         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90451         'unsigned int'.
90452
90453 2003-01-14  Bruno Haible  <bruno@clisp.org>
90454
90455         * lib/hash-pjw.c: Add comment about low quality of this function.
90456
90457 2003-01-13  Bruno Haible  <bruno@clisp.org>
90458
90459         * modules/stpcpy: Distribute lib/stpcpy.h.
90460         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90461
90462 2003-01-13  Bruno Haible  <bruno@clisp.org>
90463
90464         * modules/*: Add a description.
90465         * modules/strpbrk: Fix Makefile.am snippet.
90466         * modules/strtoimax: Fix dependencies.
90467         * modules/strtoumax: Likewise.
90468
90469 2003-01-13  Bruno Haible  <bruno@clisp.org>
90470
90471         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90472         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90473         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90474
90475 2003-01-13  Bruno Haible  <bruno@clisp.org>
90476
90477         * gnulib-tool (func_create_testdir): Store config/* files in the main
90478         directory.
90479         * config.rpath: Move to ...
90480         * config/config.rpath: ... here.
90481         * modules/gettext: Contains config/config.rpath, not config.rpath.
90482         * modules/iconv: Likewise.
90483
90484 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90485
90486         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90487         to avoid collisions with libcurses and libreadline.
90488
90489         * m4/getstr.m4: Remove.
90490         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90491
90492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90493
90494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90495         to avoid collisions with libcurses and libreadline.
90496
90497         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90498         * lib/getstr.h, getstr.c: Remove.
90499         * lib/getline.c: Include "getline.h", to check interface.
90500         Move body of old getstr.c here: this defines MIN_CHUNK and
90501         declares getdelim2, which is renamed from getstr.
90502         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90503
90504         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90505         All uses changed.
90506         * lib/linebuffer.h: Likewise.
90507         (readline): Remove backward-compatibility macro.
90508
90509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90510
90511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90512         to avoid collisions with libcurses and libreadline.
90513         * getstr: Remove.
90514         * MODULES.html.sh: Remove getstr.
90515         * modules/getline: Depend on unlocked-io, not getstr.
90516
90517 2003-01-12  Jim Meyering  <jim@meyering.net>
90518
90519         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90520
90521 2003-01-10  Bruno Haible  <bruno@clisp.org>
90522
90523         * modules/alloca: Change Makefile.am requirements. Simplify Include
90524         requirements. Add lib/alloca_.h to file list.
90525
90526 2003-01-10  Bruno Haible  <bruno@clisp.org>
90527
90528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90529
90530 2003-01-10  Bruno Haible  <bruno@clisp.org>
90531
90532         * lib/alloca_.h: New file.
90533         * lib/getdate.y: Unconditionally include alloca.h.
90534         * lib/makepath.c: Likewise.
90535         * lib/setenv.c: Likewise.
90536         * lib/userspec.c: Likewise.
90537
90538 2003-01-09  Karl Berry  <karl@gnu.org>
90539
90540         * MODULES.html.sh: include `dirname $0` in PATH, to find
90541         gnulib-tool.
90542
90543 2003-01-09  Bruno Haible  <bruno@clisp.org>
90544
90545         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90546         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90547
90548 2003-01-09  Bruno Haible  <bruno@clisp.org>
90549
90550         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90551
90552 2003-01-09  Bruno Haible  <bruno@clisp.org>
90553
90554         * lib/stdbool.h.in: New file.
90555
90556 2003-01-09  Bruno Haible  <bruno@clisp.org>
90557
90558         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90559         * MODULES.html.sh: Likewise.
90560
90561 2003-01-08  Jim Meyering  <jim@meyering.net>
90562
90563         * lib/full-write.c: Undefine and define-away `const' after inclusion
90564         of errno.h, not before.  Suggestion from Bruno Haible.
90565
90566 2003-01-08  Bruno Haible  <bruno@clisp.org>
90567
90568         * modules/full-read: Depend on full-write.
90569
90570 2003-01-08  Bruno Haible  <bruno@clisp.org>
90571
90572         * lib/safe-read.c: Include specification header first, to ensure its
90573         selfcontainedness.
90574         * lib/full-write.c: Likewise.
90575
90576 2003-01-07  Jim Meyering  <jim@meyering.net>
90577
90578         * lib/full-write.c: Rework so that it may serve to define full_read,
90579         too.
90580         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90581
90582 2003-01-07  Bruno Haible  <bruno@clisp.org>
90583
90584         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90585         <inttypes.h>.
90586         * lib/xstrtol.h: Likewise.
90587         * lib/xstrtoimax.c: Likewise.
90588         * lib/xstrtoumax.c: Likewise.
90589         * lib/human.h: Likewise.
90590
90591         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90592         on systems that have <inttypes.h> but not <stdint.h>.
90593
90594 2003-01-07  Bruno Haible  <bruno@clisp.org>
90595
90596         * MODULES.html.sh: Add copyright notice.
90597         (missed_files): Omit CVS directory entries.
90598         (func_module): Make it work with sed-3.02.
90599         * MODULES.txt: Remove file.
90600
90601 2003-01-06  Jim Meyering  <jim@meyering.net>
90602
90603         * lib/version-etc.c: Update year in translatable copyright string.
90604
90605 2003-01-03  Karl Berry  <karl@gnu.org>
90606
90607         * config/config.{guess,sub}: update from prep.
90608
90609 2003-01-02  Karl Berry  <karl@gnu.org>
90610
90611         * doc/COPYING.DOC: belatedly updated to 1.2.
90612
90613 2003-01-01  Karl Berry  <karl@gnu.org>
90614
90615         * gnulib-tool (func_verify_module): report module name $module in
90616         error message, not $1.
90617         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90618         be created, only if it doesn't exist.
90619         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90620
90621 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90622
90623         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90624
90625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90626
90627         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90628         memcmp if strcoll doesn't work.
90629
90630 2002-12-31  Bruno Haible  <bruno@clisp.org>
90631
90632         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90633         nonempty.
90634
90635 2002-12-31  Bruno Haible  <bruno@clisp.org>
90636
90637         * lib/memcoll.c (STRCOLL): New macro.
90638         (memcoll): Use it.
90639
90640 2002-12-31  Bruno Haible  <bruno@clisp.org>
90641
90642         * lib/localcharset.h: New file.
90643         * lib/localcharset.c: Include it.
90644         * lib/unicodeio.c: Likewise.
90645
90646 2002-12-31  Bruno Haible  <bruno@clisp.org>
90647
90648         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90649         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90650
90651 2002-12-31  Bruno Haible  <bruno@clisp.org>
90652
90653         * lib/getline.h: Include <stddef.h>, for size_t.
90654
90655         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90656         * lib/unicodeio.c: Don't include <stddef.h>.
90657
90658 2002-12-31  Bruno Haible  <bruno@clisp.org>
90659
90660         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90661         HAVE_TM_ZONE.
90662
90663 2002-12-24  Karl Berry  <karl@gnu.org>
90664
90665         * config/config.guess: update from prep.
90666
90667 2002-12-24  Bruno Haible  <bruno@clisp.org>
90668
90669         General infrasructure.
90670         * m4/README: Rewritten.
90671         * m4/onceonly.m4: New file.
90672         * m4/onceonly_2_57.m4: New file.
90673
90674         Module atexit.
90675         * m4/atexit.m4: New file.
90676
90677         Module strtod.
90678         * m4/strtod.m4: New file.
90679
90680         Module strtol.
90681         * m4/strtol.m4: New file.
90682
90683         Module strtoul.
90684         * m4/strtoul.m4: New file.
90685
90686         Module memchr.
90687         * m4/memchr.m4: New file.
90688
90689         Module memcmp.
90690         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90691         (jm_FUNC_MEMCMP): Invoke it.
90692
90693         Module memcpy.
90694         * m4/memcpy.m4: New file.
90695
90696         Module memmove.
90697         * m4/memmove.m4: New file.
90698
90699         Module memset.
90700         * m4/memset.m4: New file.
90701
90702         Module strcspn.
90703         * m4/strcspn.m4: New file.
90704
90705         Module strpbrk.
90706         * m4/strpbrk.m4: New file.
90707
90708         Module strstr.
90709         * m4/strstr.m4: New file.
90710
90711         Module strerror.
90712         * m4/strerror.m4: New file.
90713
90714         Module mktime.
90715         * m4/mktime.m4: Renamed from jm-mktime.m4.
90716         (gl_PREREQ_MKTIME): New macro.
90717         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90718
90719         Module malloc.
90720         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90721         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90722         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90723
90724         Module realloc.
90725         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90726         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90727         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90728
90729         Module strftime.
90730         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90732         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90733         gl_TM_GMTOFF.
90734         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90735
90736         Module xalloc.
90737         * m4/xalloc.m4: New file.
90738
90739         Module alloca.
90740         * m4/alloca.m4: New file.
90741
90742         Module putenv.
90743         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90744         (jm_FUNC_PUTENV): Invoke it.
90745
90746         Module setenv.
90747         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90748         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90749         when invoked twice.
90750         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90751         gt_FUNC_SETENV.
90752
90753         Module memrchr.
90754         * m4/memrchr.m4: New file.
90755
90756         Module stpcpy.
90757         * m4/stpcpy.m4: New file.
90758
90759         Module strcase.
90760         * m4/strcase.m4: New file.
90761
90762         Module strdup.
90763         * m4/strdup.m4: New file.
90764
90765         Module strnlen.
90766         * m4/strnlen.m4: New file.
90767
90768         Module strndup.
90769         * m4/strndup.m4: New file.
90770
90771         Module xstrtod.
90772         * m4/xstrtod.m4: New file.
90773
90774         Module xstrtol.
90775         * m4/xstrtol.m4: New file.
90776
90777         Module getdate.
90778         * m4/getdate.m4: New file.
90779
90780         Module unlocked-io.
90781         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90782         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90783         * m4/jm-glibc-io.m4n: Remove file.
90784
90785         Module long-options.
90786         * m4/long-options.m4: New file.
90787
90788         Module md5.
90789         * m4/md5.m4: New file.
90790
90791         Module sha.
90792         * m4/sha.m4: New file.
90793
90794         Module getstr.
90795         * m4/getstr.m4: New file.
90796
90797         Module getline.
90798         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90799         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90800         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90801         simply getline. Infoke gl_PREREQ_GETLINE.
90802
90803         Module obstack.
90804         * m4/obstack.m4: New file.
90805
90806         Module hash.
90807         * m4/hash.m4: New file.
90808
90809         Module readtokens.
90810         * m4/readtokens.m4: New file.
90811
90812         Module strverscmp.
90813         * m4/strverscmp.m4: New file.
90814
90815         Module stdbool.
90816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90817         OSF/1.
90818
90819         Module strtoll.
90820         * m4/strtoll.m4: New file.
90821
90822         Module strtoull.
90823         * m4/strtoull.m4: New file.
90824
90825         Module strtoimax.
90826         * m4/strtoimax.m4: New file.
90827
90828         Module strtoumax.
90829         * m4/strtoumax.m4: New file.
90830
90831         Module xstrtoimax.
90832         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90833         jm_AC_PREREQ_XSTRTOIMAX.
90834         Moved the strtol prerequisites to strtol.m4.
90835         Moved the strtoll prerequisites to strtoll.m4.
90836         Moved the strtoimax prerequisites to strtoimax.m4.
90837
90838         Module xstrtoumax.
90839         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90840         jm_AC_PREREQ_XSTRTOUMAX.
90841         Moved the strtoul prerequisites to strtoul.m4.
90842         Moved the strtoull prerequisites to strtoull.m4.
90843         Moved the strtoumax prerequisites to strtoumax.m4.
90844
90845         Module chown.
90846         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90847         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90848
90849         Module dup2.
90850         * m4/dup2.m4: New file.
90851
90852         Module ftruncate.
90853         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90854         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90855
90856         Module getgroups.
90857         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90858         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90859
90860         Module gettimeofday.
90861         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90863         gl_PREREQ_GETTIMEOFDAY.
90864
90865         Module mkdir.
90866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90867         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90868
90869         Module mkstemp.
90870         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90871         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90872         jm_AC_TYPE_UINTMAX_T.
90873         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90874
90875         Module stat.
90876         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90877         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90878
90879         Module lstat.
90880         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90881         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90882
90883         Module timespec.
90884         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90885         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90886         * m4/st_mtim.m4: Indentation.
90887
90888         Module nanosleep.
90889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90890         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90891         gl_PREREQ_NANOSLEEP.
90892
90893         Module regex.
90894         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90895         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90896         (gl_REGEX): New macro.
90897
90898         Module rename.
90899         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90900         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90901
90902         Module rmdir.
90903         * m4/rmdir.m4: New file.
90904
90905         Module utime.
90906         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90907         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90908         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90909
90910         Module dirname.
90911         * m4/dirname.m4: New file.
90912
90913         Module getopt.
90914         * m4/getopt.m4: New file.
90915
90916         Module unistd-safer.
90917         * m4/unistd-safer.m4: New file.
90918
90919         Module fnmatch.
90920         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90921         declaration.
90922         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90923         (gl_FUNC_FNMATCH_POSIX): New macro.
90924         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90925         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90926         simply fnmatch.
90927
90928         Module exclude.
90929         * m4/exclude.m4: New file.
90930
90931         Module human.
90932         * m4/human.m4: New file.
90933
90934         Module acl.
90935         * m4/acl.m4: Nop.
90936
90937         Module backupfile.
90938         * m4/backupfile.m4: New file.
90939         * m4/d-ino.m4: Indentation.
90940
90941         Module fsusage.
90942         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90943         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90944         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90945
90946         Module dirfd.
90947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90948         requirements.
90949
90950         Module euidaccess.
90951         * m4/euidaccess.m4: New file.
90952
90953         Module file-type.
90954         * m4/file-type.m4: New file.
90955
90956         Module fileblocks.
90957         * m4/fileblocks.m4: New file.
90958
90959         Module filemode.
90960         * m4/filemode.m4: New file.
90961
90962         Module isdir.
90963         * m4/isdir.m4: New file.
90964
90965         Module lchown.
90966         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90967         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90968
90969         Module makepath.
90970         * m4/makepath.m4: New file.
90971
90972         Module modechange.
90973         * m4/modechange.m4: New file.
90974
90975         Module mountlist.
90976         * m4/mountlist.m4: New file.
90977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90978         Indentation.
90979
90980         Module path-concat.
90981         * m4/path-concat.m4: New file.
90982
90983         Module pathmax.
90984         * m4/pathmax.m4: New file.
90985
90986         Module same.
90987         * m4/same.m4: New file.
90988
90989         Module save-cwd.
90990         * m4/save-cwd.m4: New file.
90991
90992         Module savedir.
90993         * m4/savedir.m4: New file.
90994
90995         Module xgetcwd.
90996         * m4/xgetcwd.m4: New file.
90997         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90998
90999         Module xreadlink.
91000         * m4/xreadlink.m4: New file.
91001
91002         Module safe-read.
91003         * m4/safe-read.m4: New file.
91004
91005         Module safe-write.
91006         * m4/safe-write.m4: New file.
91007
91008         Module closeout.
91009         * m4/closeout.m4: New file.
91010
91011         Module stdio-safer.
91012         * m4/stdio-safer.m4: New file.
91013
91014         Module getpass.
91015         * m4/getpass.m4: New file.
91016
91017         Module getugroups.
91018         * m4/getugroups.m4: New file.
91019
91020         Module group-member.
91021         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91022         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91023
91024         Module idcache.
91025         * m4/idcache.m4: New file.
91026
91027         Module userspec.
91028         * m4/userspec.m4: New file.
91029
91030         Module gettime.
91031         * m4/clock_time.m4: New file.
91032         * m4/gettime.m4: New file.
91033
91034         Module settime.
91035         * m4/settime.m4: New file.
91036
91037         Module posixtm.
91038         * m4/posixtm.m4: New file.
91039
91040         Module gethostname.
91041         * m4/gethostname.m4: New file.
91042
91043         Module canon-host.
91044         * m4/canon-host.m4: New file.
91045
91046         Module gettext.
91047         * m4/codeset.m4: New file, from gettext-0.11.5.
91048         * m4/gettext.m4: New file, from gettext-0.11.5.
91049         * m4/glibc21.m4: New file, from gettext-0.11.5.
91050         * m4/iconv.m4: New file, from gettext-0.11.5.
91051         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91052         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91053         * m4/inttypes.m4: New file, from gettext-0.11.5.
91054         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91055         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91056         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91057         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91058         * m4/lib-link.m4: New file, from gettext-0.11.5.
91059         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91060         * m4/progtest.m4: New file, from gettext-0.11.5.
91061         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91062         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91063         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91064
91065         Module localcharset.
91066         * m4/localcharset.m4: New file.
91067
91068         Module hard-locale.
91069         * m4/hard-locale.m4: New file.
91070
91071         Module mbswidth.
91072         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91073         onceonly macros.
91074         * m4/mbrtowc.m4: Add comment.
91075
91076         Module memcasecmp.
91077         * m4/memcasecmp.m4: New file.
91078
91079         Module memcoll.
91080         * m4/memcoll.m4: New file.
91081
91082         Module unicodeio.
91083         * m4/unicodeio.m4: New file.
91084
91085         Module rpmatch.
91086         * m4/rpmatch.m4: New file.
91087
91088         Module yesno.
91089         * m4/yesno.m4: New file.
91090
91091         Module exitfail.
91092         * m4/exitfail.m4: New file.
91093
91094         Module c-stack.
91095         * m4/c-stack.m4 (gl_C_STACK): New macro.
91096         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91097
91098         Module error.
91099         * m4/error.m4 (gl_ERROR): New macro.
91100         (jm_PREREQ_ERROR): Use onceonly macros.
91101
91102         Module fatal.
91103         * m4/fatal.m4: New file.
91104
91105         Module getloadavg.
91106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91107         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91108
91109         Module getpagesize.
91110         * m4/getpagesize.m4: New file.
91111
91112         Module getusershell.
91113         * m4/getusershell.m4: New file.
91114
91115         Module physmem.
91116         * m4/physmem.m4: New file.
91117
91118         Module posixver.
91119         * m4/posixver.m4: New file.
91120
91121         Module quotearg.
91122         * m4/quotearg.m4: New file.
91123
91124         Module quote.
91125         * m4/quote.m4: New file.
91126
91127         Module readutmp.
91128         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91129
91130         Module sig2str.
91131         * m4/sig2str.m4: New file.
91132
91133         Other.
91134         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91135         ulonglong.m4.
91136         * m4/intmax_t.m4: New file.
91137         * m4/d-type.m4: Indentation.
91138         * m4/jm-macros.m4: Update.
91139         * m4/prereq.m4 (jm_PREREQ): Update.
91140         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91141         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91142         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91143         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91144         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91145         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91146         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91147         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91148         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91149         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91150         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91151         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91152         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91153         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91154         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91155         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91156         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91157         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91158         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91159
91160 2002-12-24  Bruno Haible  <bruno@clisp.org>
91161
91162         * MODULES.txt: Update according to m4/ changes.
91163
91164         Module gettext.
91165         * config.rpath: New file, from gettext-0.11.5.
91166
91167         * modules/*: New module descriptions.
91168         * gnulib-tool: New file.
91169         * MODULES.html.sh: New file.
91170
91171 2002-12-21  Karl Berry  <karl@gnu.org>
91172
91173         * doc/fdl.texi: update to version 1.2.
91174
91175 2002-12-19  Karl Berry  <karl@gnu.org>
91176
91177         * config/config.guess: update from prep.
91178
91179 2002-12-18  Bruno Haible  <bruno@clisp.org>
91180
91181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91182         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91183
91184 2002-12-17  Bruno Haible  <bruno@clisp.org>
91185
91186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91187         stdlib.h, string.h.
91188
91189 2002-12-17  Bruno Haible  <bruno@clisp.org>
91190
91191         * lib/canon-host.c (strdup): Remove unused declaration.
91192
91193         * lib/fsusage.c: Include full_read.h.
91194         (get_fs_usage): Use full_read instead of safe_read.
91195
91196         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91197
91198 2002-12-12  Karl Berry  <karl@gnu.org>
91199
91200         * config/config.guess: update from prep.
91201
91202 2002-12-11  Bruno Haible  <bruno@clisp.org>
91203
91204         * m4/setenv.m4: New file, from gettext-0.11.5.
91205
91206 2002-12-11  Bruno Haible  <bruno@clisp.org>
91207
91208         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91209         not unsetenv().
91210         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91211         modifications:
91212
91213         2002-12-11  Bruno Haible  <bruno@clisp.org>
91214
91215                 * setenv.c (alloca): Fall back to malloc.
91216                 (freea): New macro.
91217                 (setenv): Use freea() to free memory allocated with alloca().
91218
91219         2002-11-13  Bruno Haible  <bruno@clisp.org>
91220
91221                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91222                 function declarations.
91223                 * unsetenv.c (unsetenv): Likewise.
91224
91225         2002-03-04  Bruno Haible  <bruno@clisp.org>
91226
91227                 Portability to AIX 4.3.3.
91228                 * unsetenv.c: New file, extracted from setenv.c.
91229                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91230
91231         2001-12-20  Bruno Haible  <bruno@clisp.org>
91232
91233                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91234                 use malloc instead. For SunOS 4.
91235
91236         2001-12-11  Bruno Haible  <bruno@clisp.org>
91237
91238                 * setenv.c: Declare alloca.
91239                 (compar_fn_t): New typedef.
91240                 (KNOWN_VALUE, STORE_VALUE): Use it.
91241
91242         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91243         setenv.h.
91244
91245 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91246
91247         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91248         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91249         Choose values that are less likely to collide with system fnmatch
91250         options.
91251         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91252         defined (e.g., a pure POSIX system).
91253         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91254         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91255
91256 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91257
91258         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91259         a pain in practice to deal with generated m4 files.  This change
91260         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91261
91262         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91263         and jm-glibc-io.m4, as they are no longer a special case.
91264         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91265         kludge and the auto-generation stuff.  Check only whether the
91266         functions are declared, not whether they exist, since older hosts
91267         that don't declare the functions can't use the optimization anyway.
91268
91269 2002-12-06  Jim Meyering  <jim@meyering.net>
91270
91271         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91272
91273         Merge in changes from libc's misc/error.c, in preparation
91274         for the merge of gnulib's changes back into libc.
91275
91276         * lib/error.c (_): Define only if not already defined.
91277         Move definition to follow all #include directives.
91278         Include unlocked-io.h only if !_LIBC.
91279         [_LIBC]: Include <libio/libioP.h>.
91280         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91281         (fflush): Tweak definition to use INTUSE.
91282         (putc): Define.
91283
91284 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91285
91286         * lib/alloca.c [defined emacs]: Include "lisp.h".
91287         (xalloc_die) [defined emacs]: New macro.
91288         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91289         [! defined emacs]: Include <xalloc.h>.
91290         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91291         (pointer): Typedef to POINTER_TYPE *.
91292         (malloc): Remove decl; we now always use xmalloc.
91293         (alloca): Use old-style definition, since Emacs needs this.
91294         Check for arithmetic overflow when computing combined size.
91295
91296 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91297
91298         Do not generate unlocked-io.h automatically, since it's easier to
91299         maintain it by hand.
91300
91301         * lib/unlocked-io.h: New file, from GNU diffutils,
91302         but with proper copyright notice and attribution.
91303         * lib/gen-uio: Remove.
91304         * lib/Makefile.am: Add copyright notice.
91305         (libfetish_a_SOURCES): Add unlocked-io.h.
91306         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91307         (DISTCLEANFILES, io_functions): Remove macros.
91308         (EXTRA_DIST): Remove gen_uio.
91309         (unlocked-io.h): Remove rule.
91310
91311 2002-12-04  Jim Meyering  <jim@meyering.net>
91312
91313         Reflect the fact that stat.c and lstat.c are no longer generated.
91314         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91315         (DISTCLEANFILES): Likewise.
91316         (EXTRA_DIST): Likewise.
91317         (all_local): Don't depend on stat.c or lstat.c.
91318         (stat.c, lstat.c): Remove rules.
91319         (EXTRA_DIST): Remove xstat.in.
91320
91321         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91322         * lib/stat.c: New file.  Contents mostly from xstat.in.
91323         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91324         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91325
91326         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91327         too.
91328         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91329
91330 2002-12-03  Jim Meyering  <jim@meyering.net>
91331
91332         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91333         but not semantics, to minimize the differences between these two files.
91334         (safe_read): Change comment to mention SAFE_READ_ERROR.
91335
91336         * lib/safe-read.c (IS_EINTR): Define.
91337         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91338
91339 2002-12-02  Jim Meyering  <jim@meyering.net>
91340
91341         * lib/safe-read.c (EINTR): Define.
91342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91343         (INT_MAX): Provide fallback.
91344         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91345
91346         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91347
91348 2002-12-02  Bruno Haible  <bruno@clisp.org>
91349
91350         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91351         Define, taken from safe-read.c.
91352         (INT_MAX): Provide fallback.
91353         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91354         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91355
91356         * lib/safe-read.c (EINTR): Remove definition.
91357         (safe_read): Don't use EINTR if it is absent.
91358
91359 2002-12-01  Jim Meyering  <jim@meyering.net>
91360
91361         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91362         zero.
91363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91364
91365 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91366
91367         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91368         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91369         with `if (! (value < limit)) abort ();', for readability.
91370
91371 2002-11-26  Karl Berry  <karl@gnu.org>
91372
91373         * lib/strdup.c: copy from libc again, with jim's ok.
91374         * lib/.cppi-disable: re-add strdup.c
91375
91376 2002-11-25  Karl Berry  <karl@gnu.org>
91377
91378         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91379         instead of "strtol.c".
91380
91381 2002-11-25  Karl Berry  <karl@gnu.org>
91382
91383         * config/install-sh: update from automake for variable quoting, $0 in
91384         error msgs, etc.
91385
91386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91387         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91388         entry.
91389
91390 2002-11-25  Jim Meyering  <jim@meyering.net>
91391
91392         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91393
91394 2002-11-24  Karl Berry  <karl@gnu.org>
91395
91396         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91397         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91398
91399 2002-11-24  Jim Meyering  <jim@meyering.net>
91400
91401         Update from coreutils:
91402
91403         * lib/mktime.c: Merge in changes from libc.
91404
91405         Avoid a link-time failure on some Linux systems.
91406         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91407         (otherwise).
91408         (__mon_yday): Declare with the STATIC attribute.
91409         (__mktime_internal): Likewise.
91410         Based on a report from Greg Schafer.
91411
91412 2002-11-23  Jim Meyering  <jim@meyering.net>
91413
91414         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91415         Use `unsigned', not `int', as type of index.
91416
91417         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91418
91419         * lib/fsusage.c: Remove unneeded parentheses around operands of
91420         `defined'.
91421
91422 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91423
91424         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91425         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91426         so that we can be included first.
91427         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91428         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91429         No need to include stddef.h or sys/types.h any more.
91430         Surround local include files with "", not "<>".
91431         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91432         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91433         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91434         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91435         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91436         (ISPRINT): Remove; no longer needed now that we assume C89.
91437
91438         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91439         Preserve errno.
91440
91441         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91442         quotearg_char): Use SIZE_MAX rather than
91443         (size_t) -1 when we are talking about "infinity".
91444
91445         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91446
91447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91448
91449         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91450         hint that one should use `if (! x) abort ();' rather than `assert
91451         (x);', and anyway it's one less thing to worry about configuring.
91452         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91453         hash_rehash, hash_insert): Use abort rather than assert.
91454
91455 2002-11-22  Bruno Haible  <bruno@clisp.org>
91456
91457         * lib/safe-read.h: Assume C89. Add comments.
91458         (safe_read): Change return type to size_t.
91459         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91460         byte counts > SSIZE_MAX correctly.
91461         * lib/safe-write.h: New file.
91462         * lib/safe-write.c: New file.
91463         * lib/full-read.h: New file.
91464         * lib/full-read.c: New file.
91465         * lib/full-write.h: Assume C89. Add comments.
91466         * lib/full-write.c: Include safe-write.h.
91467         (full_write): Rewritten to use safe_write.
91468         Suggested by Jim Meyering and Paul Eggert.
91469
91470 2002-11-21  Jim Meyering  <jim@meyering.net>
91471
91472         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91473
91474         Merge in changes from the coreutils.
91475
91476         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91477         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91478         <stdint.h>.
91479         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91480         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91481         int.  Work more efficiently if X is the same width as uintmax_t.
91482         Do not compare X to -1, to avoid bogus compiler warning.
91483         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91484         Don't assume that f_frsize and f_bsize are the same type.
91485
91486         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91487         warning on FreeBSD.
91488
91489         * lib/makepath.c (make_path): Restore umask *before* creating the final
91490         component.
91491         (make_path): Minor reformatting.
91492
91493         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91494         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91495         HAVE_MALLOC/HAVE_REALLOC.
91496
91497         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91498         dummy ones.  At least on GNU/Linux systems, `auto' means something
91499         else.
91500         From Michael Stone.
91501
91502 2002-11-21  Bruno Haible  <bruno@clisp.org>
91503
91504         Remove case insensitive option matching.
91505         * lib/argmatch.h (argcasematch): Remove declaration.
91506         (ARGCASEMATCH): Remove macro.
91507         (__xargmatch_internal): Remove case_sensitive argument.
91508         (XARGMATCH): Update.
91509         (XARGCASEMATCH): Remove macro.
91510         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91511         case_sensitive argument.
91512         (argcasematch): Remove function.
91513         (__xargmatch_internal): Remove case_sensitive argument.
91514         (main): Use XARGMATCH instead of XARGCASEMATCH.
91515
91516         * lib/xmalloc.c: Change compile-time error message. Add comment about
91517         required autoconf version.
91518
91519 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91520
91521         Merge argmatch cleanups from Bison.  Assume C89.
91522
91523         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91524         Include stdlib.h, for EXIT_FAILURE.
91525         Always include <string.h>, since we assume C89.
91526         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91527         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91528         Include <stddef.h> instead, since it's all we need for size_t.
91529         (PARAMS): Remove.  All uses removed.
91530         (ARRAY_CARDINALITY): Do not bother to #undef.
91531         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91532         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91533         Remove unnecessary parentheses.
91534         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91535         Insert necessary parentheses.
91536         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91537         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91538
91539 2002-11-19  Bruno Haible  <bruno@clisp.org>
91540
91541         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91542         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91543
91544         * lib/mbswidth.h (PARAMS): Remove macro.
91545         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91546         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91547
91548         * lib/gcd.h (PARAMS): Remove macro.
91549         (gcd): Use ANSI C function declarations.
91550         * lib/gcd.c (gcd): Likewise.
91551
91552 2002-11-15  Bruno Haible  <bruno@clisp.org>
91553
91554         * lib/strcspn.c: Include <stddef.h>.
91555         (strcspn): Use ANSI C function declaration. Change return type to
91556         size_t. Use NULL.
91557         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91558         (strpbrk): Use NULL.
91559         * lib/strpbrk.h (PARAMS): Remove macro.
91560         (strpbrk): Use ANSI C function declaration.
91561         * lib/strstr.c: Don't include <sys/types.h>.
91562         * lib/strstr.h (PARAMS): Remove macro.
91563         (strstr): Use ANSI C function declarations.
91564
91565 2002-11-14  Karl Berry  <karl@gnu.org>
91566
91567         * config/mkinstalldirs: `do' on separate line, instead of
91568         `for var; do'.
91569
91570 2002-11-06  Bruno Haible  <bruno@clisp.org>
91571
91572         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91573         * lib/gcd.c (gcd): Likewise.
91574
91575 2002-11-05  Bruno Haible  <bruno@clisp.org>
91576
91577         * lib/gcd.h: New file, from gettext-0.11.5.
91578         * lib/gcd.c: New file, from gettext-0.11.5.
91579
91580 2002-11-05  Bruno Haible  <bruno@clisp.org>
91581
91582         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91583         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91584         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91585         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91586
91587         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91588         <libintl.h>.
91589         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91590         <libintl.h>.
91591
91592         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91593         * lib/human.c: Include gettext.h instead of <libintl.h>.
91594         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91595         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91596         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91597         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91598         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91599         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91600         (textdomain): Remove definition.
91601         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91602
91603         * lib/long-options.c: Remove include of <libintl.h> and definition of
91604         _.
91605         * lib/same.c: Remove include of <libintl.h> and definition of _.
91606
91607 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91608
91609         * lib/config.charset: A few additions for Solaris.
91610
91611 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91612
91613         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91614         * lib/localcharset.c (locale_charset): Declare as extern "C".
91615
91616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91617
91618         * lib/config.charset: msdos in uk_UA uses CP1125.
91619
91620 2002-11-04  Bruno Haible  <bruno@clisp.org>
91621
91622         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91623         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91624         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91625         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91626         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91627
91628 2002-11-04  Bruno Haible  <bruno@clisp.org>
91629
91630         * lib/localcharset.c (locale_charset): Don't return an empty string.
91631
91632 2002-11-04  Bruno Haible  <bruno@clisp.org>
91633
91634         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91635         aliases.
91636
91637 2002-11-04  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/config.charset: Update for newest glibc. Add canonical names
91640         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91641
91642 2002-11-04  Bruno Haible  <bruno@clisp.org>
91643
91644         * lib/config.charset: Add support for NetBSD.
91645
91646 2002-11-04  Bruno Haible  <bruno@clisp.org>
91647
91648         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91649
91650 2002-11-01  Bruno Haible  <bruno@clisp.org>
91651
91652         * configure.in: Add AC_CONFIG_AUX_DIR call.
91653         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91654         test/Makefile.
91655         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91656
91657 2002-09-28  Karl Berry  <karl@gnu.org>
91658
91659         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91660         installed automake until the next release, since changes have been
91661         made.
91662
91663 2002-09-25  Karl Berry  <karl@gnu.org>
91664
91665         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91666         * lib/getopt*: copy from libc/posix.
91667         * lib/gettext.h: copy from gettext.
91668         * lib/.cppi-disable: add strdup.c, gettext.h.
91669
91670 2002-09-25  Karl Berry  <karl@gnu.org>
91671
91672         * config/srclist.txt: enable gettext.h check.
91673         * config/config.{guess,sub}: update from prep.
91674         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91675                 from automake 1.6.3.
91676         See srclist*.
91677
91678 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91679
91680         * regex.c (PATFETCH): Remove the translating fetch.
91681         (PATFETCH_RAW): Rename to PATFETCH.
91682         (set_image_of_range): New fun.
91683         (SET_RANGE_TABLE_WORK_AREA): Use it.
91684         (regex_compile): Don't translate the pattern chars so eagerly.
91685         Only do it when inserting an `exactn' bytecode or when handling
91686         a char-range.
91687         (mutually_exclusive_p): Avoid empty statement.
91688
91689 2002-07-06  Jim Meyering  <meyering@lucent.com>
91690
91691         * m4/README: Don't mention Makefile.am.in.
91692         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91693
91694 2002-07-01  Jim Meyering  <meyering@lucent.com>
91695
91696         * lib/c-stack.c: Include sys/time.h.
91697         From Volker Borchert.
91698
91699 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91700
91701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91702
91703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91704
91705         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91706         New macro.  Use it uniformly instead of
91707         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91708         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91709         reported by Vin Shelton.
91710
91711 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91714         Do not assume SA_SIGINFO behavior.
91715         Bug reported by Jim Meyering on NetBSD 1.5.2.
91716
91717 2002-06-22  Jim Meyering  <meyering@lucent.com>
91718
91719         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91721
91722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91723         now that configure.ac uses AC_GNU_SOURCE.
91724         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91725         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91726
91727         Update to latest tools.  Suggestions from Paul Eggert.
91728         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91729         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91730         * m4/fnmatch.m4: Likewise.
91731         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91732         to AC_HEADER_STDBOOL
91733
91734 2002-06-22  Jim Meyering  <meyering@lucent.com>
91735
91736         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91737         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91738
91739 2002-06-22  Jim Meyering  <meyering@lucent.com>
91740
91741         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91742
91743         * lib/exitfail.c, exitfail.h: Likewise.
91744         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91745
91746         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91747         of fnmatch.h.
91748         (EXTRA_DIST): Add fnmatch_loop.c.
91749         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91750
91751         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91752         * lib/fnmatch.c: Update from diffutils-2.8.2.
91753         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91754         * lib/fnmatch.h: Remove file.
91755
91756 2002-06-21  Jim Meyering  <meyering@lucent.com>
91757
91758         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91759         * m4/mbrtowc.m4: Likewise.
91760
91761         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91762         * m4/mbswidth.m4: Reflect name change:
91763         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91765
91766         * m4/lib-link.m4: Update from gettext-0.11.2.
91767         * m4/gettext.m4: Likewise.
91768
91769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91770         From Alfred M. Szmidt.
91771
91772 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91773
91774         * lib/file-type.h: Report an error if neither S_ISREG nor
91775         S_IFREG is defined, instead of using a test specific to glibc
91776         2.2.  This should be safe, since POSIX requires S_ISREG and
91777         Unix Version 7 had S_IFREG.  We don't need to check for
91778         <sys/types.h> since we don't use any symbols that it defines.
91779
91780 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91781
91782         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91783         $@-t, so that each temporary file name is unique and valid in the first
91784         8 characters, for operation under DOS.
91785
91786 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91787
91788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91789
91790 2002-06-15  Jim Meyering  <meyering@lucent.com>
91791
91792         Work even with DJGPP 2.03, which lacks support for symlinks.
91793         From Richard Dawe.
91794         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91795         is defined.
91796         * lib/lchown.c (S_ISLNK): Likewise.
91797
91798 2002-06-15  Jim Meyering  <meyering@lucent.com>
91799
91800         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91801         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91802         have been included before this file.
91803
91804 2002-06-14  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/file-type.h: Use the version from diffutils-2.8.2.
91807         * lib/file-type.c: Likewise.
91808
91809 2002-06-07  Jim Meyering  <meyering@lucent.com>
91810
91811         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91812         They're needed at least for NetBSD 1.5.2.
91813         ($statxfs_includes): Include those same headers.
91814         ($statxfs_includes): Include sys/vfs.h if available.
91815         ($statxfs_includes): Likewise for sys/statvfs.h.
91816         Check for the following members in both structs statfs and statvfs:
91817         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91818
91819 2002-06-01  Jim Meyering  <meyering@lucent.com>
91820
91821         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91822         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91823
91824 2002-05-28  Jim Meyering  <meyering@lucent.com>
91825
91826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91827         Reported by Volker Borchert.
91828
91829 2002-05-27  Jim Meyering  <meyering@lucent.com>
91830
91831         Fix a problem seen only on nonconforming systems whereby ls.c's
91832         use of localtime, and then of gettimeofday would cause trouble:
91833         the localtime call used to initialize rpl_gettimeofday's save
91834         mechanism would clobber ls's current local time information so
91835         that in any long listing the first file would always be listed
91836         with date 1970-01-01.  Analysis by Volker Borchert.
91837
91838         * lib/gettimeofday.c (localtime): Undefine.
91839         (rpl_localtime): New function.
91840
91841 2002-05-27  Jim Meyering  <meyering@lucent.com>
91842
91843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91844         localtime.
91845
91846         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91847         use the replacement function; it wouldn't resolve at link time.
91848         Reported by Volker Borchert.
91849
91850 2002-05-22  Jim Meyering  <meyering@lucent.com>
91851
91852         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91853         file-type.h.
91854         * lib/file-type.h: New file.
91855         * lib/file-type.c (file_type): New file/function.  Extracted from
91856         diffutils.
91857
91858 2002-04-30  Jim Meyering  <meyering@lucent.com>
91859
91860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91861
91862 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91863
91864         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91865
91866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91867
91868         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91869         Do not check for alloca.h (no longer used) or stdbool.h (was never
91870         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91871
91872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91873
91874         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91875
91876 2002-04-29  Jim Meyering  <meyering@lucent.com>
91877
91878         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91879         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91880         Use AC_FUNC_STRNLEN here instead.
91881
91882         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91883         With autoconf-2.53a, it's part of AC_PROG_CC.
91884
91885 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91886
91887         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91889
91890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91891
91892         * lib/sig2str.h, lib/sig2str.c: New files.
91893         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91894
91895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91896
91897         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91898         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91899         of 127, since 64 is the largest conceivable number for ancient
91900         nonstandard hosts.
91901         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91902
91903 2002-04-28  Jim Meyering  <meyering@lucent.com>
91904
91905         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91906
91907 2002-04-24  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91910         (jm_PREREQ): Use it.
91911
91912         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91913         mach/mach.h fcntl.h.
91914         Check for this function: setlocale.
91915
91916 2002-04-24  Jim Meyering  <meyering@lucent.com>
91917
91918         * lib/gettext.h: New file, from Gettext.
91919         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91920         (libfetish_a_SOURCES): Add gettext.h.
91921
91922 2002-04-16  Jim Meyering  <meyering@lucent.com>
91923
91924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91925         ut_pid, ut_id, ut_exit.
91926
91927 2002-04-16  Jim Meyering  <meyering@lucent.com>
91928
91929         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91930         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91931         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91932
91933 2002-04-12  Jim Meyering  <meyering@lucent.com>
91934
91935         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91936         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91937         existence of the getmntinfo function.  Needed for Darwin 5.3.
91938
91939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91940         This is necessary at least on Darwin 5.3.
91941
91942         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91943         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91944         strnlen.o in the library, and that makes some versions of ranlib
91945         object.
91946
91947 2002-04-12  Jim Meyering  <meyering@lucent.com>
91948
91949         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91950
91951 2002-04-09  Jim Meyering  <meyering@lucent.com>
91952
91953         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91954         to be more precise.  Rather than saying we're checking whether the
91955         function `works', say what we're testing.
91956         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91957         Reported by Bruno Haible.
91958
91959 2002-03-10  Jim Meyering  <meyering@lucent.com>
91960
91961         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91962         Suggestion from Santiago Vila.
91963
91964 2002-03-08  Jim Meyering  <meyering@lucent.com>
91965
91966         * lib/rename.c: Mention that this wrapper is needed also on
91967         mips-dec-ultrix4.4 systems.
91968
91969 2002-03-02  Jim Meyering  <meyering@lucent.com>
91970
91971         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91972         not HAVE_CLOCK_SETTIME.
91973
91974 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91975
91976         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91977         Check for clock_settime.
91978
91979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91980
91981         * lib/nanosleep.h: Rename to....
91982         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91983
91984         * lib/gettime.c: New file.
91985         * lib/settime.c: New file.
91986         * lib/stime.c: Remove.
91987
91988         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91989         timespec.h.  Remove nanosleep.h.
91990
91991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91992
91993         * m4/acl.m4: New file.
91994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91995         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91996
91997 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91998
91999         * lib/acl.c, lib/acl.h: New files.
92000         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92001
92002 2002-02-24  Jim Meyering  <meyering@lucent.com>
92003
92004         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92005         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92006         cause trouble.  Reported by Nelson Beebe.
92007
92008 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92009
92010         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92011         compilers that don't know that xalloc_die never returns.
92012
92013 2002-02-20  Jim Meyering  <meyering@lucent.com>
92014
92015         * lib/getdate.c: Regenerate using bison-1.33.
92016
92017 2002-02-17  Jim Meyering  <meyering@lucent.com>
92018
92019         * config/config.guess (main): Don't use `head -1'; it's no longer
92020         portable. Use `sed 1q' instead.
92021
92022 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92023
92024         * m4/codeset.m4: Upgrade to gettext-0.11.
92025         * m4/gettext.m4: Upgrade to gettext-0.11.
92026         * m4/glibc21.m4: Upgrade to gettext-0.11.
92027         * m4/iconv.m4: Upgrade to gettext-0.11.
92028         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92029         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92030         * m4/lib-ld.m4: New file, from gettext-0.11.
92031         * m4/lib-link.m4: New file, from gettext-0.11.
92032         * m4/lib-prefix.m4: New file, from gettext-0.11.
92033         * m4/progtest.m4: Upgrade to gettext-0.11.
92034
92035 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92036
92037         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92038         (jm_PREREQ): Use it.
92039
92040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92041
92042         * lib/posixver.c, lib/posixver.h: New files.
92043         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92044
92045 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92046             Bruno Haible  <bruno@clisp.org>
92047
92048         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92049         (fwrite_success_callback): New declaration.
92050         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92051         print_unicode_char. Call failure callback instead of error.
92052         (fwrite_success_callback): New function.
92053         (exit_failure_callback): New function.
92054         (fallback_failure_callback): New function.
92055         (print_unicode_char): Call unicode_to_mb.
92056
92057 2002-01-26  Jim Meyering  <meyering@lucent.com>
92058
92059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92060         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92061
92062 2002-01-26  Jim Meyering  <meyering@lucent.com>
92063
92064         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92065
92066 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92067
92068         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92069
92070 2002-01-22  Jim Meyering  <meyering@lucent.com>
92071
92072         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92073         Otherwise, some versions of automake would omit the rule that makes
92074         Makefile from Makefile.in.
92075
92076 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92077
92078         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92080         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92081         (memcoll): Set errno to zero if there is no error.
92082
92083         * lib/quotearg.c (quotearg_buffer_restyled):
92084         Fix bug with quoting buffers containing NUL when backslashing escapes.
92085         This bug was exposed by the other changes in this patch.
92086         (quotearg_n_options): New arg ARGSIZE.
92087         All callers changed.
92088         (quoting_options_from_style): New function.
92089         (quotearg_n_style): Use it.
92090         (quotearg_n_style_mem): New function.
92091
92092         * lib/quotearg.h (quotearg_n_style_mem): New function.
92093
92094 2002-01-19  Jim Meyering  <meyering@lucent.com>
92095
92096         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92097         Remove useless quotes: DF_PROG="df".
92098         * m4/strnlen.m4: New file.
92099
92100 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92101
92102         * lib/backupfile.c (ISDIGIT): Comment fix.
92103         * lib/getdate.y (ISDIGIT): Likewise.
92104         * lib/posixtm.c (ISDIGIT, year): Likewise.
92105         * lib/strverscmp.c (ISDIGIT): Likewise.
92106         * lib/userspec.c (ISDIGIT): Likewise.
92107
92108 2002-01-16  Jim Meyering  <meyering@lucent.com>
92109
92110         * lib/getdate.y: Add three semicolons, each just before a closing
92111         brace. Bison (as of version 1.31) no longer papers over that mistake.
92112
92113 2002-01-05  Jim Meyering  <meyering@lucent.com>
92114
92115         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92116
92117 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92118
92119         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92120         not silently exit merely because the output buffer happens to
92121         have nothing pending.
92122
92123 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92124
92125         See the big note in ../ChangeLog.
92126         * lib/human.c (suffixes): Prefer K to k for 1024.
92127         (generate_suffix_backwards): New function.
92128         (human_readable_inexact): Use it.
92129         * lib/xstrtol.c (__xstrtol): If there is no number but there
92130         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92131         Accept 'K' as well as 'k'.
92132
92133 2001-12-15  Jim Meyering  <meyering@lucent.com>
92134
92135         * lib/regex.h (__restrict_arr): Update from libc.
92136
92137         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92138         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92139         (STREQ): Define.
92140
92141 2001-12-14  Jim Meyering  <meyering@lucent.com>
92142
92143         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92144         Suggestion from Bruno Haible.
92145
92146 2001-12-10  Jim Meyering  <meyering@lucent.com>
92147
92148         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92149         xrealloc, Instead, include "xalloc.h".
92150         (initbuffer): Don't cast xmalloc return value to char*.
92151         (readline): Reword comment.
92152         Don't cast xrealloc return value to char*
92153         Return NULL, not 0.
92154
92155 2001-12-09  Jim Meyering  <meyering@lucent.com>
92156
92157         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92158         about `signed and unsigned type in conditional expression'.
92159         * lib/posixtm.c (posix_time_parse): Likewise.
92160
92161         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92162
92163         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92164         to avoid a pedantic warning.
92165
92166         * lib/getstr.c: Don't include assert.h.
92167         (getstr): Remove warning-evoking assertions.
92168         Return -1 if offset parameter is out of bounds.
92169         Change the type of a local from int to size_t.
92170
92171         * lib/strftime.c (my_strftime_localtime_r): Include this function
92172         definition in the `#if ! HAVE_TM_GMTOFF' block.
92173
92174         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92175         Include xalloc.h instead.
92176
92177 2001-12-02  Jim Meyering  <meyering@lucent.com>
92178
92179         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92180         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92181         included.
92182
92183         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92184         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92185
92186 2001-11-30  Akim Demaille  <akim@epita.fr>
92187
92188         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92189         before being defined.
92190
92191 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92192
92193         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92194         First arg is int, not unsigned.
92195         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92196         (SIZE_MAX, UINT_MAX): New macros.
92197         (quotearg_n_options): Abort if N is negative.
92198         Avoid overflow check on hosts where size_t is 64 bits and int
92199         is 32 bits, as overflow is impossible there.
92200         Fix off-by-one typo that caused unnecessary reallocation.
92201
92202 2001-11-27  Jim Meyering  <meyering@lucent.com>
92203
92204         * lib/tempname.c: Merge with version from libc.
92205         * lib/regex.c: Likewise.
92206
92207         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92208         systems for which STDC_HEADERS is 0, it was not included, resulting in
92209         a warning about an integer-to-pointer conversion problem with getenv.
92210         Reported by Volker Borchert.
92211
92212 2001-11-26  Jim Meyering  <meyering@lucent.com>
92213
92214         * lib/gtod.h: Remove file.
92215         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92216         * lib/gettimeofday.c: Don't include gtod.h.
92217         (GTOD_init): Remove function.
92218         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92219         Suggestion from Volker Borchert.
92220
92221 2001-11-23  Jim Meyering  <meyering@lucent.com>
92222
92223         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92224         it.
92225         * lib/hash.c (struct hash_table): Define it here instead.
92226
92227 2001-11-22  Jim Meyering  <meyering@lucent.com>
92228
92229         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92230
92231 2001-11-20  Jim Meyering  <meyering@lucent.com>
92232
92233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92234         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92235
92236 2001-11-19  Jim Meyering  <meyering@lucent.com>
92237
92238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92239         directory.  Use "conftestXXXXXX" as the template.
92240         Suggestion from Paul Eggert.
92241
92242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92243         immediately, so the test doesn't mistakenly hit the max-open-files
92244         limit.
92245
92246 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92247
92248         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92249         (TEMPORARIES): New macro.
92250         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92251         removes an artificial limitation (e.g. HP-UX 10.20, where
92252         TMP_MAX is 17576).
92253
92254 2001-11-18  Jim Meyering  <meyering@lucent.com>
92255
92256         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92257
92258 2001-11-18  Jim Meyering  <meyering@lucent.com>
92259
92260         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92261         on SunOS 4.
92262
92263         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92264         files will be created before anything else.
92265
92266 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92267
92268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92269         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92270
92271 2001-11-17  Jim Meyering  <meyering@lucent.com>
92272
92273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92274         Prompted by a report from Bob Proulx.
92275
92276         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92277         Instead, require UTILS_FUNC_MKSTEMP.
92278
92279 2001-11-17  Jim Meyering  <meyering@lucent.com>
92280
92281         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92282         Now, that's done as part of AC_FUNC_STRTOD.
92283
92284 2001-11-17  Jim Meyering  <meyering@lucent.com>
92285
92286         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92287         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92288         rather than group writable.  Patch by Juan F. Codagnone.
92289
92290         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92291         xrealloc, Instead, include "xalloc.h".
92292
92293         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92294         Remove explicit declarations of xmalloc, xrealloc,
92295         and xstrdup.  Instead, include "xalloc.h".
92296
92297         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92298         unlocked-io.h.
92299         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92300         Likewise.
92301         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92302
92303         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92304         Reported by Padraig Brady.
92305
92306         * lib/mkstemp.c: #undef mkstemp.
92307         Include config.h.
92308         (rpl_mkstemp): Rename from mkstemp.
92309         Protoize.
92310
92311 2001-11-16  Jim Meyering  <meyering@lucent.com>
92312
92313         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92314         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92315         determine the amount of total physical memory, use pstat_getstatic.
92316         HPUX-11 doesn't define _SC_PHYS_PAGES.
92317         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92318         If sysconf couldn't be used to determine the amount of available
92319         physical memory, use both pstat_getstatic and pstat_getdynamic.
92320         Based on a patch from Bob Proulx.
92321
92322 2001-11-10  Jim Meyering  <meyering@lucent.com>
92323
92324         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92325         (jm_PREREQ): Use it.
92326
92327 2001-11-09  Jim Meyering  <meyering@lucent.com>
92328
92329         * m4/jm-macros.m4: Require autoconf-2.52f.
92330         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92331         Use these AC_-prefixed names, not the AM_-prefixed ones.
92332
92333         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92334
92335 2001-11-05  Jim Meyering  <meyering@lucent.com>
92336
92337         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92338
92339 2001-11-04  Jim Meyering  <meyering@lucent.com>
92340
92341         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92342         $DEFS.
92343
92344 2001-11-03  Jim Meyering  <meyering@lucent.com>
92345
92346         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92347         of AC_DEFUN.
92348
92349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92350         know the name of the variable in the macro definition.
92351
92352 2001-11-03  Jim Meyering  <meyering@lucent.com>
92353
92354         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92355         in argmatch_to_argument call.
92356
92357         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92358         argument.
92359
92360         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92361         e.g., a fault due to an attempt to free a NULL pointer.
92362
92363 2001-11-01  Jim Meyering  <meyering@lucent.com>
92364
92365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92366         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92367
92368 2001-11-01  Jim Meyering  <meyering@lucent.com>
92369
92370         * lib/dirfd.c, lib/dirfd.h: New files.
92371         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92372
92373         * lib/hash.c (hash_print) [TESTING]: Clean up.
92374
92375 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92378         to avoid a warning if -Wall.
92379
92380 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92381
92382         * README: New file
92383         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92384         (per RMS's instructions, this is now the canonical source)
92385         * lgpl/, gpl/: New directories.
92386
92387 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92388
92389         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92390
92391 2001-10-21  Jim Meyering  <meyering@lucent.com>
92392
92393         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92394         this code would end up calling gettext even in packages built
92395         with --disable-nls.
92396         * lib/getopt.c (_): Likewise.
92397         * lib/regex.c (_): Likewise.
92398
92399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92400
92401         * m4/error.m4 (jm_PREREQ_ERROR):
92402         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92403         AC_FUNC_STRERROR_R does that.
92404         Check for strerror declaration.
92405
92406         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92407         are supposed to have them these days.
92408         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92409         Merge changes from latest Autoconf CVS.
92410         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92411         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92412         POSIX decided to standardize on the int flavor of strerror_r.
92413
92414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92415
92416         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92417         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92418         Use strerror_r that is only a macro, even if it is not a function.
92419         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92420         (private_strerror): Use prototypes, not old-style function definition.
92421         (print_errno_message): New function.
92422         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92423         char*-flavored one.
92424         (error_tail, error, error_at_line): Use it.
92425
92426 2001-10-11  Jim Meyering  <meyering@lucent.com>
92427
92428         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92429         and quote_n (1, ... to avoid clobbering a buffer.
92430
92431 2001-10-05  Jim Meyering  <meyering@lucent.com>
92432
92433         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92434         hash-pjw.h.
92435         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92436         * lib/hash-pjw.h: New file.
92437
92438 2001-09-30  Jim Meyering  <meyering@lucent.com>
92439
92440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92441         `struct fsstat' has the `f_fstypename' member.
92442         Use that to define FS_TYPE, which is now used to make
92443         the getfsstat link test tighter.
92444
92445 2001-09-30  Jim Meyering  <meyering@lucent.com>
92446
92447         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92448         Include <sys/ucred.h>, for Apple Darwin.
92449         Include sys/mount.h and sys/fs_types.h only if available.
92450         (FS_TYPE): Define.
92451         (read_filesystem_list): Use FS_TYPE.
92452
92453 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92454
92455         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92456         a boolean context.
92457
92458 2001-09-29  Jim Meyering  <meyering@lucent.com>
92459
92460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92461         [one-argument getmntent function]): Include stdio.h before mntent.h.
92462         SunOS 4.1.x needs it for the declaration of `FILE'.
92463         Patch by Volker Borchert.
92464
92465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92466         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92467         sys/fs_types.h, and make the link-test for getfsstat guard #include
92468         directives with appropriate #if HAVE_*_H tests so that we can
92469         detect getfsstat on Apple Darwin1.3.7 systems.
92470         Reported by Nelson Beebe.
92471         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92472
92473 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92474
92475         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92476         #defines strtoimax.  Also treat the other strto* functions
92477         like strtoimax.
92478
92479         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92480         Check for strtoul and strtoumax,
92481         as those declarations are made even in the signed case.
92482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92483         Likewise, for strtol and strtoimax.
92484
92485 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92486
92487         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92488         #defines strtoimax.  Also treat the other strto* functions
92489         like strtoimax.
92490
92491         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92492         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92493         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92494
92495 2001-09-26  Jim Meyering  <meyering@lucent.com>
92496
92497         Most macros in unlocked-io.h had the wrong number of arguments.
92498         * lib/gen-uio: New script.
92499         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92500         * lib/unlocked-io.hin: Remove file.
92501         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92502         rather than trying to embed it here.
92503         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92504         Reported by Padraig Brady.
92505
92506 2001-09-25  Volker Borchert  <bt@teknon.de>
92507
92508         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92509         `result'.
92510
92511 2001-09-24  Jim Meyering  <meyering@lucent.com>
92512
92513         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92514
92515 2001-09-23  Jim Meyering  <meyering@lucent.com>
92516
92517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92518         instead of the mere test for existence of mntent.h.  The latter
92519         would get a false-positive on AIX 3.4 systems.
92520         In the outer getmntent if-block, don't die if neither of the getmntent
92521         tests succeeds.  Instead, just fall through and continue with the
92522         remaining tests.
92523
92524 2001-09-23  Jim Meyering  <meyering@lucent.com>
92525
92526         * lib/mountlist.c: Remove useless parentheses in #if directives.
92527         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92528         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92529
92530 2001-09-22  Jim Meyering  <meyering@lucent.com>
92531
92532         * m4/gettext.m4: New file.  From gettext.
92533         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92534         * m4/progtest.m4: Likewise
92535         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92536         * m4/glibc21.m4: Likewise.
92537
92538         * m4/libintl.m4: Remove.  No longer used.
92539
92540 2001-09-22  Jim Meyering  <meyering@lucent.com>
92541
92542         * lib/localcharset.c: Update from latest gettext.
92543         * lib/config.charset: Likewise.
92544
92545 2001-09-20  Jim Meyering  <meyering@lucent.com>
92546
92547         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92548         strtoimax.
92549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92550         strtoumax.
92551
92552 2001-09-20  Jim Meyering  <meyering@lucent.com>
92553
92554         * lib/xstrtol.c (strtoimax): Guard declaration with
92555         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92556         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92557         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92558         (strtoumax): Likewise, for completeness (it wasn't necessary).
92559
92560 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92561
92562         * lib/strtoimax.c (HAVE_LONG_LONG):
92563         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92564         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92565         to work around bug in IBM C compiler.
92566
92567 2001-09-17  Jim Meyering  <meyering@lucent.com>
92568
92569         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92570         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92571         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92572         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92573         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92574         whenever the right hand side need not be expanded by the shell.
92575
92576 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92577
92578         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92579         library.  It's not correct, as some older glibcs are buggy.
92580         fnmatch wasn't fixed until glibc 2.2.
92581
92582         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92583         special shell magic here.
92584
92585 2001-09-16  Jim Meyering  <meyering@lucent.com>
92586
92587         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92588         * m4/jm-macros.m4: Require it.
92589
92590 2001-09-16  Jim Meyering  <meyering@lucent.com>
92591
92592         * lib/mkdir.c: New file.
92593
92594 2001-09-15  Jim Meyering  <meyering@lucent.com>
92595
92596         * m4/jm-macros.m4: Check for help2man.
92597
92598 2001-09-11  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92601         The body, by Paul Eggert, was moved here from configure.in.
92602         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92603
92604 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92605
92606         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92607         (jm_PREREQ): Use it.
92608
92609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92610
92611         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92612         Use ssize_t, not int, to store result of readlink.
92613         Check for ssize_t overflow as well as size_t overflow,
92614         as POSIX says the result of readlink is implementation-defined
92615         when ssize_t overflows.
92616         Remove unnecessary cast to char*.
92617         Use free+malloc instead of realloc, as the storage doesn't need
92618         to be preserved and it's clearer and can be more efficient that way.
92619         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92620         * lib/xreadlink.h (xreadlink): Update prototype.
92621
92622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/xgetcwd.c: Revert some of the previous change; intead,
92625         fix the HAVE_GETCWD_NULL code to behave more like the
92626         !HAVE_GETCWD_NULL code used to.
92627
92628         Include "xalloc.h".
92629         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92630         invoke xalloc_die.
92631
92632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92633
92634         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92635         sys/param.h, as pathmax.h includes them.
92636
92637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92638
92639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92640         (jm_PREREQ_XGETCWD): New macro.
92641
92642         * m4/getcwd.m4: New file.
92643
92644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92645
92646         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92647         like the HAVE_GETCWD_NULL code.
92648         Include pathmax.h if not HAVE_GETCWD.
92649         Do not include xalloc.h.
92650         (INITIAL_BUFFER_SIZE): New symbol.
92651         Do not use xmalloc / xrealloc, since the caller is responsible for
92652         handling errors.  Preserve errno around `free' during failure.
92653         Do not overrun buffer when using getwd.
92654
92655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92656
92657         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92658         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92659         getcwd (NULL, 0).
92660
92661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92662
92663         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92664         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92665         spotted by Jim Meyering.
92666
92667 2001-09-03  Jim Meyering  <meyering@lucent.com>
92668
92669         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92670         failure.
92671
92672 2001-09-02  Jim Meyering  <meyering@lucent.com>
92673
92674         * lib/error.c: Update from GNU libc.
92675
92676 2001-09-01  Jim Meyering  <meyering@lucent.com>
92677
92678         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92679         Used by df.
92680
92681 2001-09-01  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/xreadlink.c: New file.
92684         * lib/xreadlink.h: New file.
92685         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92686         xreadlink.h.
92687
92688         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92689         doesn't conflict with sparc Solaris 7's definition in
92690         /usr/include/sys/int_types.h.
92691
92692         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92693         files.
92694         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92695         and strncasecmp as r-values.  Unixware didn't have declarations.
92696
92697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92698
92699         * lib/xstrtol.h: Add copyright notice.
92700         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92701         LONGINT_INVALID_SUFFIX_CHAR.
92702
92703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92704
92705         * lib/xstrtol.c (strtoimax): New decl.
92706
92707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92708
92709         * lib/xgetcwd.c: Don't include pathmax.h.
92710         Include stdlib.h and unistd.h if available.
92711         Include xalloc.h.
92712         (xmalloc, xstrdup, free): Remove decls.
92713         (xgetcwd): Don't assume sizes fit in unsigned.
92714         Check for overflow when computing sizes.
92715         Simplify reallocation code.
92716
92717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92718
92719         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92720         a directory's st_size can have an arbitrary value, so the old
92721         usage could waste an arbitrary amount of memory.  All uses
92722         changed.
92723         * lib/savedir.h: Update prototype.
92724
92725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92726
92727         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92728
92729         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92730         old strtoimax.c.
92731
92732         Also, make the following further changes to make this file's
92733         configuration more similar to that of strtol.c:
92734         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92735         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92736         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92737         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92738         changed to signed values.
92739
92740         And make the following changes as well:
92741         Fix copyright notice, as 1999 was missing.
92742         (verify): New macro.
92743         (strtoimax): Check sizes at compile-time, not run-time.
92744         Prefer strtol to strtoll if both work.
92745         (main): Remove; it was not that useful and was a pain to maintain.
92746
92747         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92748
92749 2001-08-31  Jim Meyering  <meyering@lucent.com>
92750
92751         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92752         Use an initial, malloc'd, buffer of length 128 rather than
92753         a statically allocated one of length 1024.
92754
92755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92756
92757         Simplify code, partly by assuming autoconf 2.52 semantics.
92758
92759         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92760
92761         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92762         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92763         All uses removed.
92764         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92765         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92766         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92767         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92768         jm_AC_HEADER_INTTYPES_H.
92769         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92770
92771         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92772
92773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92774         Quote first arg of AC_DEFUN.
92775         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92776         since they are needed to parse the include file even if we need
92777         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92779         but with opposite signedness.
92780
92781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92782
92783         Merge 'exclude' changes from tar 1.13.22.
92784         This fixes one or two unlikely storage allocation overflow bugs,
92785         but doesn't change user-visible behavior otherwise.
92786
92787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92788
92789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92790         (jm_PREREQ_EXCLUDE): New macro.
92791
92792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92793
92794         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92795         tm to be declared.
92796
92797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92798
92799         * lib/hash.c: Remove '2001' from copyright notice.
92800
92801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92802
92803         * lib/full-write.h: New file.
92804         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92805         * lib/full-write.c: Correct credits, as cccp.c no longer
92806         exists and anyway it was so heavily changed from the old cccp
92807         code as to be unrecognizable.  Include full-write.h.
92808         (full_write): Return size_t, with short writes meaning failure.
92809         All callers changed.  This fixes a bug with large buffers
92810         on 64-bit hosts.
92811         * lib/utime.c: Include full-write.h.
92812
92813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92814
92815         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92816         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92817         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92818         Include if available.
92819         (<xalloc.h>): Include
92820         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92821         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92822         collide with FNM macros.
92823         (struct patopts): New struct.
92824         (struct exclude): Use it, as exclude patterns now come with options.
92825         (new_exclude): Support above changes.
92826         (new_exclude, add_exclude_file):
92827         Initial size must now be a power of two to simplify overflow checking.
92828         (free_exclude, fnmatch_no_wildcards): New function.
92829         (excluded_filename): No longer requires options arg, as the options
92830         are determined by add_exclude.  Now returns bool, not int.
92831         (excluded_filename, add_exclude):
92832         Add support for the fancy new exclusion options.
92833         (add_exclude, add_exclude_file): Now takes int options arg.
92834         Check for arithmetic overflow when computing sizes.
92835         (add_exclude_file): xrealloc might modify errno, so don't
92836         realloc until after errno might be used.
92837
92838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92839         New macros.
92840         (free_exclude): New decl.
92841         (add_exclude, add_exclude_file): Now takes int options arg.
92842         (excluded_filename): No longer requires options arg, as the options
92843         are determined by add_exclude.  Now returns bool, not int.
92844
92845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92846
92847         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92848
92849 2001-08-27  Jim Meyering  <meyering@lucent.com>
92850
92851         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92852
92853         * lib/version-etc.c (N_): Remove definition.
92854         Revert most of last change.
92855         Instead, simply don't mark the `Copyright...' string for translation.
92856         Based on advice from Paul Eggert.
92857
92858         * lib/strtoxmax.c: Tweak comment.
92859
92860 2001-08-26  Jim Meyering  <meyering@lucent.com>
92861
92862         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92863
92864         * m4/xstrtoimax.m4: New file.
92865         * m4/xstrtoumax.m4: Add comments explaining why we
92866         AC_REPLACE_FUNCS(strtol).
92867
92868 2001-08-26  Jim Meyering  <meyering@lucent.com>
92869
92870         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92871         of copyright with `%s' so translators don't get an untranslated
92872         message in 2002.
92873         (COPYRIGHT_YEAR): Define.
92874         (version_etc): Use fprintf rather than fputs.
92875         Suggestion from Ulrich Drepper.
92876
92877         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92878
92879         * lib/strtoll.c: New file, from GNU libc.
92880         * lib/xstrtoimax.c: New file.
92881
92882         * lib/xstrtol.h: Add xstrtoimax.
92883         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92884         * lib/strtoimax.c: New file.  Likewise, but first define
92885         STRTOUXMAX_SIGNED.
92886
92887         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92888         ...
92889         * lib/strtoxmax.c: ... then renamed to this.
92890
92891 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92892
92893         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92894         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92895         (jm_AC_TYPE_INTMAX_T): New macro.
92896         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92897
92898         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92899
92900         * m4/longlong.m4: Renamed from ulonglong.m4.
92901         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92902         * m4/uintmax_t.m4: Removed.
92903
92904 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92905
92906         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92907         Port to Solaris 8, where 'sed' requires a space after the 'r'
92908         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92909         Redirect output to $tmp just once.
92910
92911 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92912
92913         * lib/addext.c (<errno.h>): Include.
92914         (errno): Declare if not defined.
92915         (addext): Work correctly when pathconf returns -1 and leaves
92916         errno alone because there is no limit.  Also, work even if
92917         pathconf returns a value greater than SIZE_MAX.
92918
92919 2001-08-12  Jim Meyering  <meyering@lucent.com>
92920
92921         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92922         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92923         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92924         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92925         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92926         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92927         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92928         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92929         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92930         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92931         utime.m4, utimes.m4, xstrtoumax.m4:
92932         Quote the first argument in each use of AC_DEFUN.
92933
92934 2001-08-12  Jim Meyering  <meyering@lucent.com>
92935
92936         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92937         Simply `return getcwd (NULL, 0);'.
92938         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92939         Use 1300 as initial value for length, not PATH_MAX.
92940
92941         * lib/pathmax.h: Clean up cpp syntax.
92942
92943 2001-08-12  Jim Meyering  <meyering@lucent.com>
92944
92945         * lib/gettimeofday.c: New file.
92946         * lib/gtod.h: New file.
92947         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92948
92949 2001-08-05  Jim Meyering  <meyering@lucent.com>
92950
92951         * m4/jm-macros.m4: Require autoconf-2.52.
92952
92953 2001-08-04  Jim Meyering  <meyering@lucent.com>
92954
92955         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92956         stmt, to get in sync with glibc.
92957
92958 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92959
92960         The following changes are from gettext 0.10.39 as maintained by
92961         Bruno Haible.
92962
92963         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92964         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92965         with inverted sense.  All uses changed.
92966
92967         * lib/mbswidth.c: Don't include <limits.h>.
92968         Include <stdlib.h> and <string.h> unconditionally.
92969         (iswcntrl, mbsinit, ISCNTRL): New macros.
92970         (mbsnwidth): Use K&R style function declarations.
92971         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92972         can optimize it when MB_CUR_MAX == 1.
92973         The width of control characters is zero, not 1.
92974
92975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92976
92977         The following changes are from gettext 0.10.39 as maintained by
92978         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92979
92980         * m4/codeset.m4: Upgrade to serial AM1.
92981         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92982         all uses changed.  Quote first arg of AC_DEFUN.
92983         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92984
92985         * m4/iconv.m4: Upgrade to serial AM2.
92986         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92987         Add --with-libconv-prefix.
92988         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92989         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92990         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92991         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92992         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92993
92994         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92995         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92996         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92997         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92998         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92999         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93000         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93003
93004         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93005         string.h any more.
93006
93007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93008         not the default value.
93009
93010         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93012         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93013         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93014         Also check for iswcntrl, used for wcwidth fallback.
93015         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93016         to Autoconf 2.13.
93017
93018 2001-08-03  Jim Meyering  <meyering@lucent.com>
93019
93020         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93021         as it was in the original.  Reported by Paul Eggert.
93022
93023 2001-07-16  Jim Meyering  <meyering@lucent.com>
93024
93025         * m4/gettimeofday.m4: New file.
93026         Prompted by a report from Bernhard Baehr.
93027
93028 2001-07-15  Jim Meyering  <meyering@lucent.com>
93029
93030         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93031         stuff. Now it's in ../Makefile.cfg.
93032
93033 2001-07-15  Jim Meyering  <meyering@lucent.com>
93034
93035         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93036         (BUILT_SOURCES): Add unlocked-io.h.
93037         (io_functions): Define.
93038         (unlocked-io.h): New rule.
93039         (DISTCLEANFILES): Add unlocked-io.h.
93040         (all-local): Depend on unlocked-io.h, to ensure it is created.
93041
93042         * lib/unlocked-io.hin: New file
93043
93044         * lib/regex.c: Update from glibc.
93045
93046 2001-07-05  Jim Meyering  <meyering@lucent.com>
93047
93048         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93049         recommendation.
93050         (libfetish_a_SOURCES): Put all .h files here instead.
93051         Remove a thus-exposed (better checks in automake) duplicate and
93052         two unnecessary .h files.
93053
93054 2001-07-04  Jim Meyering  <meyering@lucent.com>
93055
93056         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93057         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93058         distcheck failure.
93059
93060 2001-07-02  Jim Meyering  <meyering@lucent.com>
93061
93062         The following changes were prompted by suggestions from Bruno Haible.
93063
93064         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93065         is now generated.
93066         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93067         definition of EXTRA_DIST.
93068         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93069         ensure that the generated file is created/updated whenever the list
93070         of $(unlocked_functions) is changed.
93071         (jm-glibc-io.m4): New rule.
93072         (unlocked-io.h): New rule -- currently unused.
93073
93074 2001-06-24  Jim Meyering  <meyering@lucent.com>
93075
93076         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93077         unmatched right bracket, rather than kludging it with an extra,
93078         falsely-matching quote in a comment.  Patch by Akim Demaille.
93079
93080 2001-06-11  Jim Meyering  <meyering@lucent.com>
93081
93082         * lib/regex.c: Update from GNU libc.
93083
93084 2001-05-27  Jim Meyering  <meyering@lucent.com>
93085
93086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93087         Check for ut_type in struct utmp.
93088
93089 2001-05-27  Jim Meyering  <meyering@lucent.com>
93090
93091         * lib/readutmp.h (UT_TYPE): Define.
93092
93093 2001-05-24  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/argmatch.c: Include "quote.h".
93096         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93097         quote function.  Reported by Göran Uddeborg.
93098
93099 2001-05-22  Jim Meyering  <meyering@lucent.com>
93100
93101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93102         now that we use the package-supplied version unconditionally.
93103         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93104
93105 2001-05-21  Jim Meyering  <meyering@lucent.com>
93106
93107         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93108         shell syntax errors.
93109
93110 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93111
93112         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93113
93114 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93115
93116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93117         Don't bother to check library strftime, since
93118         we'll be using our own my_strftime function anyway.
93119         Define my_strftime instead of strftime.
93120
93121 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93122
93123         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93124         which is not yet declared.
93125
93126 2001-05-15  Jim Meyering  <meyering@lucent.com>
93127
93128         * m4/regex.m4: Use proper quoting so brackets appear in the test
93129         program.
93130         Reported by, and with help from, Bruno Haible.
93131
93132 2001-05-13  Jim Meyering  <meyering@lucent.com>
93133
93134         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93135         undefined.
93136
93137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93138
93139         dirname code cleanup.  base_name now behaves more compatibly
93140         with POSIX basename when given file names that have trailing
93141         slashes, and similarly for dir_name.  Add new primitives
93142         base_len and dir_len.  Put the directory-name-related decls
93143         into dirname.h.
93144
93145         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93146         * lib/backupfile.c (base_name): Likewise.
93147         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93148         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93149         * lib/makepath.c (strip_trailing_slashes): Likewise.
93150         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93151         ISSLASH): Likewise.
93152         * lib/rename.c (strip_trailing_slashes): Likewise.
93153         * lib/same.c (base_name): Likewise.
93154         * lib/stripslash.c (ISSLASH): Likewise.
93155
93156         * lib/addext.c: Include <dirname.h> after size_t is defined.
93157         * lib/backupfile.c: Likewise.
93158
93159         * lib/addext.c (addext): Use base_len to trim redundant
93160         trailing slashes instead of doing it ourselves.
93161         But do not trim the last slash if it is not redundant.
93162
93163         * lib/backupfile.c (find_backup_file_name,
93164         max_backup_version): Use base_len instead of rolling it ourselves.
93165         Handle the case of "" and (on DOS) "C:" correctly.
93166
93167         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93168         needed. Include <string.h>, <dirname.h>.
93169         (base_name): Allow file names ending in slashes, other than names
93170         that are all slashes.  In this case, return the basename followed
93171         by the slashes.  This is more general, and can be used in places
93172         where the original base_name purposely had an assertion failure.
93173         (base_len): New function.
93174
93175         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93176         Do not include <assert.h>; no longer needed.
93177         Include xalloc.h.
93178         (memrchr): Remove decl.
93179         (dir_name_r): Remove.
93180         (dir_len): Renamed from dirlen.  All callers changed.
93181         Rewrite in terms of base_name, for simplicity and consistency.
93182         (dir_name): Never return NULL.  All callers changed.
93183         Do not include <stdlib.h> in test program; no longer needed.
93184         return 0; is fine for test program.
93185
93186         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93187         New macros.
93188         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93189
93190         * lib/path-concat.c (path_concat): Use base_len to compute
93191         base length, not strlen; this means we cannot rely on memcpy
93192         to null-terminate.
93193
93194         * lib/same.c (STREQ): Remove.
93195         (same_name): Handle the case where the basename ends in trailing '/'.
93196
93197         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93198         a slash was stripped.  Do not strip the last slash after a
93199         file system prefix.
93200
93201 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93202
93203         * lib/Makefile.am (libfetish_a_SOURCES):
93204         Add strftime.c, since we now compile it on all hosts.
93205
93206         * lib/strftime.c (my_strftime):
93207         Define to nstrftime if emacs, but only if my_strftime is not defined.
93208         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93209         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93210         Add one more extra argument: a nanoseconds value.
93211         All uses changed.
93212         (ns): New macro.
93213         (my_strftime function): Add %N format.
93214         (emacs_strftimeu): Renamed from emacs_strftime,
93215         with extra ut argument.
93216
93217 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93218
93219         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93220
93221 2001-04-21  Jim Meyering  <meyering@lucent.com>
93222
93223         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93224         doesn't interfere.
93225
93226 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93227
93228         * m4/ftruncate.m4: Check for chsize.
93229         Link with ftruncate.o unconditionally if ftruncate is missing.
93230         This was required when cross-compiling to i586-mingw32msvc.
93231
93232 2001-04-08  Jim Meyering  <meyering@lucent.com>
93233
93234         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93235         recomputed; that's necessary when the offset spans a DST transition.
93236         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93237
93238 2001-04-02  Jim Meyering  <meyering@lucent.com>
93239
93240         * lib/regex.h, regex.c: Update from GNU libc.
93241
93242 2001-03-24  Jim Meyering  <meyering@lucent.com>
93243
93244         * m4/jm-macros.m4: Require autoconf-2.49d.
93245
93246 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93247
93248         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93249
93250 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93251
93252         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93253
93254 2001-03-17  Jim Meyering  <meyering@lucent.com>
93255
93256         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93257         now that the version in autoconf is equivalent.
93258         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93259
93260         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93261         Suggestion from Akim Demaille.
93262
93263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93264         (jm_PREREQ_TEMPNAME): New function.
93265
93266 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93267
93268         * lib/tempname.c (uint64_t): Define to uintmax_t if
93269         not defined, and if UINT64_MAX is not defined.
93270         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93271         Reported by John David Anglin.
93272
93273 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93274
93275         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93276         resolve alias if codeset is empty.
93277         * lib/config.charset (BeOS): Use wildcard syntax.
93278
93279 2001-03-13  Jim Meyering  <meyering@lucent.com>
93280
93281         * lib/path-concat.c (path_concat)
93282         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93283         concatenating e.g., `C:' and `foo'.
93284         From Bruno Haible.
93285
93286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93287
93288         * lib/localcharset.c (locale_charset): Don't use
93289         setlocale(LC_CTYPE,NULL). Don't return NULL.
93290         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93291
93292 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93293
93294         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93295         support for DOS/DJGPP.
93296
93297 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93298
93299         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93300         lacks mkstemp.  Compile our own tempname.c if we compile our own
93301         mkstemp.c, as mkstemp relies on tempname.
93302
93303 2001-03-01  Jim Meyering  <meyering@lucent.com>
93304
93305         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93306         AH_VERBATIM really does output its argument verbatim.
93307
93308 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93309
93310         * lib/Makefile.am (libfetish_a_SOURCES):
93311         Add dup-safer.c, fopen-safer.c.
93312         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93313
93314         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93315         * lib/unistd-safer.h: New files.
93316
93317 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93318
93319         The mkstemp replacement is taken from glibc 2.2.2, with some
93320         portability fixes for use outside glibc, as follows:
93321
93322         * lib/tempname.c (struct_stat64): New macro.
93323         (direxists, __gen_tempname): Use it.
93324         This avoids a portability problem with Solaris 8.
93325
93326         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93327         (<stddef.h>, <stdint.h>, <string.h>):
93328         Include only if STDC_HEADERS || _LIBC.
93329         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93330         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93331         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93332         (__set_errno): Define this macro if <errno.h> doesn't.
93333         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93334         Define these macros if <stdio.h> doesn't.
93335         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93336         Define these macros if <sys/stat.h>
93337         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93338         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93339         __xstat64): Define if not _LIBC.
93340         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93341         (__gen_tempname): Invoke gettimeofday only if
93342         HAVE_GETTIMEOFDAY || _LIBC;
93343         otherwise, fall back on plain "time".
93344         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93345
93346         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93347
93348         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93349
93350 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93351
93352         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93353
93354 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93355
93356         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93358         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93360
93361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93362
93363         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93364         Remove workaround macros for hosts that have mbrtowc but not
93365         mbstate_t, as we now insist on proper declarations for both
93366         before using mbrtowc.
93367
93368 2001-02-17  Jim Meyering  <meyering@lucent.com>
93369
93370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93371         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93372         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93373         UnixWare 7.1.1.
93374
93375         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93376         rather than AC_CACHE_VAL.
93377
93378 2001-02-17  Jim Meyering  <meyering@lucent.com>
93379
93380         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93381         around included file name.
93382
93383         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93384
93385         * lib/strftime.c: Update from GNU libc (the only changes were to
93386         comments).
93387
93388 2001-02-17  Jim Meyering  <meyering@lucent.com>
93389
93390         * lib/regex.c: Update from libc.
93391
93392 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93393
93394         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93395         clash.
93396
93397 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93398
93399         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93400         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93401         Reported by Mark Hounschell via Paul Eggert.
93402
93403 2001-02-07  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93406
93407 2001-02-05  Jim Meyering  <meyering@lucent.com>
93408
93409         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93410         it includes the patch required for `large file' support with at least
93411         HP-UX's 10.20 /bin/cc.
93412
93413 2001-02-03  Jim Meyering  <meyering@lucent.com>
93414
93415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93416         AS_IF, now that it works once again (mysteriously).
93417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93418
93419 2001-01-30  Jim Meyering  <meyering@lucent.com>
93420
93421         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93422         * m4/chown.m4: Rename conftestchown to conftest.chown.
93423         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93424         s/conftestdir2/conftest.d2/.
93425         * m4/utimes.m4: s/conftestdata/conftest.data/
93426         Inspired by Pavel Roskin's change in autoconf.
93427
93428 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93429
93430         * lib/config.charset: Update for FreeBSD 4.2.
93431
93432 2001-01-27  Jim Meyering  <meyering@lucent.com>
93433
93434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93435         a use of AS_IF.
93436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93437
93438 2001-01-26  Jim Meyering  <meyering@lucent.com>
93439
93440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93441         quotearg.c includes it.
93442
93443 2001-01-26  Jim Meyering  <meyering@lucent.com>
93444
93445         * lib/quotearg.c: Include stddef.h.
93446         * lib/quote.c: Include stddef.h.
93447         Reported by Axel Kittenberger.
93448
93449         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93450         line in double quotes so that it evokes a better diagnostic.
93451         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93452         Reported by Axel Kittenberger.
93453
93454 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93455
93456         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93457         as if it was a `charset'.
93458
93459 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93460
93461         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93462         has const.
93463
93464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93465
93466         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93467         to avoid a warning.  Add back 'const' to inptr.
93468
93469 2001-01-20  Jim Meyering  <meyering@lucent.com>
93470
93471         Be sure that headers are checked before used in code compiled
93472         for the type checks.
93473         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93474         In place of that, invoke jm_CHECK_ALL_TYPES.
93475         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93476         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93477         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93478         The check for ssize_t was mistakenly run before the test for unistd.h.
93479
93480         The configure-time check for stdbool.h was missing.
93481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93482         (jm_PREREQ_HASH): New function.
93483
93484 2001-01-17  Jim Meyering  <meyering@lucent.com>
93485
93486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93487         for autoconf-2.49c.
93488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93489
93490 2001-01-16  Jim Meyering  <meyering@lucent.com>
93491
93492         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93493         From Bruno Haible.
93494
93495 2001-01-14  Jim Meyering  <meyering@lucent.com>
93496
93497         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93498         foo and bar.  Create conftestdir/ in the script, not in the C code.
93499         Remove directories in the script, not in the C code.
93500         Remove conftestdir{,2} before trying to create the directory.
93501         Make the entire configure script fail if the mkdir fails.
93502
93503 2001-01-14  Jim Meyering  <meyering@lucent.com>
93504
93505         * lib/rename.c: New file.  From Volker Borchert.
93506         Include stdlib.h, string.h or strings.h, and xalloc.h.
93507         Use strip_trailing_slashes rather than open-coding it.
93508
93509 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93510
93511         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93512
93513 2001-01-03  Jim Meyering  <meyering@lucent.com>
93514
93515         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93516         of local `inptr' to avoid warning with some system declarations of
93517         iconv.
93518
93519 2001-01-02  Volker Borchert  <bt@teknon.de>
93520
93521         * m4/rename.m4: New file.
93522         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93523
93524 2001-01-01  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93527         even on systems with utmpx.h.  It's necessary for the declaration of
93528         utmp's ut_user member.  Reported by Andreas Jaeger.
93529
93530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93531         available. They are required for the declarations of getgrgid and
93532         getpwuid resp.
93533         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93534         Reported by Andreas Jaeger.
93535
93536 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93537
93538         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93539         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93540         so `make install' also works in VPATH builds.
93541
93542 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93543
93544         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93545         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93546         can be used in subdirectories.
93547
93548 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93549
93550         * lib/modechange.c: Do not assume that mode_t uses the
93551         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93552         the other-execute bit of FOO even if S_IXOTH != 1.
93553
93554         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93555         WOTH, XOTH, ALLM): New macros.
93556         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93557          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93558         Use them.
93559         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93560         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93561         (mode_compile):
93562         No need to use uintmax_t; unsigned long is long enough.
93563         Don't bother to get suffix since we don't use it.
93564
93565 2000-12-26  Jim Meyering  <meyering@lucent.com>
93566
93567         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93568         better with autoheader.
93569
93570 2000-12-24  Jim Meyering  <meyering@lucent.com>
93571
93572         * lib/hash.c (is_prime): Return explicit boolean values.
93573         (hash_get_first): Return NULL to appease Irix5.6's 89.
93574         Reported by Nelson Beebe.
93575
93576 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93577
93578         * lib/localcharset.c (locale_charset): Add support for Win32.
93579
93580 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93581
93582         * lib/physmem.h, lib/physmem.c: New files.
93583
93584         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93585         (noinst_HEADERS): Add physmem.h.
93586
93587         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93588         't' for compatibility with Solaris 8 sort.
93589
93590 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93591
93592         * lib/config.charset: Add support for BeOS.
93593
93594 2000-12-17  Jim Meyering  <meyering@lucent.com>
93595
93596         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93597         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93598
93599 2000-12-16  Jim Meyering  <meyering@lucent.com>
93600
93601         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93602         N and M) would have treated it like `chown N:N FILE'.
93603
93604         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93605
93606 2000-12-16  Jim Meyering  <meyering@lucent.com>
93607
93608         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93609         SHELLS_FILE to a file name that's useful on djgpp systems.
93610         Include stdlib.h.
93611         (ADDITIONAL_DEFAULT_SHELLS): Define.
93612         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93613         Based mostly on a patch from Prashant TR.
93614
93615 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93616
93617         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93618         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93619         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93620
93621 2000-12-08  Andreas Schwab  <schwab@suse.de>
93622
93623         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93624         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93625
93626 2000-12-07  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/stripslash.c (ISSLASH): Define.
93629         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93630         `/'.
93631         From Prashant TR.
93632
93633         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93634         (dir_name_r): Declare this function as static.
93635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93636         manifest itself on a name containing a mix of slashes and
93637         backslashes.
93638         Make this function work with names starting with a DOS-style
93639         drive letter and colon prefix.
93640         (dir_name): Append `.' if necessary.
93641         Based mostly on patches from Prashant TR and Eli Zaretskii.
93642
93643         * lib/dirname.h (dir_name_r): Remove prototype.
93644
93645 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93646
93647         * m4/off_t-format.m4: Remove this file.
93648         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93649
93650 2000-12-06  Jim Meyering  <meyering@lucent.com>
93651
93652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93653         replacement strtoull, we may well need the replacement strtoul, too.
93654         Check for declarations of strtoul and strtoull.
93655         Check for strtol.  Mainly as a cue to cause automake to include
93656         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93657         Check for limits.h -- strtol.c needs it.
93658
93659 2000-12-05  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93662
93663 2000-12-04  Jim Meyering  <meyering@lucent.com>
93664
93665         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93666         Also include memory.h, stdlib.h, unistd.h if appropriate.
93667         Reported by Andreas Jaeger (conflicting declaration of malloc).
93668
93669 2000-12-02  Jim Meyering  <meyering@lucent.com>
93670
93671         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93672         * m4/jm-macros.m4 (jm_MACROS): require it.
93673
93674 2000-12-02  Jim Meyering  <meyering@lucent.com>
93675
93676         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93677
93678 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93679
93680         * lib/memrchr.c: Include <config.h> before any system include file.
93681
93682 2000-11-30  Jim Meyering  <meyering@lucent.com>
93683
93684         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93685
93686 2000-11-30  Jim Meyering  <meyering@lucent.com>
93687
93688         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93689
93690 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93691
93692         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93693
93694 2000-11-26  Jim Meyering  <meyering@lucent.com>
93695
93696         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93697
93698 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93699
93700         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93701         size of (size_t) -1; it's not portable.
93702
93703 2000-11-17  Jim Meyering  <meyering@lucent.com>
93704
93705         * lib/strstr.c: Update from GNU libc.
93706
93707 2000-11-17  Akim Demaille  <akim@epita.fr>
93708
93709         * lib/obstack.h: Formatting changes.
93710         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93711         prevent type checking.
93712         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93713         cast the value to (void *): assigning a `foo *' to a `void *'
93714         variable is valid.
93715         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93716
93717 2000-11-16  Jim Meyering  <meyering@lucent.com>
93718
93719         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93720
93721 2000-11-11  Jim Meyering  <meyering@lucent.com>
93722
93723         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93724
93725 2000-11-10  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/obstack.h: Update from GNU libc.
93728         * lib/obstack.c: Likewise.
93729
93730 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93731
93732         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93733
93734 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93735
93736         * lib/getusershell.c (setusershell): Use rewind rather than
93737         fseek/fseeko, to avoid configuration hassles with fseeko.
93738         Don't bother opening SHELLS_FILE if shellstream is NULL;
93739         it's not necessary.
93740
93741 2000-11-05  Jim Meyering  <meyering@lucent.com>
93742
93743         * lib/makepath.h (make_dir): Declare.
93744         * lib/makepath.c (make_dir): Remove `static' attribute.
93745         Tweak a comment.
93746
93747 2000-11-04  Jim Meyering  <meyering@lucent.com>
93748
93749         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93750
93751 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93752
93753         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93754         last one in a bucket, advance to the next bucket.
93755
93756 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93757
93758         * lib/fnmatch.c: Do not comment out all the code if we are using
93759         the GNU C library, because in some cases we are replacing buggy
93760         code in the GNU C library itself.
93761
93762 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93763
93764         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93765         (regex_compile): Catch bogus \(\1\).
93766
93767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93768
93769         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93770         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93771         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93772
93773 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93774
93775         * lib/error.h, getline.h, modechange.h:
93776         Remove "2000" from Copyright line, as the file hasn't been
93777         changed this year other than in the copyright notice.
93778
93779         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93780         was changed this year.
93781
93782 2000-10-29  Jim Meyering  <meyering@lucent.com>
93783
93784         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93785         renaming.
93786         * m4/ls-mntd-fs.m4: Likewise
93787
93788 2000-10-29  Jim Meyering  <meyering@lucent.com>
93789
93790         * lib/xstat.in: Fix grammar in comment.
93791
93792 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93793
93794         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93795         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93796         doesn't define __restrict_arr.
93797
93798 2000-10-28  Jim Meyering  <meyering@lucent.com>
93799
93800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93801         (jm_PREREQ_MEMCHR): New function.
93802
93803 2000-10-28  Jim Meyering  <meyering@lucent.com>
93804
93805         * lib/memchr.c: Update from libc.
93806         Adjust for portability:
93807         [HAVE_STDLIB_H]: Include stdlib.h.
93808         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93809         Undef __memchr, too.
93810         [!weak_alias]: Define __memchr to memchr.
93811
93812         * lib/regex.c: Update from libc.
93813         * lib/regex.h: Likewise.
93814         * lib/getopt1.c: Likewise.
93815         * lib/memcmp.c: Likewise.
93816
93817         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93818         Avoid using fseek, when possible -- it's broken by design.
93819         Patch by Ulrich Drepper.
93820
93821 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93822
93823         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93824         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93825         Giving in to popular pressure to shut up the compiler with casts.
93826
93827 2000-10-26  Jim Meyering  <meyering@lucent.com>
93828
93829         * lib/strftime.c: Update from libc.
93830
93831 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93832
93833         * regex.c: More `unsigned char' -> `re_char' changes.
93834         Also change several `int' into `re_wchar_t'.
93835         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93836         (PUSH_FAILURE_POINTER): Don't cast any more.
93837         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93838         We want GCC to complain, since this piece of code makes
93839         re_match non-reentrant, which *should* be fixed.
93840         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93841         (EXTEND_BUFFER): Use RETALLOC.
93842         (SET_LIST_BIT): Don't cast.
93843         (re_wchar_t): New type.
93844         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93845         that those two functions will always properly return.
93846         (IMMEDIATE_QUIT_CHECK): Cast to void.
93847         (analyse_first): Use recursion rather than an explicit stack.
93848         (re_compile_fastmap): Can't fail anymore.
93849         (re_search_2): Don't check re_compile_fastmap for failure.
93850         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93851         Now also sets the new value (passed in a new argument).
93852         (re_match_2_internal): Use it.
93853         Also, use a new var `reg' of type size_t when looping through regs
93854         rather than reuse the inappropriate `mcnt'.
93855
93856 2000-10-25  Jim Meyering  <meyering@lucent.com>
93857
93858         * lib/obstack.c: Update from libc.
93859
93860 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93861
93862         * regex.c (regex_compile): Change the way of handling a range from
93863         a char less than 256 to a char not less than 256.
93864
93865 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93866
93867         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93868         NT-Emacs only.
93869         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93870         so that re_search functions only quit when callers expect them to.
93871
93872 2000-10-23  Jim Meyering  <meyering@lucent.com>
93873
93874         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93875         wrong.  That set_locale call must not have any side effects.
93876         From Paul Eggert.
93877
93878 2000-10-22  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93881         [CYCLIC]: Remove now-unused definition.
93882
93883         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93884         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93885         Suggestion from Ulrich Drepper.
93886
93887 2000-10-21  Jim Meyering  <meyering@lucent.com>
93888
93889         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93890         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93892
93893 2000-10-21  Jim Meyering  <meyering@lucent.com>
93894
93895         * lib/dirname.c (memrchr): Declare if necessary.
93896         (dir_name): Remove the restriction that there be no
93897         trailing slashes.  Now, this code skips past them, effectively
93898         ignoring them.
93899         [TEST_DIRNAME] (main): New unit tests.
93900
93901         * lib/memrchr.c: New file from GNU libc.
93902         Undef __memrchr, too.
93903         [!weak_alias]: Define __memrchr to memrchr.
93904         Guard weak_alias use with `#ifdef weak_alias'.
93905
93906 2000-10-21  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93909         (dir_name): Use dir_name_r.
93910         * lib/dirname.h (dir_name_r): Declare it.
93911
93912 2000-10-17  Jim Meyering  <meyering@lucent.com>
93913
93914         * lib/quote.h (PARAMS): Define and use.
93915         Reported by Akim Demaille.
93916
93917         * lib/getopt.c: Update from libc.
93918
93919 2000-10-16  Jim Meyering  <meyering@lucent.com>
93920
93921         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93922         setlocale.
93923         From Jan Fedak.
93924
93925 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93926
93927         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93928
93929 2000-09-25  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/md5.h (rol): Define (from GnuPG).
93932
93933         * lib/sha.c: Give credit (GnuPG) where due.
93934         (M): Use rol rather than open-coding it.
93935         Add a FIXME comment.
93936
93937 2000-09-21  Jim Meyering  <meyering@lucent.com>
93938
93939         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93940         Reported by Michael Stone.
93941
93942 2000-09-20  Jim Meyering  <meyering@lucent.com>
93943
93944         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93945         (noinst_HEADERS): Add sha.h.
93946         Based on code from Scott G. Miller and from GnuPG.
93947
93948 2000-09-18  Jim Meyering  <meyering@lucent.com>
93949
93950         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93951         LIBS. Otherwise, everyone ends up linking with -lelf for some
93952         configurations.
93953         Reported by Mike Stone.
93954
93955 2000-09-15  Jim Meyering  <meyering@lucent.com>
93956
93957         * lib/regex.c: Update from libc.
93958
93959 2000-09-10  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/getopt.c (_getopt_internal): Update from glibc.
93962
93963 2000-09-09  Jim Meyering  <meyering@lucent.com>
93964
93965         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93966         think it should be used as a general replacement for isascii.
93967         * lib/fnmatch.c: Likewise.
93968         * lib/mbswidth.c: Likewise
93969         * lib/regex.c: Likewise.
93970
93971         Don't use atoi.
93972         * lib/userspec.c: Include sys/param.h and limits.h.
93973         Include xstrtol.h.
93974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93975         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93976         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93977         UID, GID.  Check range.
93978
93979 2000-09-06  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/getopt.c (_getopt_internal): Update from glibc.
93982
93983 2000-08-30  Jim Meyering  <meyering@lucent.com>
93984
93985         * lib/strftime.c: Merge in changes from GNU libc.
93986
93987 2000-08-26  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93990         * m4/fpending.m4: New file.
93991
93992 2000-08-26  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/closeout.c: Include "__fpending.h".
93995         (close_stdout_status): Return right away if there's nothing to flush.
93996
93997         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93998         * lib/__fpending.c: New file.
93999         * lib/__fpending.h: New file.
94000
94001 2000-08-20  Jim Meyering  <meyering@lucent.com>
94002
94003         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94004         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94005         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94006
94007 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94008
94009         Improve fileutils installation on systems where running
94010         programs (like install) can't be unlinked.
94011         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94012         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94013
94014 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94015
94016         Standardize on "memory exhausted" instead of "Memory exhausted"
94017         or "virtual memory exhausted".
94018         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94019         "virtual memory exhausted".
94020         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94021         our own message.
94022         * lib/userspec.c (parse_user_spec): Likewise.
94023         * lib/bumpalloc.h: comment fix
94024         * lib/same.c, userspec.c: Include xalloc.h.
94025
94026         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94027         not char *const and pointing to a constant array.
94028         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94029         (xrealloc): Comment fix.
94030
94031         * lib/userspec.c (parse_user_spec):
94032         Don't translate a message until just before returning,
94033         to avoid unnecessary translation.
94034
94035 2000-08-07  Jim Meyering  <meyering@lucent.com>
94036
94037         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94038         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94039         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94040         getgroups.c, gethostname.c, getopt.h, group-member.c,
94041         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94042         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94043         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94044         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94045         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94046         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94047         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94048         yesno.c: Back out Copyright date changes for each file with no change
94049         this year.  This eases coordination with other programs using the same
94050         source code modules.  From Paul Eggert.
94051
94052 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94053
94054         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94055         not char, for compatibility with glibc 2.1.3 strftime.c.
94056
94057 2000-08-03  Greg McGary  <greg@mcgary.org>
94058
94059         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94060         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94061         (EXTEND_BUFFER): Use them.
94062
94063 2000-08-01  Jim Meyering  <meyering@lucent.com>
94064
94065         * lib/dirname.c (ISSLASH): Define.
94066         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94067         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94068         both `\' and `/' may be use as path separators.
94069         Based on a patch from Prashant TR.
94070
94071 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94072
94073         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94074         slot vector a constant, since it might get modified.
94075
94076 2000-07-31  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/xmalloc.c: Use `virtual memory exhausted', not
94079         `Memory exhausted'.
94080         * lib/obstack.c (print_and_abort): Likewise.
94081
94082 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94083
94084         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94085         buffer, so that the caller can always quote one small
94086         component of a "memory exhausted" message in slot 0.
94087         From a suggestion by Jim Meyering.
94088
94089 2000-07-30  Jim Meyering  <meyering@lucent.com>
94090
94091         * lib/makepath.c (make_path): Quote the other instance, too.
94092
94093         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94094         (STATIC_BUF_SIZE): Define.
94095         (quotearg_n_options): Use only statically allocated storage when
94096         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94097         than STATIC_BUF_SIZE.
94098
94099 2000-07-29  Jim Meyering  <meyering@lucent.com>
94100
94101         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94102         * lib/dirname.c (dir_name): Likewise.
94103
94104         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94105         `/'.
94106
94107         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94108         (dir_name): Assert that there are no trailing slashes.
94109
94110 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94111
94112         * lib/mbswidth.h (mbswidth): Add a flags argument.
94113         (mbswidth): New declaration.
94114         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94115         * lib/mbswidth.c (mbswidth): Add a flags argument.
94116         (mbsnwidth): New function.
94117
94118 2000-07-24  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94121
94122 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94123
94124         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94125
94126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94127
94128         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94129         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94130         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94131         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94132         invoke multibyte primitives.
94133
94134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94135
94136         * lib/quotearg.c:
94137         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94138         so that mbstate_t is always defined.
94139
94140         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94141         be 1 in at least one GCC installation, and this configuration
94142         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94143         performance on hosts that have mbrtowc but have only unibyte
94144         locales, but I assume these hosts are rare.
94145
94146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94147
94148         * lib/mbswidth.c (_XOPEN_SOURCE):
94149         Don't define; this causes problems on Solaris 7.
94150         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94151
94152 2000-07-23  Jim Meyering  <meyering@lucent.com>
94153
94154         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94155         too: getgrgid, getpwuid, getuid.
94156
94157 2000-07-23  Jim Meyering  <meyering@lucent.com>
94158
94159         * lib/basename.c (base_name): Add an assertion.
94160
94161 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94162
94163         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94164         shadow its mbsinit function.
94165
94166 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94167
94168         * lib/mbswidth.h: New file.
94169         * lib/mbswidth.c: New file.
94170         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94171         (noinst_HEADERS): Add mbswidth.h.
94172
94173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94174
94175         * lib/config.charset: Add support for FreeBSD. Improve support for
94176         HP-UX and IRIX 6.
94177
94178 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94179
94180         * m4/mbswidth.m4: New file.
94181         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94182
94183 2000-07-15  Jim Meyering  <meyering@lucent.com>
94184
94185         * lib/makepath.c: Include quote.h.
94186         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94187         corresponding argument in a `quote (...)' call.
94188         Give better diagnostics.
94189
94190         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94191         (noinst_HEADERS): Add quote.h.
94192
94193         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94194         from tar's src/misc.c.
94195         * lib/quote.h: New file.  Prototypes for same.
94196
94197 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94198
94199         From a suggestion by Bruno Haible.
94200         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94201         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94202         to decide whether to define the BeOS workaround macro;
94203         this adjusts to the change to AC_MBSTATE_T.
94204
94205 2000-07-14  Jim Meyering  <meyering@lucent.com>
94206
94207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94208         jm_AC_TYPE_UINTMAX_T.
94209
94210 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94211
94212         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94213
94214         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94215         quotearg_buffer_restyled): Add support for
94216         clocale_quoting_style.  Undo previous change to
94217         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94218         and "{RIGHT QUOTATION MARK}" msgids.
94219
94220 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94221
94222         From a suggestion by Bruno Haible.
94223         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94224         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94225         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94226         and mbstate_t, to a single-part test that simply defines mbstate_t.
94227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94228         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94229
94230 2000-07-10  Jim Meyering  <meyering@lucent.com>
94231
94232         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94233
94234         * m4/gnu-source.m4: Output to confdefs.h directly.
94235         Suggestion from Akim Demaille.
94236
94237 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94238
94239         The old behavior of quoting `like this' doesn't look good with
94240         newer, ISO-style fonts.  See:
94241         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94242
94243         Instead, quote "like this" by default.  Let the translator
94244         tailor the locale-specific quoting behavior by providing
94245         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94246
94247         * lib/quotearg.c (N_): New macro.
94248         (gettext_default): New function.
94249         (quotearg_buffer_restyled): Use
94250         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94251         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94252
94253 2000-07-09  Jim Meyering  <meyering@lucent.com>
94254
94255         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94256         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94257
94258         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94260
94261 2000-07-09  Jim Meyering  <meyering@lucent.com>
94262
94263         * lib/Most files: Update copyright dates to include 2000.
94264
94265 2000-07-08  Jim Meyering  <meyering@lucent.com>
94266
94267         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94268         if not defined.
94269         (xgethostname): Remove now-unnecessary #ifdef.
94270         Move declaration of `err' into loop where it's used.
94271
94272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94273         and Bruno Haible  <haible@clisp.cons.org>
94274
94275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94276         only if the test for an object-type mbstate_t fails.  This
94277         prevents us from mistakenly reporting that mbstate_t is a
94278         system object type after we "#define mbstate_t int" to work
94279         around its lack.
94280
94281 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94282         and Bruno Haible  <haible@clisp.cons.org>
94283
94284         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94285
94286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94287
94288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94289         to strerror_r.
94290         Include <ctype.h> for use of isalpha.
94291
94292 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94293
94294         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94295         by allocating a larger buffer. Test the gethostname return value for
94296         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94297         returns an error and ENAMETOOLONG isn't defined.
94298
94299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94300
94301         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94302         dimension.
94303
94304 2000-07-04  Jim Meyering  <meyering@lucent.com>
94305
94306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94307         of the deprecated AC_CHECKING.
94308
94309 2000-07-04  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94312         Reported by Bruno Haible.
94313
94314 2000-07-04  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94317         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94318         lacks mbrtowc.
94319
94320 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94321
94322         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94323         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94324
94325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94326         and Bruno Haible  <haible@clisp.cons.org>
94327
94328         * lib/quotearg.c (mbrtowc):
94329         Assign to *pwc, and return 1 only if result is nonzero.
94330         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94331
94332 2000-07-03  Jim Meyering  <meyering@lucent.com>
94333
94334         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94335
94336 2000-07-03  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94339         This is necessary to get a definition of e.g., UTMP_FILE on
94340         HP-UX 10.20.
94341         From Bob Proulx.
94342
94343 2000-07-02  Jim Meyering  <meyering@lucent.com>
94344
94345         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94346
94347         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94348         AC_LIBOBJ(function_name).
94349         * m4/chown.m4: Likewise.
94350         * m4/fnmatch.m4: Likewise.
94351         * m4/ftruncate.m4: Likewise.
94352         * m4/getgroups.m4: Likewise.
94353         * m4/getline.m4: Likewise.
94354         * m4/group-member.m4: Likewise.
94355         * m4/jm-macros.m4: Likewise.
94356         * m4/lstat.m4: Likewise.
94357         * m4/malloc.m4: Likewise.
94358         * m4/memcmp.m4: Likewise.
94359         * m4/nanosleep.m4: Likewise.
94360         * m4/putenv.m4: Likewise.
94361         * m4/realloc.m4: Likewise.
94362         * m4/regex.m4: Likewise.
94363         * m4/stat.m4: Likewise.
94364         * m4/strftime.m4: Likewise.
94365
94366 2000-07-02  Jim Meyering  <meyering@lucent.com>
94367
94368         * lib/quotearg.c (mbstate_t): Don't define here.
94369
94370 2000-07-02  Jim Meyering  <meyering@lucent.com>
94371
94372         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94373
94374 2000-07-01  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94377
94378 2000-07-01  Jim Meyering  <meyering@lucent.com>
94379
94380         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94381         problem.
94382
94383 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94384
94385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94386         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94387
94388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94389
94390         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94391         per change in ../m4/ls-mntd-fs.m4.
94392         (read_filesystem_list): Ignore symbolic links.
94393
94394 2000-06-29  Jim Meyering  <meyering@lucent.com>
94395
94396         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94397         for declaration of strcmp.
94398
94399         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94400
94401         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94402         Avoid warning by casting result to `char *' to remove `const'.
94403
94404 2000-06-28  Jim Meyering  <meyering@lucent.com>
94405
94406         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94407         included by quotearg.c, for which we perform this test.  From
94408         Bruno Haible.
94409
94410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94411
94412         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94414         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94415
94416 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94417
94418         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94419
94420 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94421
94422         savedir now sets errno on failure and invokes xmalloc to get memory.
94423         Fix a couple of other minor bugs while we're at it.
94424
94425         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94426         (NAMLEN): Remove macro.
94427         (malloc, realloc): Remove decls.
94428         (stpcpy): Likewise.
94429         ("xalloc.h"): Include.
94430         (NAME_SIZE_DEFAULT): New macro.
94431         (savedir): Use xmalloc / xrealloc to allocate memory.
94432         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94433         Skip "" directory entries.
94434         Use strlen to calculate directory entry length, since the old method
94435         is rarely used these days and isn't worth supporting.
94436         Don't use a pointer after freeing it.
94437         Check for integer overflow when calculating allocation size.
94438         Use memcpy to copy entries, instead of stpcpy.
94439         Set errno properly when returning NULL.
94440         Check for readdir error.
94441
94442 2000-06-26  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94445
94446 2000-06-25  Jim Meyering  <meyering@lucent.com>
94447
94448         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94449         Linux header bug when _XOPEN_SOURCE is defined to 500.
94450
94451 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94452
94453         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94454         deficiency.
94455
94456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94457
94458         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94459         Include xalloc.h.
94460         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94461
94462 2000-06-24  Jim Meyering  <meyering@lucent.com>
94463
94464         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94465         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94466         for which strerror does return char*, but which lacks a conveniently
94467         accessible declaration of the function.  If the compile-test says
94468         strerror_r doesn't work, then resort to a `run'-test that works on
94469         BeOS and segfaults on DEC Unix.
94470
94471 2000-06-24  Jim Meyering  <meyering@lucent.com>
94472
94473         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94474
94475 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94476
94477         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94479
94480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94481
94482         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94483         (mbrtowc, mbstate_t): Define substitutes if
94484         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94485         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94486         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94487
94488 2000-06-23  Jim Meyering  <meyering@lucent.com>
94489
94490         * m4/afs.m4: Add missing AC_MSG_RESULT.
94491         Reported by Bruno Haible.
94492
94493         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94494         Suggestion from Bruno Haible.
94495
94496 2000-06-23  Jim Meyering  <meyering@lucent.com>
94497
94498         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94499
94500 2000-06-21  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94503
94504 2000-06-21  Jim Meyering  <meyering@lucent.com>
94505
94506         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94507         (noinst_HEADERS): Add getstr.h.
94508
94509         * lib/getline.c (getstr): Move into a separate file.
94510         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94511         the following changes: new parameter, delim2; both delim[12]
94512         parameters have type `int', not `char'.  The latter would lose
94513         with 8-bit delimiters.
94514         * lib/getstr.h: New file.
94515
94516 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94517
94518         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94519         than 1024, return a memory chunk of least possible size, instead
94520         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94521         Use free/xmalloc instead of xrealloc to avoid copying for very long
94522         paths.
94523
94524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94525
94526         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94527         the empty string.
94528
94529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94530
94531         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94532         address, not strdup.  Include <stdlib.h> and don't declare free().
94533
94534 2000-06-19  Jim Meyering  <meyering@lucent.com>
94535
94536         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94537
94538 2000-06-18  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94541
94542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94543         `checking whether...' message to be consistent with that of the
94544         lstat test.
94545
94546 2000-06-18  Jim Meyering  <meyering@lucent.com>
94547
94548         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94549         Besides, these days every porting target provides a mkdir function.
94550
94551         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94552         needed. (this snippet comes from src/system.h).
94553
94554 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94555
94556         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94557
94558 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94559
94560         * lib/human.c (adjust_value): New function.
94561         (human_readable_inexact): Apply rounding style even when
94562         printing approximate values.
94563
94564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94565
94566         * lib/human.c (human_readable_inexact): Allow an input block
94567         size that is not a multiple of the output block size, and vice versa.
94568         Reported by Piergiorgio Sartor.
94569
94570 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94571
94572         * lib/getdate.y (get_date): Apply relative times after time
94573         zone indicator, not before.  Reported by Todd A. Jacobs.
94574
94575 2000-06-13  Jim Meyering  <meyering@lucent.com>
94576
94577         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94578
94579         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94580
94581 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94582
94583         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94584
94585 2000-06-12  Jim Meyering  <meyering@lucent.com>
94586
94587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94588         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94589         optional argument.
94590         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94591         the optional argument, `lib'.
94592
94593 2000-06-08  Jim Meyering  <meyering@lucent.com>
94594
94595         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94596
94597 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94598
94599         Rewrite largefile configuration so that we don't need to run
94600         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94601         AC_CANONICAL_HOST in configure.in -- jmm]
94602
94603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94604         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94605         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94606         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94607         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94608         All uses changed.
94609         Instead of inspecting the output of getconf, try to compile the
94610         test program without and with the macro definition.
94611         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94612         for getconf.  Instead, check for the needed flags by compiling
94613         test programs.
94614
94615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94616
94617         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94618
94619 2000-06-04  Jim Meyering  <meyering@lucent.com>
94620
94621         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94622         SunOS 4.1.4 for which gid_t is an unsigned type.
94623
94624 2000-06-03  Jim Meyering  <meyering@lucent.com>
94625
94626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94627         now that autoconf requires that.
94628
94629         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94630         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94631         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94632
94633 2000-06-03  Jim Meyering  <meyering@lucent.com>
94634
94635         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94636
94637 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94638
94639         * m4/glibc21.m4: New file.
94640         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94641
94642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94643
94644         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94645         newer, don't install charset.alias.
94646         * lib/config.charset: Change the Linux/glibc rules so they become empty
94647         on glibc-2.1 or newer.
94648
94649 2000-06-02  Jim Meyering  <meyering@lucent.com>
94650
94651         * lib/mountlist.c: Back out last change.  Instead, do this...
94652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94653         me_dummy member using the same `ignore'-testing code.
94654         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94655         fs_type strings.
94656         From Mark D. Roth.
94657
94658 2000-05-29  Jim Meyering  <meyering@lucent.com>
94659
94660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94661         mounts with the `ignore' attribute.  Based on a patch from
94662         Mark D. Roth.
94663
94664 2000-05-28  Jim Meyering  <meyering@lucent.com>
94665
94666         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94667         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94668         * m4/stat.m4: Likewise.
94669         * m4/lstat.m4: Likewise.
94670         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94671
94672         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94673         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94674
94675 2000-05-26  Jim Meyering  <meyering@lucent.com>
94676
94677         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94678
94679 2000-05-24  Jim Meyering  <meyering@lucent.com>
94680
94681         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94682         autoconf requires that.
94683         * m4/lib-check.m4: Likewise.
94684         * m4/jm-macros.m4: Likewise.
94685         * m4/strftime.m4: Likewise.
94686
94687         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94688         AC_CHECK_DECLS, now that autoconf requires that.
94689
94690 2000-05-22  Jim Meyering  <meyering@lucent.com>
94691
94692         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94693         * m4/lstat.m4: Likewise.
94694
94695 2000-05-22  Jim Meyering  <meyering@lucent.com>
94696
94697         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94698
94699 2000-05-20  Jim Meyering  <meyering@lucent.com>
94700
94701         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94702         (jm_PREREQ): Use it.
94703
94704 2000-05-18  Jim Meyering  <meyering@lucent.com>
94705
94706         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94707         back, too, since it may have been modified by allocate_entry.
94708         (hash_delete): Rewrite to use neither the assignment operator
94709         nor the comma operator in an if-expression.
94710
94711 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94712
94713         * lib/closeout.c:
94714         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94715         Remove; no longer needed.
94716         "quotearg.h": Add include.
94717         (file_name): Do not bother to explicitly initialize to NULL; it's less
94718         efficient on some hosts.
94719         (close_stdout_status): Remove test as to whether stdout was already
94720         closed; it breaks for the case "echo x | sort >&-".
94721         Quote file name colons.
94722         Do not assume that _("write error") lacks format strings.
94723
94724 2000-05-15  Jim Meyering  <meyering@lucent.com>
94725
94726         * lib/version-etc.c (version_etc_copyright): Update the copyright
94727         string used in all --version output.
94728
94729 2000-05-14  Jim Meyering  <meyering@lucent.com>
94730
94731         * lib/closeout.c (close_stdout_set_file_name): New function.
94732         (close_stdout_status): Use new file-scoped global.
94733         Return right away if fstat says the stdout file descriptor is invalid.
94734         * lib/closeout.h (close_stdout_set_file_name): Declare.
94735
94736 2000-05-10  Jim Meyering  <meyering@lucent.com>
94737
94738         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94739         (close_stdout_set_status): New function.
94740         * lib/closeout.h (close_stdout_set_status): Declare.
94741
94742 2000-05-09  Jim Meyering  <meyering@lucent.com>
94743
94744         * m4/gettext.m4: Rename this...
94745         * m4/libintl.m4: ...to this.
94746
94747 2000-05-08  Jim Meyering  <meyering@lucent.com>
94748
94749         * lib/long-options.c: Don't include closeout.h.
94750         (parse_long_options): Don't call close_stdout for --version.
94751
94752 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94753
94754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94755         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94756         2.1.3 bug.  This avoids a clash when files like regex.c define
94757         _GNU_SOURCE.
94758
94759 2000-05-06  Jim Meyering  <meyering@lucent.com>
94760
94761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94762         (AC_REPLACE_FUNCS): Add strnlen.
94763
94764         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94765         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94766
94767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94768         AC_SEARCH_LIBS call for nanosleep.
94769         (LIB_NANOSLEEP): Set and AC_SUBST.
94770
94771 2000-05-06  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/strnlen.c: Undefine __strnlen and strnlen.
94774         [!weak_alias]: Define __strnlen to strnlen.
94775
94776         * lib/atexit.c: New file, from libiberty.
94777
94778 2000-05-06  Jim Meyering  <meyering@lucent.com>
94779
94780         * lib/closeout.c (close_stdout_status): Also check for errors on the
94781         stderr stream.
94782
94783 2000-05-05  Jim Meyering  <meyering@lucent.com>
94784
94785         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94786         AC_SEARCH_LIBS call for clock_gettime.
94787         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94788
94789         * m4/search-libs.m4: Update from autoconf.
94790
94791         su doesn't work on Solaris 2.6.
94792         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94793         <shadow.h>.  Reported by Dragos Harabor.
94794
94795 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94796
94797         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94798         memcpy instead of xmalloc, xrealloc, path_concat.
94799         (locale_charset): Treat empty environment variables as absent.
94800         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94801
94802 2000-05-04  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/getopt.c: Update from glibc.
94805         * lib/obstack.c: Likewise.
94806         * lib/obstack.h: Likewise.
94807         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94808         file
94809
94810         * lib/regex.h: Likewise.
94811         * lib/strndup.c: Likewise.
94812         * lib/strnlen.c: New file, from glibc.
94813
94814 2000-05-03  Jim Meyering  <meyering@lucent.com>
94815
94816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94817
94818 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94819
94820         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94821         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94822         compile-time test, rather than inspecting host and OS, to
94823         decide whether to define _LARGEFILE_SOURCE.
94824
94825 2000-05-01  Jim Meyering  <meyering@lucent.com>
94826
94827         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94828
94829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94830         Based on a patch from Bruno Haible.
94831
94832 2000-05-01  Jim Meyering  <meyering@lucent.com>
94833
94834         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94835
94836 2000-04-29  Jim Meyering  <meyering@lucent.com>
94837
94838         * lib/path-concat.c: Declare strdup only if it's not defined.
94839         * lib/canon-host.c: Likewise.
94840
94841 2000-04-28  Jim Meyering  <meyering@lucent.com>
94842
94843         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94844         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94845         is included first, then limits.h is included by locale.h by libintl.h.
94846         From John David Anglin.
94847
94848 2000-04-25  Jim Meyering  <meyering@lucent.com>
94849
94850         * lib/makepath.c (S_IRWXUGO): Define.
94851         (make_path): Always perform explicit chmod if MODE specifies any
94852         of the `special' permission bits.  Prompted by a bug report against
94853         install from Mate Wierdl and Joost van Baal.
94854
94855 2000-04-18  Jim Meyering  <meyering@lucent.com>
94856
94857         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94858         (jm_PREREQ): Use it.
94859
94860 2000-04-18  Jim Meyering  <meyering@lucent.com>
94861
94862         * lib/README: New file.
94863
94864         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94865         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94866
94867 2000-04-17  Jim Meyering  <meyering@lucent.com>
94868
94869         Get it right :-)
94870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94871         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94872         Suggestion from Akim Demaille.
94873
94874 2000-04-17  Jim Meyering  <meyering@lucent.com>
94875
94876         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94877         the definition of it to rpl_strftime also defined-away the system's
94878         declaration.
94879
94880 2000-04-15  Jim Meyering  <meyering@lucent.com>
94881
94882         Use `C' to denote so-called `contiguous' files, the same way
94883         that tar does.
94884         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94885         (ftypelet): Use S_ISCTG.
94886         From Michael Deutschmann.
94887
94888 2000-04-14  Jim Meyering  <meyering@lucent.com>
94889
94890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94891         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94892         clobbered.
94893
94894 2000-04-14  Jim Meyering  <meyering@lucent.com>
94895
94896         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94897
94898 2000-04-13  Jim Meyering  <meyering@lucent.com>
94899
94900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94901         AH_VERBATIM to insert required #ifndef into config.h.in.
94902         Suggestion from Akim Demaille.
94903
94904 2000-04-12  Jim Meyering  <meyering@lucent.com>
94905
94906         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94907         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94908         Christian Krackowizer.
94909
94910         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94911         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94912         (AC_SYS_LARGEFILE): Require.
94913         (AM_C_PROTOTYPES): Require.
94914
94915 2000-04-08  Jim Meyering  <meyering@lucent.com>
94916
94917         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94918         names don't conflict.  Reported by Eli Zaretskii.
94919
94920 2000-04-07  Jim Meyering  <meyering@lucent.com>
94921
94922         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94923         sys/types.h, to work around system header problems on AIX 3.2.5.
94924         From Bruno Haible.
94925
94926 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94927
94928         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94929         bug.  Deal with the different error behavior of Irix iconv.
94930
94931 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94932
94933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94934         IRIX if the installer said otherwise.
94935
94936 2000-04-05  Jim Meyering  <meyering@lucent.com>
94937
94938         Portability tweaks required for ultrix4.3.
94939         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94940         (jm_CHECK_DECLS): Add getutent to the list of functions.
94941         (_jm_DECL_HEADERS): Add utmpx.h.
94942         From John David Anglin.
94943
94944         * m4/strftime.m4: Back out the 2000-04-02 change.
94945         Instead of that change, simply undefine putenv in the test program.
94946
94947 2000-04-05  Jim Meyering  <meyering@lucent.com>
94948
94949         Portability tweaks required for ultrix4.3.
94950         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94951         getutent.
94952         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94953         * lib/canon-host.c: Declare strdup.
94954         * lib/path-concat.c: Likewise.
94955         From John David Anglin.
94956
94957 2000-04-04  Jim Meyering  <meyering@lucent.com>
94958
94959         Be more DOS 8.3-friendly.
94960         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94961         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94962         * lib/Makefile.am: Reflect renaming.
94963         Reported by Eli Zaretskii.
94964
94965         Use a temporary file name that won't clash with `charset.alias'
94966         in the DOS 8.3 name space.
94967         * lib/Makefile.am (charset_tmp): Define.
94968         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94969         (uninstall-local): Likewise.
94970         Reported by Eli Zaretskii.
94971
94972 2000-04-03  Jim Meyering  <meyering@lucent.com>
94973
94974         * m4/gettext.m4: Fix typo in comment.
94975
94976         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94977         textutils/configure.in).  Suggestion from Paul Eggert.
94978         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94979
94980 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94981
94982         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94983         variable in the shell rather than using putenv, which isn't
94984         portable.  This avoids the configure-time inter-test dependency
94985         on the potentially-renamed putenv function.
94986
94987 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94988
94989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94990         before checking struct stat.st_blksize, so that
94991         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94992
94993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94994
94995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94996         since strftime.c uses HAVE_STRFTIME to decide whether to use
94997         the underlying strftime.
94998
94999 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95000
95001         * lib/time/strftime.c (my_strftime): Make sure we call the system
95002         strftime, not ourselves, when invoking the underlying strftime.
95003
95004 2000-03-24  Jim Meyering  <meyering@lucent.com>
95005
95006         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95007         (charset_alias): Define.
95008         (install-exec-local): Factor out common code.
95009         (uninstall-local): Split lines longer than 80.
95010         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95011         (SUFFIXES): Define.
95012         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95013         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95014
95015 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95016
95017         * lib/config.charset: Output a line containing "Packages using this
95018         file".
95019         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95020         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95021         ref-del.sed): New rules.
95022
95023 2000-03-17  Jim Meyering  <meyering@lucent.com>
95024
95025         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95026         Otherwise, include <strings.h>
95027
95028 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95029
95030         * lib/unicodeio.c (utf8_wctomb): New function.
95031         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95032         format instead of in UCS-4 with platform dependent endianness.
95033
95034 2000-03-10  Jim Meyering  <meyering@lucent.com>
95035
95036         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95037         From Marco Franzen.
95038
95039 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95040
95041         * lib/savedir.c (savedir): Work even if directory size is
95042         negative; this can happen with some screwy NFS configurations.
95043
95044 2000-03-06  Jim Meyering  <meyering@lucent.com>
95045
95046         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95047         if it's NULL (because we ran out of memory).  From Bruno Haible.
95048
95049 2000-03-05  Jim Meyering  <meyering@lucent.com>
95050
95051         * lib/localcharset.c ("path-concat.h"): Include.
95052         (get_charset_aliases): Use path_concat instead of ANSI string
95053         concatenation.
95054
95055         * lib/unicodeio.h (PARAMS): Define.
95056         Use it to guard prototype.
95057
95058 2000-03-04  Jim Meyering  <meyering@lucent.com>
95059
95060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95061         for lib/localcharset.c.
95062
95063 2000-03-04  Jim Meyering  <meyering@lucent.com>
95064
95065         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95066         installing into it.
95067         (uninstall-local): Uncomment this rule so `make distcheck' works
95068         once again.
95069
95070         * lib/unicodeio.c (<errno.h>): Include it.
95071         (errno): Declare if not defined.
95072
95073         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95074
95075         * lib/config.charset: New version, incorporating remarks from a linux
95076         i18n mailing list.  From Bruno Haible.
95077
95078 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95079
95080         * m4/codeset.m4: New file.
95081         * m4/iconv.m4: New file.
95082         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95083
95084 2000-03-03  Jim Meyering  <meyering@lucent.com>
95085
95086         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95087
95088 2000-03-02  Jim Meyering  <meyering@lucent.com>
95089
95090         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95091         the messages come out on separate lines.
95092
95093         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95094         rather than jm_CHECK_DECLARATIONS.
95095         * m4/decl.m4: Remove now-unused file.
95096
95097         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95098         geteuid.
95099
95100 2000-03-02  Jim Meyering  <meyering@lucent.com>
95101
95102         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95103
95104 2000-03-01  Jim Meyering  <meyering@lucent.com>
95105
95106         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95107         * lib/unicodeio.c: Likewise.
95108
95109 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95110
95111         * lib/config.charset: New file.
95112         * lib/localcharset.c: New file.
95113         * lib/unicodeio.h, lib/unicodeio.c: New files.
95114         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95115         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95116         (noinst_HEADERS): Add unicodeio.h.
95117         (all-local, install-exec-local, charset.alias): New targets.
95118
95119 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95120
95121         * lib/quotearg.c (ALERT_CHAR): New macro.
95122         (quotearg_buffer_restyled): Use it.
95123
95124 2000-02-27  Jim Meyering  <meyering@lucent.com>
95125
95126         * m4/check-decl.m4: Add getenv to the list.
95127
95128 2000-02-27  Jim Meyering  <meyering@lucent.com>
95129
95130         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95131         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95132
95133         * lib/backupfile.c: Guard inclusion of stdlib.h with
95134         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95135         Declare malloc if needed.
95136
95137         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95138         `#ifndef HAVE_DECL..'
95139         now that autoconf always defines the HAVE_DECL_ symbols.
95140         * lib/human.c: Likewise.
95141         * lib/same.c: Likewise.
95142         * lib/strtoumax.c: Likewise.
95143
95144         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95145         declaration check was not run.
95146         * lib/hash.c: Likewise.
95147         * lib/human.c: Likewise.
95148         * lib/same.c: Likewise.
95149         * lib/strtoumax.c: Likewise.
95150
95151         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95152         `.', then first look up the entire `.'-containing string as a login
95153         name.
95154
95155 2000-02-23  Jim Meyering  <meyering@lucent.com>
95156
95157         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95158         in place of my hack.
95159
95160 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95161
95162         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95163         (textint): New typedef.
95164         (parser_control): Member year changed from int to textint.
95165         All uses changed.
95166         (YYSTYPE): Removed; replaced by %union with int and textint members.
95167         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95168         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95169         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95170         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95171         (date, number, to_year): Use width of number in digits, not its value,
95172         to determine whether it's a 2-digit year, or a 2-digit time.
95173         (yylex): Store number of digits of numeric tokens.
95174         Reported by John Kendall.
95175
95176         (parser_control): Changed from struct parser_control to typedef (for
95177         consistency).  All uses changed.
95178
95179         (tID): Removed; not used.
95180         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95181
95182 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95183
95184         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95185         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95186
95187 2000-02-12  Jim Meyering  <meyering@lucent.com>
95188
95189         * lib/userspec.c (ISDIGIT): Define it.
95190         (isdigit): Remove definition.
95191         (is_number): Use ISDIGIT, not isdigit.
95192         <libintl.h>: Include.
95193         (_ and N_): Define.
95194         (parse_user_spec): Mark translatable strings.
95195
95196 2000-02-10  Jim Meyering  <meyering@lucent.com>
95197
95198         With these changes, nanosleep.[ch] are finally enough like the other
95199         lib/* replacement files to compile on a few more losing systems.
95200
95201         * lib/nanosleep.h: Don't include config.h.
95202         Remove prototype from declaration of nanosleep.
95203         (PARAMS): Remove now-unneeded definition.
95204         * lib/nanosleep.c: #undef nanosleep.
95205         (rpl_nanosleep): Rename from nanosleep.
95206
95207 2000-02-10  Jim Meyering  <meyering@lucent.com>
95208
95209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95210         gnu_nanosleep to rpl_nanosleep.
95211
95212 2000-02-09  Jim Meyering  <meyering@lucent.com>
95213
95214         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95215         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95216
95217 2000-02-08  Akim Demaille  <akim@epita.fr>
95218
95219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95220         `[' and `]' and remove uses of `changequote'.
95221         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95222         (AC_SYS_LARGEFILE): Likewise.
95223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95225         of changequote.
95226         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95227         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95229         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95230
95231 2000-02-05  Jim Meyering  <meyering@lucent.com>
95232
95233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95234         Remove explicit use of AC_HEADER_TIME.  It is required by
95235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95236         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95237         in autoconf whereby the expansion of the latter ended up preceding
95238         the expansion of its prerequisite, AC_HEADER_TIME.
95239         Reported by Volker Borchert.
95240
95241 2000-02-03  Jim Meyering  <meyering@lucent.com>
95242
95243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95244
95245 2000-02-03  Jim Meyering  <meyering@lucent.com>
95246
95247         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95248         rather than with `#if HAVE_UTMPNAME'.
95249
95250 2000-02-02  Jim Meyering  <meyering@lucent.com>
95251
95252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95253         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95254         Reported by Eli Zaretskii.
95255
95256 2000-02-01  Jim Meyering  <meyering@lucent.com>
95257
95258         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95259
95260 2000-01-31  Jim Meyering  <meyering@lucent.com>
95261
95262         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95263         functions.  Add the time.h and sys/time.h headers along with the
95264         AC_REQUIRE'ment of AC_HEADER_TIME.
95265
95266 2000-01-31  Jim Meyering  <meyering@lucent.com>
95267
95268         * lib/nanosleep.h (nanosleep): Guard declaration with
95269         `#if ! HAVE_DECL_NANOSLEEP'.
95270         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95271         the declaration in that vendor's sys/timers.h.
95272         Reported by Christian Krackowizer.
95273
95274         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95275         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95276         (ISPRINT): Likewise.
95277         Reported by Tom Tromey.
95278
95279 2000-01-30  Jim Meyering  <meyering@lucent.com>
95280
95281         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95282
95283         * m4/prereq.m4 (utmp_includes): Define.
95284         Check for ut_user and ut_name members in both struct utmpx
95285         and struct utmp.
95286
95287 2000-01-30  Jim Meyering  <meyering@lucent.com>
95288
95289         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95290         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95291         header files where only utmpx.ut_user is declared.
95292
95293         * lib/readutmp.h (UT_USER): Define.
95294
95295 2000-01-29  Jim Meyering  <meyering@lucent.com>
95296
95297         * m4/lib-check.m4: New file containing library-related checks from
95298         fileutils and sh-utils (textutils had none).
95299
95300 2000-01-28  Jim Meyering  <meyering@lucent.com>
95301
95302         * m4/perl.m4: Change format of warning message to look more like that
95303         from the missing script.  Suggestion from François Pinard.
95304
95305 2000-01-25  Jim Meyering  <meyering@lucent.com>
95306
95307         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95308         well as time.h in the compile check.
95309         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95310         Fix typo in cross-compiling case: s/yes/no/.
95311
95312 2000-01-23  Jim Meyering  <meyering@lucent.com>
95313
95314         * m4/jm-macros.m4: Move df-related tests here from
95315         fileutils/configure.in
95316
95317         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95318         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95319
95320         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95321         s/space/ac_fsusage_space/.
95322         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95323
95324         * m4/ftruncate.m4: New file (derived from part of
95325         fileutils/configure.in).
95326         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95327         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95328
95329         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95330         AC_SUBST these here, rather than just in sh-util/configure.in, so
95331         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95332         all the same.
95333         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95334         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95335         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95336         (AC_SUBST(POW_LIBM)): Likewise.
95337         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95338
95339 2000-01-23  Jim Meyering  <meyering@lucent.com>
95340
95341         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95342         obstack.c.
95343
95344 2000-01-22  Jim Meyering  <meyering@lucent.com>
95345
95346         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95347
95348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95349
95350         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95351         configure.in
95352         (AC_CHECK_HEADERS): Likewise for sh-utils.
95353         (AC_CHECK_HEADERS): Likewise for textutils.
95354         Merge the three lists of headers.
95355
95356         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95357         from fileutils' configure.in.
95358
95359         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95360         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95361         check-decl.m4.
95362
95363         * m4/check-decl.m4: Use #if rather than #ifdef.
95364         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95365         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95366         (_jm_DECL_HEADERS): Define new function.
95367         (jm_CHECK_DECLARATIONS): Require it.
95368
95369 2000-01-22  Jim Meyering  <meyering@lucent.com>
95370
95371         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95372         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95373         Required for some AIX systems.  Reported by Christian Krackowizer.
95374         [TESTING] (main): New function.
95375
95376         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95377         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95378         letters.
95379
95380         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95381         iswprint.
95382
95383         * lib/strverscmp.c (ISDIGIT): Define.
95384         (strverscmp): Use ISDIGIT, not isdigit.
95385
95386 2000-01-19  Jim Meyering  <meyering@lucent.com>
95387
95388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95389         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95390         defines `struct timespec' in <sys/time.h>
95391
95392         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95393         Thanks to Akim for explaining.
95394
95395 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95396
95397         * lib/nanosleep.c (nanosleep):
95398         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95399         POSIX.1 doesn't require SA_INTERRUPT and some systems
95400         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95401         it's been part of POSIX.1 since day 1 (in 1988).
95402
95403 2000-01-17  Jim Meyering  <meyering@lucent.com>
95404
95405         * lib/interlock: Remove unused file.  Reported by François Pinard.
95406
95407 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95408
95409         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95410         alert, backslash, formfeed, and vertical tab unnecessarily in
95411         shell quoting style.
95412
95413 2000-01-16  Jim Meyering  <meyering@lucent.com>
95414
95415         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95416         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95417         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95418         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95419
95420 2000-01-16  Jim Meyering  <meyering@lucent.com>
95421
95422         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95423         because the latter didn't work.
95424
95425 2000-01-15  Jim Meyering  <meyering@lucent.com>
95426
95427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95428         (AC_REPLACE_FUNCS): Add memcpy and memset.
95429         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95430         Add strpbrk.
95431         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95432
95433 2000-01-12  Jim Meyering  <meyering@lucent.com>
95434
95435         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95436         (jm_PREREQ): Use it.
95437         (jm_PREREQ_READUTMP): New macro.
95438         (jm_PREREQ): Use it.
95439
95440 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95441
95442         Quote multibyte characters correctly.
95443         * m4/c-bs-a.m4: New file.
95444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95445         (jm_PREREQ): Use it.
95446
95447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95448
95449         * m4/uintmax_t.m4: Port to autoconf 2.13.
95450
95451 2000-01-08  Jim Meyering  <meyering@ascend.com>
95452
95453         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95454         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95455
95456 2000-01-04  Jim Meyering  <meyering@ascend.com>
95457
95458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95459         jm_STRUCT_DIRENT_D_TYPE.
95460         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95461         jm_STRUCT_DIRENT_D_INO.
95462         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95463         jm_STRUCT_UTIMBUF.
95464         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95465         renamings.
95466         * m4/utime.m4: Likewise.
95467
95468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95469         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95470
95471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95472
95473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95474         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95475
95476 2000-01-02  Jim Meyering  <meyering@ascend.com>
95477
95478         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95479         remember if this is necessary.
95480
95481 1999-12-26  Jim Meyering  <meyering@ascend.com>
95482
95483         * m4/jm-macros.m4: Use it here.
95484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95485
95486 1999-12-23  Jim Meyering  <meyering@ascend.com>
95487
95488         * m4/jm-macros.m4: Check for clock_gettime (moved from
95489         fileutils/configure.in)
95490         Check for gettimeofday.
95491
95492 1999-12-20  Jim Meyering  <meyering@ascend.com>
95493
95494         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95495         autoconf-2.14a-1999-12-20.
95496
95497 1999-12-19  Jim Meyering  <meyering@ascend.com>
95498
95499         * m4/lstat-slash.m4: New file.
95500         * m4/jm-macros.m4: Use the new macro:
95501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95502
95503 1999-12-07  Jim Meyering  <meyering@ascend.com>
95504
95505         * m4/perl.m4: Require that File::Compare be available, too.
95506         Too many systems seem to lack it.
95507
95508         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95509         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95510
95511 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95512
95513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95514         problem with the QNX 4.25 shell, which doesn't propagate exit
95515         status of failed commands inside shell assignments.
95516
95517 1999-11-17  Jim Meyering  <meyering@ascend.com>
95518
95519         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95520
95521 1999-11-07  Jim Meyering  <meyering@ascend.com>
95522
95523         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95524
95525 1999-11-06  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95528         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95529
95530 1999-11-05  Jim Meyering  <meyering@ascend.com>
95531
95532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95533         configure.in of textutils, fileutils, and sh-utils into this one
95534         (shared between those packages) file.
95535         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95536         AC_STRUCT_ST_BLKSIZE.
95537
95538 1999-11-03  Jim Meyering  <meyering@ascend.com>
95539
95540         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95541         of AC_CHECK_TYPE checks includes unistd.h.
95542         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95543         Suggestion from Akim Demaille.
95544
95545 1999-10-30  Jim Meyering  <meyering@ascend.com>
95546
95547         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95548         m4-quoted string.
95549         * m4/ls-mntd-fs.m4: Likewise.
95550         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95551         * m4/jm-winsz1.m4: Likewise.
95552
95553         * m4/const.m4: Remove file, since the fix made it into the experimental
95554         version of autoconf.
95555         * m4/mktime.m4: Likewise.
95556
95557         * m4/check-type.m4: Remove file, now that the latest version of
95558         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95559
95560         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95561         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95562         AC_CHECK_TYPE.
95563
95564 1999-10-04  Jim Meyering  <meyering@ascend.com>
95565
95566         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95567
95568 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95569
95570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95571         2.95.1 bug with HP-UX 10.20.
95572
95573 1999-09-17  Jim Meyering  <meyering@ascend.com>
95574
95575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95576         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95577         due to missing strdup (against sh-utils-2.0).
95578
95579 1999-08-29  Jim Meyering  <meyering@ascend.com>
95580
95581         * m4/jm-macros.m4: Require jm_BISON.
95582         * m4/bison.m4: New file.
95583
95584 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95585
95586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95587         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95588
95589 1999-08-05  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95592         to avoid conflicts with `conftest' on 8+3 filesystems.
95593         Suggestion from Eli Zaretskii.
95594
95595 1999-08-04  Jim Meyering  <meyering@ascend.com>
95596
95597         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95598         fileutils and sh-utils (textutils's getline test was inadequate).
95599         (AM_FUNC_GETLINE): Run this test.
95600         (AC_CHECK_FUNCS): Check for getdelim.
95601         Reported by Bob Proulx.
95602
95603 1999-08-02  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/jm-macros.m4: Add a comment.
95606
95607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95608
95609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95610         <inttypes.h> defines strtoumax as a macro (and not as a
95611         function).
95612
95613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95614
95615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95616         that we can shift, multiply and divide unsigned long long
95617         values; Ultrix cc can't do it.
95618
95619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95620
95621         * m4/mktime.m4: New file, which is a preview of what should appear
95622         in the next public autoconf release.
95623
95624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95625
95626         * m4/lfs.m4: Remove this file.
95627         * m4/largefile.m4: New file.  It contains the old contents of
95628         lfs.m4, except that all names with prefix AC_LFS have been
95629         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95630         compatible with future autoconf versions.  Also, some minor m4
95631         quoting problems have been fixed.
95632
95633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95634
95635         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95636         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95637         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95638         and simplify the shell code.
95639
95640 1999-08-01  Jim Meyering  <meyering@ascend.com>
95641
95642         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95643         m4.
95644
95645 1999-07-20  Jim Meyering  <meyering@ascend.com>
95646
95647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95648
95649 1999-07-15  Jim Meyering  <meyering@ascend.com>
95650
95651         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95652
95653 1999-05-22  Jim Meyering  <meyering@ascend.com>
95654
95655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95656
95657 1999-05-20  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95660         Add a colon after each `then' in case $4 is empty.
95661
95662 1999-05-16  Jim Meyering  <meyering@ascend.com>
95663
95664         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95665
95666 1999-05-10  Jim Meyering  <meyering@ascend.com>
95667
95668         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95669
95670         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95671         AC_FUNC_MKTIME.
95672
95673 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95674
95675         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95676
95677 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95678
95679         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95680         not CPPFLAGS, so that linking works correctly in IRIX.
95681
95682 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95683
95684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95685
95686 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95687
95688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95689         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95691         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95693
95694         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95695
95696 1999-04-20  Jim Meyering  <meyering@ascend.com>
95697
95698         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95699         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95700         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95701
95702 1999-04-18  Jim Meyering  <meyering@ascend.com>
95703
95704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95705         * m4/jm-macros.m4: Use it.
95706
95707 1999-04-06  Jim Meyering  <meyering@ascend.com>
95708
95709         * m4/strftime.m4: Remove test for %f.
95710
95711 1999-03-29  Jim Meyering  <meyering@ascend.com>
95712
95713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95714         superset of the AC_TYPE_* checks in the textutils, fileutils,
95715         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95716         AC_TYPE_PID_T.
95717
95718 1999-03-28  Jim Meyering  <meyering@ascend.com>
95719
95720         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95721         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95722         replaced e.g., in the *.sh files of the sh-utils.
95723
95724 1999-03-20  Jim Meyering  <meyering@ascend.com>
95725
95726         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95727         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95728         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95729
95730 1999-03-19  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95733
95734 1999-03-12  Jim Meyering  <meyering@ascend.com>
95735
95736         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95737
95738 1999-03-07  Jim Meyering  <meyering@ascend.com>
95739
95740         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95741         declared.
95742
95743 1999-02-17  Jim Meyering  <meyering@ascend.com>
95744
95745         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95746         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95747
95748 1999-02-07  Jim Meyering  <meyering@ascend.com>
95749
95750         * m4/group-member.m4: New file -- extracted from sh-utils'
95751         configure.in.
95752
95753         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95754         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95755
95756 1999-02-06  Jim Meyering  <meyering@ascend.com>
95757
95758         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95759         * m4/fnmatch.m4: Likewise.
95760         * m4/getgroups.m4: Likewise.
95761         * m4/lstat.m4: Likewise.
95762         * m4/malloc.m4: Likewise.
95763         * m4/putenv.m4: Likewise.
95764         * m4/realloc.m4: Likewise.
95765         * m4/regex.m4: Likewise.
95766         * m4/stat.m4: Likewise.
95767         * m4/strftime.m4: Likewise.
95768         Suggestion from Alain Magloire.
95769
95770         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95771         * m4/fnmatch.m4: Likewise.
95772         * m4/getgroups.m4: Likewise.
95773         * m4/getline.m4: Likewise.
95774         * m4/lstat.m4: Likewise.
95775         * m4/malloc.m4: Likewise.
95776         * m4/memcmp.m4: Likewise.
95777         * m4/putenv.m4: Likewise.
95778         * m4/realloc.m4: Likewise.
95779         * m4/regex.m4: Likewise.
95780         * m4/stat.m4: Likewise.
95781         * m4/strftime.m4: Likewise.
95782         Suggestion from Alain Magloire.
95783
95784         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95785         an argument.
95786
95787         * m4/regex.m4: Add a run-time Test for proper operation of
95788         re_compile_pattern.
95789
95790 1999-01-31  Jim Meyering  <meyering@ascend.com>
95791
95792         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95793
95794 1999-01-30  Jim Meyering  <meyering@ascend.com>
95795
95796         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95797
95798         * m4/jm-mktime.m4: Make this a wrapper around the official
95799         AM_FUNC_MKTIME rather than my private copy, now that the official one
95800         is up to date.
95801         * m4/mktime.m4: Remove file.
95802
95803         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95804         * m4/uptime.m4: Likewise.
95805         * m4/uintmax_t.m4: Likewise.
95806
95807 1999-01-28  Jim Meyering  <meyering@ascend.com>
95808
95809         * m4/jm-macros.m4: Use jm_AFS.
95810         * m4/afs.m4: New file (from fileutils' configure.in).
95811
95812         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95813         * m4/chown.m4: Likewise.
95814         * m4/d-ino.m4: Likewise.
95815         * m4/d-type.m4: Likewise.
95816         * m4/fnmatch.m4: Likewise.
95817         * m4/getgroups.m4: Likewise.
95818         * m4/gettext.m4: Likewise.
95819         * m4/jm-mktime.m4: Likewise.
95820         * m4/jm-winsz2.m4: Likewise.
95821         * m4/lcmessage.m4: Likewise.
95822         * m4/ls-mntd-fs.m4: Likewise.
95823         * m4/malloc.m4: Likewise.
95824         * m4/memcmp.m4: Likewise.
95825         * m4/putenv.m4: Likewise.
95826         * m4/realloc.m4: Likewise.
95827         * m4/st_mtim.m4: Likewise.
95828         * m4/strftime.m4: Likewise.
95829
95830 1999-01-16  Jim Meyering  <meyering@ascend.com>
95831
95832         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95833         (ARGMATCH_DIE_DECL): Define.
95834
95835 1999-01-12  Jim Meyering  <meyering@ascend.com>
95836
95837         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95838         Reported by Lars Hecking.
95839
95840 1999-01-10  Jim Meyering  <meyering@ascend.com>
95841
95842         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95843         gross kludge.
95844         * m4/inttypes_h.m4: Likewise.
95845         * m4/lstat.m4: Likewise.
95846         * m4/malloc.m4: Likewise.
95847         * m4/readdir.m4: Likewise.
95848         * m4/realloc.m4: Likewise.
95849         * m4/st_dm_mode.m4: Likewise.
95850         * m4/stat.m4: Likewise.
95851         * m4/utimbuf.m4: Likewise.
95852         * m4/utimes.m4: Likewise.
95853
95854         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95855         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95856         comments in config.h.in are meaningful.
95857
95858         * m4/jm-macros.m4: Require autoconf-2.13 here.
95859
95860         * m4/regex.m4: By default, don't use the included regex.c on systems
95861         with glibc 2.  Suggestion from Uli Drepper.
95862
95863 1999-01-02  Jim Meyering  <meyering@ascend.com>
95864
95865         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95866
95867 1998-12-18  Jim Meyering  <meyering@ascend.com>
95868
95869         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95870         Based on a suggestion from Lars Hecking.
95871
95872 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95873
95874         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95875
95876 1998-11-16  Jim Meyering  <meyering@ascend.com>
95877
95878         * m4/lfs.m4: Double-quote the `uname...` expression.
95879
95880 1998-11-14  Jim Meyering  <meyering@ascend.com>
95881
95882         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95883         * m4/stat.m4: Likewise.
95884
95885 1998-11-03  Jim Meyering  <meyering@ascend.com>
95886
95887         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95888         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95889
95890 1998-10-18  Jim Meyering  <meyering@ascend.com>
95891
95892         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95893
95894 1998-10-17  Jim Meyering  <meyering@ascend.com>
95895
95896         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95897         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95898         calls for those previously hard-coded headers.  Instead, take a new
95899         parameter.
95900         (jm_CHECK_DECLARATIONS): Reflect interface change.
95901         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95902         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95903
95904         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95905
95906 1998-10-14  Jim Meyering  <meyering@ascend.com>
95907
95908         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95909         instead of "TZ=America/Vancouver".  From Paul Eggert.
95910
95911 1998-10-11  Jim Meyering  <meyering@ascend.com>
95912
95913         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95914         This adds a test for a recently added compatibility fix for mktime.c.
95915         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95916
95917 1998-09-27  Jim Meyering  <meyering@ascend.com>
95918
95919         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95920
95921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95922         ../configure.in, including a change from Gordon Matzigkeit to allow
95923         cross-compiling for the Hurd.
95924
95925         * m4/glibc.m4: New file/macro to test for the GNU C Library
95926         versions 1 and 2.  From Gordon Matzigkeit.
95927         Indent.
95928
95929 1998-09-21  Jim Meyering  <meyering@ascend.com>
95930
95931         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95932
95933 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95934
95935         Port nanosecond-resolution times to UnixWare 2.1.2 and
95936         pedantic Solaris 2.6.
95937
95938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95939         AC_STRUCT_ST_MTIM.
95940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95941         Generate name of ns member, instead of just 1 or undef.
95942         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95943
95944 1998-08-15  Jim Meyering  <meyering@ascend.com>
95945
95946         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95947         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95948         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95949         instead of jm_TYPE_SSIZE_T.
95950
95951 1998-08-12  Jim Meyering  <meyering@ascend.com>
95952
95953         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95954
95955 1998-08-02  Jim Meyering  <meyering@ascend.com>
95956
95957         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95958         in acconfig.h manually.
95959
95960 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95961
95962         * m4/st_mtim.m4: New file.
95963
95964 1998-07-28  Jim Meyering  <meyering@ascend.com>
95965
95966         * m4/utimes.m4: Undef stat.
95967
95968 1998-07-25  Jim Meyering  <meyering@ascend.com>
95969
95970         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95971         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95972
95973 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95974
95975         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95976         uid and gid actually remain unchanged.
95977
95978 1998-07-07  Jim Meyering  <meyering@ascend.com>
95979
95980         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95981
95982 1998-07-04  Jim Meyering  <meyering@ascend.com>
95983
95984         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95985         to prove that this macro can be used in packages without regex.c.
95986
95987 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95988
95989         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95990         is to be used.
95991
95992 1998-07-03  Jim Meyering  <meyering@ascend.com>
95993
95994         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95995
95996         * m4/gettext.m4: New file -- from gettext-0.10.35.
95997         * m4/lcmessage.m4: Likewise.
95998         * m4/progtest.m4: Likewise.
95999
96000         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96001         * m4/jm-macros.m4: Require the new macro.
96002
96003 1998-06-29  Jim Meyering  <meyering@ascend.com>
96004
96005         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96006         for the definition of NGROUPS (used in a system header included
96007         by sys/mount.h).
96008
96009 1998-06-28  Jim Meyering  <meyering@ascend.com>
96010
96011         * m4/ls-mntd-fs.m4: New file.
96012         * m4/fstypename.m4: New file.
96013
96014         * m4/jm-macros.m4: Require the new macro.
96015         * m4/jm-glibc-io.m4: New file.
96016
96017 1998-05-19  Jim Meyering  <meyering@ascend.com>
96018
96019         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96020         * m4/lchown.m4: New file.
96021
96022         * m4/Makefile.am.in: New file.
96023         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96024
96025 1998-05-14  Jim Meyering  <meyering@ascend.com>
96026
96027         * m4/Makefile.am (EXTRA_DIST): Add them.
96028         * m4/jm-macros.m4: New file.
96029         * m4/utimbuf.m4: New file.
96030
96031 1998-05-12  Jim Meyering  <meyering@ascend.com>
96032
96033         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96034
96035 1998-05-11  Jim Meyering  <meyering@ascend.com>
96036
96037         * m4/isc-posix.m4: New file.
96038
96039 1998-05-10  Jim Meyering  <meyering@ascend.com>
96040
96041         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96042
96043 1998-05-09  Jim Meyering  <meyering@ascend.com>
96044
96045         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96046         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96047         with automake.
96048
96049         * m4/ssize_t.m4: New file.
96050         * m4/mktime.m4: Remove file -- the new automake has this now.
96051
96052 1998-04-26  Jim Meyering  <meyering@ascend.com>
96053
96054         * m4/assert.m4: New file.
96055         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96056
96057 1998-04-05  Jim Meyering  <meyering@ascend.com>
96058
96059         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96060         (jm_PREREQ): Use it here.
96061
96062 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96063
96064         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96065         in acconfig.h.
96066
96067 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96068
96069         * m4/prereq.m4: New file.
96070         * m4/error.m4: New file.
96071         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96072
96073 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96074
96075         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96076         cache-check for the same variable -- that defeated the purpose of
96077         the test; the test program was never run.  This was a problem only
96078         on systems with losing getline functions -- HP-UX 10.20 is one.
96079         Reported by Bjorn Helgaas.
96080
96081 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96082
96083         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96084
96085 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96086
96087         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96088
96089         * m4/const.m4: New file.  Use an initializer in this declaration
96090         typedef int charset[2]; const charset x;
96091         Reported by Bob Glickstein.
96092
96093 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96094
96095         * m4/chown.m4: Fix reversed types on -1 args to chown.
96096         From Kaveh Ghazi.
96097
96098 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96099
96100         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96101         Add lseek and memchr.
96102
96103         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96104         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96105         have a 20-character limit on names.
96106
96107 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96108
96109         * m4/inttypes_h.m4: New file.
96110         * m4/uintmax_t.m4: New file.
96111         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96112
96113
96114         -----
96115
96116         Local Variables:
96117         coding: utf-8
96118         End:
96119
96120         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96121
96122         Copying and distribution of this file, with or without
96123         modification, are permitted provided the copyright notice
96124         and this notice are preserved.